Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure GCC with --enable-default-pie #33

Open
MaskRay opened this issue Aug 30, 2022 · 0 comments
Open

Configure GCC with --enable-default-pie #33

MaskRay opened this issue Aug 30, 2022 · 0 comments

Comments

@MaskRay
Copy link

MaskRay commented Aug 30, 2022

Due to ASLR security hardening, most Linux distributions have switched to default PIE for their GCC builds for many years. Actually I cannot find a Linux distribution which doesn't use default PIE. See https://gist.github.com/thesamesam/f7a9c17df0165e86babb189fda8d3048 for a survey.

Many GCC build scripts like https://github.com/richfelker/musl-cross-make , glibc scripts/build-many-glibcs.py specify --enable-default-pie as well.

At this point, I think it makes more sense for compiler-explorer to match the Linux status quo, rather than the upstream default.

GCC feature request about switching the default for Linux: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103398

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

No branches or pull requests

1 participant