This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: .init .text .fini
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Shaun Jackman <sjackman at gmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 5 May 2005 14:37:39 +0930
- Subject: Re: .init .text .fini
- References: <7f45d9390505042133324516f0@mail.gmail.com>
On Wed, May 04, 2005 at 09:33:35PM -0700, Shaun Jackman wrote:
> Could the default order in ld/scripttempl/elf.sc be changed to .text
> .init .fini rather than the current .init .text .fini, or would this
> break something?
It should work.
> Even better, could _init and _fini be placed in
> .text?
You mean, "could .init and .fini input sections be placed in the .text
output section". Yes, you could do that too. Take care that you keep
all .init input sections together, and similarly for .fini.
--
Alan Modra
IBM OzLabs - Linux Technology Centre