[all-commits] [llvm/llvm-project] 7f7119: [SystemZ][z/OS] Handle constants with initializers...
Kai Nacke via All-commits
all-commits at lists.llvm.org
Mon Sep 14 06:58:28 PDT 2026
Branch: refs/heads/users/redstar/zosreadonlywithrel
Home: https://github.com/llvm/llvm-project
Commit: 7f7119ab2c045da53d3098afa191e84e63691648
https://github.com/llvm/llvm-project/commit/7f7119ab2c045da53d3098afa191e84e63691648
Author: Kai Nacke <kai.peter.nacke at ibm.com>
Date: 2026-09-14 (Mon, 14 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