diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2026-01-10 15:36:48 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2026-04-25 14:14:12 +0000 |
| commit | 4822a2cf990048c6eed7822fd34a1aeeb7c39cdf (patch) | |
| tree | 489e7e6d81188f68a0a6de22dd7ee5c730fc89cf | |
| parent | 48c35ae6ebfc6d9a2259979d915fd3bc5d6c01db (diff) | |
Tentative fix for powerpc boot1.chrp linking problem.
PR: 292067
MFC after: 1 month
| -rw-r--r-- | stand/powerpc/boot1.chrp/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stand/powerpc/boot1.chrp/Makefile b/stand/powerpc/boot1.chrp/Makefile index 0b77bce2b097..8d0f970212d4 100644 --- a/stand/powerpc/boot1.chrp/Makefile +++ b/stand/powerpc/boot1.chrp/Makefile @@ -23,6 +23,12 @@ CFLAGS+=-I${LDRSRC} # LDFLAGS=-nostdlib -static -Wl,-N -Wl,-Ttext=0x38000 -Wl,--image-base=0x38000 +.include <bsd.linker.mk> +.if (${LINKER_TYPE} == "bfd" && ${LINKER_VERSION} >= 24400) || \ + ${LINKER_TYPE} == "lld" +LDFLAGS+=-Wl,--image-base=0 +.endif + .PATH: ${SYSDIR}/libkern ${SRCTOP}/lib/libc/powerpc/gen ${.CURDIR} # The following inserts out objects into a template HFS |
