diff options
Diffstat (limited to 'sys-devel/llvm-roc/files/llvm-roc-5.0.0-add_GNU-stack.patch')
-rw-r--r-- | sys-devel/llvm-roc/files/llvm-roc-5.0.0-add_GNU-stack.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-devel/llvm-roc/files/llvm-roc-5.0.0-add_GNU-stack.patch b/sys-devel/llvm-roc/files/llvm-roc-5.0.0-add_GNU-stack.patch new file mode 100644 index 000000000000..f57989c8c8a3 --- /dev/null +++ b/sys-devel/llvm-roc/files/llvm-roc-5.0.0-add_GNU-stack.patch @@ -0,0 +1,14 @@ +Add .note.GNU-stack to mitigate QA notice according to +https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart +=================================================================== +--- llvm-project-rocm-5.0.0.orig/compiler-rt/lib/orc/elfnix_tls.x86-64.S ++++ llvm-project-rocm-5.0.0/compiler-rt/lib/orc/elfnix_tls.x86-64.S +@@ -61,4 +61,8 @@ ___orc_rt_elfnix_tls_get_addr: + popq %rbp + ret + ++#if defined(__linux__) && defined(__ELF__) ++ .section .note.GNU-stack,"",%progbits ++#endif ++ + #endif // defined(__x86_64__) |