public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: "H.J. Lu via Binutils" <binutils@sourceware.org>
Cc: "H.J. Lu" <hjl.tools@gmail.com>,  Alan Modra <amodra@gmail.com>,
	 Kaylee Blake <klkblake@gmail.com>
Subject: Re: [PATCH v3 6/7] ld: Add tests for -z nosectionheader and --strip-section-headers
Date: Tue, 06 Jun 2023 11:57:02 +0200	[thread overview]
Message-ID: <87wn0g9amp.fsf@oldenburg3.str.redhat.com> (raw)
In-Reply-To: <20230605153222.1728119-7-hjl.tools@gmail.com> (H. J. Lu via Binutils's message of "Mon, 5 Jun 2023 08:32:21 -0700")

* H. J. Lu via Binutils:

> Add tests to verify that the linker option, -z nosectionheader and
> objcopy and strip option, --strip-section-headers, work correctly as well
> as linker issues an error when dynamic symbol table from PT_DYNAMIC
> segment is used.
>
> 	PR ld/25617
> 	* testsuite/ld-elf/hash-2.d: New file.
> 	* testsuite/ld-elf/no-section-header.exp: Likewise.
> 	* testsuite/ld-elf/pr25617-1-no-sec-hdr.nd: Likewise.
> 	* testsuite/ld-elf/pr25617-1-no-sec-hdr.rd: Likewise.
> 	* testsuite/ld-elf/pr25617-1-static-no-sec-hdr.rd: Likewise.
> 	* testsuite/ld-elf/pr25617-1a-no-sec-hdr.nd: Likewise.
> 	* testsuite/ld-elf/pr25617-1a-no-sec-hdr.rd: Likewise.
> 	* testsuite/ld-elf/pr25617-1a-sec-hdr.rd: Likewise.
> 	* testsuite/ld-elf/pr25617-1a.c: Likewise.
> 	* testsuite/ld-elf/pr25617-1b.c: Likewise.
> 	* testsuite/ld-elf/start-noheader.rd: Likewise.
> 	* testsuite/ld-elf/start-shared-noheader-gnu.rd: Likewise.
> 	* testsuite/ld-elf/start-shared-noheader-sysv.rd: Likewise.
> 	* testsuite/ld-elf/start-shared-noheader.nd: Likewise.

Should this have a test that -r with -z nosectionheader is an error?

Thanks,
Florian


  parent reply	other threads:[~2023-06-06  9:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-05 15:32 [PATCH v3 0/7] ELF: Strip section header in ELF objects H.J. Lu
2023-06-05 15:32 ` [PATCH v3 1/7] " H.J. Lu
2023-06-05 15:32 ` [PATCH v3 2/7] ELF: Discard non-alloc sections without section header H.J. Lu
2023-06-05 15:32 ` [PATCH v3 3/7] bfd: Improve nm and objdump " H.J. Lu
2023-06-06  6:44   ` Alan Modra
2023-06-05 15:32 ` [PATCH v3 4/7] ld: Add a simple test for -z nosectionheader H.J. Lu
2023-06-05 15:32 ` [PATCH v3 5/7] binutils: Add a --strip-section-headers test H.J. Lu
2023-06-05 15:32 ` [PATCH v3 6/7] ld: Add tests for -z nosectionheader and --strip-section-headers H.J. Lu
2023-06-06  6:46   ` Alan Modra
2023-06-06 17:26     ` H.J. Lu
2023-06-06  9:57   ` Florian Weimer [this message]
2023-06-06 17:26     ` H.J. Lu
2023-06-05 15:32 ` [PATCH v3 7/7] ld: Add -z nosectionheader test to bootstrap.exp H.J. Lu
2023-06-06  6:48 ` [PATCH v3 0/7] ELF: Strip section header in ELF objects Alan Modra
2023-06-29 17:21   ` H.J. Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wn0g9amp.fsf@oldenburg3.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=amodra@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=hjl.tools@gmail.com \
    --cc=klkblake@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).