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

AMD64: Add new PLT dynamic array tags #224

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

mborgerson
Copy link
Member

@mborgerson mborgerson commented Jun 26, 2024

Add new tags according to the x86-64 psABI [1]:

  1. DT_LOPROC + 0 -> DT_X86_64_PLT: The address of the procedure linkage table.
  2. DT_LOPROC + 1 -> DT_X86_64_PLTSZ: The total size, in bytes, of the procedure linkage table.
  3. DT_LOPROC + 3 -> DT_X86_64_PLTENT: The size, in bytes, of a procedure linkage table entry. Always a power of 2.

1: https://gitlab.com/x86-psABIs/x86-64-ABI
2: See also https://sourceware.org/git/?p=glibc.git;a=commit;h=848746e88ec2aa22e8dea25f2110e2b2c59c712e

Fixes #217

Add new tags according to the x86-64 psABI [1]:

1. DT_LOPROC + 0 -> DT_X86_64_PLT:
   The address of the procedure linkage table.
2. DT_LOPROC + 1 -> DT_X86_64_PLTSZ:
   The total size, in bytes, of the procedure linkage table.
3. DT_LOPROC + 3 -> DT_X86_64_PLTENT:
   The size, in bytes, of a procedure linkage table entry. Always a power
   of 2.

1: https://gitlab.com/x86-psABIs/x86-64-ABI
2: See also https://sourceware.org/git/?p=glibc.git;a=commit;h=848746e88ec2aa22e8dea25f2110e2b2c59c712e
@mborgerson mborgerson force-pushed the feat/x86-64-new-dynamic-tags branch from 25f9e94 to f65ee74 Compare June 26, 2024 23:47
@mborgerson mborgerson changed the title x86-64: Add new PLT dynamic array tags AMD64: Add new PLT dynamic array tags Jun 26, 2024
@mborgerson mborgerson merged commit 4808fe7 into angr:master Jun 27, 2024
17 checks passed
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.

How to fix this error: archinfo.arch | Please look up and add dynamic tag type 0x70000001 for AMD64
1 participant