This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Put GNU_UNIQUE symbols into the dynamic section.

On Fri, Apr 17, 2015 at 1:14 PM, Cary Coutant <> wrote:
> >> Gold has a --no-gnu-unique option that converts STB_GNU_UNIQUE to
> >> STB_GLOBAL while writing the dynamic symbol table. This was to work
> >> around an issue with older dynamic loaders.
> >
> > Older loaders are not at all the reason for this flag:
> >
> Oh, yeah, forgot about that (should have searched instead of relying
> on my poor memory!). That, however, was the second time that
> STB_GNU_UNIQUE had caused problems; I think the first time really was
> because we had a loader that didn't understand the binding at all, but
> that reason probably has fallen by the wayside.

AFAICT, GNU_UNIQUE was added in glibc-2.11 in 2009:
  0122f28eb (Ulrich Drepper 2009-07-21 08:32:54 -0700  872) *
STB_GNU_UNIQUE support added.

That is only a year after public release of Gold. Also, gcc/configure
tests for support for GNU_UNIQUE, and doesn't emit it if the target
libc doesn't support it. So I am not sure how you could run into
problems here. But you may well be correct ;-)

Paul Pluzhnikov

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]