bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/12163] --start/end-group causes bogus 'multiple definition of


From: pluto at agmk dot net
Subject: [Bug gold/12163] --start/end-group causes bogus 'multiple definition of ...' error.
Date: Sun, 16 Jan 2011 13:33:08 +0000

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

Pawel Sikora <pluto at agmk dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.20                        |2.21

--- Comment #2 from Pawel Sikora <pluto at agmk dot net> 2011-01-16 13:33:00 
UTC ---
with the latest binutils-2.21.51.0.5 bug still occurs:

$ LANG=C make
g++ t.cpp -fpic -c
ar rc t.a t.o
ld.bfd -z defs -shared -o t-bfd.so --start-group --whole-archive t.a
--no-whole-archive --end-group -lc
ld.gold -z defs -shared -o t-gold.so --start-group --whole-archive t.a
--no-whole-archive --end-group -lc
ld.gold: error: t.a(t.o): multiple definition of 'foo()'
ld.gold: t.a(t.o): previous definition here
ld.gold: warning: skipping incompatible /usr/lib/libc.so while searching for c
ld.gold: error: cannot find -lc
ld.gold: t.a(t.o): in function foo():t.cpp(.text+0xc): error: undefined
reference to 'puts'
ld.gold: t.a(t.o): in function foo():t.cpp(.text+0xc): error: undefined
reference to 'puts'
make: *** [all] Error 1

-- 
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]