hidden symbol __dso_handle reference: link error
Gary Hughes-Fenchel
ghughesf@tibco.com
Fri May 11 20:30:00 GMT 2007
I am seeing this:
/usr/bin/ld: pgmreceiver: hidden symbol `__dso_handle' in
/usr/lib/gcc/x86_6
4-redhat-linux/4.1.1/crtbegin.o is referenced by DSO
26 /usr/bin/ld: final link failed: Nonrepresentable section on output
27 collect2: ld returned 1 exit status
I am calling ld directly. I am building 2 separate libraries and trying
to link with the dynamic libraries. The libraries are being created with:
-fvisibility=default
-shared
-soname foo.so -lc mylib1.a mylib2.a
I don't have the option of either rebuilding the compiler (suggested in
one post at http://gcc.gnu.org/ml/libstdc++/2000-06/msg00134.html) or
ceasing to call ld directly. The version I'm using is:
g++ --version
g++ (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52)
The linker I'm using is:
ld --version
GNU ld version 2.17.50.0.6-2.el5 20061020
Any assistance would be greatly appreciated.
More information about the Gcc-help
mailing list