Skip to content

Conversation

@McSinyx
Copy link
Contributor

@McSinyx McSinyx commented Oct 22, 2025

This would allow writing call trampolines in e.g. Zig (zig build-exe -fno-stack-protector -fno-builtin -fomit-frame-pointer -fno-ubsan-rt -z max-page-size=4096 -z norelro -fPIE -fstrip -rdynamic --stack 0 example.zig) which doesn't necessarily produce dynamically linked executable (unless linked against shared libraries).

The logic here is adapted from file: if there exists a DYNAMIC program header, the executable is either static-PIE or dynamically linked.

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.

1 participant