llvm-project/llvm/tools/llvm-objdump
Aiden Grossman 175aa049c7 [Propeller] Make decoding BBAddrMaps trace through relocations
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
2023-03-13 21:29:48 +00:00
..
CMakeLists.txt
COFFDump.cpp
COFFDump.h
ELFDump.cpp Use llvm::count{lr}_{zero,one} (NFC) 2023-01-28 12:41:20 -08:00
ELFDump.h
llvm-objdump.cpp [Propeller] Make decoding BBAddrMaps trace through relocations 2023-03-13 21:29:48 +00:00
llvm-objdump.h
MachODump.cpp [NFC][TargetParser] Remove llvm/ADT/Triple.h 2023-02-07 12:39:46 +00:00
MachODump.h
ObjdumpOptID.h
ObjdumpOpts.td
OffloadDump.cpp
OffloadDump.h
OtoolOpts.td
SourcePrinter.cpp
SourcePrinter.h
WasmDump.cpp
WasmDump.h
XCOFFDump.cpp
XCOFFDump.h