[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/6931] New: COMDAT group is broken

From: hjl dot tools at gmail dot com
Subject: [Bug ld/6931] New: COMDAT group is broken
Date: 1 Oct 2008 19:17:38 -0000

This patch:


may have caused:

address@hidden tmp]$ cat foo.c
extern int foo;
int *
foo1 ()
  return &foo;
address@hidden tmp]$ cat bar.c
extern int bar;
int *
bar1 ()
  return &bar;
address@hidden tmp]$ gcc -fPIC -c bar.c foo.c
address@hidden tmp]$ ld -r -o libbar.o bar.o
address@hidden tmp]$ ld -shared libbar.o foo.o
foo.o: In function `__i686.get_pc_thunk.cx':
foo.c:(.text.__i686.get_pc_thunk.cx[__i686.get_pc_thunk.cx]+0x0): multiple
definition of `__i686.get_pc_thunk.cx'
libbar.o:(.text.__i686.get_pc_thunk.cx[.group]+0x0): first defined here
address@hidden tmp]$

           Summary: COMDAT group is broken
           Product: binutils
           Version: 2.20 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: hjl dot tools at gmail dot com
                CC: amodra at bigpond dot net dot au,bug-binutils at gnu dot


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]