Moving _etext to after all read-only sections

H . J . Lu hjl@valinux.com
Fri Jan 19 15:40:00 GMT 2001


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.


More information about the Binutils mailing list