aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2017-01-07 14:40:58 +0000
committerEd Maste <emaste@FreeBSD.org>2017-01-07 14:40:58 +0000
commitd4cd50b494d679d68851a8a02e22cd9a7cd11f7b (patch)
tree5783ecdbc105e334d967a699a3401528486d4e83 /contrib
parentc9eddd660c6b85a8c43e6e96c2e2185947a4556c (diff)
downloadsrc-d4cd50b494d679d68851a8a02e22cd9a7cd11f7b.tar.gz
src-d4cd50b494d679d68851a8a02e22cd9a7cd11f7b.zip
libunwind: add noexec stack annotation
Reported by: vangyzen Reviewed by: kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D9075
Notes
Notes: svn path=/head/; revision=311647
Diffstat (limited to 'contrib')
-rw-r--r--contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S2
-rw-r--r--contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S2
2 files changed, 4 insertions, 0 deletions
diff --git a/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S b/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S
index 8e37c13036f6..34b7429d012a 100644
--- a/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S
+++ b/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S
@@ -527,3 +527,5 @@ DEFINE_LIBUNWIND_PRIVATE_FUNCTION(_ZN9libunwind15Registers_riscv6jumptoEv)
ret // jump to ra
#endif
+
+ .section .note.GNU-stack,"",@progbits
diff --git a/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S b/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S
index ebc9d538e7fb..cebcd760df12 100644
--- a/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S
+++ b/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S
@@ -469,3 +469,5 @@ DEFINE_LIBUNWIND_FUNCTION(unw_getcontext)
/* RISCVTODO */
#endif
+
+ .section .note.GNU-stack,"",@progbits