[all-commits] [llvm/llvm-project] e03e9e: [SystemZ][z/OS] Handle constants with initializers...
Kai Nacke via All-commits
all-commits at lists.llvm.org
Fri Sep 11 13:51:11 PDT 2026
Branch: refs/heads/users/redstar/zosreadonlywithrel
Home: https://github.com/llvm/llvm-project
Commit: e03e9ee4567c8ab9e189405410d2fae1734d10f8
https://github.com/llvm/llvm-project/commit/e03e9ee4567c8ab9e189405410d2fae1734d10f8
Author: Kai Nacke <kai.peter.nacke at ibm.com>
Date: 2026-09-11 (Fri, 11 Sep 2026)
Changed paths:
M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
M llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
A llvm/test/CodeGen/SystemZ/zos-section-readonlywithrel.ll
Log Message:
-----------
[SystemZ][z/OS] Handle constants with initializers with relocations
When the initializer of a constant needs relocations, the constant
cannot be placed into the code section, because the loader needs
a writable section to fixup the relocation.
This change
- sets the relocation model for z/OS to `DynamicNoPIC`, which better
fits the relocation handling than `Static`, and
- treats section kind `ReadOnlyWithRel` like a variable.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list