RFC: Add STB_GNU_SECONDARY

H.J. Lu hjl.tools@gmail.com
Mon Apr 23 19:30:00 GMT 2012


On Sat, Apr 21, 2012 at 12:01 PM, Joern Rennecke <amylaar@spamcop.net> wrote:
> Quoting "H.J. Lu" <hjl.tools@gmail.com>:
>
>> Putting our own foo in a section with a special prefix in section name,
>> like .secondary_*, works with linker support.  But it isn't very reliable.
>
>
> In what way is requiring linker support for STB_GNU_SECONDARY more reliable
> than requiring linker support for .secondary_* sections?

It may lead to conflict with section __attribute__ in C source and section
directive in assembly code.

-- 
H.J.



More information about the Binutils mailing list