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.
This commit is contained in:
H.J. Lu 2020-03-07 05:27:12 -08:00
parent 0a06ea7a76
commit 1ad1b8865c
2 changed files with 10 additions and 0 deletions

View File

@ -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"

View File

@ -0,0 +1,5 @@
#PROG: strip
#strip: -g --strip-section-headers
#readelf: -S
There are no sections in this file.