This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Strange KEEP behavior in linker script
- From: Daniel Jacobowitz <drow at false dot org>
- To: Denis FERRANTI <denis dot ferranti at st dot com>
- Cc: bu-sourceware <binutils at sourceware dot org>
- Date: Tue, 6 May 2008 09:40:10 -0400
- Subject: Re: Strange KEEP behavior in linker script
- References: <48205D37.4070102@st.com>
On Tue, May 06, 2008 at 03:29:27PM +0200, Denis FERRANTI wrote:
> Shouldn't the KEEP() statement force the generation of the output section
> in the ELF file, even if there are no input sections.
No, why should it? It is supposed to keep the input sections, not the
output section. I'm not sure why ld started discarding the empty
output section.
--
Daniel Jacobowitz
CodeSourcery