Message ID | 20230531200617.951996-1-hjl.tools@gmail.com |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3149404vqr; Wed, 31 May 2023 13:13:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7eGdCi/ukkjzunseZSI6KvAAlX7iKxDfqe4DgI95N0g4P3Guy2BMqLlo+2mjQzhnCVluUH X-Received: by 2002:aa7:dd10:0:b0:514:9c7c:8a37 with SMTP id i16-20020aa7dd10000000b005149c7c8a37mr4887687edv.28.1685564009851; Wed, 31 May 2023 13:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685564009; cv=none; d=google.com; s=arc-20160816; b=CpgMJnGP7/7QOibE0IyumWy9uMqW6iJncO8vVy+PvHl2FCGBu6pAAumbWRShn84QEh XF4ch5QLPgzUyuH4PM7bq0mrSP+0sJ23MkM5XbJLGAy7q37mJlyGBNmxNsxGQka92e34 k1dSobseq1QWF4iH6X1KD7PkrMHmSyCvDYMHksYXcGWVwOADxX4LX0q4slvq+9kFqOAi Y54Vb/rBgvirkk7hEU6PC9UG5J6yPYoMUglMEJgw1rok6ZOCAOzlJLyK5zrUcUPx/nv6 g/YOXqXGMZhaXUeq3KKEyc+yPO/cHfCiTBkbd2WaD07xZSw3lPVuHGPuMlfqGvFQ9Wmf kr2A== 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:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=hR5XP0AVHG+87SAC1msCXnfB1G/YIpPxHfS/x910q7g=; b=JJCYK6Lcawlj16XJXoMQZm+ZX/0ZmvSIdseADvdp3gCWwfLjr/7NAv7AVOmpmNItUj 8e0cHvrzxpcMi0p6ITFkrAnkLMytzrPNqvakHwfLCOskPUcjzX4WxULoNqm4QUilgJj7 gRzRIF9ZdtTjivE7qAjbJzKuwcelzOc05UBFijjtZcELKK+Qe/u4bIgaD5fwHyRRrxGp lOMJzk0OiQiYGyCyrN2XnPXG9F7vkfa+7m6vknlfI+Kw3EXo0kC+yYOdjcJ1TJjElTFA 2aNF1puDu7DJlZJMHhLZ0OkrPeUJlxsWENza15G6DkN4ZsWshkmZaLw03CT8Gmyd7Dtb 6DmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=TFwXDQ5b; 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 d2-20020a056402516200b00510d72614e3si8005208ede.14.2023.05.31.13.13.29 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 13:13:29 -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=TFwXDQ5b; 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 B25ED3855881 for <ouuuleilei@gmail.com>; Wed, 31 May 2023 20:09:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B25ED3855881 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685563777; bh=hR5XP0AVHG+87SAC1msCXnfB1G/YIpPxHfS/x910q7g=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=TFwXDQ5bKtRg5P4t8YC4b1arDMKdtvq+3hIPldi//Ddi8IaGYpA/zQQtIW3UyJBnA sRR2xB+GjLKsLfkAthbk+lCcy/+anmckc8TdQHPdEVeZmBndkTj3bh6MVq7/nLeJIV 8bt9ggV05S1h3ulhXEhcpJMjVsD38P9iteW5oiSA= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 3C0983857C66 for <binutils@sourceware.org>; Wed, 31 May 2023 20:06:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C0983857C66 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-64d293746e0so166646b3a.2 for <binutils@sourceware.org>; Wed, 31 May 2023 13:06:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685563579; x=1688155579; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hR5XP0AVHG+87SAC1msCXnfB1G/YIpPxHfS/x910q7g=; b=V9hmg30zrvV2JMhAf3idmBnixTsVLC/TpmXIJgjfy3MbqPU9x0LdSz831FizdHCX3s 6L5rlz3fLycv7eZrCYA7agWqarEetFxlt3flrAu8JxUl2O1+7jpgg+MhJm2K2L/jXpN2 NX+nksnYQYIqbTAqqVYv6YJHmK7WqHWz74Ki9JBA+molhQ8DrGDj/uqzYWzVjbPYAToR wsB/JuaOcsUGuKzLPhfzPCl75csQ3+7IKb+0xNBFOfWOtwoQSM+yBv9Fir2/PTM9UMvk BwR1GyScTOMGj16lHkWZFFjtulXudkvaX49q/bXmW4DcJl+UnnlyrAf2Z9mancX7jxRp 7VUg== X-Gm-Message-State: AC+VfDxY+RjTr5n7m0w66qt3pN4dfU1IKKDynKRFTIyiZe7saPtRs0qT YYufnUENbWT5U0CpWiRBJro5cZr9zpo= X-Received: by 2002:a05:6a20:9f08:b0:105:12ab:878f with SMTP id mk8-20020a056a209f0800b0010512ab878fmr6883659pzb.56.1685563578814; Wed, 31 May 2023 13:06:18 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.59.160.123]) by smtp.gmail.com with ESMTPSA id j7-20020aa78007000000b0062dcf5c01f9sm2912935pfi.36.2023.05.31.13.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 13:06:18 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 5386C740084; Wed, 31 May 2023 13:06:17 -0700 (PDT) To: binutils@sourceware.org Cc: Kaylee Blake <klkblake@gmail.com>, Alan Modra <amodra@gmail.com>, Andreas Schwab <schwab@linux-m68k.org> Subject: [PATCH v2 0/7] ELF: Strip section header in ELF objects Date: Wed, 31 May 2023 13:06:10 -0700 Message-Id: <20230531200617.951996-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3019.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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 <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: "H.J. Lu via Binutils" <binutils@sourceware.org> Reply-To: "H.J. Lu" <hjl.tools@gmail.com> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767441871824120314?= X-GMAIL-MSGID: =?utf-8?q?1767441967186396495?= |
Series |
ELF: Strip section header in ELF objects
|
|
Message
H.J. Lu
May 31, 2023, 8:06 p.m. UTC
Changes in v2: 1. Rename the objcopy and strip option to --strip-section-headers. 2. Also strip non-alloc sections. Section header isn't mandatory on ELF executable nor shared library. This patch set adds a new linker option, -z nosectionheader, to omit ELF section header, a new objcopy and strip option, --strip-section-headers, to remove ELF section header. H.J. Lu (5): ELF: Discard non-alloc sections without section header bfd: Improve nm and objdump without section header binutils: Add a --strip-section-headers test ld: Add tests for -z nosectionheader and --strip-section-headers ld: Add -z nosectionheader test to bootstrap.exp Kaylee Blake (2): ELF: Strip section header in ELF objects ld: Add a simple test for -z nosectionheader bfd/bfd-in2.h | 6 +- bfd/bfd.c | 6 +- bfd/elf-bfd.h | 15 + bfd/elf.c | 755 ++++++++++++++++-- bfd/elfcode.h | 91 ++- bfd/elflink.c | 12 + bfd/elfxx-target.h | 4 +- binutils/NEWS | 5 +- binutils/doc/binutils.texi | 10 + binutils/objcopy.c | 38 +- binutils/testsuite/binutils-all/objcopy.exp | 5 + .../binutils-all/strip-section-headers-1.d | 5 + ld/NEWS | 3 + ld/emultempl/elf.em | 4 + ld/ld.h | 3 + ld/ld.texi | 5 + ld/ldlang.c | 8 + ld/lexsup.c | 8 + ld/testsuite/ld-bootstrap/bootstrap.exp | 10 +- ld/testsuite/ld-elf/hash-2.d | 11 + ld/testsuite/ld-elf/no-section-header.exp | 370 +++++++++ ld/testsuite/ld-elf/nosectionheader.d | 12 + ld/testsuite/ld-elf/pr25617-1-no-sec-hdr.nd | 3 + ld/testsuite/ld-elf/pr25617-1-no-sec-hdr.rd | 20 + .../ld-elf/pr25617-1-static-no-sec-hdr.rd | 12 + ld/testsuite/ld-elf/pr25617-1a-no-sec-hdr.nd | 3 + ld/testsuite/ld-elf/pr25617-1a-no-sec-hdr.rd | 20 + ld/testsuite/ld-elf/pr25617-1a-sec-hdr.rd | 19 + ld/testsuite/ld-elf/pr25617-1a.c | 11 + ld/testsuite/ld-elf/pr25617-1b.c | 15 + ld/testsuite/ld-elf/start-noheader.rd | 11 + .../ld-elf/start-shared-noheader-gnu.rd | 22 + .../ld-elf/start-shared-noheader-sysv.rd | 22 + ld/testsuite/ld-elf/start-shared-noheader.nd | 5 + 34 files changed, 1462 insertions(+), 87 deletions(-) create mode 100644 binutils/testsuite/binutils-all/strip-section-headers-1.d create mode 100644 ld/testsuite/ld-elf/hash-2.d create mode 100644 ld/testsuite/ld-elf/no-section-header.exp create mode 100644 ld/testsuite/ld-elf/nosectionheader.d create mode 100644 ld/testsuite/ld-elf/pr25617-1-no-sec-hdr.nd create mode 100644 ld/testsuite/ld-elf/pr25617-1-no-sec-hdr.rd create mode 100644 ld/testsuite/ld-elf/pr25617-1-static-no-sec-hdr.rd create mode 100644 ld/testsuite/ld-elf/pr25617-1a-no-sec-hdr.nd create mode 100644 ld/testsuite/ld-elf/pr25617-1a-no-sec-hdr.rd create mode 100644 ld/testsuite/ld-elf/pr25617-1a-sec-hdr.rd create mode 100644 ld/testsuite/ld-elf/pr25617-1a.c create mode 100644 ld/testsuite/ld-elf/pr25617-1b.c create mode 100644 ld/testsuite/ld-elf/start-noheader.rd create mode 100644 ld/testsuite/ld-elf/start-shared-noheader-gnu.rd create mode 100644 ld/testsuite/ld-elf/start-shared-noheader-sysv.rd create mode 100644 ld/testsuite/ld-elf/start-shared-noheader.nd
Comments
On Wed, May 31, 2023 at 01:06:10PM -0700, H.J. Lu wrote:
> Changes in v2:
I started reviewing this patchset, but stopped after seeing the
following results. Even if these fails are all just testsuite issues
they indicate you haven't tested on much other than x86_64-linux.
arc-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start)
arc-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start)
arc-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start)
arc-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=both -shared (start)
arc-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start)
arc-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start)
bfin-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start)
bfin-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start)
bfin-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start)
bfin-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=both -shared (start)
bfin-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start)
bfin-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start)
csky-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start)
csky-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start)
csky-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start)
csky-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both -shared (start)
csky-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start)
csky-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start)
d30v-elf +FAIL: ld-elf/nosectionheader
dlx-elf +FAIL: ld-elf/nosectionheader
fr30-elf +FAIL: ld-elf/nosectionheader
frv-elf +FAIL: ld-elf/nosectionheader
frv-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start)
frv-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start)
frv-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start)
frv-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both -shared (start)
frv-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start)
frv-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start)
ft32-elf +FAIL: ld-elf/nosectionheader
h8300-linux-gnu +FAIL: ld-elf/hash-2
hppa-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start)
hppa-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start)
hppa-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start)
hppa-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both -shared (start)
hppa-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start)
hppa-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start)
iq2000-elf +FAIL: ld-elf/nosectionheader
lm32-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start)
lm32-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start)
lm32-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start)
lm32-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both -shared (start)
lm32-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start)
lm32-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start)
mn10200-elf +FAIL: ld-elf/nosectionheader
msp430-elf +FAIL: ld-elf/nosectionheader
mt-elf +FAIL: ld-elf/nosectionheader
nds32le-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start)
nds32le-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start)
nds32le-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start)
nds32le-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both -shared (start)
nds32le-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start)
nds32le-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start)
pj-elf +FAIL: ld-elf/nosectionheader
riscv64-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both (start)
riscv64-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu (start)
riscv64-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv (start)
riscv64-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both (start)
riscv64-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu (start)
riscv64-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv (start)
s12z-elf +FAIL: ld-elf/nosectionheader
xgate-elf +FAIL: ld-elf/nosectionheader
On Thu, Jun 1, 2023 at 4:49 PM Alan Modra <amodra@gmail.com> wrote: > > On Wed, May 31, 2023 at 01:06:10PM -0700, H.J. Lu wrote: > > Changes in v2: > > I started reviewing this patchset, but stopped after seeing the > following results. Even if these fails are all just testsuite issues > they indicate you haven't tested on much other than x86_64-linux. > > arc-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start) > arc-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start) > arc-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start) > arc-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=both -shared (start) > arc-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start) > arc-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start) > bfin-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start) > bfin-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start) > bfin-linux-uclibc +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start) > bfin-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=both -shared (start) > bfin-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start) > bfin-linux-uclibc +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start) > csky-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start) > csky-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start) > csky-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start) > csky-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both -shared (start) > csky-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start) > csky-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start) Fixed in v3 to allow extra symbols. > d30v-elf +FAIL: ld-elf/nosectionheader > dlx-elf +FAIL: ld-elf/nosectionheader > fr30-elf +FAIL: ld-elf/nosectionheader > frv-elf +FAIL: ld-elf/nosectionheader Fixed in v3 to exclude the generic ELF targets. > frv-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start) > frv-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start) > frv-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start) > frv-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both -shared (start) > frv-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start) > frv-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start) > ft32-elf +FAIL: ld-elf/nosectionheader > h8300-linux-gnu +FAIL: ld-elf/hash-2 Fixed in v3 to require shared library support. > hppa-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start) > hppa-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start) > hppa-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start) > hppa-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both -shared (start) > hppa-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start) > hppa-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start) > iq2000-elf +FAIL: ld-elf/nosectionheader > lm32-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start) > lm32-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start) > lm32-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start) > lm32-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both -shared (start) > lm32-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start) > lm32-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start) > mn10200-elf +FAIL: ld-elf/nosectionheader > msp430-elf +FAIL: ld-elf/nosectionheader > mt-elf +FAIL: ld-elf/nosectionheader > nds32le-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both -shared (start) > nds32le-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu -shared (start) > nds32le-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv -shared (start) > nds32le-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both -shared (start) > nds32le-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu -shared (start) > nds32le-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv -shared (start) > pj-elf +FAIL: ld-elf/nosectionheader > riscv64-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=both (start) > riscv64-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=gnu (start) > riscv64-linux-gnu +FAIL: objcopy --strip-section-headers --hash-style=sysv (start) > riscv64-linux-gnu +FAIL: strip --strip-section-headers --hash-style=both (start) > riscv64-linux-gnu +FAIL: strip --strip-section-headers --hash-style=gnu (start) > riscv64-linux-gnu +FAIL: strip --strip-section-headers --hash-style=sysv (start) > s12z-elf +FAIL: ld-elf/nosectionheader > xgate-elf +FAIL: ld-elf/nosectionheader > > Will submit the v3 patch set. Thanks.