NixOS / patchelf

A small utility to modify the dynamic linker and RPATH of ELF executables
GNU General Public License v3.0
3.57k stars 487 forks source link

Add options to print, clear and set executable stack state #456

Closed cgzones closed 1 year ago

cgzones commented 1 year ago

Add options the modify the state of the executable flag of the GNU_STACK program header. That header indicates whether the object is requiring an executable stack.

Mic92 commented 1 year ago

Just for my understanding in which cases is it useful to set this flag?

cgzones commented 1 year ago

Just for my understanding in which cases is it useful to set this flag?

Perhaps for debugging and testing of third party tools or the kernel in case of a stack marked as executable. My main use case currently is to drop the flag of the rustup shipped libLLVM, see https://github.com/rust-lang/rust/issues/105783.

Mic92 commented 1 year ago

bors merge

bors[bot] commented 1 year ago

Build succeeded: