angr / archinfo

Classes with architecture-specific information useful to other projects.
BSD 2-Clause "Simplified" License
84 stars 58 forks source link

AMD64: Add new PLT dynamic array tags #224

Closed mborgerson closed 2 months ago

mborgerson commented 2 months ago

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