From a61e306070a182315216e72c8ba53efa6a247814 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 9 Jun 2020 17:02:12 +0930 Subject: [PATCH] PR26065, ld/testsuite/ld-elf symbolic tests dl4e and dl4f fail PR 26065 * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC. (dl4e, dl4f): Expect dl4a.out. * testsuite/ld-elf/dl4e.out: Delete. --- ld/ChangeLog | 7 +++++++ ld/testsuite/ld-elf/dl4e.out | 6 ------ ld/testsuite/ld-elf/shared.exp | 12 ++++++------ 3 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 ld/testsuite/ld-elf/dl4e.out diff --git a/ld/ChangeLog b/ld/ChangeLog index 59de955076b..b0336b7d309 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2020-06-09 Alan Modra + + PR 26065 + * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC. + (dl4e, dl4f): Expect dl4a.out. + * testsuite/ld-elf/dl4e.out: Delete. + 2020-06-07 H.J. Lu * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703 diff --git a/ld/testsuite/ld-elf/dl4e.out b/ld/testsuite/ld-elf/dl4e.out deleted file mode 100644 index e5da6e21859..00000000000 --- a/ld/testsuite/ld-elf/dl4e.out +++ /dev/null @@ -1,6 +0,0 @@ -bar OK2 -bar OK4 -DSO1 -DSO2 -OK2 -OK4 diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index effa3ab376f..b1e1f62d50e 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -921,22 +921,22 @@ set run_tests [list \ {dl2main.c} "dl2k" "dl2a.out" ] \ [list "Run with libdl4a.so" \ "-Wl,--no-as-needed tmpdir/libdl4a.so" "" \ - {dl4main.c} "dl4a" "dl4a.out" ] \ + {dl4main.c} "dl4a" "dl4a.out" "-fPIC"] \ [list "Run with libdl4b.so" \ "-Wl,--no-as-needed tmpdir/libdl4b.so" "" \ - {dl4main.c} "dl4b" "dl4a.out" ] \ + {dl4main.c} "dl4b" "dl4a.out" "-fPIC"] \ [list "Run with libdl4c.so" \ "-Wl,--no-as-needed tmpdir/libdl4c.so" "" \ - {dl4main.c} "dl4c" "dl4b.out" ] \ + {dl4main.c} "dl4c" "dl4b.out" "-fPIC"] \ [list "Run with libdl4d.so" \ "-Wl,--no-as-needed tmpdir/libdl4d.so" "" \ - {dl4main.c} "dl4d" "dl4b.out" ] \ + {dl4main.c} "dl4d" "dl4b.out" "-fPIC"] \ [list "Run with libdl4e.so" \ "-Wl,--no-as-needed tmpdir/libdl4e.so" "" \ - {dl4main.c} "dl4e" "dl4e.out" ] \ + {dl4main.c} "dl4e" "dl4a.out" "-fPIC"] \ [list "Run with libdl4f.so" \ "-Wl,--no-as-needed tmpdir/libdl4f.so" "" \ - {dl4main.c} "dl4f" "dl4e.out" ] \ + {dl4main.c} "dl4f" "dl4a.out" "-fPIC"] \ [list "Run with libdata1.so" \ "-Wl,--no-as-needed tmpdir/libdata1.so" "" \ {dynbss1.c} "dynbss1" "pass.out" ] \ -- 2.30.2