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:
John Baldwin 2022-11-22 08:37:12 -08:00
parent b5c260d1d2
commit 6611fe011f
2 changed files with 4 additions and 0 deletions

View file

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

View file

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