From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Brodkin Date: Tue, 20 Feb 2018 17:54:21 +0000 Subject: [U-Boot] [PATCH] arc: Introduce a possibility to not relocate U-boot In-Reply-To: References: <20180125182203.24170-1-abrodkin@synopsys.com> Message-ID: <1519149260.6393.98.camel@synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, Tom, On Sun, 2018-02-04 at 06:40 -0700, Simon Glass wrote: > On 25 January 2018 at 11:22, Alexey Brodkin wrote: > > From: Alexey Brodkin > > > > Disabling relocation might be useful on ARC for 2 reasons: > > a) For advanced debugging with Synopsys proprietary MetaWare debugger > > which is capable of accessing much more specific hardware resources > > compared to gdb. For example it may show contents of L1 and L2 caches, > > internal states of some hardware blocks etc. > > > > But on the downside MetaWare debugger still cannot work with PIE. > > Even though that limitation could be work-arounded with change of ELF's > > header and stripping down all debug info but with it we won't have > > debug info for source-level debugging which is quite inconvenient. > > > > b) Some platforms which might benefit from usage of U-Boot basically > > don't have enough RAM to accommodate relocation of U-Boot so we > > keep code in flash and use as much of RAM as possible for more > > interesting things. > > > > Signed-off-by: Alexey Brodkin > > Cc: Simon Glass > > Cc: Bin Meng > > Cc: Heiko Schocher > > Cc: York Sun > > Cc: Stefan Roese > > --- > > arch/arc/lib/relocate.c | 6 ++++++ > > arch/arc/lib/start.S | 8 +++++++- > > common/board_f.c | 3 ++- > > 3 files changed, 15 insertions(+), 2 deletions(-) > > Reviewed-by: Simon Glass Is it OK if I pull this into my "next" tree? I'm asking because common/board_f.c is affected even though that's just an addition of CONFIG_ARC in one #ifdef. -Alexey