[U-Boot] [PATCH v2] [x86] Don't relocate symbols which point to things that aren't relocated
Gabe Black
gabeblack at chromium.org
Tue Nov 8 22:04:48 CET 2011
I don't think the symbols that are left in place are compiled or linked any
differently than the rest, and I believe the compiler/linker is explicitly
instructed to leave relocation information in the final binary. You could
leave those out as a space saving optimization, although that seems like
it's outside the scope of this change.
Gabe
On Tue, Nov 8, 2011 at 5:46 AM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Tuesday 08 November 2011 02:08:42 Gabe Black wrote:
> > This change adds an upper bound for symbols which are fixed up after
> u-boot
> > is relocated into RAM. This way portions that are left at their original
> > location can be referred to without having to manually fix up any
> pointers.
>
> i'm not familiar with the u-boot relocation handling on x86, but if a
> symbol
> shouldn't be relocated, then why does it have an elf reloc ? shouldn't it
> be
> an absolute symbol ?
> -mike
>
More information about the U-Boot
mailing list