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

Don't produce a dynamically linked PIE executable test #23

Merged
merged 1 commit into from Jul 19, 2020

Conversation

fabiim
Copy link
Contributor

@fabiim fabiim commented Jul 19, 2020

Some distributions (like arch) have the flag
--enable-default-pie turned on by default [1].

By having -no-pie we can be assured that the test executable
addresses will be valid without having to calculate the absolute
ones.

[1] - https://nanxiao.me/en/gccs-enable-enable-default-pie-option-make-you-stuck-at-relocation-r_x86_64_32s-against-error/

Copy link
Member

@nbaksalyar nbaksalyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@nbaksalyar nbaksalyar merged commit 8073552 into headcrab-rs:master Jul 19, 2020
Some distributions (like arch) have the flag
```--enable-default-pie``` turned on by default [1].

By having ```-no-pie``` we can be assured that the test executable
addresses will be valid without having to calculate the absolute
ones.

[1] - https://nanxiao.me/en/gccs-enable-enable-default-pie-option-make-you-stuck-at-relocation-r_x86_64_32s-against-error/
@fabiim fabiim deleted the disable-pie branch July 19, 2020 18:21
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.

None yet

2 participants