writable text segments?
Ian Lance Taylor
ian@wasabisystems.com
Fri Apr 2 15:32:00 GMT 2004
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
More information about the Gcc-help
mailing list