* [binutils-gdb] binutils: Add a --strip-section-headers test
@ 2023-06-29 17:36 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2023-06-29 17:36 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1ad1b8865c19598326ef9bbb125ab60e4e462b55
commit 1ad1b8865c19598326ef9bbb125ab60e4e462b55
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Mar 7 05:27:12 2020 -0800
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.
Diff:
---
binutils/testsuite/binutils-all/objcopy.exp | 5 +++++
| 5 +++++
2 files changed, 10 insertions(+)
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
index 361e430f119..41add0fecda 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"
--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 00000000000..dc249bba779
--- /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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-29 17:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-29 17:36 [binutils-gdb] binutils: Add a --strip-section-headers test H.J. Lu
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).