[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 Richard Biener changed: What|Removed |Added CC||amodra at gmail dot com, ||hjl.tools at gmail dot com Version|2.27|2.29 (HEAD) --- Comment #1 from Richard Biener --- Reconfirmed with 2.28 and with master. This breaks the debuginfo in the final link when doing early LTO debug objects. -- 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/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 Richard Biener changed: What|Removed |Added Blocks||21494 Referenced Bugs: https://sourceware.org/bugzilla/show_bug.cgi?id=21494 [Bug 21494] segfault in find_partial_die_in_comp_unit -- 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/21481] -z bndplt doesn't work with IFUNC
https://sourceware.org/bugzilla/show_bug.cgi?id=21481 --- Comment #3 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0a7d38897b9fb1ec7a064ca3347cbac3ba49e5ac commit 0a7d38897b9fb1ec7a064ca3347cbac3ba49e5ac Author: H.J. Lu Date: Tue May 16 08:52:01 2017 -0700 Run PR ld/21481 tests only if IFUNC is supported PR ld/21481 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only if IFUNC is supported by run-time. -- 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/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #2 from H.J. Lu --- Gold keeps all debug info even if they aren't needed: [hjl@gnu-6 pr20882]$ cat t1.s .text .globl main .type main, @function main: ret .section.debug_info,"",@progbits .long t.c.4903c230+2 [hjl@gnu-6 pr20882]$ cat t2.s .section.debug_info,"",@progbits .hidden t.c.4903c230 .globl t.c.4903c230 t.c.4903c230: .long 0x28 [hjl@gnu-6 pr20882]$ cat t3.s .section.debug_info,"",@progbits .hidden t.c.4903c231 .globl t.c.4903c231 t.c.4903c231: .long 0x29 [hjl@gnu-6 pr20882]$ make y as -o t1.o t1.s as -o t2.o t2.s as -o t3.o t3.s ld.gold --entry=main -o y t1.o t2.o t3.o [hjl@gnu-6 pr20882]$ readelf -x .debug_info y Hex dump of section '.debug_info': 0x 0600 2800 2900 (...)... [hjl@gnu-6 pr20882]$ -- 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/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #3 from rguenther at suse dot de --- On May 16, 2017 7:17:40 PM GMT+02:00, "hjl.tools at gmail dot com" wrote: >https://sourceware.org/bugzilla/show_bug.cgi?id=20882 > >--- Comment #2 from H.J. Lu --- >Gold keeps all debug info even if they aren't needed: > >[hjl@gnu-6 pr20882]$ cat t1.s >.text >.globl main >.type main, @function >main: >ret > >.section.debug_info,"",@progbits >.long t.c.4903c230+2 >[hjl@gnu-6 pr20882]$ cat t2.s > >.section.debug_info,"",@progbits >.hidden t.c.4903c230 >.globl t.c.4903c230 >t.c.4903c230: >.long 0x28 >[hjl@gnu-6 pr20882]$ cat t3.s > >.section.debug_info,"",@progbits >.hidden t.c.4903c231 >.globl t.c.4903c231 >t.c.4903c231: >.long 0x29 >[hjl@gnu-6 pr20882]$ make y >as -o t1.o t1.s >as -o t2.o t2.s >as -o t3.o t3.s >ld.gold --entry=main -o y t1.o t2.o t3.o >[hjl@gnu-6 pr20882]$ readelf -x .debug_info y > >Hex dump of section '.debug_info': > 0x 0600 2800 2900 (...)... > >[hjl@gnu-6 pr20882]$ Probably makes sense. How's debug info made 'necessary' otherwise? I presume GNU ld keeps all debug info from an object that has any other objects used? -- 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/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #4 from H.J. Lu --- Created attachment 10052 --> https://sourceware.org/bugzilla/attachment.cgi?id=10052&action=edit Try this -- 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/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #5 from H.J. Lu --- Some targets, like mips, keep input files when there are some special sections, like .gnu.attributes, even if input file is unused otherwise. In this case, all debug sections are kept. -- 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/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #6 from H.J. Lu --- A patch is posted at https://sourceware.org/ml/binutils/2017-05/msg00195.html -- 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 gold/21491] --fix-cortex-a53-843419 Errata workaround can produce broken images
https://sourceware.org/bugzilla/show_bug.cgi?id=21491 PeteVine changed: What|Removed |Added CC||tulipawn at gmail 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