From nobody Fri Jul 01 12:56:41 2022 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 D4639872F23; Fri, 1 Jul 2022 12:56:41 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LZFZd5d5tz4RCl; Fri, 1 Jul 2022 12:56:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656680201; 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=KG1ye+sue4/Q4IWSmqINpXHtAaNlgdIofSlBBX+NY/s=; b=H6ioHxsoNd6iomcUrQ++zmBfWcH/oCrR24AJJ0v8mQNXY92+qiDBpltkHyS18fBlT7QaBN QN7nXgjhAQtQe+U/pUwGa3Mo1m3sTl0BN+2H0guN3JKzODzPFeetGIiiB2TkMXWrK5OLEH 7TnXFAKIUD9UYz8u4cd+e5szglliOn9miXFx25RMAD6K+liutMCL8a5fACpo2ezkINHZnf mICpXgCSVUPJOd9P/ebe1HEDFfmgp7yKITrB4QGMteZJxmOe5uGUiPJPvYbhRt2lPRhwbt C/kr2XB+veRetSZTNU60phF3a4qQkDECRM+YhTiWjOGxgjp+ZnF56b28pjPrBA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A01911BD93; Fri, 1 Jul 2022 12:56:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 261CufTg094364; Fri, 1 Jul 2022 12:56:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 261CufoX094363; Fri, 1 Jul 2022 12:56:41 GMT (envelope-from git) Date: Fri, 1 Jul 2022 12:56:41 GMT Message-Id: <202207011256.261CufoX094363@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alfredo Dal'Ava Junior" Subject: git: 5d48fb3b16c1 - main - loader: fix powerpc* ofw loader 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: alfredo X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5d48fb3b16c1496bf415fee620c61cc944b0326d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656680201; 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=KG1ye+sue4/Q4IWSmqINpXHtAaNlgdIofSlBBX+NY/s=; b=BcBa7xKVB8aj6QHxYOdkJ4seTbe0ZT4mu2fwAT5A+U28tK2PGZAxTv0ex9jffzNkGuPaRl 9GeMmNW2bfCP0uesPXaVuYZIbHOg255VQOnqaxjXO6Vz37V/BK828ZqDtGdtPTeQ2C3x6V UfnYsXMGhmjDwrNLcryF2IP8/iGoPmVruqvHbUJiAVCdvFO1CqGKYROycwhFPCyKTjz525 SHYXE/srAMogrNseMrMfu8RysjA7Go+cpWifovYpwERZ4N3OnFTq+N2+om9xCr1pcfVZn7 1IyppIGnoU4s6jyuiS4yGJeaN++t1C2WgA8qAnMCszz9tM6g1LkrhnRvHnjsVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656680201; a=rsa-sha256; cv=none; b=YYxx0q4HEqMXLYumiAv6rxlWiaei7zt8YaXG/01kd0IVNaGanpgk190qn/Ie3uOi/wA7/5 HHInHqhX8/cbIaZfQK69p4t6fwedbGuq00WpM5/wxOIDKWUitjHoemkVe1FWJ4q7tn9L8B 77sLacZFwX4j+r6xid7+V+suJAyZCIzOu8vpgUe3n01dSc78P8F3SL5gvmcvXfVEjlcJa/ mzY0BeOuQ3uGlbgmOMqzzSFkgmDPXvOkFQLfMA76wvbDC6dmZn3Oa9h9tYoZCFNX6tSTJn PoNXezJgNHFutO5ysATfMVRQN2xjko/1xrZI93mkkhcM8gHLX1aJoc4Afd1GWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by alfredo: URL: https://cgit.FreeBSD.org/src/commit/?id=5d48fb3b16c1496bf415fee620c61cc944b0326d commit 5d48fb3b16c1496bf415fee620c61cc944b0326d Author: Alfredo Dal'Ava Junior AuthorDate: 2022-07-01 15:54:01 +0000 Commit: Alfredo Dal'Ava Junior CommitDate: 2022-07-01 15:56:46 +0000 loader: fix powerpc* ofw loader With the introduction of llvm14, the powerpc* loader used on ofw/pseries for 32 and 64 bit architectures puts the .data.rel.ro section after .data section. This caused a crash kernel didn't boot. Bisect pointed to change https://reviews.llvm.org/D111717 but problem could be fixed by adding a section description to make it appear in the expected order. This patch is based on discussion at: https://github.com/llvm/llvm-project/issues/56306 MFC after: 1 day Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br) --- stand/powerpc/ofw/ldscript.powerpc | 1 + 1 file changed, 1 insertion(+) diff --git a/stand/powerpc/ofw/ldscript.powerpc b/stand/powerpc/ofw/ldscript.powerpc index 5fa27eaf6a13..9202eff286b2 100644 --- a/stand/powerpc/ofw/ldscript.powerpc +++ b/stand/powerpc/ofw/ldscript.powerpc @@ -57,6 +57,7 @@ SECTIONS .sbss2 : { *(.sbss2) } /* Adjust the address for the data segment to the next page up. */ . = ((. + 0x1000) & ~(0x1000 - 1)); + .data.rel.ro : { *(.data.rel.ro*) } .data : { *(.data)