diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-03-07 05:27:12 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2023-06-29 10:29:47 -0700 |
commit | 1ad1b8865c19598326ef9bbb125ab60e4e462b55 (patch) | |
tree | 095b20b4e5c7804477a44a1ed8136e1d61bed176 /binutils | |
parent | 0a06ea7a767579aade45ff779170f2fa81dfcb11 (diff) | |
download | fsf-binutils-gdb-1ad1b8865c19598326ef9bbb125ab60e4e462b55.zip fsf-binutils-gdb-1ad1b8865c19598326ef9bbb125ab60e4e462b55.tar.gz fsf-binutils-gdb-1ad1b8865c19598326ef9bbb125ab60e4e462b55.tar.bz2 |
binutils: Add a --strip-section-headers test
PR ld/25617
* testsuite/binutils-all/objcopy.exp: Run strip-section-headers-1.
* testsuite/binutils-all/strip-section-headers-1.d: New file.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/testsuite/binutils-all/objcopy.exp | 5 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/strip-section-headers-1.d | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index 361e430..41add0f 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -1357,6 +1357,11 @@ if [is_elf_format] { verbose [file rootname $t] run_dump_test [file rootname $t] } + + # Test --strip-section-headers + run_dump_test "strip-section-headers-1" [list \ + [list source strip-15${reloc_format}.s] \ + [list as "${elf64} --defsym RELOC=${reloc}"]] } run_dump_test "localize-hidden-2" diff --git a/binutils/testsuite/binutils-all/strip-section-headers-1.d b/binutils/testsuite/binutils-all/strip-section-headers-1.d new file mode 100644 index 0000000..dc249bb --- /dev/null +++ b/binutils/testsuite/binutils-all/strip-section-headers-1.d @@ -0,0 +1,5 @@ +#PROG: strip +#strip: -g --strip-section-headers +#readelf: -S + +There are no sections in this file. |