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

Restore PIE support being dropped on Linux #6611

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Aug 27, 2020

CMake ignores the sysroot when testing the support of PIE,
so the link test fails when it tries to check for PIE support
and decides that it's not supported.
Therefore we tell CMake that PIE is supported when using the
osquery-toolchain and leave the automatic test for other toolchains.

Temporarily disable PIE on executables built with the
osquery-toolchain libFuzzer, since it has not been compiled with PIE/PIC
support.

CMake ignores the sysroot when testing the support of PIE,
so the link test fails when it tries to check for PIE support
and decides that it's not supported.
Therefore we tell CMake that PIE is supported when using the
osquery-toolchain and leave the automatic test for other toolchains.

Temporarily disable PIE on executables built with the
osquery-toolchain libFuzzer, since it has not been compiled with PIE/PIC
support.
@Smjert Smjert added build hardening cmake pure cmake changes labels Aug 27, 2020
@theopolis theopolis merged commit d3f3940 into osquery:master Aug 28, 2020
nabilschear pushed a commit to nabilschear/osquery that referenced this pull request Aug 31, 2020
CMake ignores the sysroot when testing the support of PIE,
so the link test fails when it tries to check for PIE support
and decides that it's not supported.
Therefore we tell CMake that PIE is supported when using the
osquery-toolchain and leave the automatic test for other toolchains.

Temporarily disable PIE on executables built with the
osquery-toolchain libFuzzer, since it has not been compiled with PIE/PIC
support.
@Smjert Smjert deleted the stefano/fix/check-pie-support branch October 17, 2020 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build cmake pure cmake changes hardening
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants