[llvm] [SystemZ][z/OS] Add AMODE to PR symbols (PR #223541)

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 5 05:03:24 PDT 2026


================
@@ -2951,7 +2952,8 @@ MCSection *TargetLoweringObjectFileGOFF::SelectSectionForGlobal(
     MCSectionGOFF *PR = getContext().getGOFFSection(
         Kind, Symbol->getName(),
         GOFF::PRAttr{false, GOFF::ESD_EXE_DATA, GOFF::ESD_BST_Strong,
-                     GOFF::ESD_LT_XPLink, PRBindingScope, 0},
+                     GOFF::ESD_LT_XPLink, GOFF::ESD_AMODE_64, PRBindingScope,
----------------
uweigand wrote:

One more question: here, AMODE(64) is set for all symbols, even those with `ESD_BSC_Section` binding scope.  Should we make AMODE conditional here?

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


More information about the llvm-commits mailing list