Creating a NOLOAD section with contents

Ian Lance Taylor iant@google.com
Fri May 28 18:56:00 GMT 2010


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



More information about the Binutils mailing list