[COMMITTED] x86-64/ELF: Fix "clear src_mask for all reloc types" test case

Message ID CAB=4xho0eAJjvpjDjHfuSqKS7JCUxT8xedi0LiAzOfCJm-89rw@mail.gmail.com
State New
Headers show
Series
  • [COMMITTED] x86-64/ELF: Fix "clear src_mask for all reloc types" test case
Related show

Commit Message

H.J. Lu via Binutils May 12, 2021, 12:04 a.m.
The recently-added test case presumes x86-64-linux-gnu layout details.
This fixes it to work on other x86-64 targets such as x86-64-elf.

Committed as obvious enough.

Thanks,
Roland


ld/
2021-05-11  Roland McGrath  <mcgrathr@google.com>

        * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
        address layout, so it works for e.g. --target=x86-64-elf.

Patch

diff --git a/ld/testsuite/ld-x86-64/rela.d b/ld/testsuite/ld-x86-64/rela.d
index ac91834e4c4..20bb7e35232 100644
--- a/ld/testsuite/ld-x86-64/rela.d
+++ b/ld/testsuite/ld-x86-64/rela.d
@@ -7,4 +7,4 @@ 
 .*: +file format .*

 Contents of section .data:
- *[0-9a-f]*0 08 ?.. ?.. ?.. 00 ?00 ?00 ?00 00 ?.. ?.. ?.. 44 ?44 ?44 ?44 .*
+ *[0-9a-f]*0 .8 ?.. ?.. ?.. 00 ?00 ?00 ?00 .0 ?.. ?.. ?.. 44 ?44 ?44 ?44 .*