-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
link option for PIE executable #8791
Comments
I've verified that we do pass the |
Hmm, actually it is a cmake bug that it doesn't pass the -pie linker option when the CMAKE_POSITION_INDEPENDENT_CODE is enabled. So setting the target property or setting it globally in CMAKE_EXE_LINKER_FLAGS (which would require changing the PAL tests to build as PIEs) is the way to go. |
@janvorli Then, is it ok to PR a patch enabling PIE executable ? |
@chunseoklee yes, it would be great to get that. |
Could you please also look at dotnet/core-setup and how it produces |
Fixed by #685 |
I have built the latest coreclr (commit 637bfef) and found that it does not produce PIE executables for corerun, crossgen, ildasm, ilasdm.
But, compilation option
-fPIE
is introduced on commit 891b2aa.Am I missing something(flag) or we need a patch to enable PIE executable ?
The text was updated successfully, but these errors were encountered: