175aa049c7
Currently when using the LLVM tools (eg llvm-readobj, llvm-objdump) to find information about basic block locations using the propeller tooling in relocatable object files function addresses are not mapped properly which causes problems. In llvm-readobj this means that incorrect function names will be pulled. In llvm-objdum this means that most BBs won't show up in the output if --symbolize-operands is used. This patch changes the behavior of decodeBBAddrMap to trace through relocations to get correct function addresses if it is going through a relocatable object file. This fixes the behavior in both tools and also other consumers of decodeBBAddrMap. Some helper functions have been added in/refactoring done to aid in grabbing BB address map sections now that in some cases both relocation and BB address map sections need to be obtained at the same time. Regression tests moved around/added. Differential Revision: https://reviews.llvm.org/D143841 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
COFFDump.cpp | ||
COFFDump.h | ||
ELFDump.cpp | ||
ELFDump.h | ||
llvm-objdump.cpp | ||
llvm-objdump.h | ||
MachODump.cpp | ||
MachODump.h | ||
ObjdumpOptID.h | ||
ObjdumpOpts.td | ||
OffloadDump.cpp | ||
OffloadDump.h | ||
OtoolOpts.td | ||
SourcePrinter.cpp | ||
SourcePrinter.h | ||
WasmDump.cpp | ||
WasmDump.h | ||
XCOFFDump.cpp | ||
XCOFFDump.h |