as self_reloc.c only handles the former.
ok deraadt@ kettenis@
-# $OpenBSD: Makefile.common,v 1.21 2020/08/02 15:38:52 deraadt Exp $
+# $OpenBSD: Makefile.common,v 1.22 2021/11/14 21:51:48 guenther Exp $
S= ${.CURDIR}/../../../../..
SADIR= ${.CURDIR}/../..
EFI_HEAP_LIMIT= 0xc00000
LDFLAGS+= -nostdlib -T${.CURDIR}/../${LDSCRIPT} -Bsymbolic -shared
+LDFLAGS+= --pack-dyn-relocs=none
COPTS+= -DEFIBOOT -DFWRANDOM -DNEEDS_HEAP_H -I${.CURDIR}/..
COPTS+= -I${EFIDIR}/include -I${S}/stand/boot
-# $OpenBSD: Makefile,v 1.12 2020/02/29 11:58:57 otto Exp $
+# $OpenBSD: Makefile,v 1.13 2021/11/14 21:51:48 guenther Exp $
NOMAN= #
OBJDUMP?= objdump
LDFLAGS+=-nostdlib -T ${.CURDIR}/ldscript.arm64 -Bsymbolic -shared
+LDFLAGS+=--pack-dyn-relocs=none
.PATH: ${S}/stand/boot
SRCS+= boot.c cmd.c vars.c
-# $OpenBSD: Makefile,v 1.16 2020/03/01 15:04:48 otto Exp $
+# $OpenBSD: Makefile,v 1.17 2021/11/14 21:51:48 guenther Exp $
NOMAN= #
OBJDUMP?= objdump
LDFLAGS+= -nostdlib -T ${.CURDIR}/ldscript.arm -Bsymbolic -shared
-LDFLAGS+= -z notext -z norelro
+LDFLAGS+= -z notext -z norelro --pack-dyn-relocs=none
.PATH: ${S}/stand/boot
SRCS+= boot.c cmd.c vars.c
-# $OpenBSD: Makefile,v 1.1 2021/04/28 19:01:00 drahn Exp $
+# $OpenBSD: Makefile,v 1.2 2021/11/14 21:51:48 guenther Exp $
NOMAN= #
OBJDUMP?= objdump
LDFLAGS+=-nostdlib -T ${.CURDIR}/ldscript.riscv64 -Bsymbolic -shared
+LDFLAGS+=--pack-dyn-relocs=none
.PATH: ${S}/stand/boot
SRCS+= boot.c cmd.c vars.c