Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Apr 2026 14:20:05 +0000
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4822a2cf9900 - main - Tentative fix for powerpc boot1.chrp linking problem.
Message-ID:  <69eccd95.36ae6.2c5a0592@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=4822a2cf990048c6eed7822fd34a1aeeb7c39cdf

commit 4822a2cf990048c6eed7822fd34a1aeeb7c39cdf
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2026-01-10 15:36:48 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2026-04-25 14:14:12 +0000

    Tentative fix for powerpc boot1.chrp linking problem.
    
    PR:             292067
    MFC after:      1 month
---
 stand/powerpc/boot1.chrp/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

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 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69eccd95.36ae6.2c5a0592>