From 645b28002711eba22e8a4df3733a01206ab7d36d Mon Sep 17 00:00:00 2001 From: claziss Date: Mon, 24 Jul 2017 10:10:21 +0200 Subject: [PATCH] [ARC] Fix big-endian ld tests errors. A set of small patches that are fixing big-endian observed errors. ld/ 2017-07-24 Claudiu Zissulescu * testsuite/ld-arc/jli-overflow.d: Force testing for little endian. * testsuite/ld-arc/tls_gd-01.d: Fix string to match bigendian systems. * testsuite/ld-arc/tls_ie-01.d: Fix test for bigendian systems. --- ld/ChangeLog | 8 ++++++++ ld/testsuite/ld-arc/jli-overflow.d | 4 ++-- ld/testsuite/ld-arc/tls_gd-01.d | 2 +- ld/testsuite/ld-arc/tls_ie-01.d | 4 ++-- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index ee309d4304e..2d3b0ebc33c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2017-07-24 Claudiu Zissulescu + + * testsuite/ld-arc/jli-overflow.d: Force testing for little + endian. + * testsuite/ld-arc/tls_gd-01.d: Fix string to match bigendian + systems. + * testsuite/ld-arc/tls_ie-01.d: Fix test for bigendian systems. + 2017-07-19 Maciej W. Rozycki * testsuite/ld-scripts/fill.d: Adjust `xfail' entries. Add diff --git a/ld/testsuite/ld-arc/jli-overflow.d b/ld/testsuite/ld-arc/jli-overflow.d index b1a2663798e..6445b2aba4e 100644 --- a/ld/testsuite/ld-arc/jli-overflow.d +++ b/ld/testsuite/ld-arc/jli-overflow.d @@ -1,4 +1,4 @@ #source: jli-overflow.s -#as: -#ld: -q -T jli-script.ld +#as: -EL +#ld: -q -T jli-script.ld -A elf32-arclittle #error_output: jli-overflow.err diff --git a/ld/testsuite/ld-arc/tls_gd-01.d b/ld/testsuite/ld-arc/tls_gd-01.d index e7891576327..d65f2cd0b58 100644 --- a/ld/testsuite/ld-arc/tls_gd-01.d +++ b/ld/testsuite/ld-arc/tls_gd-01.d @@ -4,7 +4,7 @@ #objdump: -d #xfail: arc*-*-elf* -[^:]+: file format elf32-littlearc +[^:]+: file format elf32-.*arc Disassembly of section \.text: diff --git a/ld/testsuite/ld-arc/tls_ie-01.d b/ld/testsuite/ld-arc/tls_ie-01.d index 62b39324790..e4af7c2ee4c 100644 --- a/ld/testsuite/ld-arc/tls_ie-01.d +++ b/ld/testsuite/ld-arc/tls_ie-01.d @@ -4,7 +4,7 @@ #objdump: -s -j .got #xfail: arc*-*-elf* -[^:]+: file format elf32-littlearc +[^:]+: file format elf32-.*arc Contents of section \.got: - [0-9a-f]+ 08000000 0c000000 +.+ + [0-9a-f]+ [08]+ [0c]+ +.+ -- 2.34.1