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.
This commit is contained in:
John Baldwin 2022-11-22 08:37:12 -08:00
parent 99df55bbb7
commit 7e3e70ce21
2 changed files with 4 additions and 0 deletions

View file

@ -116,4 +116,6 @@ CFLAGS.b3_ppc64le_sse2.S = -DLOCORE
CFLAGS.b3_ppc64le_sse41.S = -DLOCORE
LDFLAGS.bfd+= -Wl,-znoexecstack
.include <bsd.lib.mk>

View file

@ -109,4 +109,6 @@ CFLAGS.b3_ppc64le_sse2.S = -DLOCORE
CFLAGS.b3_ppc64le_sse41.S = -DLOCORE
LDFLAGS.bfd+= -Wl,-znoexecstack
.include <bsd.lib.mk>