This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: writable text segments?


Matthew P Donovan <mpd@cs.pdx.edu> writes:

> My professor has me hunting for a way to make text segments writable in
> compiled binaries (ELF format).  I found a passing reference to a -N
> command line option, but haven't been able to find any documentation about
> it.  Can someone point me to a reference that talks about this?

-N is a linker option.  The documentation, such as it is, is here:
    http://sources.redhat.com/binutils/docs-2.12/ld.info/Options.html#Options

If you pass -N to gcc when doing a link, gcc will pass -N on to the
linker.  As far as I know this behaviour is undocumented.

Ian


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