From patchwork Wed May 31 20:06:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 101572 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3145481vqr; Wed, 31 May 2023 13:06:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5AsA/VbgpRidp72jfK82PXP0knjGV7DTrORiItxzevQJ30FbU3wLCNx/HrjVCIDG7ch1ld X-Received: by 2002:a17:907:6e29:b0:974:4457:b6f with SMTP id sd41-20020a1709076e2900b0097444570b6fmr43152ejc.23.1685563594360; Wed, 31 May 2023 13:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685563594; cv=none; d=google.com; s=arc-20160816; b=dhn3UTDipemlljYFhgenr+Ei742uUn5xgda/fxUePGs4F5PFhUpYR07f8JPQlZX6OS WQErdBrY/FtxKMVRFwmkIQm3ocmZ2b4a2Jlyzl+fkivjdamSYULo8M9tF0uqJUf1C99l FpU43QIBdfw12iMGIIgX+P5XZGbQ/HOXaVppG7Pv+LCQuLurpGmFxi3wwlI46ZjgACip 4iuTJOEZhX3QGa+rf4+kh+f/kF9+0N+XAzCM7QSErFDkQh7wIzB6l9afBZNtaoM63iWn th6E1o5WGhqdf5g642dJnp0h4myT/0c1xiGWnVOxRpMxB0fvbcQ6cKyXwRGDfNrstT+z KPNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=2XDHLLwutvxPUkpfZF7zU4zcbp8fbvO7iYwBBoL9k7M=; b=RdPkMCXTST/+epuvLOxzZFHDAcWUPP8j1feRiGWwq7w3J0oxlyqPMFC2Ly0h8youKq rFlOxG3kAcygt9ylkymd/pusixAiWSq/bv/lyP3ii1ExsncuvITcjRSJldgU8oJWrT4e r9yxQOOdQSVScoFESlr1CGt5gVof5smdxxUUGSI5kIVNy9bhJHMrDH7MoAJ+08hOf/gu 5/Htb+LfDPFA+Fx0VyeyhhHzyzhSQqFWTjdPh4UgpuTWnzBFzAp6hT5bJRvs2nzvyaoa byKpqeX3YaUIJ/ABnKf2rg8ExF6yQhQde5/Wshn0+pv4btk4F/KzMzGp2wk+LzCbWeua SDWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=oFCXQ93j; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id x27-20020a170906711b00b0094ecdc54e21si10822561ejj.917.2023.05.31.13.06.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 13:06:34 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=oFCXQ93j; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 66B04385771F for ; Wed, 31 May 2023 20:06:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 66B04385771F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685563592; bh=2XDHLLwutvxPUkpfZF7zU4zcbp8fbvO7iYwBBoL9k7M=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=oFCXQ93j7g4DJbFMAnyhqPAjagFh7wI/unoX4OYOrwm5wPXtUMQcp0tBBsO1bt77v AEEQU8P2OjEAsZwuOID3X+2apVegQN/sg8MqE1GrQNw4mcGQPcrXkMxeT/uE36uDCC 4IQPRWA+4ZFORWD3+uFkY8uwqeeNrsDVf7NXB9as= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id E75E4385842A for ; Wed, 31 May 2023 20:06:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E75E4385842A Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-64d2467d640so174552b3a.1 for ; Wed, 31 May 2023 13:06:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685563581; x=1688155581; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2XDHLLwutvxPUkpfZF7zU4zcbp8fbvO7iYwBBoL9k7M=; b=ZSgPpWHxU7RJTcxkQOBbhGFwOgoAG1bKqj7XfrzYx7djld2OOjzp+RrBbiIaluU1EP 7M8ERfX9qCh66It0/HJMbFaOHpL6rcj8tco9E6DhD8PLoaaZkbCkZ8SIAKROeL4ySNB5 MjvQwVXwPfHjvXZDY6Qr0dUQMzg6aqD2U++drcci0wpW6x9z9+mHewHlRahScGJuAJW5 27kmagsHXm8gsdMMhIBx3BLcpFuzZoCMZ19sbuTju79ESK5ro5BJlUGa4lNLY3AcREuU aa9pepKO/Vrt+FEltlsfWd90dF6pv/7QnDZ+2ViaHGqAuOb7Qzp0qIkX2kuJOt+SBN1f f0gg== X-Gm-Message-State: AC+VfDyQAXUkdoxTAeN54ExRtn5/n0nOcRvX0c8FboBP9/JmPybl3fPF G2NkwhwcvrvYRUnLOArQGRgWnchYQZo= X-Received: by 2002:a05:6a20:1590:b0:110:a7da:b980 with SMTP id h16-20020a056a20159000b00110a7dab980mr8540463pzj.12.1685563581574; Wed, 31 May 2023 13:06:21 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.59.160.123]) by smtp.gmail.com with ESMTPSA id b4-20020a170902d30400b001b0395c3ffasm1780490plc.180.2023.05.31.13.06.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 13:06:21 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 1891E7402EA; Wed, 31 May 2023 13:06:20 -0700 (PDT) To: binutils@sourceware.org Cc: Kaylee Blake , Alan Modra , Andreas Schwab Subject: [PATCH v2 4/7] ld: Add a simple test for -z nosectionheader Date: Wed, 31 May 2023 13:06:14 -0700 Message-Id: <20230531200617.951996-5-hjl.tools@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230531200617.951996-1-hjl.tools@gmail.com> References: <20230531200617.951996-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-3025.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "H.J. Lu via Binutils" From: "H.J. Lu" Reply-To: "H.J. Lu" Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767441531838055166?= X-GMAIL-MSGID: =?utf-8?q?1767441531838055166?= From: Kaylee Blake 2020-03-XX Kaylee Blake PR ld/25617 * testsuite/ld-elf/nosectionheader.d: New file. --- ld/testsuite/ld-elf/nosectionheader.d | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ld/testsuite/ld-elf/nosectionheader.d diff --git a/ld/testsuite/ld-elf/nosectionheader.d b/ld/testsuite/ld-elf/nosectionheader.d new file mode 100644 index 00000000000..7154e095e18 --- /dev/null +++ b/ld/testsuite/ld-elf/nosectionheader.d @@ -0,0 +1,12 @@ +#source: start.s +#ld: -z nosectionheader +#readelf: -h -S + +#... + Start of section headers:[ \t]+0 \(bytes into file\) +#... + Size of section headers:[ \t]+0 \(bytes\) + Number of section headers:[ \t]+0 + Section header string table index:[ \t]+0 + +There are no sections in this file.