[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-31 Thread jeremip11 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 Jeremi changed: What|Removed |Added CC||jeremip11 at gmail dot com -- You are

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-14 Thread rguenther at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #28 from rguenther at suse dot de --- On Wed, 14 Mar 2018, hjl.tools at gmail dot com wrote: > https://sourceware.org/bugzilla/show_bug.cgi?id=20882 > > --- Comment #27 from H.J. Lu --- > (In reply to rguenther from comment #26)

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-14 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #27 from H.J. Lu --- (In reply to rguenther from comment #26) > On Wed, 14 Mar 2018, hjl.tools at gmail dot com wrote: > > > https://sourceware.org/bugzilla/show_bug.cgi?id=20882 > > > > --- Comment #25 from H.J. Lu --- > > (In

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-14 Thread rguenther at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #26 from rguenther at suse dot de --- On Wed, 14 Mar 2018, hjl.tools at gmail dot com wrote: > https://sourceware.org/bugzilla/show_bug.cgi?id=20882 > > --- Comment #25 from H.J. Lu --- > (In reply to rguenther from comment #24)

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-14 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #25 from H.J. Lu --- (In reply to rguenther from comment #24) > > > > Shouldn't --gc-section tests be enabled in libstdc++ and mark them as XFAIL? > > Not sure how reliable we can identify those. Also we'd get > XPASS then

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-14 Thread rguenther at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #24 from rguenther at suse dot de --- On Wed, 14 Mar 2018, hjl.tools at gmail dot com wrote: > https://sourceware.org/bugzilla/show_bug.cgi?id=20882 > > --- Comment #23 from H.J. Lu --- > (In reply to rguenther from comment #22)

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-14 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #23 from H.J. Lu --- (In reply to rguenther from comment #22) > On Wed, 14 Mar 2018, cvs-commit at gcc dot gnu.org wrote: > > > https://sourceware.org/bugzilla/show_bug.cgi?id=20882 > > > > --- Comment #21 from cvs-commit at gcc

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-14 Thread rguenther at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #22 from rguenther at suse dot de --- On Wed, 14 Mar 2018, cvs-commit at gcc dot gnu.org wrote: > https://sourceware.org/bugzilla/show_bug.cgi?id=20882 > > --- Comment #21 from cvs-commit at gcc dot gnu.org gnu.org> --- > The

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-14 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #21 from cvs-commit at gcc dot gnu.org --- The binutils-2_30-branch branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=da8c5cfcc9fa7fc77878ce177d1b52348ae52f26

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-14 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #19 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=9e223787a474c672c5f1cfd4574857241ae4eafa commit

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-13 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 H.J. Lu changed: What|Removed |Added Status|WAITING |NEW --- Comment #18 from H.J. Lu --- A

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-13 Thread dmalcolm at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 Dave Malcolm changed: What|Removed |Added CC||dmalcolm at redhat dot com -- You

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-13 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #17 from H.J. Lu --- Created attachment 10892 --> https://sourceware.org/bugzilla/attachment.cgi?id=10892=edit A patch I got [hjl@gnu-cfl-1 rhbz-1543912]$ make mkdir build /usr/gcc-8.0.1-x32/bin/gcc -I ./src -flto -B./ -O2 -g

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-13 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 H.J. Lu changed: What|Removed |Added Status|REOPENED|WAITING --- Comment #16 from H.J. Lu ---

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-13 Thread rguenth at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 Richard Biener changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2018-03-13 Thread rguenth at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #15 from Richard Biener --- The original testcase is fixed tho. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #13 from H.J. Lu --- We may also keep debug sections in otherwise unused files if there is a .note.gnu.property section. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-18 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #12 from Alan Modra --- The crx and xgate FAILs are due to broken relocation processing. I don't think they should be swept under the rug. HJ has already pointed out why mips is failing in

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 Nick Clifton changed: What|Removed |Added CC||nickc at redhat dot com --- Comment

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-18 Thread rguenther at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #10 from rguenther at suse dot de --- On Wed, 17 May 2017, hjl.tools at gmail dot com wrote: > https://sourceware.org/bugzilla/show_bug.cgi?id=20882 > > H.J. Lu changed: > >What|Removed

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #9 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=087ea5435ab5800e6c29671acab40dc6ca82 commit

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-17 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-17 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 --- Comment #7 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=b7c871edcd83ccdc5fcd8148a7f433efd6b52255 commit

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-16 Thread hjl.tools at gmail dot com
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 ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-16 Thread hjl.tools at gmail dot com
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

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-16 Thread hjl.tools at gmail dot com
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=edit Try this -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-16 Thread rguenther at suse dot de
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.

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-16 Thread hjl.tools at gmail dot com
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

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-16 Thread rguenth at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 Richard Biener changed: What|Removed |Added Blocks||21494 Referenced Bugs:

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-16 Thread rguenth at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 Richard Biener changed: What|Removed |Added CC||amodra at gmail dot com,

[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2016-11-29 Thread jamborm at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20882 Martin Jambor changed: What|Removed |Added CC||jamborm at gcc dot gnu.org -- You