[PATCH] D90214: [llvm-readobj/elf] - Fix a crash when dumping a dynamic relocation that refer to a symbol past the EOF.
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 27 09:13:24 PDT 2020
jhenderson added inline comments.
================
Comment at: llvm/test/tools/llvm-readobj/ELF/broken-dynamic-reloc.test:380
+## This symbol is located right before the EOF, so we can dump it.
+ - Symbol: 0x14
+ Type: R_X86_64_NONE
----------------
I'm a little confused - why isn't this symbol something like 0x1 or 0x2? If the .dynsym is the very last thing in the output, then the at-EOF index should be the number of dynamic symbols.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90214/new/
https://reviews.llvm.org/D90214
More information about the llvm-commits
mailing list