[llvm] [llvm-readobj][COFF] Implement --coff-pseudoreloc in llvm-readobj to dump runtime pseudo-relocation records (PR #151816)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 4 04:56:41 PDT 2025
================
@@ -0,0 +1,97 @@
+RUN: llvm-readobj --coff-pseudoreloc %p/Inputs/pseudoreloc.exe | FileCheck %s
----------------
mstorsjo wrote:
If possible, it'd be nicer to synthesize the test binary from yaml with `yaml2obj` rather than checking in a binary. (We do have some binaries checked in from before, but we'd like to keep that to a minimum, e.g. for binaries that can't be synthesized with `yaml2obj` yet.)
I see that you have the full procedure included for regenerating the binary, that's nice and appreciated! If converting it to yaml, it's also somewhat customary to strip down the size of it by removing unnecessary data from it. Perhaps it's not necessary in this case if the payload of each section is only a couple dozens of bytes anyway though. But if it is, the instructions would unfortunately end with `obj2yaml pseudoreloc.exe > pseudoreloc.exe.yaml # and manually strip down the .yaml file`. But if there's not that much unnecessary in there, perhaps we don't need to strip it manually at all.
https://github.com/llvm/llvm-project/pull/151816
More information about the llvm-commits
mailing list