This patch:

http://sourceware.org/ml/binutils/2008-09/msg00214.html

may have caused:

[EMAIL PROTECTED] tmp]$ cat foo.c
extern int foo;
int *
foo1 ()
{
  return &foo;
}
[EMAIL PROTECTED] tmp]$ cat bar.c
extern int bar;
int *
bar1 ()
{
  return &bar;
}
[EMAIL PROTECTED] tmp]$ gcc -fPIC -c bar.c foo.c
[EMAIL PROTECTED] tmp]$ ld -r -o libbar.o bar.o
[EMAIL PROTECTED] 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
[EMAIL PROTECTED] 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
                    org


http://sourceware.org/bugzilla/show_bug.cgi?id=6931

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


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to