[all-commits] [llvm/llvm-project] 28ba8a: [LLDB] Impove ObjectFileELF's .dynamic parsing and...
Greg Clayton via All-commits
all-commits at lists.llvm.org
Thu Aug 8 11:05:15 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 28ba8a56b6fb9ec61897fa84369f46e43be94c03
https://github.com/llvm/llvm-project/commit/28ba8a56b6fb9ec61897fa84369f46e43be94c03
Author: Greg Clayton <gclayton at fb.com>
Date: 2024-08-08 (Thu, 08 Aug 2024)
Changed paths:
M lldb/include/lldb/Symbol/ObjectFile.h
M lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
M lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
M lldb/source/Symbol/ObjectFile.cpp
A lldb/test/Shell/ObjectFile/ELF/Inputs/memory-elf.cpp
A lldb/test/Shell/ObjectFile/ELF/elf-dynamic-no-shdrs.yaml
A lldb/test/Shell/ObjectFile/ELF/elf-memory.test
Log Message:
-----------
[LLDB] Impove ObjectFileELF's .dynamic parsing and usage. (#101237)
This patch improves the ability of a ObjectFileELF instance to read the .dynamic section. It adds the ability to read the .dynamic section from the PT_DYNAMIC program header which is useful for ELF files that have no section headers and for ELF files that are read from memory. It cleans up the usage of the .dynamic entries so that ObjectFileELF::ParseDynamicSymbols() is the only code that parses .dynamic entries, teaches that function the read and store the string values for each .dynamic entry. We now dump the .dynamic entries in the output of "image dump objfile". It also cleans up the code that gets the dynamic string table so that it can grab it from the DT_STRTAB and DT_STRSZ .dynamic entries for when we have a ELF file with no section headers or we are reading it from memory.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list