public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/40134]  New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)
@ 2009-05-13 17:06 debian-gcc at lists dot debian dot org
  2009-05-22 13:37 ` [Bug target/40134] " ramana at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2009-05-13 17:06 UTC (permalink / raw)
  To: gcc-bugs

this showed up when trying to address PR40133. Enabling the exception
propagation support keeps the __sync_val_compare_and_swap_4 unresolved.

/usr/bin/ld: ./atomic-1.exe: hidden symbol `__sync_val_compare_and_swap_4' in
/home/doko/gcc/4.4/gcc-4.4-4.4.0/build/gcc/libgcc.a(linux-atomic.o) is
referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output

Linking the shared libstdc++ with both -lgcc_s and -lgcc does fix these.

There seem to be two issues:

 - libtool currently doesn't allow to link with -lgcc_s -lgcc (in this order). 
   see http://gcc.gnu.org/ml/libstdc++/2009-05/msg00064.html

 - g++ should link be default with -lgcc_s -lgcc? this is how I understand
   http://gcc.gnu.org/ml/gcc/2009-05/msg00039.html


-- 
           Summary: symbols not resolved when building shared libraries
                    (link with -lgcc_s -lgcc?)
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org
GCC target triplet: arm-linux-gnueabi


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-40134-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-06-24 23:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-13 17:06 [Bug target/40134] New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?) debian-gcc at lists dot debian dot org
2009-05-22 13:37 ` [Bug target/40134] " ramana at gcc dot gnu dot org
2009-06-20  1:21 ` doko at ubuntu dot com
2009-07-07  9:08 ` debian-gcc at lists dot debian dot org
2009-10-19 14:26 ` doko at gcc dot gnu dot org
2009-12-04  7:48 ` doko at gcc dot gnu dot org
2009-12-14  0:21 ` debian-gcc at lists dot debian dot org
2010-01-04 15:14 ` doko at gcc dot gnu dot org
     [not found] <bug-40134-4@http.gcc.gnu.org/bugzilla/>
2012-06-24 23:26 ` tg at mirbsd dot org
2012-06-24 23:27 ` tg at mirbsd dot org

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