bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/18836] ld handles .gnu.lto_ prefixed sections oddly, /DISCARD/ s


From: rguenth at gcc dot gnu.org
Subject: [Bug ld/18836] ld handles .gnu.lto_ prefixed sections oddly, /DISCARD/ semantics unclear
Date: Tue, 01 Sep 2015 08:20:16 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18836

--- Comment #14 from Richard Guenther <rguenth at gcc dot gnu.org> ---
Ok, so let me try to revive the discussion and view the needs from a "need
plugin support" angle.  What I need is the linker to allow the plugin to claim
only
a subset of the sections of the input files (those not containing the early
debug LTO sections) and direct the linker to feed the remaining sections
(or a specially set of marked sections) to the final link, including the
possibility to have it "rename" those sections.

I am "abusing" the linker script syntax to direct the linker to do the renaming
and selecting the set of sections we do not claim.

So with that view on the issue how would you suggest to implement this
plugin-API wise?  (using linker script syntax in a plugin output like
the BFD linker already accepts still looks appealing to me)

Also when the user passes -g0 at the link command linke we should be able
to drop those early debug sections and do not link them.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]