aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/powerpc/loader/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/powerpc/loader/Makefile')
-rw-r--r--sys/boot/powerpc/loader/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/boot/powerpc/loader/Makefile b/sys/boot/powerpc/loader/Makefile
index 83fa1e08f9328..960529c8461e6 100644
--- a/sys/boot/powerpc/loader/Makefile
+++ b/sys/boot/powerpc/loader/Makefile
@@ -63,10 +63,11 @@ CFLAGS+= -I.
CLEANFILES+= vers.c loader.help
CFLAGS+= -ffreestanding
-# load address
+# load address. set in linker script
RELOC?= 0x1C00000
CFLAGS+= -DRELOC=${RELOC}
-LDFLAGS= -nostdlib -static -Ttext ${RELOC}
+
+LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
# Pull in common loader code
.PATH: ${.CURDIR}/../../ofw/common