[PATCH] BFD: Consider any section whose name starts with ".__abs" to be absolute.

Alan Modra amodra@gmail.com
Tue Jun 26 05:35:00 GMT 2018


On Sat, Jun 23, 2018 at 06:40:35PM +0200, John Darrington wrote:
> The relocatable ELF files produced by the compiler of a major semiconductor
> manufactoror does not put absolute symbols into the *ABS* section.
> Instead, each seems to have its own section whose name starts with .__absdata_
> 
> This causes ld to mislink such files.  This patch seems to fix the problem.
> It doesn't seem like an elegant solution, but then it isn't an elegant problem...

No, that isn't the right way.  Investigate elf_add_symbol_hook.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list