On amd64 and i386, force assembler to mark objects compiled from the
assembler source for libcompiler_rt as not needed executable stack. This is done with a hammer instead of properly marking each assembly file with section .note.GNU-stack to avoid modifying contributed source. Discussed with: ed
This commit is contained in:
parent
5ada7d99af
commit
153344e7d3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217101
@ -156,4 +156,10 @@ SYMLINKS+=libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
|
||||
. endif
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
||||
AFLAGS+=--noexecstack
|
||||
ACFLAGS+=-Wl,a,--noexecstack
|
||||
.endif
|
||||
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user