http://sourceware.org/bugzilla/show_bug.cgi?id=12507
--- Comment #1 from Dmitry Gorbachev
2011-02-23 07:02:20 UTC ---
The same problem with symbol given in --entry=... option.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail becau
http://sourceware.org/bugzilla/show_bug.cgi?id=12507
Summary: Can't build a program with -flto -nostdlib
Product: binutils
Version: 2.22 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unas
http://sourceware.org/bugzilla/show_bug.cgi?id=12496
--- Comment #4 from Dmitry Gorbachev
2011-02-23 06:43:06 UTC ---
I can reproduce it with recent lto-mixed LD (and GCC 4.5/4.6; for 4.5, add
-fuse-linker-plugin to CFLAGS).
I see elf_link_add_archive_symbols() is called twice for libdiv.a:
#0
http://sourceware.org/bugzilla/show_bug.cgi?id=12496
--- Comment #3 from H.J. Lu 2011-02-22 23:59:22
UTC ---
(In reply to comment #2)
> It happens with BFD linker from lto-mixed branch. I CC'ed you, but forgot to
> mention it in PR — sorry!
I can't reproduce it with lto-mixed branch either.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6997
binu changed:
What|Removed |Added
CC||binu at piments dot com
--- Comment #5 from binu
http://sourceware.org/bugzilla/show_bug.cgi?id=12496
--- Comment #2 from Dmitry Gorbachev
2011-02-22 18:06:57 UTC ---
It happens with BFD linker from lto-mixed branch. I CC'ed you, but forgot to
mention it in PR — sorry!
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=em
The combination of -masm=intel and -fPIC when producing 32-bit causes strange
behaviour when dealing with globals. Bug is similar to Bug 12186(I'm
using ld version 2.21, tested Bug 46275 and it's successfully fixed).
But I'm linking another code.
typedef void (*pFuncAddress) (void);
pFuncAddress S