How to package execute-on-stack programs?
Enrico Scholz
enrico.scholz at informatik.tu-chemnitz.de
Wed Sep 3 23:46:04 UTC 2003
johnsonm at redhat.com ("Michael K. Johnson") writes:
> [... Disabling execshield for certain binaries ...]
> If you build something with gas directly, you can pass the --execstack
> option to gas; otherwise, use the compiler argument -Wa,--execstack to
> tell the compiler to tell gas to request an executable stack.
Thanks. Have I to do this for every source-file, or just once for each
binary? What is with the '-z execstack' option for ld?
> Alternatively, if you have assembler sources, you can also add .section
> .note.GNU-stack,"x"; .previous to the assembler source; that's what the
> --execstack option does.
Have I to be carefully when executing 'strip -R.note' on such binaries?
Enrico
More information about the devel
mailing list