summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2018-06-23 22:13:50 +0000
committerkettenis <kettenis@openbsd.org>2018-06-23 22:13:50 +0000
commitc8113ccdf70c0623e26b75100768f99346c30b57 (patch)
tree20802ec3a322e60f0cfa007fd47f31d664d6a919
parentwell, when we read the plist from the ports tree, we need to register (diff)
downloadwireguard-openbsd-c8113ccdf70c0623e26b75100768f99346c30b57.tar.xz
wireguard-openbsd-c8113ccdf70c0623e26b75100768f99346c30b57.zip
Add -z notext and -z norelro to prevent fatal warnings with ld.lld(1).
ok guenther@
-rw-r--r--sys/arch/armv7/stand/efiboot/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/armv7/stand/efiboot/Makefile b/sys/arch/armv7/stand/efiboot/Makefile
index 852a5f5fc22..3758b56ea10 100644
--- a/sys/arch/armv7/stand/efiboot/Makefile
+++ b/sys/arch/armv7/stand/efiboot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.10 2018/05/11 11:58:59 kettenis Exp $
+# $OpenBSD: Makefile,v 1.11 2018/06/23 22:13:50 kettenis Exp $
NOMAN= #
@@ -17,7 +17,8 @@ EFIDIR= ${S}/stand/efi
OBJCOPY?= objcopy
OBJDUMP?= objdump
-LDFLAGS+=-nostdlib -T ${.CURDIR}/ldscript.arm -Bsymbolic -shared
+LDFLAGS+= -nostdlib -T ${.CURDIR}/ldscript.arm -Bsymbolic -shared
+LDFLAGS+= -z notext -z norelro
.PATH: ${S}/stand/boot
SRCS+= boot.c cmd.c vars.c