lief-project / LIEF

LIEF - Library to Instrument Executable Formats (C++, Python, Rust)
https://lief.re
Apache License 2.0
4.5k stars 624 forks source link

Support new Dynamic tags for X86_64 #1081

Closed nsurbay closed 3 months ago

nsurbay commented 3 months ago

This MR adds support for 3 new dynamics tags founds on archlinux libc (glibc 2.39). Readelf reports new tag value for dynamic section :

 0x0000000070000000 (DT_X86_64_PLT)      0x241d0
 0x0000000070000001 (DT_X86_64_PLTSZ)    0x1c0
 0x0000000070000003 (DT_X86_64_PLTENT)   0x10

I also found a mention of theses value also in glibc repository

The MR also synchronises the dynamics tags available in C API with the one of C++.

romainthomas commented 3 months ago

Thank you @nsurbay for these updates!