include endbr64 macros. That's not going to work, so use the simple method
of -Dendbr64= to remove them from the instruction stream.
ok kettenis guenther
-# $OpenBSD: Makefile,v 1.48 2021/07/08 20:04:56 deraadt Exp $
+# $OpenBSD: Makefile,v 1.49 2023/04/17 00:05:35 deraadt Exp $
COPTS?=
MAN?= boot.8
SRCS= srt0.S conf.c
LD?= ld
SIZE?= size
+AFLAGS+=-Dendbr64=
LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie -znorelro
LDFLAGS+=-melf_i386 -L/usr/libdata
-# $OpenBSD: Makefile,v 1.43 2021/07/08 20:04:57 deraadt Exp $
+# $OpenBSD: Makefile,v 1.44 2023/04/17 00:05:35 deraadt Exp $
MAN= cdboot.8
SRCS= srt0.S boot.c conf.c
LD?= ld
SIZE?= size
+AFLAGS+=-Dendbr64=
LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie -znorelro
LDFLAGS+=-melf_i386 -L/usr/libdata
INSTALL_STRIP=
-# $OpenBSD: Makefile,v 1.41 2021/07/08 20:04:57 deraadt Exp $
+# $OpenBSD: Makefile,v 1.42 2023/04/17 00:05:35 deraadt Exp $
MAN= pxeboot.8
SRCS= srt0.S conf.c devopen.c open.c
LD?= ld
SIZE?= size
+AFLAGS+=-Dendbr64=
LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie -znorelro
LDFLAGS+=-melf_i386 -L/usr/libdata
INSTALL_STRIP=