diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2023-12-01 16:22:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 16:22:16 -0500 |
commit | a4d85490e029e797d22881b37d476c2050d0d6a2 (patch) | |
tree | 5b02cdc799660919d2822699c7beb6e6314f2526 /clang/lib/Sema/SemaCUDA.cpp | |
parent | ed22bf69917479034aa4d2d42cbd9cb9d59cc0ae (diff) | |
download | llvm-a4d85490e029e797d22881b37d476c2050d0d6a2.zip llvm-a4d85490e029e797d22881b37d476c2050d0d6a2.tar.gz llvm-a4d85490e029e797d22881b37d476c2050d0d6a2.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Sema/SemaCUDA.cpp')
0 files changed, 0 insertions, 0 deletions