arc: Fix got-weak linker test
authorClaudiu Zissulescu <claziss@synopsys.com>
Wed, 15 Sep 2021 10:43:40 +0000 (13:43 +0300)
committerClaudiu Zissulescu <claziss@synopsys.com>
Wed, 15 Sep 2021 10:49:02 +0000 (13:49 +0300)
Use regular expressions to fix the got-weak linker test.

ld/
* testsuite/got-weak.d: Update test.

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
ld/ChangeLog
ld/testsuite/ld-arc/got-weak.d

index ebcd4cd9e932d35b7fe1f3f0a499ad08aef8da29..2733da1f08e2d69d25fec5eccf9974024591f815 100644 (file)
@@ -1,3 +1,7 @@
+2021-09-15  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * testsuite/ld-arc/got-weak.d: Update file.
+
 2021-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
 
        * ld-arc/got-weak.d: New file.
index cf15069b5188a44b5c6a819716582f503bfd047e..a7f5b2fa11940cbac8eb68782a590ee2bea60db1 100644 (file)
@@ -3,10 +3,10 @@
 #ld: -Bstatic
 #objdump: -d
 
-[^:]*:     file format elf32-.*arc
+[^:]*:\s+file format elf32-.*arc
 
 
 Disassembly of section \.text:
 
-00000100 <.*>:
- 100:  2730 7f80 0000 2014     ld      r0,\[pcl,0x2014\].*
+[0-9a-f]+ <.*>:
+^\s+[0-9a-f]+:\s+2730\s7f80\s[0-9a-f]+\s[0-9a-f]+\s+ld\s+r\d+,\[pcl,.*