public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/45387]  New: mips: non-dynamic relocations refer to dynamc symbol
@ 2010-08-23 18:14 aurelien at aurel32 dot net
  2010-08-23 18:15 ` [Bug debug/45387] " aurelien at aurel32 dot net
  2010-08-23 21:36 ` [Bug debug/45387] [4.4 regression] " pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: aurelien at aurel32 dot net @ 2010-08-23 18:14 UTC (permalink / raw)
  To: gcc-bugs

In some conditions on mips/mipsel, when compiling with -g, ld fails to link the
resulting objects (see attached testcase):

| gcc -O2 -g -fPIC -shared -o libb.so yb.c
| gcc -O2 -g -o ya.o -c ya.c
| gcc -O2 -g -o y ya.o -L. -lb
| /usr/bin/ld: non-dynamic relocations refer to dynamic symbol xxprogname
| /usr/bin/ld: failed to set dynamic section sizes: Bad value
| collect2: ld returned 1 exit status

This bug is a regression from the gcc 4.3 branch, and is already fixed in the
4.5 branch by the following patch:

| http://gcc.gnu.org/ml/gcc-patches/2009-09/msg02070.html

Unfortunately this patch is not trivial to backport, that's why I am opening
this bug.


-- 
           Summary: mips: non-dynamic relocations refer to dynamc symbol
           Product: gcc
           Version: 4.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aurelien at aurel32 dot net
 GCC build triplet: mips-linux-gnu
  GCC host triplet: mips-linux-gnu
GCC target triplet: mips-linux-gnu


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


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

* [Bug debug/45387] mips: non-dynamic relocations refer to dynamc symbol
  2010-08-23 18:14 [Bug debug/45387] New: mips: non-dynamic relocations refer to dynamc symbol aurelien at aurel32 dot net
@ 2010-08-23 18:15 ` aurelien at aurel32 dot net
  2010-08-23 21:36 ` [Bug debug/45387] [4.4 regression] " pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: aurelien at aurel32 dot net @ 2010-08-23 18:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from aurelien at aurel32 dot net  2010-08-23 18:15 -------
Created an attachment (id=21550)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21550&action=view)
Testcase


-- 


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


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

* [Bug debug/45387] [4.4 regression] mips: non-dynamic relocations refer to dynamc symbol
  2010-08-23 18:14 [Bug debug/45387] New: mips: non-dynamic relocations refer to dynamc symbol aurelien at aurel32 dot net
  2010-08-23 18:15 ` [Bug debug/45387] " aurelien at aurel32 dot net
@ 2010-08-23 21:36 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-08-23 21:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.5


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


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

end of thread, other threads:[~2010-08-23 21:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 18:14 [Bug debug/45387] New: mips: non-dynamic relocations refer to dynamc symbol aurelien at aurel32 dot net
2010-08-23 18:15 ` [Bug debug/45387] " aurelien at aurel32 dot net
2010-08-23 21:36 ` [Bug debug/45387] [4.4 regression] " pinskia at gcc dot gnu 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).