[PATCH] D76081: [Object] object::ELFObjectFile::dynamic_symbol_begin(): skip symbol index 0
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 24 08:02:49 PDT 2020
grimar added a comment.
I do not have a good answer right now. Seems the API could be revisited and refined.
`section_begin()` and `section_end()` just ignore errors now.
`symbol_begin()` has a different logic from `dynamic_symbol_begin` that does not look ideal to me either:
DataRefImpl Sym =
toDRI(DotSymtabSec,
DotSymtabSec && DotSymtabSec->sh_size >= sizeof(Elf_Sym) ? 1 : 0);
(it is unclear to me how it works when `sh_size==1`, for example)
I think we should investigate how API is used by each tool, find what they want
and then decide how to clean-up/improve/expand/remove it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76081/new/
https://reviews.llvm.org/D76081
More information about the llvm-commits
mailing list