aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2022-07-28 05:11:12 +0000
committerWarner Losh <imp@FreeBSD.org>2023-01-24 21:49:28 +0000
commit94745fbde6514e5a50b6f6466bbb0d1d9d6cb761 (patch)
tree448b9e12e378cbea3b56b06320b36a72131e155e
parentb40746e8ead296324dee20c50cb9d766dcdb0113 (diff)
downloadsrc-94745fbde6514e5a50b6f6466bbb0d1d9d6cb761.tar.gz
src-94745fbde6514e5a50b6f6466bbb0d1d9d6cb761.zip
kboot: Remove RELOC defines, it's unused
This was copied from powerpc/ofw and has never been used. We also don't care about -DAIM. It's only relevant for in-kernel structures, which we don't use in this userland program. Sponsored by: Netflix (cherry picked from commit 309a263fe6484658827ca28a922fad70a2b42499)
-rw-r--r--stand/kboot/arch/amd64/Makefile.inc3
-rw-r--r--stand/kboot/arch/powerpc64/Makefile.inc6
2 files changed, 0 insertions, 9 deletions
diff --git a/stand/kboot/arch/amd64/Makefile.inc b/stand/kboot/arch/amd64/Makefile.inc
index fb954e798599..a3920d636c9c 100644
--- a/stand/kboot/arch/amd64/Makefile.inc
+++ b/stand/kboot/arch/amd64/Makefile.inc
@@ -1,8 +1,5 @@
SRCS+= conf.c host_syscall.S amd64_tramp.S elf64_freebsd.c
CFLAGS+= -I${SYSDIR}/contrib/dev/acpica/include
-# load address. set in linker script
-RELOC?= 0x0
-CFLAGS+= -DRELOC=${RELOC}
LDFLAGS= -nostdlib -static -T ${.CURDIR}/arch/${MACHINE_ARCH}/ldscript.amd64
diff --git a/stand/kboot/arch/powerpc64/Makefile.inc b/stand/kboot/arch/powerpc64/Makefile.inc
index 3c2fb6e18a16..e6730edf8e3d 100644
--- a/stand/kboot/arch/powerpc64/Makefile.inc
+++ b/stand/kboot/arch/powerpc64/Makefile.inc
@@ -3,12 +3,6 @@ CFLAGS+= -mcpu=powerpc64
SRCS+= conf.c ppc64_elf_freebsd.c host_syscall.S kerneltramp.S
SRCS+= ucmpdi2.c
-# load address. set in linker script
-RELOC?= 0x0
-CFLAGS+= -DRELOC=${RELOC}
-
LDFLAGS= -nostdlib -static -T ${.CURDIR}/arch/${MACHINE_ARCH}/ldscript.powerpc
MK_PIE= no
-# Maybe bogus?
-CFLAGS+= -DAIM