Skip to content

Handle pie executables on Linux - #59

Merged
bjorn3 merged 4 commits into
headcrab-rs:masterfrom
bjorn3:give_me_a_pie
Jul 28, 2020
Merged

Handle pie executables on Linux#59
bjorn3 merged 4 commits into
headcrab-rs:masterfrom
bjorn3:give_me_a_pie

Conversation

@bjorn3

@bjorn3 bjorn3 commented Jul 28, 2020

Copy link
Copy Markdown
Contributor

Fixes #51

@bjorn3
bjorn3 requested a review from nbaksalyar July 28, 2020 14:43

@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.

Thanks! Just a few nitpicks which can be addressed later.

Comment thread src/target/unix.rs Outdated
Comment thread src/target/mod.rs
Comment thread src/symbol/mod.rs
}
}

pub struct RelocatedDwarf(Vec<RelocatedDwarfEntry>);

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.

This struct probably can be moved into its own module, but can be done later.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Will do this later.

Co-authored-by: Nikita Baksalyar <nikita.baksalyar@gmail.com>
@nbaksalyar

Copy link
Copy Markdown
Member

It also seems that this const is missing in rust-lang/libc, I'm going to raise a PR for that :)

Raised rust-lang/libc#1849

@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.

LGTM. Thank you!

@bjorn3
bjorn3 merged commit 504791a into headcrab-rs:master Jul 28, 2020
@bjorn3
bjorn3 deleted the give_me_a_pie branch July 28, 2020 21:22
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.

Handle PIE executables on Linux by reading mem maps

2 participants