llvm-project
5ae4d505 - Add support for reading the dynamic symbol table from PT_DYNAMIC (#116689)

Commit
320 days ago
Add support for reading the dynamic symbol table from PT_DYNAMIC (#116689) Resubmissions of https://github.com/llvm/llvm-project/pull/112596 with buildbot fixes. Allow LLDB to parse the dynamic symbol table from an ELF file or memory image in an ELF file that has no section headers. This patch uses the ability to parse the PT_DYNAMIC segment and find the DT_SYMTAB, DT_SYMENT, DT_HASH or DT_GNU_HASH to find and parse the dynamic symbol table if the section headers are not present. It also adds a helper function to read data from a .dynamic key/value pair entry correctly from the file or from memory.
Author
Parents
Loading