From 720f6ee0959d9b493051d63f75d0d609d3d392ad Mon Sep 17 00:00:00 2001 From: Claudiu Zissulescu Date: Wed, 15 Sep 2021 13:43:40 +0300 Subject: [PATCH] arc: Fix got-weak linker test Use regular expressions to fix the got-weak linker test. ld/ * testsuite/got-weak.d: Update test. Signed-off-by: Claudiu Zissulescu --- ld/ChangeLog | 4 ++++ ld/testsuite/ld-arc/got-weak.d | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index ebcd4cd9e93..2733da1f08e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2021-09-15 Claudiu Zissulescu + + * testsuite/ld-arc/got-weak.d: Update file. + 2021-09-14 Claudiu Zissulescu * ld-arc/got-weak.d: New file. diff --git a/ld/testsuite/ld-arc/got-weak.d b/ld/testsuite/ld-arc/got-weak.d index cf15069b518..a7f5b2fa119 100644 --- a/ld/testsuite/ld-arc/got-weak.d +++ b/ld/testsuite/ld-arc/got-weak.d @@ -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,.* -- 2.30.2