From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id 726FD395343E for ; Tue, 10 Mar 2020 00:12:32 +0000 (GMT) Received: by mail-pl1-x635.google.com with SMTP id f8so4661594plt.10 for ; Mon, 09 Mar 2020 17:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Yo1zifWcYHMx/klWFsFA6od9uio12TAR8oa5ztIh75M=; b=dSVWEGNNcRoDnPdhxp+iz7qr54cCNNBFIBEy+WrST5ikujW9vtT6BMJYILGVbco9Z1 eW0nV/Xr0fc2Km/YUaqtOLdB9cs9Ka0MxcljSE+DE+SJQksyKz5aV/0f5EIbC+sg25Bp TgV5/uLLDG1kbwH93lkcVLae+kEhlu1y+RjDB1dZjZtHn31OcTATtjNMttxQkITRxnBs TfEMR5nFRUzfCrw60s9k5ay8bZ/gN/vQc2OlAhpd0crU3qQ/ru8P+59BsYjNHKWf0Y5c +iBU2eMOmpBw89ipn4E5Fxkvs5orTw4gXVi9ueNv7D4EP2EcKXMuzoceZrgeBiEbki6j 0QhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Yo1zifWcYHMx/klWFsFA6od9uio12TAR8oa5ztIh75M=; b=lio0n3UDs6HgxhQ7SrTsRIGzOPWVuj+qvMrPAesTO0EiZ0obk56R5S/wUwxpgghPU0 +ftx2VAf0yYYDJUa/5G45CSsx9/fmGy9G1RGg27R76HTAEcKSP/eH2otkvsq7//Z1Oeb 1LSO64JgmW3resrfX1T7mZCYDqNZvCwy8DGIrtqzBh3p7OsgSWYqoTlhudmJ/8qrLD9M NoTFkURUKtDPIXUECKeHQeePy255wCFOHzXkxuay1hMQoWR/JvsJF4dUa1oiwsiZu6Ho mIlusAf3HV6W5ISW477YKT722jlHk+kcP85MLW1ScUCdpeTA/4fmOpbqDRWqjYySKk5I qlkA== X-Gm-Message-State: ANhLgQ3ZzBTkPRveNGc0Uvvc0uGB79Rt6o2+faVjp8XBtxQkcsB9GjTb 12KSPnaTAWNZosOk+vuz7pIBVrkD X-Google-Smtp-Source: ADFU+vvLySKz/Le712c8mE/TXugBFik2IKsVyk0LYytPzMMHB3ChX9zuZwRkXpNck9VRXWsSxWCnXg== X-Received: by 2002:a17:902:8604:: with SMTP id f4mr18545089plo.278.1583799151614; Mon, 09 Mar 2020 17:12:31 -0700 (PDT) Received: from gnu-cfl-2.localdomain (c-73-93-86-59.hsd1.ca.comcast.net. [73.93.86.59]) by smtp.gmail.com with ESMTPSA id p7sm34559531pfb.135.2020.03.09.17.12.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 17:12:30 -0700 (PDT) Received: from gnu-cfl-2.hsd1.ca.comcast.net (localhost [IPv6:::1]) by gnu-cfl-2.localdomain (Postfix) with ESMTP id EB2C7C04DD; Mon, 9 Mar 2020 17:12:24 -0700 (PDT) From: "H.J. Lu" To: binutils@sourceware.org Cc: Kaylee Blake Subject: [PATCH 4/7] ld: Add a simple test for -z nosectionheader Date: Mon, 9 Mar 2020 17:12:21 -0700 Message-Id: <20200310001224.131714-6-hjl.tools@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200310001224.131714-1-hjl.tools@gmail.com> References: <20200310001224.131714-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-27.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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-List-Received-Date: Tue, 10 Mar 2020 00:12:33 -0000 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 0000000000..7154e095e1 --- /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. -- 2.24.1