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: Creating a NOLOAD section with contents


Will Newton <will.newton@gmail.com> writes:

> Is it possible to create a code section as part of an ELF that has
> contents but is not loadable?

I think the only way to do this is to use a PHDRS clause and not put
your section in any PT_LOAD segment.  You may get a warning if you do
that.

Ian


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