[all-commits] [llvm/llvm-project] 7a92cd: [SystemZ][z/OS] Fix error "relative immediate relo...
Kai Nacke via All-commits
all-commits at lists.llvm.org
Thu Sep 10 06:48:22 PDT 2026
Branch: refs/heads/users/redstar/fixconstsect
Home: https://github.com/llvm/llvm-project
Commit: 7a92cd5e3747fc602f5353b30fb27ae3aa56387f
https://github.com/llvm/llvm-project/commit/7a92cd5e3747fc602f5353b30fb27ae3aa56387f
Author: Kai Nacke <kai.peter.nacke at ibm.com>
Date: 2026-09-10 (Thu, 10 Sep 2026)
Changed paths:
M llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
M llvm/test/CodeGen/SystemZ/zos-eh.ll
Log Message:
-----------
[SystemZ][z/OS] Fix error "relative immediate relocation section mismatch"
Constants should go inside the text section, but this is not explicitly coded.
In the test case, the EH table is generated into a PR section. Then the
constant pool of function `fn_with_const_pool()` is emitted, which goes into
the PR section of the EH table insted of the code section. When the constant
is later referenced in the code, the relative offset cannot be calculated
because different sections are involved.
The fix is to explicitly return the text section for constants.
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