Author: emaste
Date: Sat Jan  7 14:40:58 2017
New Revision: 311647
URL: https://svnweb.freebsd.org/changeset/base/311647

Log:
  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

Modified:
  head/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S
  head/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S

Modified: head/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S
==============================================================================
--- head/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S   Sat Jan 
 7 12:24:45 2017        (r311646)
+++ head/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S   Sat Jan 
 7 14:40:58 2017        (r311647)
@@ -527,3 +527,5 @@ DEFINE_LIBUNWIND_PRIVATE_FUNCTION(_ZN9li
   ret                       // jump to ra
 
 #endif
+
+  .section .note.GNU-stack,"",@progbits

Modified: head/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S
==============================================================================
--- head/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S      Sat Jan 
 7 12:24:45 2017        (r311646)
+++ head/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S      Sat Jan 
 7 14:40:58 2017        (r311647)
@@ -469,3 +469,5 @@ DEFINE_LIBUNWIND_FUNCTION(unw_getcontext
 /* RISCVTODO */
 
 #endif
+
+    .section .note.GNU-stack,"",@progbits
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to