Skip to content

Conversation

@cgzones
Copy link
Contributor

@cgzones cgzones commented Jan 27, 2023

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.

@cgzones cgzones marked this pull request as draft January 27, 2023 19:42
@cgzones cgzones marked this pull request as ready for review January 27, 2023 19:49
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
Copy link
Member

Mic92 commented Feb 19, 2023

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

@cgzones
Copy link
Contributor Author

cgzones commented Feb 19, 2023

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 rust-lang/rust#105783.

@Mic92
Copy link
Member

Mic92 commented Feb 20, 2023

bors merge

@bors bors bot merged commit 365e1e0 into NixOS:master Feb 20, 2023
@cgzones cgzones deleted the execstack branch February 21, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants