This is the mail archive of the binutils@sources.redhat.com 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: .init .text .fini


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


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