http://sourceware.org/bugzilla/show_bug.cgi?id=12762
--- Comment #27 from xunxun <xunxun1982 at gmail dot com> 2011-09-20 23:09:04 UTC --- I use gcc -flto -fuse-linker-plugin main.c libm1.a merr.o -save-temps to save some intermediate files, and this can generate a .s called ccJ5043j.ltrans0.s. I use the command: gcc -flto -fuse-linker-plugin ccJ5043j.ltrans0.s it shows: e:/mypack/mingw/bin/../lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-merr.o):merr.c:(.text+0x50): multiple definition of `__mingw_setusermatherr' R:\Temp\cchQZ96c.o:ccJ5043j.ltrans0.o:(.text+0xa8): first defined here e:/mypack/mingw/bin/../lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-merr.o):merr.c:(.text+0x60): multiple definition of `_matherr' R:\Temp\cchQZ96c.o:ccJ5043j.ltrans0.o:(.text+0x0): first defined here collect2: ld returned 1 exit status This is different from Comment 25 I can use gcc -flto -fuse-linker-plugin ccJ5043j.ltrans0.s -Wl,--allow-multiple-definition to build successfully. So I think some multiple defined determination in cofflink.c is wrong, which may be identified with discarded section. Any ideas? -- 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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils