[llvm] [llvm-readobj] Dump SFrame relocations as well (PR #153161)
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 15 02:57:13 PDT 2025
================
@@ -6583,8 +6627,30 @@ void ELFDumper<ELFT>::printSectionsAsSFrame(ArrayRef<std::string> Sections) {
continue;
}
+ const Elf_Shdr *ELFSection = ObjF.getSection(Section.getRawDataRefImpl());
+ MapVector<const Elf_Shdr *, const Elf_Shdr *> RelocationMap;
+ if (Error Err = Obj.getSectionAndRelocations(
+ [&](const Elf_Shdr &S) { return &S == ELFSection; })
+ .moveInto(RelocationMap)) {
+ reportWarning(std::move(Err), FileName);
----------------
labath wrote:
Works for me.
https://github.com/llvm/llvm-project/pull/153161
More information about the llvm-commits
mailing list