RFC: Add STB_GNU_SECONDARY
Fri Apr 20 21:20:00 GMT 2012
Quoting "H.J. Lu" <email@example.com>:
> We have a need to define a secondary symbol as backup in
> case there isn't a primary one. Here is a proposal for
> STB_GNU_SECONDARY. Any comments?
If two levels of prevedence (ordinary and weak) are not enough, why will
three levels be so much better?
If you use a signed fractional or even floating-point precedence value,
you have a lot more space to accomodate afterthoughts - above, below,
and in-between in precedence to existing values.
Even better, you could use symbolic tags, and have the linker script
assign precedence values to these tags.
More information about the Binutils