This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Defining a section that isn't file-backed
On Mon, 2004-02-23 at 15:21, Nick Clifton wrote:
> Ah yes, the dreaded "not enough room for program headers" problem.
> This is documented in the linker manual, so I suggest that you have a
> look there.
Thanks Nick, that worked OK. One last problem, I hope it isn't fatal:
the mmap which the rtld uses to map the loadarea section marks it as
"rwxp", but this will cause allocation failures on machines with no
overcommit. I want it to be just "r--p".
I've read the gas manual and it looks like the only section flags in ELF
binaries do not allow you to mark a section as being mapped readonly.
Please tell me this isn't the case! I'm sure it must be wrong, as there
are sections that are clearly being mmaped with (PROT_READ), I just
can't see how it's done.
thanks -mike