This is the mail archive of the binutils@sourceware.org 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: Help needed - defining the output section order


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. :-(



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