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
This commit is contained in:
Ed Maste 2017-01-07 14:40:58 +00:00
parent c9eddd660c
commit d4cd50b494
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311647
2 changed files with 4 additions and 0 deletions

View File

@ -527,3 +527,5 @@ DEFINE_LIBUNWIND_PRIVATE_FUNCTION(_ZN9libunwind15Registers_riscv6jumptoEv)
ret // jump to ra
#endif
.section .note.GNU-stack,"",@progbits

View File

@ -469,3 +469,5 @@ DEFINE_LIBUNWIND_FUNCTION(unw_getcontext)
/* RISCVTODO */
#endif
.section .note.GNU-stack,"",@progbits