This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: G++ Linking issue : hidden symbol `__dso_handle'


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?

Thanks,
Rajat

----- 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.

Ian



      


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