From patchwork Tue May 30 17:12:49 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: 101028 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2337149vqr; Tue, 30 May 2023 10:17:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ48IkRLw9/kJtsbn8fkRNFIyo4TpwKYxzvLr/d9Mw7VKrvbdqGmGkqbfar6uiy7A+R+ZP5J X-Received: by 2002:a17:907:26c7:b0:973:92d4:9f4e with SMTP id bp7-20020a17090726c700b0097392d49f4emr2994704ejc.53.1685467054514; Tue, 30 May 2023 10:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685467054; cv=none; d=google.com; s=arc-20160816; b=H3eyFyIQB35MrafmRQBURa0QxHVEdJCCaFR3KQmYyD+9aVWoeL1II8aXHiciJ6Q4TW 5ZaoXl2f9+4OOuKJLeDeQQ8PckQ7GqT7vmBcRDEhrr+GeZp0/x5HGy/ziZNrUU8Gh653 1ex+u8dPcQsiaeLtmG3dNM3uTi3yFymgbp6/kJhr2DfDSPTfwBB7S8OqTeI7nBZ+pg4Z JBemNCwZ+IXTNWAkNFrd1mWoxHmwid2B3kswn/cIcmEtc9aSfS3r3qL8Vp1lzdxGeoZS lEKQLQsT0Djm7xFgLzZ+SCfMaSKvYCxDHRH4we66w3d7hSM1inKvy4eFOMzoeg7nuRuo N/Qg== 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=Id7KHJLSj4r9SpZJqAT4WYm9IqUQZUfX7yHEBj1ZcT4u4WdP5/wfC7UtP7ygWXf+3I 1/2Ls2fWLmcWRtoyFKy4Lv+IX234IUKz3cTslK8bQJUc3LIgUjhRHTVuVAd6jKHh1GZ9 Vxyl4K2bh520ewUbDadbKxs4Jk7QQmIhF9mxziiJqw4Q7eyyF2Zcj+k2Za1jcmv021I/ MIaDL31rkfwB8rXlukJn2p+i1FhWvGaMkFH6J1CUYySyJel7wfsiORwpLqWAFnJkS7wk pnEIh6QPup6q+J8NDBD9CytznKO6ArLjN+BEG8jwxBcu/hreo8TaSxa5E2anVl3dJBiS vF8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=ioKU7w42; 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id tc25-20020a1709078d1900b0094a780acf82si8103604ejc.211.2023.05.30.10.17.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 10:17: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=ioKU7w42; 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 9210B3855592 for ; Tue, 30 May 2023 17:15:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9210B3855592 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685466946; 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=ioKU7w42ozEjUGBA5bXYkzCevo7/ISTlMIP6XjgivlSqe9NqThbj9DyG8XBiOrcRe bZXia9w1Kky2H+kbFq9stWODFtx5wOdk4hiol1Ezo2YPnkrU5FknYMfJPPDEs24yf8 SjtUcNac3HLIDrPaDvym2gWQ2B65Y56OTTGbHbmY= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 04142385770F for ; Tue, 30 May 2023 17:13:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 04142385770F Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-64d2c865e4eso3576167b3a.0 for ; Tue, 30 May 2023 10:13:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685466796; x=1688058796; 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=X5OVJFPa+Qzd26fKHIDDVv+GRGkciWeazYr2I5P7tSufGTf8rtfItgGEV6XodLxzIF psFmlWIOtKQBDPO8NCKv9vH279bQ9sOw2yzHPZgA8wGUX6WxrYE9WzYZpp0zH9EKYCM6 vkrTCAg2HAKSQXLfI/8BKLufM7sdr/dGjSyLVGv0eCFuxvg0ZPOwt33aYYNs8YRmGh43 r9njQW46MMqsKhD395i+9oFOROEQU9JaMIq8d5wTgrdNQuTV/oqo3LMqWh38TRJ7jTfc +I2f+GgUqjA3jwcyBMeUOlK7TpP/vW/37xrMxBtqrcdOeoyAZ+TE91Q8ZOmwgFGlVL8q nmHA== X-Gm-Message-State: AC+VfDwyOE9YTLnC7ZzGiQEhLChMHBKk1ZNJy77r20J7npE3cYr+71e9 ezgNBYLK1tg08U2X0Ya8lD/XrCQp7Ts= X-Received: by 2002:a05:6a00:1992:b0:624:2e60:f21e with SMTP id d18-20020a056a00199200b006242e60f21emr3665297pfl.29.1685466796026; Tue, 30 May 2023 10:13:16 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.59.160.123]) by smtp.gmail.com with ESMTPSA id n18-20020aa78a52000000b005e0699464e3sm1824691pfa.206.2023.05.30.10.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 10:13:15 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id AB4507401DE; Tue, 30 May 2023 10:13:14 -0700 (PDT) To: binutils@sourceware.org Cc: Kaylee Blake Subject: [PATCH 3/6] ld: Add a simple test for -z nosectionheader Date: Tue, 30 May 2023 10:12:49 -0700 Message-Id: <20230530171252.269552-4-hjl.tools@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230530171252.269552-1-hjl.tools@gmail.com> References: <20230530171252.269552-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-3025.0 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?1767340301900497888?= X-GMAIL-MSGID: =?utf-8?q?1767340301900497888?= 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.