This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Fail on erroneous linker script
On Mon, 7 Dec 2009, Alan Modra wrote:
> On Fri, Dec 04, 2009 at 08:03:42PM +0300, Maxim Kuvyrkov wrote:
> > In most valid cases NOBITS sections (.bss, usually) are placed at the
> > end of the loaded segments. However, if a user provides a custom linker
> > scripts which puts, a .bss section in the middle of the data segment,
> > the linker will produce a broken binary. The proper behavior for linker
> > is to fail with appropriate error message.
>
> We could also treat such NOBITS sections as if they were PROGBITS.
> Like the following untested patch. What do you think?
Undecided, except, shouldn't you rather use the fill value if
one is defined by the linker script?
brgds, H-P