public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* hidden symbol __dso_handle reference: link error
@ 2007-05-11 20:30 Gary Hughes-Fenchel
  2007-05-11 20:38 ` Matthew Woehlke
  2007-08-02 19:33 ` hidden symbol __dso_handle reference: link error, lost attachments Gary Hughes-Fenchel
  0 siblings, 2 replies; 5+ messages in thread
From: Gary Hughes-Fenchel @ 2007-05-11 20:30 UTC (permalink / raw)
  To: gcc-help

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-02 19:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-11 20:30 hidden symbol __dso_handle reference: link error Gary Hughes-Fenchel
2007-05-11 20:38 ` Matthew Woehlke
2007-05-11 21:34   ` Gary Hughes-Fenchel
2007-08-02 19:13   ` Gary Hughes-Fenchel
2007-08-02 19:33 ` hidden symbol __dso_handle reference: link error, lost attachments Gary Hughes-Fenchel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).