[binutils-gdb] pr27590 testcase fixes

Alan Modra amodra@sourceware.org
Fri Mar 19 09:44:26 GMT 2021


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

commit fba7f7533c97d03d86f648a42375212c38980706
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Mar 19 17:39:39 2021 +1030

    pr27590 testcase fixes
    
            PR 27590
            * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
            R_MIPS_NONE.
            * testsuite/ld-elf/pr27590b.d: Likewise.

Diff:
---
 ld/ChangeLog                   | 7 +++++++
 ld/testsuite/ld-elf/pr27590a.d | 6 ++++--
 ld/testsuite/ld-elf/pr27590b.d | 6 ++++--
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 30ac9b4d470..8489a9db5e5 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2021-03-19  Alan Modra  <amodra@gmail.com>
+
+	PR 27590
+	* testsuite/ld-elf/pr27590a.d: Match relocs using label, and
+	R_MIPS_NONE.
+	* testsuite/ld-elf/pr27590b.d: Likewise.
+
 2021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/27590
diff --git a/ld/testsuite/ld-elf/pr27590a.d b/ld/testsuite/ld-elf/pr27590a.d
index c24cd8907ae..7c97975fd52 100644
--- a/ld/testsuite/ld-elf/pr27590a.d
+++ b/ld/testsuite/ld-elf/pr27590a.d
@@ -5,6 +5,8 @@
 
 Relocation section '\.rel.*\.gnu\.debuglto_\.debug_macro' at offset 0x[0-9a-z]+ contains 2 entries:
 [ \t]+Offset[ \t]+Info[ \t]+Type[ \t]+Sym.*
-[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0]+[ \t]+\.gnu\.debuglto_\.debug_macro.*
-[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0]+[ \t]+\.gnu\.debuglto_\.debug_macro.*
+[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0]+[ \t]+(\.gnu\.debuglto_\.debug_macro|\.Ldebug_macro2).*
+#?.*R_MIPS_NONE.*
+#?.*R_MIPS_NONE.*
+[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0]+[ \t]+(\.gnu\.debuglto_\.debug_macro|\.Ldebug_macro2).*
 #pass
diff --git a/ld/testsuite/ld-elf/pr27590b.d b/ld/testsuite/ld-elf/pr27590b.d
index 68b198b2992..49a7c3a1e85 100644
--- a/ld/testsuite/ld-elf/pr27590b.d
+++ b/ld/testsuite/ld-elf/pr27590b.d
@@ -5,6 +5,8 @@
 
 Relocation section '\.rel.*\.gnu\.debuglto_\.debug_macro' at offset 0x[0-9a-z]+ contains 2 entries:
 [ \t]+Offset[ \t]+Info[ \t]+Type[ \t]+Sym.*
-[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0]+[ \t]+\.gnu\.debuglto_\.debug_macro.*
-[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0]+[ \t]+\.gnu\.debuglto_\.debug_macro.*
+[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0]+[ \t]+(\.gnu\.debuglto_\.debug_macro|\.Ldebug_macro2).*
+#?.*R_MIPS_NONE.*
+#?.*R_MIPS_NONE.*
+[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0]+[ \t]+(\.gnu\.debuglto_\.debug_macro|\.Ldebug_macro2).*
 #pass


More information about the Binutils-cvs mailing list