Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp93641rdb; Wed, 14 Feb 2024 13:56:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWTRXs1vnn7ncGooLn/JovG6xO6t01aXM+E8gwxLVffkkL8W7j8KI/Vt22tuNTSR8qQGiUeI+p/EfJJZk/AYfwnVth++lf8Vv+ewC9NaA== X-Google-Smtp-Source: AGHT+IG9e8xQcbhrs44LCseDdRLVOaZ/PMhIhYHKJxIYkg9ww54sKJwus4oxc+//sLU+NJ8oBD1M X-Received: by 2002:a17:90b:3655:b0:296:221c:f358 with SMTP id nh21-20020a17090b365500b00296221cf358mr1508pjb.20.1707947819085; Wed, 14 Feb 2024 13:56:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707947819; cv=pass; d=google.com; s=arc-20160816; b=Yzrfpg3lF5m52NcG1jLQzJa8XdqTyov/48dEbOrlPgGZC2QdXUQ7Qbky/NVk8o3ppH y8eBkybSY+xzWyilCX7rUaofLCAbZZvFOSQ5V4qshM88PczsUX1mA2Ta2z2f+uHJQqF4 8C3puoSDwmPzlJSF/7zYFUIeSgWfhtoS+aaf+zajKRlFXbjRc7Gxt/mX9kPtN8vtWBln trUONOEZch6FQtekCIq3rpapQLeUHaoNZLnlEaSLZsQpShLvidzqJIU9a0PNJ9Fil/7p F/6evK+CWA51P1ylRo7V08T317415KINNaoPHJWcdEB8pauqeQshdeYKVsyIh15VFknu fu5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=q7jzhXS2LwlH6Na13t2uRB5AnuKFssoLivXgy4Bk1Ws=; fh=ikYng/QP/Jju+APitJaoqwSiHWr/Al0lQvac/Z2bfFk=; b=dO2bJOy7dF+nu7WTbKfQjbY/PNNmRmmAUeCnCA9dIgZtOlJIsqQsEuGs3Vgxwgw7Tm htrJ3Lkq+BjPwTB+g987NONxMIfgncTWJhHvG68Lw2knJKiLdjh4IJUN1sDkxazc84Bx 9KA2eZvkyIQsiRoj9q3j0j+oEIobtEHGGdMUdsx2NYDIeXE3JVSwmx3MUmLWvMzv827B 8HsY+ex0VzJpTiPMCfYDpuWCiZoBA4C0M1IZ1Prnr+sqsqqYlEL1KAX2jmfznCvNjhkP i3/Oz8RQjqXZACh9cHxppuXebA0Fa/AdKghKhC/pS1YSlcOaAVf1VhOCA0zxCLhIty1t CLZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=h8BmpZ4Z; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-65988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g13-20020a17090ace8d00b0029689cd7463si1707234pju.186.2024.02.14.13.56.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:56:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=h8BmpZ4Z; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-65988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F07E9B27EF8 for ; Wed, 14 Feb 2024 21:32:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD6FB13EFFD; Wed, 14 Feb 2024 21:32:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="h8BmpZ4Z" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7802413EFEF for ; Wed, 14 Feb 2024 21:32:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707946346; cv=none; b=L00UWbm5TjvC4eJQkfdwEKGBxv8U/99CibFlgB7oh+8lfYfvHSFa2mkwQHHKQCh+LLry0pg0lNDApzIDdZjAlvcHKVirc3PtDwbOig5534sjunVq0vjgVArM9G0AbGGv78sDWehFPx4AGND1tayuPxZ83Zvs+itK6IVx0V7IM80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707946346; c=relaxed/simple; bh=mzDDSMUcdlm0Up4f4mJcp+HyVxmyqjTrTC7RCdD9z7Q=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=FH3h27kVeYQxWppjGGA9J6NtNFQI0EnW2+3MKOQhfnI1COAXXT1hSXhlhARInJJN+TG5+Mq6g/xnGRBTUpSaw0J6dEeFzoeYz+7+eZ02YT0CJOZWvslRgxGLRVQDG2aCH3G6zXUD0yNpLfnHrJ81/cMs2od8JdhEKEcqoM++5rE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=h8BmpZ4Z; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4120933b710so5445e9.0 for ; Wed, 14 Feb 2024 13:32:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707946343; x=1708551143; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=q7jzhXS2LwlH6Na13t2uRB5AnuKFssoLivXgy4Bk1Ws=; b=h8BmpZ4Z0stU30SoQgsIP+67tQwaGwKNEwCCgoNFJZcpoxW+as7Me2Bt7XjVbQm6iL AgKJDEDBA3XS2O7foQfR7kDeeOCUhjmt6dpYMsrLZOP77b2cuvswX4PAyTg5+8nFqEvg C9leQiytaJU5MYudrnzWLyt08XbmrQBxRgCWcf6HQbB9SiOzeB+iRXjj3MICr825V7pM v7TQ4M9hg0NrdD5loYofuJ32PBB8GUZK62J9zMjz/h0ZSAKYN088QSCUimIYC/vzeCe4 ZwvNu8Gb3p0wrwrIaAyJCkcRktiA1mAPpJdgqnvaR1wFEJiYA296oYAJ/n7ZrWMHY6lk 8G3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707946343; x=1708551143; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q7jzhXS2LwlH6Na13t2uRB5AnuKFssoLivXgy4Bk1Ws=; b=d7gLSomjwcaVgIoQlMCGAAMNmhg+JkZF8R9F3K5kcz1U/MKbzyThqvsbwTO02/QCDf 5C4W3OocTn3/xNfrmCTDbMbml8Cg0myjkL6etnaByaNCf7giA0SnSJP5JLvgprQkkDbs VScpdvGbtxBDYgfS1tZ4nVmiBGOkfnEy+801ShmD/YM5BC0sFCzkTDthRxnzCuQwTFlb S0RYU+nbsvPAiHesnhInRWlzF29enBUUOlY38NHBobBcMVGCPo863Z74+EhoNw8aWw7P Y8YUGtd9rw9zFYs5xiGvQNHgFTd6x7zo1Gw9QHCyKV1GpAQTgv319M7T5+geV91S6yKj 2hbg== X-Forwarded-Encrypted: i=1; AJvYcCV3ItZtnyWpP3Cjg9K9buNHVUUnbDalTej0dtC1Xb/MjOk4TTBNiraIHkNZmC5ctt32y5Hteu5JeP61VlZrU2U1Tm7/qgx8DSU6ssGw X-Gm-Message-State: AOJu0YxrE3NE773Wz6R3ZteLX/4fWwKMvoaR2vA1e+sG3BhznIu30ulR +AJKFAK72OrqrzpZNksCeZb3g4JtuzfLfg2c54twe4Ii+zIXY3W1FQqXxiAL4EZpyYUoEeKSyOF Y2LiXlpWccPmW1hlwtB1ycLbJSM6AFfoKNI+6 X-Received: by 2002:a05:600c:a01a:b0:411:e72d:e5c9 with SMTP id jg26-20020a05600ca01a00b00411e72de5c9mr223035wmb.5.1707946342669; Wed, 14 Feb 2024 13:32:22 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240207-s390-lld-and-orphan-warn-v1-0-8a665b3346ab@kernel.org> <20240207-s390-lld-and-orphan-warn-v1-6-8a665b3346ab@kernel.org> <20240214121755.6438-C-hca@linux.ibm.com> In-Reply-To: <20240214121755.6438-C-hca@linux.ibm.com> From: Fangrui Song Date: Wed, 14 Feb 2024 13:32:09 -0800 Message-ID: Subject: Re: [PATCH 06/11] s390/boot: vmlinux.lds.S: Handle '.rela' sections To: Heiko Carstens Cc: Nathan Chancellor , gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, ndesaulniers@google.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 14, 2024 at 4:18=E2=80=AFAM Heiko Carstens = wrote: > > On Mon, Feb 12, 2024 at 09:18:34PM -0800, Fangrui Song wrote: > > > ASSERT(SIZEOF(.plt) =3D=3D 0, "Unexpected run-time procedure = linkages detected!") > > > + .rela.dyn : { > > > + *(.rela.*) *(.rela_*) > > > + } > > > + ASSERT(SIZEOF(.rela.dyn) =3D=3D 0, "Unexpected run-time reloc= ations (.rela) detected!") > ... > > Commit 5354e84598f264793265cc99b4be2a2295826c86 ("x86/build: Add > > asserts for unwanted sections") > > specifies `*(.rela.*) *(.rela_*)` but it's not clear why `.rela_*` is > > included. We only need .rela.* (see also ld.bfd --verbose) > > > > This patch LGTM with this changed. > > I'll keep it as it is, just to be consistent with x86. Sent https://lore.kernel.org/all/20240214212929.3753766-1-maskray@google.co= m/ ("[PATCH] x86/build: Simplify patterns for unwanted section") to simplify the patterns in x86 vmlinux.lds.S:) --=20 =E5=AE=8B=E6=96=B9=E7=9D=BF