Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp34663rdb; Wed, 14 Feb 2024 11:48:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXchFm5y/lXTCkPCt7H5MjR+K+OPY+QR3QFFdgB1Ewq2OaMHFxlvVI2eiZ312wpWZO6n2P2UCnYgXVA+3bBjwMffOjnTH50aILXfDhzgQ== X-Google-Smtp-Source: AGHT+IGhXIoDRQds+gQ2EOpggsWVV2qtM9+98qhyWpM23HvOJ9QulnX/XaMy2nzCaNF0MZslykk8 X-Received: by 2002:a17:907:76e5:b0:a3d:e9c:6d3a with SMTP id kg5-20020a17090776e500b00a3d0e9c6d3amr2873562ejc.49.1707940126647; Wed, 14 Feb 2024 11:48:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707940126; cv=pass; d=google.com; s=arc-20160816; b=GmqGGsnl2u3kmMu2t7XZvDfTumVbgNiRS0GmM1v0fQQk0OhYIxdMIafuCVJf7tThSV 0O0InYVb4lUUHuhL5cqRLwPStgIq5hRmAZsk9UGZg35c/wySJSsR11cYiY+QoSImcbVP bXq/ay+KRfvCktlmwpcGmGpRdQqoovRSrfHVwlfJ3IzOpuMRSOJjnJzguT4u5z5ySUbh uf+tDGJk4XApexnCRWuuOcab9KEgIcgtu4SuFt9zKEFYpMnYEkuFwt1zEuj7sLwK20E7 oISoVhzmOYBJZpALDRvU0k0Xtn9nshx4jZGU98vutIrPLK7X1hD/ytvZxVFBpuFRuf2s KwCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nWC/VsxT1tyROCFv2HQUYuAMJC9T1HYHiYFvNr8JaV4=; fh=fDZyZjklmRrNV3X8u6fWLb2V+Grxb8CaDDlqaN6EW/Y=; b=pN2PvuoWpUqnFRErTNf3Z/lv4EFwIwQnQGsevGJ5zssAQD1CkqTHJpo1QLbhV5B+jJ Ov77mL1h5UjfrldkslzWlX8jMoyj8wdKIMj6+vBux6diJJqgqRd3tEBkwMFK9g02fu0A PLoyWZotmle8rz9opx0hpxhdbQAGNUgv4mU7WX6/fSbzDmUp7PK5tm5U8EZFjVu7ZGar kdtpuFOn1EHHGRRaaTiWWhjjcJHdjlCsQUWgqYrKrLsxUqqWUAGRWg7FFEnfCu3ga1LK WkbWE0KmBx2YXAUFlPGNq80gdKvlA5vQCIc89kTBt+DRXNi9InYPNzBeImKUFzjmBHW8 Nukg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Oni3xf62; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65897-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; AJvYcCVAG22ZYro7r4dpS5FgaJOErCaRSacbRHGPoy5QW3klh70YKjGp1mZtryvCtffjaB7eonRbDzS8P+BP5xrr53iGoFx56vJB6jrD6Pae/A== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ji19-20020a170907981300b00a3d58b557c8si653706ejc.42.2024.02.14.11.48.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 11:48:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Oni3xf62; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65897-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4BF311F219CA for ; Wed, 14 Feb 2024 19:48:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEFDF13DB88; Wed, 14 Feb 2024 19:48:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Oni3xf62" 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 0760413B7B1; Wed, 14 Feb 2024 19:48:41 +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=1707940122; cv=none; b=EXq1vwhzM0Q8X3N+KEYZALlv/1t1lVi1sAdtGclRFQVTdkdTyiA1dfPECXGRU0uqLtoe4HOGFj4vK23DyODsXC9B65bY9RSSq61VdWgOMZFCDFoHILENEexpMVloYg26/Tra5cOnDWi83ion4H3X+lTBqxghwAm0UppN0eDaHrA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707940122; c=relaxed/simple; bh=IT+pJ7rLKY1EyWCszkD4RE84IQ1WhJVQ6bIT6dyePEE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bZSw6OjWlg2Ve+TnNGxtKaMo2B+5pPbYghr/BeoPWbtr9hKa3iNRwA9Eb923ZrJfauWBU7Cnh3y7sd34IkwqkCr7nDzAmZZ+vCY0EdbGOxGPrOwNnVjhjSP5sg9PD4Tw2wnQeUDGyw0LwP4dnb5acsP5csi4nlE28gaMBapHWkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Oni3xf62; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4834C433C7; Wed, 14 Feb 2024 19:48:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707940121; bh=IT+pJ7rLKY1EyWCszkD4RE84IQ1WhJVQ6bIT6dyePEE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Oni3xf62ILDZThYP1kvQ4yAIPTeVwO45rf7gxV7gjrUiaXmBKUcHEjPY3XLcajZPd Ct6/gO1sDzXCSdCAHoylQ3bOFEMoBGAhj94POsADd7U5ZfAVrgFVnGfhsHGJa7BCBB YOr7iAMnWifswpRb/IYMLSG0eYiaT7KZL7IRzmO87hzOxA8dZ8SmF+tYg09jV5ZCbK u4bqOx0Wq9SY4uceRR57VltRylku6P1Aw2FRu/ytddSXq099EP+RdtOz5fSOIoqJDT rSlSPl2x776TR8oIX5qWKy6DhHGJDEkiEItvcLeq1zVP8h9ci/haiil5dDHr0Ji91K bb+ua854y8rSg== Date: Wed, 14 Feb 2024 12:48:39 -0700 From: Nathan Chancellor To: Heiko Carstens Cc: Fangrui Song , 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 Subject: Re: [PATCH 03/11] s390: vmlinux.lds.S: Explicitly handle '.got' and '.plt' sections Message-ID: <20240214194839.GA1179178@dev-arch.thelio-3990X> References: <20240207-s390-lld-and-orphan-warn-v1-0-8a665b3346ab@kernel.org> <20240207-s390-lld-and-orphan-warn-v1-3-8a665b3346ab@kernel.org> <20240214122055.6438-D-hca@linux.ibm.com> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240214122055.6438-D-hca@linux.ibm.com> On Wed, Feb 14, 2024 at 01:20:55PM +0100, Heiko Carstens wrote: > On Mon, Feb 12, 2024 at 09:31:53PM -0800, Fangrui Song wrote: > > On Wed, Feb 7, 2024 at 4:15 PM Nathan Chancellor wrote: > > > + ASSERT(SIZEOF(.got.plt) == 0, "Unexpected GOT/PLT entries detected!") > > > + .plt : { > > > + *(.plt) > > > + *(.plt.*) > > > + *(.iplt) > > > + *(.igot .igot.plt) > > > + } > > > + ASSERT(SIZEOF(.plt) == 0, "Unexpected run-time procedure linkages detected!") > > > + > > > > It seems that arches that drop .plt typically place input section > > description on one line. This saves vertical space. > > It's shorter to use one input section description to match multiple > > sections, e.g. > > > > *(.plt .iplt) > > Yes, I'll change Nathan's patch so it looks like arm64: > > /* > * Sections that should stay zero sized, which is safer to > * explicitly check instead of blindly discarding. > */ > .plt : { > *(.plt) *(.plt.*) *(.iplt) *(.igot .igot.plt) > } Thanks a lot for changing this. I tried to be consistent with the rest of the linker script but I guess there were not really any sections that had this many lines to make it one lining it worth it prior to this point. Stylistic expectations are hard to account for :) Cheers, Nathan