diff options
| author | christos <christos@NetBSD.org> | 2019-05-14 19:07:07 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2019-05-14 19:07:07 +0000 |
| commit | 3307268e0f3f7bae3e0e113bf390d73649bfa034 (patch) | |
| tree | f2569aeade0f98fdf87578aadc4f316019f0d80b /tests/libexec | |
| parent | c1b3c686e5bfff6926ae02af48466c469b78c632 (diff) | |
clang ifunc's on powerpc require secure-plt.
Diffstat (limited to 'tests/libexec')
| -rw-r--r-- | tests/libexec/ld.elf_so/Makefile | 3 | ||||
| -rw-r--r-- | tests/libexec/ld.elf_so/Makefile.inc | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/libexec/ld.elf_so/Makefile b/tests/libexec/ld.elf_so/Makefile index 3c87e04f3ba..ef11eb7bb8c 100644 --- a/tests/libexec/ld.elf_so/Makefile +++ b/tests/libexec/ld.elf_so/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.9 2017/07/11 15:21:36 joerg Exp $ +# $NetBSD: Makefile,v 1.10 2019/05/14 19:07:07 christos Exp $ # NOMAN= # defined +.include "Makefile.inc" .include <bsd.own.mk> .if ${MKPIC} != "no" diff --git a/tests/libexec/ld.elf_so/Makefile.inc b/tests/libexec/ld.elf_so/Makefile.inc index 01b5f23410c..92172ab68f8 100644 --- a/tests/libexec/ld.elf_so/Makefile.inc +++ b/tests/libexec/ld.elf_so/Makefile.inc @@ -1 +1,5 @@ .include "../Makefile.inc" + +.if ${MACHINE_ARCH} == "powerpc" +CFLAGS += -msecure-plt +.endif |
