RFC: Add STB_GNU_SECONDARY
Fri Apr 20 20:25:00 GMT 2012
On Fri, Apr 20, 2012 at 12:50 PM, Roland McGrath <email@example.com> wrote:
> Please provide an example that illustrates why you think you need this.
Currently we use weak undefined symbol, foo, to do
if (&foo != 0)
foo is defined.
foo isn't defined.
We want is to define foo as a secondary symbol so that
we can always use foo without checking. If there is a primary
one in a .o file and .so file, we will get the primary one,
otherwise, we will use the secondary one.
More information about the Binutils