[Top][All Lists]

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

[Bug gold/12163] New: --start/end-group causes bogus 'multiple definitio

From: pluto at agmk dot net
Subject: [Bug gold/12163] New: --start/end-group causes bogus 'multiple definition of ...' error.
Date: Wed, 27 Oct 2010 09:47:19 +0000


           Summary: --start/end-group causes bogus 'multiple definition of
                    ...' error.
           Product: binutils
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: address@hidden
        ReportedBy: address@hidden


$ cat t.cpp
#include <cstdio>
void foo() { std::puts( "foo()" ); }

$ /local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/bin/x86_64-gnu-linux-g++
t.cpp -c -fpic
$ /local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/bin/x86_64-gnu-linux-ar rc
t.a t.o
-L /local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/lib64 -L
/local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/usr/lib64 -z defs -shared -o
t.so --start-group --whole-archive t.a --no-whole-archive --end-group -lc

error: t.a(t.o): multiple definition of 'foo()'
t.a(t.o): previous definition here

with classic BFD linked it works fine.

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

reply via email to

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