aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-06-09 17:02:12 +0930
committerAlan Modra <amodra@gmail.com>2020-06-09 17:34:52 +0930
commita61e306070a182315216e72c8ba53efa6a247814 (patch)
tree14b47c4dd19f6406ead7180ac4785a1e45071057 /ld
parent73239888b37b95101d55d1d58b0acb663496b8d7 (diff)
downloadgdb-a61e306070a182315216e72c8ba53efa6a247814.zip
gdb-a61e306070a182315216e72c8ba53efa6a247814.tar.gz
gdb-a61e306070a182315216e72c8ba53efa6a247814.tar.bz2
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/testsuite/ld-elf/dl4e.out6
-rw-r--r--ld/testsuite/ld-elf/shared.exp12
3 files changed, 13 insertions, 12 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 59de955..b0336b7 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2020-06-09 Alan Modra <amodra@gmail.com>
+
+ 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 <hongjiu.lu@intel.com>
* 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 e5da6e2..0000000
--- 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 effa3ab..b1e1f62 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" ] \