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:
emaste 2017-01-07 14:40:58 +00:00
parent f6a975e1d2
commit ab362965f7
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