From patchwork Mon Jun 5 15:32:19 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: 103351 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2769442vqr; Mon, 5 Jun 2023 08:33:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5X939aNYdxiaNxn9+LlU74vDPguKNosSs9FMN8Ywxy1IjU3pYkJFOfqFKYp21KJi2doBju X-Received: by 2002:aa7:d6d1:0:b0:514:9aae:452a with SMTP id x17-20020aa7d6d1000000b005149aae452amr7116799edr.34.1685979226295; Mon, 05 Jun 2023 08:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685979226; cv=none; d=google.com; s=arc-20160816; b=bspmjfUXwbn3vlOvSCZ7q0ie4ZSlFY2XpeDFCFkMslS8WATeXs7YckUco/cqEFwJSi 98KRqIOA/DNRAy/ZMhhyCrRgzxGFhM6ACr1szA55FhDRs9FRiJMl5/38s8njrLQ8Ylzt iv04LtwyGCBO2UaUaCIxWB/X2hPlevFCYWqHnewQ1sIJA4vzVffUpV4R97yw/86F4vJM fzW+QUbR5wA1SGBJdb+OrK8JTEjhSL7ab9B2WL0fJyvaGZOEz+iIUwNIH15Ntz7n+Zmw 1bXNwG1+DLhxUOzywpgzSGpLLXLL3cTGuHvnhzwIVZ+XGT2ffVFPidvm09EuzQNMwM5b uCmA== 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=O8ZDE2gU/f7zOjwLoU1rb3/Q311/lvMaiT5YM+DcKJU=; b=fseU66BeGZ+reBzJ0H4s/dCLDadBiVIl6ZgXY/BLqHrOS2rksMUzwpJ0ul0r50b7Sn FqhATCIuyGw0KSGNWSUeibZFDVAaQaQgczh5GdPZiRNpyQYbeJnJf8rbxStPbpYvlP6F hxYPcz23x2Af8JK9/KbjNa9+iYqQyG9bhBemNwUWlL84xr5LDJTkRceTnt60F6DTaB9u MqkU2CqBDZik4tFs2Nx0F/yoa117F1DJ6JZq5LqknoxNqqnvV3VEQ/KNLTJu0knWLgow MjXNFdNrd8x1//H8DIyojYNXhstfH8+5woLqL92WxRdqq4L8R7PR4d7P19bk8QBLeEN7 2cvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=rBXhjHZi; 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 ([8.43.85.97]) by mx.google.com with ESMTPS id b7-20020a05640202c700b00510b7b71b6dsi4866868edx.520.2023.06.05.08.33.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jun 2023 08:33:46 -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=rBXhjHZi; 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 919FA388301F for ; Mon, 5 Jun 2023 15:33:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 919FA388301F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685979183; bh=O8ZDE2gU/f7zOjwLoU1rb3/Q311/lvMaiT5YM+DcKJU=; 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=rBXhjHZi6aizmdesSZ6Yi4tnFG22gtoUaW8nXcd2xxDYpyzCU3Ksk/Sdu6nbH/K56 iUyd3agq4rCJTDn7IsMzMdhPUfuOxwOekTCAymG0X1r57+iEChSlsrDnZXJ3Ks+UYv 9nJtekBQoN6w+mMSr7R58f2UBBa91VnBn7oHq4vQ= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 56C69388202D for ; Mon, 5 Jun 2023 15:32:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 56C69388202D Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-65540715b4bso1012707b3a.0 for ; Mon, 05 Jun 2023 08:32:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685979147; x=1688571147; 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=O8ZDE2gU/f7zOjwLoU1rb3/Q311/lvMaiT5YM+DcKJU=; b=gXcGodrpl71n2F4qBxUxTw5Ag34kMedip4dbZVy9/dRFVMQG/THiyAwNdSJEedCVwS Kv0MKWRRLYkv1gSf/mQhZIiV0C+VrpLDREuacDRDC4aeRDVOKIWPbugUFe7wMIGQga/U deBoVnKGXrn0I1/EhOyKUzamV3+JG+xYinxLfTMyXLLIvCa9uYaPbr1+PSVnbef6j5D+ ew2HAyqJ53la3dg3yjmABpRg8gEqoAv2CnvV2u1XXCQpDYFnAlqWH/RvwwSsakp3zOIw xSLmlDfeAsie6M3y5HL7tkq5xsSDTtZd60EWeTn70mSCGFPATyBuJQl8oiNcp63uvz98 A34g== X-Gm-Message-State: AC+VfDxeBu8/uqi4I+af9MOHiPcQaWiTJyLTRq3dSiW8NiT0ejUaBJof BZK3CTDqeEp2ym91IdN/RqU= X-Received: by 2002:a17:902:bb92:b0:1b1:7362:9a18 with SMTP id m18-20020a170902bb9200b001b173629a18mr3061107pls.27.1685979147211; Mon, 05 Jun 2023 08:32:27 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.59.160.123]) by smtp.gmail.com with ESMTPSA id s10-20020a170903200a00b001acad024c8asm6751715pla.40.2023.06.05.08.32.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jun 2023 08:32:26 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 6DCB274032B; Mon, 5 Jun 2023 08:32:25 -0700 (PDT) To: binutils@sourceware.org Cc: Alan Modra , Kaylee Blake Subject: [PATCH v3 4/7] ld: Add a simple test for -z nosectionheader Date: Mon, 5 Jun 2023 08:32:19 -0700 Message-Id: <20230605153222.1728119-5-hjl.tools@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230605153222.1728119-1-hjl.tools@gmail.com> References: <20230605153222.1728119-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?1767877353353914987?= X-GMAIL-MSGID: =?utf-8?q?1767877353353914987?= From: Kaylee Blake 2020-03-XX Kaylee Blake PR ld/25617 * testsuite/ld-elf/nosectionheader.d: New file. --- ld/testsuite/ld-elf/nosectionheader.d | 14 ++++++++++++++ 1 file changed, 14 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..cbaea669b9a --- /dev/null +++ b/ld/testsuite/ld-elf/nosectionheader.d @@ -0,0 +1,14 @@ +#source: start.s +#ld: -z nosectionheader +#readelf: -h -S +#xfail: [uses_genelf] +# These targets don't support -z. + +#... + 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.