[all-commits] [llvm/llvm-project] a4d854: [HIP] fix stack marking for -fgpu-rdc (#72782)
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Fri Dec 1 13:22:33 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a4d85490e029e797d22881b37d476c2050d0d6a2
https://github.com/llvm/llvm-project/commit/a4d85490e029e797d22881b37d476c2050d0d6a2
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2023-12-01 (Fri, 01 Dec 2023)
Changed paths:
M clang/lib/Driver/ToolChains/HIPUtility.cpp
M clang/test/Driver/hip-toolchain-rdc.hip
Log Message:
-----------
[HIP] fix stack marking for -fgpu-rdc (#72782)
HIP toolchain uses llvm-mc to generate a host object embedding device
binary for -fgpu-rdc. Due to lack of .note.GNU-stack section, the
generated relocatable has executable stack marking, which disables
protection from executable stack for any HIP programs compiled with
-fgpu-rdc.
This patch adds .note.GNU-stack section to the input to llvm-mc to fix
the executable stack marking.
Fixes: https://github.com/llvm/llvm-project/issues/71711
More information about the All-commits
mailing list