Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp650248rdh; Wed, 7 Feb 2024 16:15:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+BMAMsGi2CxtAVSElLMALXpBRlv2LyIBd6W0LW+7xi0fYMo/1kxaYlYCC3tj2aLFld4e0 X-Received: by 2002:a17:90b:1992:b0:296:f785:ac4e with SMTP id mv18-20020a17090b199200b00296f785ac4emr662839pjb.46.1707351335624; Wed, 07 Feb 2024 16:15:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707351335; cv=pass; d=google.com; s=arc-20160816; b=yNMgonXGAPZb+Led+zoPY/lHepVT3DLWoni6HeHh5i9fybOjgJPFZa6ocAs+OWGa4+ x96vPv0rC5iZnbMw24DjjXWAlsgp2NhfCTE2KV7DkwjJt/8c7hoTkTBG72tZWDqxMILe dMnczZnLQD6sq2g9tzgVhjI8bHcdR63HWkVscb9s3KBanQJBCGHNEguf+JN0HjM8fQnX e1gdKVq7FHGs1NaRNm+jtdOdf6SSGuTd/xAPBAVK40bMTzQ41v7oxrqCr9oSgGkDHVB5 /PDemJoqrCZ5OzYDjYmK3oIxfLipg6ckVApJ6l+pS+fMZGKci4QXQ1/W4W5H3n46zlcJ gHQw== 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=v1w9Hy6cI4sbnYHiXvoKmqoDSp7vTUmvTcmWiXWZFh0=; b=UaoWEPumRYNnBbjhSA1szzuY3KDJoht+/GUzzBmN4yqnx52sx8Z1Xlnux/WwIQs5mt KZ04tLYV3R0f7I6GsASlA1k49UM3A8J6IB+bqsOofXsuXlqL5rL07plRSjs8lX59V+SO tuFxjyaBr2R758ivTWUCnxe8YCLuvB3NKQVTbSoI4pDZLpdewAzkE9fFbItCVl0+TR79 eyEvvn62QZPC45VnD0N8RpzG9BHOYdmsJVl5SfQTZUItnkU4TCIas6E2kf36gzY/Snzo FmClAYyGt22MXQjCVSIVaEUW8e+2dcrG+caU5MgI5d/6LTtr6qBqAdNdGh0DgWRFKkHo Ag3g==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57319-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCURHGydkARSWh9LJN4T0G+Tsa72CFuHlqHXv6w11RU2q2l/bvZH5FK49Z56bflospuqAuTs+pSdv5YN4RfbSrVL0kxuBEzoI4QM1h5qEw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lx2-20020a17090b4b0200b00296a2340c8esi75871pjb.6.2024.02.07.16.15.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 16:15:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57319-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E5A5287CF8 for ; Thu, 8 Feb 2024 00:15:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54E111B59D; Thu, 8 Feb 2024 00:15:08 +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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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); -- 2.43.0