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

This commit is contained in:
Konstantin Belousov 2011-01-07 14:28:54 +00:00
parent e81361ede0
commit 8863c9c75e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217099

View File

@ -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 \