From nobody Fri May 29 22:57:11 2026 X-Original-To: dev-commits-src-all@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 4gRzJf3hhkz6gDNp for ; Fri, 29 May 2026 22:57:22 +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 4gRzJf0HBjz4NDj for ; Fri, 29 May 2026 22:57:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780095442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uE8KCCb/kWSVaqcrlGKBR/NWfHXZMmm+sMU/9zu6MXs=; b=MAFXMqImJxue9WdeJvKTI4KwTzgpEh4j/Nb3wJ5c97yw4hJ6VDKQe8nbbYsbySVPjFf6Aj xb/iG3EbHEda6+qaeplqxjRNfL7iskNPOvXivyFC4/rdXPD3EfBpMO7aOAn4TVtQcZjp+P ETcUk2TAQG23Ldv3vho0LSFwOeWrPvD37PovsBZswsN8aGI/9X3wnhw3CLQZKAB2NO+w73 h2+YHMJjPmQiYqKjk+2T5MoKMLFvi9EJs145fBGxcdd58WBQimp1tc4YKTyi+qoFg31bV+ Y89Oq5A7AmbzRwg1oJyFx0ZDtK4g2ZU5gbxto1SMqpmfVIIINwFOkmTd0/fH5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780095442; a=rsa-sha256; cv=none; b=i32ZjI0svUXZ96kXv4VJy89hTU1KckncZb7mE0PefvzFV0VEo+i9tGy+961BO5WUIoMYQH Aewv5lSq/dx0AL5lanOT+SuzUpeRwhSRKAYutEzAQEp4B77sKAKAoW4Y8o9WRBte3bnnLn GPhhGEPJW6Rn5a/H3IhKgHQ9aljxVU06mFxcJGxWYckOx+NOxE4meBRhxYZiaMaynXnRMN X4zDL4q2BxmIjJmoWi3afWhqFgzYeQgC+ovoptjTOSe4+sw3G6R3YFQ6vIosssmGFvofUV kQhCMuUzdQc3ZOPZu8XDW67I7CxzfG1pk0nxfzdwrZccJdxq+wO/7SrB3lWCCQ== 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=1780095442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uE8KCCb/kWSVaqcrlGKBR/NWfHXZMmm+sMU/9zu6MXs=; b=M1gfmYh6HIG5aE/4FxbzbT5a4tzLhwqoXTBASNXaoOj1V5s+MgEY9ePBC4ZNt9EPxCx8kY mGDDsYoM88TYFrAINvg8lJaRGlYpm+VmNF1Vl2HieHscGz2iDT+iQ0cl22hnoQ1fMyu6P9 mdo/7lQ8P1R/7l8fYVxs0UVc2jUD3qtMzYYBQVf+U2b4yLo90Th9C+q/V4f6/Kfe+eUpJC Qpz8hVtafZ6f269p935BTWGpgmE4GU5NjiDIE7y/vLHhDg2JiwiyDiCEC0sDMD5q4oefFz h55YGpNL3IsdS4rzNEjhugtoQhnH+F7cchFtDAYecuWAxUJpWW01kEv48QGB+A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gRzJX6RVbztQl for ; Fri, 29 May 2026 22:57:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 41874 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 29 May 2026 22:57:11 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Warner Losh From: Dimitry Andric Subject: git: 5d2b9a17b9c6 - stable/14 - loader: Fix powerpc64le by working around slof bug in qemu/slof List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5d2b9a17b9c6885179f7b32c2e82e182268f9517 Auto-Submitted: auto-generated Date: Fri, 29 May 2026 22:57:11 +0000 Message-Id: <6a1a19c7.41874.5f5d40ca@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5d2b9a17b9c6885179f7b32c2e82e182268f9517 commit 5d2b9a17b9c6885179f7b32c2e82e182268f9517 Author: Warner Losh AuthorDate: 2025-12-28 05:27:03 +0000 Commit: Dimitry Andric CommitDate: 2026-05-29 22:56:56 +0000 loader: Fix powerpc64le by working around slof bug in qemu/slof Fix powerpc 64 little endian booting by adding some padding. Due to https://gitlab.com/slof/slof/-/blob/master/lib/libelf/elf32.c?ref_type=heads#L114 https://gitlab.com/slof/slof/-/blob/master/lib/libelf/elf32.c?ref_type=heads#L150 using <= instead of <, slof used to loop over the phdrs. It overruns by 1 and so on little endian it swizzles the first 32 bytes of .text. Work around this by adding 32 bytes of padding after the headers. We should fix this in slof, but it's in the just released QEMU 10.2, so we have to pad things here for now. Now powerpc64le + qemu works. MFC After: 3 days (maybe EN too) Reviewed by: adrian, jhibbits Sponsored by: Netflix (cherry picked from commit 424089a0fc82ee9db8659b8c1099bbbde8999473) (cherry picked from commit 0b2011f50cd31ce384445ed04a554c0cf5e5300f) --- stand/powerpc/ofw/ppc-common.ldscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/powerpc/ofw/ppc-common.ldscript b/stand/powerpc/ofw/ppc-common.ldscript index e12dee74824a..edd37eba8fca 100644 --- a/stand/powerpc/ofw/ppc-common.ldscript +++ b/stand/powerpc/ofw/ppc-common.ldscript @@ -9,7 +9,7 @@ PHDRS SECTIONS { /* Read-only sections, merged into text segment: */ - . = 0x02c00000 + SIZEOF_HEADERS; + . = 0x02c00000 + SIZEOF_HEADERS + 32; .interp : { *(.interp) } :text .hash : { *(.hash) } .dynsym : { *(.dynsym) }