[Bug ld/16563] Corrupt .eh-frame section created when linking LTO and non-LTO objects
https://sourceware.org/bugzilla/show_bug.cgi?id=16563 Marek Polacek changed: What|Removed |Added CC||polacek at redhat dot com -- 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
[Bug ld/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 --- Comment #10 from Marek Polacek 2012-10-25 14:08:06 UTC --- Seems to work. Thanks a lot! -- 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
[Bug ld/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 --- Comment #8 from Marek Polacek 2012-10-25 11:59:16 UTC --- Ok, reproducible even on x86_64 Fedora 16 with trunk GCC. I have built current GCC trunk (just ../configure --prefix=`pwd` --enable-languages=c,c++ --disable-bootstrap) and current hjl/lto/master branch (just ../configure && make). Then in ~/hbin2 I have newly built ld-new and a 'ld' script: $ cat ~/hbin2/ld #!/bin/sh /home/marek/hbin2/ld-new --version exec /home/marek/hbin2/ld-new "$@" Now, it is needed to adjust ORIGINAL_LD_FOR_TARGET and ORIGINAL_PLUGIN_LD_FOR_TARGET in ./gcc/collect-ld to point to newly built ld-new, so e.g. "/home/marek/hbin2/ld". Then just: $ PATH=~/hbin2:$PATH ~/rh/x/trunk/gcc/g++ -B ~/rh/x/trunk/gcc -c -O2 -fno-early-inlining -flto pr13229.cc -m32 $ PATH=~/hbin2:$PATH ~/rh/x/trunk/gcc/g++ -B ~/rh/x/trunk/gcc -shared -O2 -fPIC -flto -fuse-linker-plugin -nostdlib pr13229.o -m32 GNU ld (GNU Binutils) 2.23.51.20121025 Copyright 2012 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. /tmp/cck1nj8q.ltrans0.ltrans.o: In function `test2()': cck1nj8q.ltrans0.o:(.text+0x8): undefined reference to `_GLOBAL_OFFSET_TABLE_' collect2: error: ld returned 1 exit status Tried also gcc-4_7 branch and the result is the same like above. -- 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
[Bug ld/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 --- Comment #6 from Marek Polacek 2012-10-24 14:12:36 UTC --- Ah, but with g++ -m32 [...] I can now reproduce it even on x86_64. Sorry. -- 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
[Bug ld/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 --- Comment #5 from Marek Polacek 2012-10-24 13:53:25 UTC --- To be more concrete, after building binutils, I put new ld/ld-new in ~/hbin, where I have ld script, which is just #!/bin/sh exec /root/hbin/ld-new "$@" and then I run PATH=/root/hbin:$PATH g++ -shared -O2 -fPIC -flto -fuse-linker-plugin -nostdlib pr13229.o -- 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
[Bug ld/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 --- Comment #4 from Marek Polacek 2012-10-24 13:44:19 UTC --- (In reply to comment #3) > Please simply try hjl/lto/master branch. Done. I'm still seeing the same failure (again, only i?86). > It works for me on x86-64 with -m32. Can you > reproduce it on x86-64 with -m32? No, unfortunately not :(. I've built hjl/lto/master branch with $ CC='gcc -m32' CXX='g++ -m32' i386 ./configure $ i386 make -- 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
[Bug ld/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 --- Comment #2 from Marek Polacek 2012-10-22 08:57:57 UTC --- The version is: gcc (GCC) 4.7.1 20120813 (Red Hat 4.7.1-7) That patch doesn't apply. I've tried also 2012-06-28 H.J. Lu PR ld/14272 * elflink.c (_bfd_elf_fix_symbol_flags): Mark the plugin symbol undefined if it is referenced from a non-IR file. , but this one is already in the trunk. BTW, it seems to happen really on i?86. -- 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
[Bug ld/14747] New: undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 Bug #: 14747 Summary: undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto Product: binutils Version: 2.24 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sourceware.org ReportedBy: pola...@redhat.com Classification: Unclassified When I apply the patches/binutils-lto-mixed-18.patch to trunk, then on i?86: # cat pr13229.cc int call_something (int); inline void optimize_me_out (void) { call_something(0); } __attribute__ ((visibility("hidden"))) int optimize_me_out2 (int param) { if ((void *)optimize_me_out != (void *)call_something) return call_something(0); } void test2 (void) { optimize_me_out(); } # g++ -c -O2 -fno-early-inlining -flto pr13229.cc # g++ -shared -O2 -fPIC -flto -fuse-linker-plugin -nostdlib pr13229.o /tmp/ccCXA40F.ltrans0.ltrans.o: In function `test2()': ccCXA40F.ltrans0.o:(.text+0x8): undefined reference to `_GLOBAL_OFFSET_TABLE_' collect2: error: ld returned 1 exit status (The testcase is ld/13229.) -- 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