Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm::object::BasicSymbolRef::SF_Indirect exists but I don't think it is suitable.
In theory, I may be possible, but I cannot find any binutils test for I.
I confirm this matches GNU objdump for me.
llvm/test/tools/llvm-objdump/ELF/symbol-table.test | ||
---|---|---|
44 ↗ | (On Diff #248894) | Perhaps it is not clear why there is an empty line between locals and globals. |
llvm/tools/llvm-objdump/llvm-objdump.cpp | ||
1911 | nit: you do not need curly bracers. |
binutils-gdb/bfd/syms.c:bfd_print_symbol_vandr. The I character represents BFD_INDIRECT. By inspecting its references, it is only used by some intermediate representations (bfdlink.c). It cannot be produced when BFD parses an object file, so the rule in bfd_print_symbol_vandr may be dead.
Rebase. Rename Indirect to Ifunc because the code path is only possible for STT_GNU_IFUNC.
LGTM, with one suggestion.
llvm/tools/llvm-objdump/llvm-objdump.cpp | ||
---|---|---|
1907 | Maybe IFunc rather than Ifunc, since it's short for "Indirect Function"? |
Maybe IFunc rather than Ifunc, since it's short for "Indirect Function"?