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: Need help on OVERLAY command in linker script...


Hi Tao,

I changed the name of the original first .text section, then I got overlay
sections. But the "not enough room for program headers" problem is still
there.

It is caused by the OVERLAY command. I used to solve this problem by replace SIZEOF_HEADERS with a reasonable large number. However, I think using PHDRS command is better for your problem. See the words about SIZEOF_HEADERS in the ld documentation for more information.



Regards -- Jie


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