From patchwork Thu Feb 8 00:14:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 198133 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2587159dyb; Wed, 7 Feb 2024 16:16:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPxLAffTD6WOPEfj1X7HuxuTVRhwtLQbGomRwOk86wElHAT3AWe9CZLVPVN1enXegQKJ9P X-Received: by 2002:a05:6902:1b0e:b0:dc7:3362:4b31 with SMTP id eh14-20020a0569021b0e00b00dc733624b31mr3769404ybb.18.1707351377698; Wed, 07 Feb 2024 16:16:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707351377; cv=pass; d=google.com; s=arc-20160816; b=KkOmHFceZo+nYu9xcul2yHdmdVaGyFsOOf/ob2gA4cDilAjTC8hspFfzvJqVEOdaXT CG7PZhZiV2sJtPJnZNzbyQ6L5NIH7Bt1KVKbEOuu4uiu9oLEGBlOMjdHvFCTREmY+y8Y F91Ec36yE2ndteihrflItx6VlaWhlXZBwIm3u0i2SAt68ESua0YVR5GKKEFvZW7AQAl0 +JdZxPqJ2oduh4CwLdbUJovwEdP94MXJUTSlSQSnOJYEuivYZcGID74D3rAB4EgHYHOb dgx4P7cOriHKJueltxwFfaAUnMKqKbjuzf9DOmyEiC3nkQF9SrvNZiPdHtlTWVKDji95 TUxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=vMptkiDQ6pb0U7oanWdm3DEolJGZBHlhrN9Io4e14Lk=; fh=+0B8QQkH5hDFOSF7st9WLCA+EaQ12S0LqmY/sgQnMWU=; b=iuFfrwbHs5wkZht80KAXRVjThO63/7JhHDrgvelh7hXJZUTnHAYBCcuWQzXrJkKKSb R4o7mbhSz13sG1fSdhYJWudBxwbc3v72NOPvJraFAlHfe2M7QxohY4ZhpiOmQXM7g9vA wq7aawXet5VMz9hOmc2lS6o1dFI9KabP++njMz+hN/svrVUPse1x41llpFZ6ML7203mI B7DPwdofz6O6K/gZyx0wRUB+iMs0m7eHq8YEYTxdWg8sNfThUPZev11a1Lh8FWKH1w8+ lwPf2RKS10TSzgeTwjpRLATkFYRWw2UEHqQP3lVn88UkHpOmMyr5XpARChX/iKItssSQ zO7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hA8+DiPe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57319-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57319-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCXSLSrAIqhnHZXZbEIPfQbhbxU5vAFdItvrs9Y2KLf04oxfWfJn4gw/1UfB7kk4eYPo9jrqr6uDPFwWBD2zPQgt5CwU9g== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m24-20020a05620a221800b007859d41cd29si2138678qkh.428.2024.02.07.16.16.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 16:16:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57319-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hA8+DiPe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57319-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57319-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 784361C2175D for ; Thu, 8 Feb 2024 00:16:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 423DE27459; Thu, 8 Feb 2024 00:15:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hA8+DiPe" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66A7611737; Thu, 8 Feb 2024 00:15:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707351307; cv=none; b=VG8WUEPxPj3Ap++ObRmK8kP8vEan+2KiapcKryBDqeMXeziSz9y2g6zzG6J+qui9XLskqpeglg+MLxJnEJRTiXASz7xo/wcGinlW4/gZJ0M4dCgu9lI74lHXRtP4wYZEjfb+DboeqjuV4KfJLNQOQbNiv9iO0bVATAqErGanZKc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707351307; c=relaxed/simple; bh=6nAKdBNVuZF6DFmdTWgdfLbT5YqqyFnTFc0PCtVc7no=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aed9/sqDfBgUxNqUMQu1eNthBg7QpVKb28aFREA9vOFZ7hMajPWC03lAqhnw4ltuN+t1C7RFfXRKeK4hsbS1onjwIQk7FVo3lpcF0pIKbVN1Vc+HCsXKzvkydCcTCRlpiFD8coG2olNYgQv1u0LztQWcp9LMqVo8BTpoy/IiWZw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hA8+DiPe; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FF00C43390; Thu, 8 Feb 2024 00:15:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707351306; bh=6nAKdBNVuZF6DFmdTWgdfLbT5YqqyFnTFc0PCtVc7no=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hA8+DiPeT/iFERysdie6DstYmrI9RLIi4uno7/7MHM7nN4UbKGNJKnQO+dZZC/880 DHYZUF3G99zPgvKkQH3fHozWRfeG4D4DsdsRX1CIAUoWcPIb/9oa1S0XaJsU6UI7rA Gs8JiXKB59Q2L9f8YYV+skGAnOHpscgIV1UwEPgAa7srpgzVx0/V37whlcFpyuuFUP EjSJNuv9KTBhNowf4mWyqt91yyCNhVzGZW1Gwig13XbxDkaENe+pA7tbdPDjfKOp7k cqJIu3nqW8tLY+QO5+Y/hcjIiofSq6ctuFfJVFxyUJ8CdWzZBpMuS66cdvOdKY0v8M FIqFC9JeY1i6g== From: Nathan Chancellor Date: Wed, 07 Feb 2024 17:14:54 -0700 Subject: [PATCH 02/11] s390: vmlinux.lds.S: Handle '.data.rel' sections explicitly Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240207-s390-lld-and-orphan-warn-v1-2-8a665b3346ab@kernel.org> References: <20240207-s390-lld-and-orphan-warn-v1-0-8a665b3346ab@kernel.org> In-Reply-To: <20240207-s390-lld-and-orphan-warn-v1-0-8a665b3346ab@kernel.org> To: hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com Cc: borntraeger@linux.ibm.com, svens@linux.ibm.com, maskray@google.com, ndesaulniers@google.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, Nathan Chancellor X-Mailer: b4 0.13-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1553; i=nathan@kernel.org; h=from:subject:message-id; bh=6nAKdBNVuZF6DFmdTWgdfLbT5YqqyFnTFc0PCtVc7no=; b=owGbwMvMwCUmm602sfCA1DTG02pJDKlHZNlZeKPWHj3bsmm32I7tbALmN07censyX3bNjiXbD 3+7/upVbUcpC4MYF4OsmCJL9WPV44aGc84y3jg1CWYOKxPIEAYuTgGYyHx3RoajEy4uKhV5rt6X nc/pb7THm9GsQzKjtjb6RqCM69SpP48z/C/cZPA3rjlmv4m4jvvj6LfSRlvj5u1u+3PGoXutawJ DBzcA X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790287678386944606 X-GMAIL-MSGID: 1790287678386944606 When building with CONFIG_LD_ORPHAN_WARN after selecting CONFIG_ARCH_HAS_LD_ORPHAN_WARN, there are a lot of warnings around '.data.rel' sections: s390-linux-ld: warning: orphan section `.data.rel' from `kernel/sched/build_utility.o' being placed in section `.data.rel' s390-linux-ld: warning: orphan section `.data.rel.local' from `kernel/sched/build_utility.o' being placed in section `.data.rel.local' s390-linux-ld: warning: orphan section `.data.rel.ro' from `kernel/sched/build_utility.o' being placed in section `.data.rel.ro' s390-linux-ld: warning: orphan section `.data.rel.ro.local' from `kernel/sched/build_utility.o' being placed in section `.data.rel.ro.local' Describe these in vmlinux.lds.S so there is no more warning and the sections are placed consistently between linkers. Signed-off-by: Nathan Chancellor --- arch/s390/kernel/vmlinux.lds.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S index e32ef446f451..d231a3faf981 100644 --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S @@ -59,6 +59,9 @@ SECTIONS } :text = 0x0700 RO_DATA(PAGE_SIZE) + .data.rel.ro : { + *(.data.rel.ro .data.rel.ro.*) + } . = ALIGN(PAGE_SIZE); _sdata = .; /* Start of data section */ @@ -73,6 +76,9 @@ SECTIONS __end_ro_after_init = .; RW_DATA(0x100, PAGE_SIZE, THREAD_SIZE) + .data.rel : { + *(.data.rel*) + } BOOT_DATA_PRESERVED . = ALIGN(8);