[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/20882] GNU ld discards sections required by relocations in .debu
From: |
rguenther at suse dot de |
Subject: |
[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections |
Date: |
Wed, 14 Mar 2018 14:03:35 +0000 |
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 <hjl.tools at gmail dot com> ---
> (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 <hjl.tools at gmail dot com> ---
> > > (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 unless we have a way to check whether ld is affected by
> > > > the bug or not.
> > >
> > > Any unknown --gc-section test failure should be investigated. If it is
> >
> > Which is why I reported the bug originally ...
> >
>
> This is exactly the problem. Yes, linker bug was reported, fixed and
> verified withe the provided testcase. However, the --gc-section test
> in libstdc++ is skipped and I didn't know that the linker fix was incomplete.
The test isn't skipped, I _added_ a complete run of the prettyprinter
suite with -flto but without --gc-sections. There never were runs
of -flto --gc-sections tests. We could add one certainly or
run all -flto tests with --gc-sections as the non-lto run does.
But that will turn "FAIL"ing tests into UNSUPPORTED, not FAIL, so
XFAIL wouldn't work. You'd have to consciously skip the tests
that would fail that way and for new "failures" you'll get UNSUPPORTED
as well.
The tests were supposed to verify the debug info with -flto is now
sane enough to have the pretty printers work, not that the ld
used works fine with --gc-sections ;)
--
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, (continued)
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, hjl.tools at gmail dot com, 2018/03/13
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, cvs-commit at gcc dot gnu.org, 2018/03/14
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, hjl.tools at gmail dot com, 2018/03/14
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, cvs-commit at gcc dot gnu.org, 2018/03/14
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, rguenther at suse dot de, 2018/03/14
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, hjl.tools at gmail dot com, 2018/03/14
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, rguenther at suse dot de, 2018/03/14
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, hjl.tools at gmail dot com, 2018/03/14
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, rguenther at suse dot de, 2018/03/14
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, hjl.tools at gmail dot com, 2018/03/14
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections,
rguenther at suse dot de <=
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, jeremip11 at gmail dot com, 2018/03/31