Skip to content

libucontext: build the hand-written asm files with -Wa,--noexecstack - #567812

Merged
RaitoBezarius merged 2 commits into
NixOS:masterfrom
RaitoBezarius:libucontext-noexecstack
Sep 28, 2026
Merged

RaitoBezarius merged 2 commits into
NixOS:masterfrom
RaitoBezarius:libucontext-noexecstack

Conversation

@RaitoBezarius

Copy link
Copy Markdown
Member

meson.build omits the flag the Makefile passes, giving every static consumer
(e.g. pkgsStatic.lix via capnproto) an executable stack. :)

Fixes #567777.

Things done

meson.build omits the flag the Makefile passes, giving every static consumer
(e.g. pkgsStatic.lix via capnproto) an executable stack. :)

Signed-off-by: Raito Bezarius <[email protected]>
Defense-in-depth so a dependency cannot give lix an executable stack,
like libucontext did.

Signed-off-by: Raito Bezarius <[email protected]>
@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Sep 28, 2026
@RaitoBezarius
RaitoBezarius added this pull request to the merge queue Sep 28, 2026
Merged via the queue into NixOS:master with commit 84e3caf Sep 28, 2026
29 checks passed
@RaitoBezarius
RaitoBezarius deleted the libucontext-noexecstack branch September 28, 2026 09:54
@winterqt

Copy link
Copy Markdown
Member

This broke Lix on Darwin

@RaitoBezarius

Copy link
Copy Markdown
Member Author

I will send a partial revert.

@victorhooi

Copy link
Copy Markdown
Contributor

I filed a PR to fix this for Lix:

#568529

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pkgsStatic.lix: stack is exec :c

4 participants