<OS specific> symbols

Tom Kacvinsky tkacvins@gmail.com
Sat Mar 18 15:46:05 GMT 2023


Hi Andreas,

On Sat, Mar 18, 2023 at 10:57 AM Andreas Schwab <schwab@linux-m68k.org>
wrote:

> On Mär 18 2023, Tom Kacvinsky via Binutils wrote:
>
> >     50: 0000000000939cf0     8 OBJECT  <OS specific>: 10 DEFAULT   29
> > _ZGVNSt7collateIwE2idE
>
> 10 is STB_GNU_UNIQUE.
>
> > That is definitely a C++ symbol, but libstdc++.so was not linked
> > dynamically.  I am wanting to know how one would get an <OS specific>
> > symbol, and if there is a way of working around this at run time.  This
> > tool works fine on CenTOS 7 but not on CentOS 5.
>
> Looks like the CentOS 5 toolchain does not know about GNU_UNIQUE
> symbols.
>

It turns out support for STB_GNU_UNIQUE  was implemented in glibc 2.11.
CentOS 7 is glibc 2.17 based (which is why the tool worked there) but the
glibc version on CentOS 5 is 2.5.  Because of that, I'm out of luck.

Thanks for pointing me in the right direction.

Tom


More information about the Binutils mailing list