This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Moving _etext to after all read-only sections
- To: Jason R Thorpe <thorpej at zembu dot com>, binutils at sources dot redhat dot com
- Subject: Re: Moving _etext to after all read-only sections
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Fri, 19 Jan 2001 15:39:45 -0800
- References: <20010119153155.T657@dr-evil.shagadelic.org>
On Fri, Jan 19, 2001 at 03:31:55PM -0800, Jason R Thorpe wrote:
> Something else caused me to notice this, but it seems like a bug
> in any case.
>
> In Binutils 2.9 and also in Binutils-current, _etext is placed
> after .text but before .rodata, etc. This is fine for normal
> applications (the read-only sections are gathered together in
> a single, contiguous read-only section from the point of view
> of a program loader). But for e.g. an operating system kernel,
I don't think elf.sc is for kernel. You should use a different
linker script for kernel.
H.J.