G++ Linking issue : hidden symbol `__dso_handle'

Rajat myself_rajat@yahoo.com
Wed Sep 16 10:32:00 GMT 2009

Thanks a lot for the help Ian. Yeah I could see allmost all the libs are showing this,
$ readelf -s <Lib_Name> | grep "__dso_handle"
    99: 00034dc0     0 OBJECT  LOCAL  HIDDEN   22 __dso_handle
Does this present in the symbol table ? Whats the significance of it?


----- Original Message ----
From: Ian Lance Taylor <iant@google.com>
To: Rajat <myself_rajat@yahoo.com>
Cc: gcc-help@gcc.gnu.org
Sent: Wednesday, September 16, 2009 11:44:53 AM
Subject: Re: G++ Linking issue : hidden symbol `__dso_handle'

Rajat <myself_rajat@yahoo.com> writes:

> ---------------------------------------------------------------------------------------------------------------------------------------------------------- /usr/bin/ld: <binary_name>: hidden symbol `__dso_handle' in /usr/lib/gcc/i386-redhat-linux/3.4.6/crtbegin.o is referenced by DSO
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status

Use readelf -s to find out which shared library is referring to
__dso_handle.  Figure out why it is doing that.



More information about the Gcc-help mailing list