If module uses uses lazy TLSDESC relocations it should define DT_TLSDESC_PLT and DT_TLSDESC_GOT entries.
They were unknown for llvm-readobj before this patch.
Details
Details
- Reviewers
echristo davide • rafael Bigcheese - Commits
- rG06a9b6f5d183: Recommit r257912 Added forgotten ELFDumper.cpp to commit.
rGd362462fddb7: Revert r257912 - forgot to commit one file.
rGd9e46a3a9f91: [llvm-readobj] Add support for TLSDESC_PLT and TLSDESC_GOT dynamic section tags…
rL257914: Recommit r257912
rL257912: [llvm-readobj] Add support for TLSDESC_PLT and TLSDESC_GOT dynamic section…
Diff Detail
Diff Detail
Event Timeline
tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
1341 | Just put these in the right place (before RELA, that is). |
tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
1341 | Hmm, I think its in the right place now. I put it in according of their constant values: DT_GNU_HASH = 0x6FFFFEF5, // Reference to the GNU hash table. DT_TLSDESC_PLT = 0x6FFFFEF6, // Location of PLT entry for TLS descriptor resolver calls. DT_TLSDESC_GOT = 0x6FFFFEF7, // Location of GOT entry used by TLS descriptor resolver PLT entry. DT_RELACOUNT = 0x6FFFFFF9, // ELF32_Rela count. DT_RELCOUNT = 0x6FFFFFFA, // ELF32_Rel count. Isn`t that correct ? |
Comment Actions
The whole set of cases is uncorrectly sorted (it was even before you). Looking again, I think the place where you put is correct, I still think it's worth doing a pass (in a different commit) to sort that properly. Go ahead and submit.
Comment Actions
Thanks for review ! I`ll commit once http://reviews.llvm.org/D16185 is approved, because it is the direct dependency for this one..
Just put these in the right place (before RELA, that is).