[llvm-branch-commits] [llvm] [GOFF] Write out relocations in the GOFF writer (PR #167054)

Kai Nacke via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Nov 28 14:55:31 PST 2025


================
@@ -16,12 +17,35 @@ namespace {
 class SystemZGOFFObjectWriter : public MCGOFFObjectTargetWriter {
 public:
   SystemZGOFFObjectWriter();
+
+  unsigned getRelocType(const MCValue &Target, const MCFixup &Fixup,
+                        bool IsPCRel) const override;
 };
 } // end anonymous namespace
 
 SystemZGOFFObjectWriter::SystemZGOFFObjectWriter()
     : MCGOFFObjectTargetWriter() {}
 
+unsigned SystemZGOFFObjectWriter::getRelocType(const MCValue &Target,
+                                               const MCFixup &Fixup,
+                                               bool IsPCRel) const {
+  switch (Target.getSpecifier()) {
+  case SystemZ::S_PLT:  // TODO This doen't make sense.
----------------
redstar wrote:

Fixed.

https://github.com/llvm/llvm-project/pull/167054


More information about the llvm-branch-commits mailing list