[PATCH] D75756: [llvm-objdump] Teach `llvm-objdump` dump dynamic symbols.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 12 02:20:03 PDT 2020
grimar added inline comments.
================
Comment at: llvm/include/llvm/Object/ELFObjectFile.h:1024
+ toDRI(DotDynSymSec,
+ DotDynSymSec && DotDynSymSec->sh_size >= sizeof(Elf_Sym) ? 1 : 0);
return symbol_iterator(SymbolRef(Sym, this));
----------------
"Index 0 in any symbol table is used to represent undefined symbols.
This first entry in a symbol table is always completely zeroed." (Oracle ELF spec)
A null symbol is also a symbol, so it is not a correct change.
The change you want to do should not be here, in a higher level library.
Also, did you run llvm tests? I'd expect them should fail with such change.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75756/new/
https://reviews.llvm.org/D75756
More information about the llvm-commits
mailing list