From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-65540715b4bso1012707b3a.0 for ; Mon, 05 Jun 2023 08:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685979147; x=1688571147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=O8ZDE2gU/f7zOjwLoU1rb3/Q311/lvMaiT5YM+DcKJU=; b=kGFdm66MCgfGMj/vXO5a988AoAqJMm4tD7+TRhFYi9KjwaiH0Z48rGAXcdbRZ/V/xs ZtalXDhBmhEv5N7O7P1XR/+muDsyuqr8Ttpr3mqtQvBqsYrWE3lokpQaw21xuChyo9Rw N39Gyi2UWO+KkmelloUWHKv4H1wV5DIfJxeb2xH1Lw8R4yiVJ4AiPwUNJoOqs8EJegPd RJeL4asiaKT0BNr5frqivRgU0JurG/rOjDmOYjk11KD2bQ67AIh3wH7GEEGaaizWQpO5 kbH8+vzuk+ttGN7u7vySZV9xNEcsDar82+Il7oq8nIbbF3FUiMR0pF7fOOCeuTn77vM0 7nug== 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-Google-Smtp-Source: ACHHUZ4aWqFfg17V5azv8mktgmaSW0XQzDk2pHJE1wQ4jhaqzEzncM0sU41YGLL3Vyh0MM9Dk5II0g== 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) From: "H.J. Lu" 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 Content-Transfer-Encoding: 8bit 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 List-Id: 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. -- 2.40.1