Add a new command line switch, -gnu-hash-table, to print the content of that section.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM with nits.
Thanks for doing this!
include/llvm/Object/ELFTypes.h | ||
---|---|---|
498 ↗ | (On Diff #37247) | This should not be an ArrayRef of uintX_t since that is host endian. You can use Elf_Off. |
508 ↗ | (On Diff #37247) | values maybe? There is no official spec for the names, but that is what https://blogs.oracle.com/ali/entry/gnu_hash_elf_sections uses which I think is the closest thing to a spec. |
tools/llvm-readobj/ELFDumper.cpp | ||
1549 ↗ | (On Diff #37247) | "First hashed symbol index " is probably more descriptive. |
1554 ↗ | (On Diff #37247) | Report an error if we have a hash but not a dynamic symbol table. |
Comment Actions
This should not be an ArrayRef of uintX_t since that is host endian. You can use Elf_Off.
Ah, and maybe test that by adding a ppc binary?
Thanks,
Rafael