[COMMITTED] Fix ld test case that assumes --enable-textrel-check

Message ID CAB=4xhqXTE6h+Q-7HUVAYbYr5bwkvM1ZheZQTtzeXoj82E5+Hw@mail.gmail.com
State New
Headers show
Series
  • [COMMITTED] Fix ld test case that assumes --enable-textrel-check
Related show

Commit Message

Alan Modra via Binutils July 27, 2021, 12:57 a.m.
The test case added in commit 83b1d8f4a69ab5803ae33e05dcf14d8f26848ff2
breaks for --target=x86_64-elf without --enable-textrel-check.

Committed as obvious enough.

Thanks,
Roland


ld/
2021-07-26  Roland McGrath  <mcgrathr@google.com>

        * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.

Patch

diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.$
index a80f22c2453..064438a3f91 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -233,7 +233,7 @@  set x86_64tests {
      {{readelf -SW pr27590.rd}} "pr27590.o"}
     {"Build textrel-1.so" "-melf_x86_64 -shared" ""
      "--64" { textrel-1a.s } {} "textrel-1.so"}
-    {"Build textrel-1" "-no-pie -melf_x86_64 -z nocopyreloc"
+    {"Build textrel-1" "-no-pie -melf_x86_64 -z nocopyreloc --warn-textrel"
      "tmpdir/textrel-1.so"
      "--64" { textrel-1b.s } {{ld "textrel-1.err"}} "textrel-1"}
 }