Help needed - defining the output section order
Nick Clifton
nickc@redhat.com
Tue Aug 23 08:19:00 GMT 2005
Hi Simon,
> Here is the script:
> PHDRS
> {
> headers PT_PHDR PHDRS ;
> interp PT_INTERP ;
> text PT_LOAD FILEHDR ;
> data PT_LOAD ;
> dynamic PT_DYNAMIC ;
> extra PT_LOAD ;
> }
> Well, it works. Sort of. The resulting executable now is >130 MB in
> size, and completely broken:
Oh well. It looks like you will need to sprinkle :text and :data
liberally through the SECTIONS command then to make sure that sections
are placed into the right segments.
Cheers
Nick
PS. Yes this is difficult but then you are trying to make the linker do
something that it was not designed to do. :-(
More information about the Binutils
mailing list