Author: kib
Date: Fri Jan  7 14:28:54 2011
New Revision: 217099
URL: http://svn.freebsd.org/changeset/base/217099

Log:
  Emit .note.GNU-stack for the syscall stubs generated by libc.

Modified:
  head/lib/libc/sys/Makefile.inc

Modified: head/lib/libc/sys/Makefile.inc
==============================================================================
--- head/lib/libc/sys/Makefile.inc      Fri Jan  7 14:24:24 2011        
(r217098)
+++ head/lib/libc/sys/Makefile.inc      Fri Jan  7 14:28:54 2011        
(r217099)
@@ -56,11 +56,13 @@ CLEANFILES+=        ${SASM} ${SPSEUDO}
 ${SASM}:
        printf '#include "compat.h"\n' > ${.TARGET}
        printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' >> ${.TARGET}
+       printf '\t.section .note.GNU-stack,"",%%progbits\n' >>${.TARGET}
 
 ${SPSEUDO}:
        printf '#include "compat.h"\n' > ${.TARGET}
        printf '#include "SYS.h"\nPSEUDO(${.PREFIX:S/_//})\n' \
            >> ${.TARGET}
+       printf '\t.section .note.GNU-stack,"",%%progbits\n' >>${.TARGET}
 
 MAN+=  abort2.2 accept.2 access.2 acct.2 adjtime.2 \
        aio_cancel.2 aio_error.2 aio_read.2 aio_return.2 \
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to