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 [Support] Move TargetParsers to new component 2022-12-20 11:05:50 +00:00
COFFDump.cpp Move from llvm::makeArrayRef to ArrayRef deduction guides - llvm/ part 2023-01-05 14:11:08 +01:00
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 llvm-objdump: Fix --build-id documentation string 2023-01-04 11:54:57 -08:00
OffloadDump.cpp
OffloadDump.h
OtoolOpts.td
SourcePrinter.cpp Remove the dependency between lib/DebugInfoDWARF and MC. 2022-12-15 18:23:27 -08:00
SourcePrinter.h Remove the dependency between lib/DebugInfoDWARF and MC. 2022-12-15 18:23:27 -08:00
WasmDump.cpp
WasmDump.h
XCOFFDump.cpp std::optional::value => operator*/operator-> 2022-12-17 01:42:39 +00:00
XCOFFDump.h [MC] llvm::Optional => std::optional 2022-12-04 21:36:08 +00:00