.init .text .fini
Alan Modra
amodra@bigpond.net.au
Thu May 5 05:15:00 GMT 2005
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
More information about the Binutils
mailing list