[llvm] [llvm-readobj][COFF] Implement --coff-pseudoreloc in llvm-readobj to dump runtime pseudo-relocation records (PR #151816)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 7 01:54:07 PDT 2025
================
@@ -2000,6 +2001,217 @@ void COFFDumper::printCOFFBaseReloc() {
}
}
+void COFFDumper::printCOFFPseudoReloc() {
+ if (!Obj->getDOSHeader()) {
+ W.startLine()
+ << "pseudo-relocation is only meaningful for a PE image file\n";
----------------
jh7370 wrote:
In the ELF case, if a thing isn't meaningful, we often just emit an empty output. For example, try `--dyn-symbols` on an ELF ET_REL object. I haven't checked if that's the pattern with the COFF side of things though.
https://github.com/llvm/llvm-project/pull/151816
More information about the llvm-commits
mailing list