Skip to content

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

Merged
nbaksalyar merged 1 commit into
headcrab-rs:masterfrom
fabiim:disable-pie
Jul 19, 2020
Merged

Don't produce a dynamically linked PIE executable test #23
nbaksalyar merged 1 commit into
headcrab-rs:masterfrom
fabiim:disable-pie

Conversation

@fabiim

@fabiim fabiim commented Jul 19, 2020

Copy link
Copy Markdown
Contributor

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/

@nbaksalyar nbaksalyar left a comment

Copy link
Copy Markdown
Member

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.

2 participants