This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strange KEEP behavior in linker script


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]