mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 10:19:04 +00:00
libicp: Link with -z noexecstack for ld.bfd.
The assembly source files do not contain GNU-stack annotations, so
ld.bfd defaults to using an executable stack.
(cherry picked from commit 7e3e70ce21
)
This commit is contained in:
parent
b5c260d1d2
commit
6611fe011f
|
@ -94,4 +94,6 @@ CFLAGS.ghash-x86_64.S+= -DLOCORE
|
|||
CFLAGS.sha256_impl.S+= -DLOCORE
|
||||
CFLAGS.sha512_impl.S+= -DLOCORE
|
||||
|
||||
LDFLAGS.bfd+= -Wl,-znoexecstack
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
|
|
@ -92,4 +92,6 @@ CFLAGS.sha256_impl.S+= -DLOCORE
|
|||
CFLAGS.sha512_impl.S+= -DLOCORE
|
||||
CFLAGS.gcm.c+= -UCAN_USE_GCM_ASM
|
||||
|
||||
LDFLAGS.bfd+= -Wl,-znoexecstack
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
|
Loading…
Reference in a new issue