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

Implement gnu_hash symbol lookup #26

Merged
merged 1 commit into from
Nov 12, 2021
Merged

Implement gnu_hash symbol lookup #26

merged 1 commit into from
Nov 12, 2021

Conversation

peadar
Copy link
Contributor

@peadar peadar commented May 13, 2021

Use gnu_hash in preference to the standard hash table, as it's more
efficient, and fall back to the tranditional table if we can't find it.

This should fix problems on systems that do not provide the tranditional
ELF hash table for symbols.

@peadar
Copy link
Contributor Author

peadar commented May 13, 2021

Fixes issue #18

@peadar peadar changed the title Implement gnu_hash symbol lookup (issue #18) Implement gnu_hash symbol lookup May 13, 2021
src/plt-elf.c Outdated Show resolved Hide resolved
Use gnu_hash in preference to the standard hash table, as it's more
efficient, and fall back to the tranditional table if we can't find it.

This should fix problems on systems that do not provide the traditional
ELF hash table for symbols.
@Snaipe Snaipe merged commit 93b10bf into Snaipe:master Nov 12, 2021
ziyao233 pushed a commit to ziyao233/Mimick that referenced this pull request Feb 9, 2024
Newer versions of binutils (2.39 and above) complain
if you have assembly without explicitly marking that
it is not using an executable stack (see
https://www.redhat.com/en/blog/linkers-warnings-about-executable-stacks-and-segments
for more details).  Mark it here to quiet that warning.

Signed-off-by: Chris Lalancette <[email protected]>
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.

3 participants