[PATCH] D63280: [llvm-objdump] Use <first-symbol>-<offset> as the section start symbol
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 18 03:46:50 PDT 2019
jhenderson added inline comments.
================
Comment at: llvm/tools/llvm-objdump/llvm-objdump.cpp:1383
+ // symbol.
+ if (TargetAddress == SectionAddr && TargetName.contains("-0x")) {
+ ++TargetSym;
----------------
This check is rather horrid, if I'm honest, for all sorts of reasons (apart from anything else, ELF places no restrictions on symbol names so a valid symbol name could actually contain "-0x").
I think you need a different way of identifying these inserted symbols (assuming that it's not possible to just change when they are inserted). You might need a list of sections that have had symbols inserted, for example.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63280/new/
https://reviews.llvm.org/D63280
More information about the llvm-commits
mailing list