From nobody Mon Aug 01 11:06:53 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 4LxFgd2r7fz4X7VB; Mon, 1 Aug 2022 11:06:53 +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 4LxFgd2Hhnz3lfB; Mon, 1 Aug 2022 11:06:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659352013; 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=6YNFLexZ+Gd8JUf21cJKTq3lsmluVxD4wdhgw5j14wo=; b=Br9CtdeMFW2zcI/tHB1xsIjRgnFNyieE3G8hSrPdxEH+5bIr0ALm5ihwn4Qd4YAwA7dlez GZA3EqVjhCfaQKEJ+tGbfv3mUpPP9PutlV5PhK7UpAyxvjeTw9FM5A4Lnct/P9tLDr7yyb mvRjUUYrFyh3+50lxZJw1opm3vGYZeGpjFd1MQhWhXc4kwFlWagA9SNrDpPbuTkZzGPtlg ZC1dm5KISe3IkTGyMOCe1a9mKhi05gj2qYIGk0yjJfo492LbWZqC8ZFOZv+nHVyNk7jcFV BW/7EOtLpEPh2vsfpPLlspGjlhCKF6Qo7kR4FkYrCTB/S3PA87zYrd5hE/Jc2A== 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 4LxFgd1Js5zWHm; Mon, 1 Aug 2022 11:06:53 +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 271B6rSR067807; Mon, 1 Aug 2022 11:06:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 271B6r9n067806; Mon, 1 Aug 2022 11:06:53 GMT (envelope-from git) Date: Mon, 1 Aug 2022 11:06:53 GMT Message-Id: <202208011106.271B6r9n067806@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Alfredo Dal'Ava Junior" Subject: git: c97585565fe7 - stable/13 - loader: fix powerpc64le 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/stable/13 X-Git-Reftype: branch X-Git-Commit: c97585565fe71559bd7332f51053f98a7e244bec Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659352013; 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=6YNFLexZ+Gd8JUf21cJKTq3lsmluVxD4wdhgw5j14wo=; b=Gu5Kn8KABWMUv6hNSTVq7hVJyVx+keh2v1Riiq15uVLx9QBi8uBEkreO/KkIK6RENsnx8U 9ANhkxL4NTD51n4def4sve7A0qbAOEdfKsMWtW8Df6PxbUTry/TL6y6YQKJMR4CG+5jK8x c8GbmEeqGR+VFIooSRp9WUdQlbgHMFqqg3apKoQ45As1aYG2Px1xNXnAbN5XMy70OIIVk8 tMjbk3OKUtdrMx1f7xRkaYuQEUTP329d6blVl/NZdub5pf5gaJI8c60CzPekGVnpGWgSmF Li8ijtpTWphh+R4oeBAiyImbWM6L29nfRXjpFJ7annEAZChh5z5FfAhr8Q6ewg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659352013; a=rsa-sha256; cv=none; b=yZLAccdyLjUd0Ewbe5jXrcG1F9xx4Wpwq+IX4zSnEXtBBPqadJafvJwYlmnKFp4/D4ulzF wbpFOmE4d1X4p1VdeODwgzrgj9OvX6Qt4UisZTuor6VV0Ke7PqK5P2/Lvtcn4u2Z/9DMq1 ksSdSb+rLHfenjBYHowBDXAOvIkV1o3lwEstg2xXNDVGxOHVUP+OBDR8Ut2WpbrEJFKEOr ErvoXQl/LsrKqPvg5Y4WsWAlWPwz9g/tnzBLcApsH8oaBP2OOUpmBTCq6e2NEahWLW/2Bn FLDQyhIErPGzZFbiwwa03D6LOa+Jl7lZ2HCayHlLM2PUo0n+HO4R2TvQJnzyUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by alfredo: URL: https://cgit.FreeBSD.org/src/commit/?id=c97585565fe71559bd7332f51053f98a7e244bec commit c97585565fe71559bd7332f51053f98a7e244bec Author: Alfredo Dal'Ava Junior AuthorDate: 2022-07-29 08:03:30 +0000 Commit: Alfredo Dal'Ava Junior CommitDate: 2022-08-01 14:06:42 +0000 loader: fix powerpc64le ofw loader This is similar to 5d48fb3b16c1496bf415fee620c61cc944b0326d. With LLVM14 the .data.rel.ro ELF section appears after .data, making loader behave erractly and kernel is not loaded. This patch makes ensures the correct order. 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) (cherry picked from commit 0df5a06864b351ac44a87246acc473e446da1163) --- stand/powerpc/ofw/ldscript.powerpcle | 1 + 1 file changed, 1 insertion(+) diff --git a/stand/powerpc/ofw/ldscript.powerpcle b/stand/powerpc/ofw/ldscript.powerpcle index 813459b8c242..47fe96e0233f 100644 --- a/stand/powerpc/ofw/ldscript.powerpcle +++ b/stand/powerpc/ofw/ldscript.powerpcle @@ -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)