[binutils-gdb] binutils: Add a test for strip with build notes

H.J. Lu hjl@sourceware.org
Sat Jul 20 02:13:38 GMT 2024


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3f55acd0ec09dc06934d25d5dfcd64852c812890

commit 3f55acd0ec09dc06934d25d5dfcd64852c812890
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Jul 19 18:59:53 2024 -0700

    binutils: Add a test for strip with build notes
    
    Add a test for strip with build notes.
    
            PR binutils/31999
            * testsuite/binutils-all/strip-16.d: New.
    
    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>

Diff:
---
 binutils/testsuite/binutils-all/strip-16.d | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/binutils/testsuite/binutils-all/strip-16.d b/binutils/testsuite/binutils-all/strip-16.d
new file mode 100644
index 00000000000..b2c87a97c48
--- /dev/null
+++ b/binutils/testsuite/binutils-all/strip-16.d
@@ -0,0 +1,11 @@
+#PROG: strip
+#as: --generate-missing-build-notes=yes
+#readelf: --notes --wide
+#name: strip with build notes
+#source: note-5.s
+
+#...
+Displaying notes found in: .gnu.build.attributes
+[ 	]+Owner[ 	]+Data size[ 	]+Description
+[ 	]+GA\$<version>3a1[ 	]+0x000000(08|10)[ 	]+OPEN[ 	]+Applies to region from 0 to 0x.. \(note_5.s\)
+#...


More information about the Binutils-cvs mailing list