From nobody Sat Apr 18 20:16:25 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fyjgs5bP8z6ZCCQ for ; Sat, 18 Apr 2026 20:16:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fyjgs4BJzz3P3C for ; Sat, 18 Apr 2026 20:16:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776543385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EElBw1WSdzSWzsLNqA7PE7RiBofZSzNTs+ks+UIu36s=; b=pdZ4VXie+qCTLCNB+GYB41RhQc2BtEHpakEoTVum2qyQyQr+2NtPIqymScYzaOBFGjZAiS RbGWCeowZDY4T1fEnNz20uKzR+2iiZcwNDKVkeVnGpD4bk140Dr/ml+l4pOUnYWr39pjD7 ypRx34glSaLS1jcH04p0gqwpxvBHm+WVZzezFKjwEUNNcRVIt3D3b1f4wZm4luCkxmQnpn jmzPMAjMNvV+7GpuAWW/auwAVi3zg/fOrhxIPJi15fRKvdtD8oKCzVrNtr2zZVQKtIzFFO L0NKCiBWK87m0/00F6xCEDkmIqYfSTZwsYpo5Gr9EF8uDNtzO13l6zRrVSTHyQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776543385; a=rsa-sha256; cv=none; b=BobyqGhGq0q+QqDZSScsAfstSEp1NodXnyrxKL3Gi6ZWTbVG4volBwSsKaR0+MG7iMg82E zUjCDmTnb9GtPeLcj+IlPdEDESyhVxeraCEpyCSbofuj6pV0Z4bKV/RxiWFWRb5dp4aJn4 Bbwik2gq1/bffKRub5U9QwUr5FyG6iLUOCv0VS0bkG215/GTYcFkAEz/IVoSMhdUfPP/x9 ok2mb3StCb43SQPvkt2PuTUm2o/0uQgVVMTSElL397TF9yQSaZBsvIo5iUTHQy7By/lWM1 fPVdb8L6kzLugcJbuNjeF0ptAEN7QowBmdeIlI0Dq/FAKddMQ/y6yMJMG0PIzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776543385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EElBw1WSdzSWzsLNqA7PE7RiBofZSzNTs+ks+UIu36s=; b=dCD0FlEPgM+fRhF3evye+4/M7rC69o7+mhU6Fu7TwXXjJOqtWD4cmd1hy+HV1d6htriRWE LF/di/UO7yUltk/gQGBvNjxJ2baqe0TtP6TbKnzZeIH4e8YFJ4Ww/wqF98ITGORfZlrFtC u49oDSjWP7AyZpsaAscn+nYBxhG21UQVfrC39aU8EQV5R5LHapa2e5pM2IKXw3izyAhy79 plmaRobFOnLcenudW+jOANtn3wuI7IYAWroawXGN/FUrWky8KaHxCvT21Uv41CR7LiMhvr XYGXtutB6uwAq6zl7UfVaJaWnG4EyvgIf1RkNAUnN/vX9VlcGHXDB+rIQS0MRw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fyjgs3mmXzvsF for ; Sat, 18 Apr 2026 20:16:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 203a7 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 18 Apr 2026 20:16:25 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Lexi Winter Subject: git: aa0bc7cca153 - main - boot1.chrp: Specify --image-base List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ivy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aa0bc7cca153f67f8becec8a8fb259ff5fd30fd0 Auto-Submitted: auto-generated Date: Sat, 18 Apr 2026 20:16:25 +0000 Message-Id: <69e3e699.203a7.19cf8c4f@gitrepo.freebsd.org> The branch main has been updated by ivy: URL: https://cgit.FreeBSD.org/src/commit/?id=aa0bc7cca153f67f8becec8a8fb259ff5fd30fd0 commit aa0bc7cca153f67f8becec8a8fb259ff5fd30fd0 Author: Lexi Winter AuthorDate: 2026-04-18 20:07:40 +0000 Commit: Lexi Winter CommitDate: 2026-04-18 20:15:26 +0000 boot1.chrp: Specify --image-base This is required for LLVM 22's ld.lld to avoid a build error: ld.lld: error: section '.text' address (0x38000) is smaller than image base (0x10000000); specify --image-base ld.lld: error: section '.rodata' address (0x3b308) is smaller than image base (0x10000000); specify --image-base ld.lld: error: section '.data' address (0x3b610) is smaller than image base (0x10000000); specify --image-base ld.lld: error: section '.bss' address (0x3f618) is smaller than image base (0x10000000); specify --image-base Use 0x38000 for the image base, which is the address of the lowest (and only) LOAD segment in the file. Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D56459 --- stand/powerpc/boot1.chrp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/powerpc/boot1.chrp/Makefile b/stand/powerpc/boot1.chrp/Makefile index e67414584bc8..a693f775dde8 100644 --- a/stand/powerpc/boot1.chrp/Makefile +++ b/stand/powerpc/boot1.chrp/Makefile @@ -21,7 +21,7 @@ CFLAGS+=-I${LDRSRC} # boot1.elf defined in the HFS template, but sometimes boot1.elf is written # directly to the PReP partition. # -LDFLAGS=-nostdlib -static -Wl,-N -Wl,-Ttext=0x38000 +LDFLAGS=-nostdlib -static -Wl,-N -Wl,-Ttext=0x38000 -Wl,--image-base=0x38000 .PATH: ${SYSDIR}/libkern ${SRCTOP}/lib/libc/powerpc/gen ${.CURDIR}