This is similar to D68086.
We are entering an infinite loop when dumping a histogram for a specially crafted
.hash section with a loop in a chain.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
test/tools/llvm-readobj/elf-hash-histogram.test | ||
---|---|---|
51 ↗ | (On Diff #224291) | Delete all of Address AddressAlign VAddr (see elf-hash-symbols.test) |
test/tools/llvm-readobj/elf-hash-histogram.test | ||
---|---|---|
51 ↗ | (On Diff #224291) | I think I can't, elf-hash-symbols.test is different, see: Here getHashTable returns something based on DT_HASH: I.e, I think I've already simplified this YAML to a minimum or at least to a very reasonable minimum. |
test/tools/llvm-readobj/elf-hash-histogram.test | ||
---|---|---|
51 ↗ | (On Diff #224291) | Ah, sorry, I've got it now. I've looked at the wrong test case. |
llvm/test/tools/llvm-readobj/elf-hash-histogram.test | ||
---|---|---|
45 | Nit: This should probably have been ET_DYN or ET_EXEC. Program headers and dynamic sections in relocatable objects are... odd :) No need to change it again though if you don't want to. |
Nit: This should probably have been ET_DYN or ET_EXEC. Program headers and dynamic sections in relocatable objects are... odd :) No need to change it again though if you don't want to.