This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RFC: Mark a section to be discarded for DSO and executable
- From: "H. J. Lu" <hjl at lucon dot org>
- To: gcc at gcc dot gnu dot org, binutils at sources dot redhat dot com
- Cc: generic-abi at googlegroups dot com
- Date: Tue, 9 Jan 2007 09:51:52 -0800
- Subject: RFC: Mark a section to be discarded for DSO and executable
With LTO, an object file may contain sections with IL, which
can be discarded when building DSO and executable. Currently we can't
mark such sections with gABI. With GNU linker, we can use a
linker script to discard such sections. But it will be more generic
to make a section to be discarded for DSO and executable in gABI.
In that case, we don't need a special linker script to discard
such sections. Something like
#define SHF_DISCARD 0x800
would work.
H.J.