summaryrefslogtreecommitdiffstats
path: root/ld/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-04-29 19:10:21 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-04-29 19:10:21 +0000
commitf0f077e5e57fa5fcd5e23130cf0b4afbc5b34bba (patch)
tree96eeb7fce39a140a44bfab0c4babd92a93960d19 /ld/testsuite
parentf4ddc5e6337d1936951b8b4e19841642c25af557 (diff)
downloadppe42-binutils-f0f077e5e57fa5fcd5e23130cf0b4afbc5b34bba.tar.gz
ppe42-binutils-f0f077e5e57fa5fcd5e23130cf0b4afbc5b34bba.zip
2001-04-29 H.J. Lu <hjl@gnu.org>
* ld-shared/symbolic.dat: New. * ld-shared/shared.exp: Also check -Bsymbolic.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-shared/shared.exp5
-rw-r--r--ld/testsuite/ld-shared/symbolic.dat10
3 files changed, 21 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index f8149caf50..f0e15ed1e2 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-29 H.J. Lu <hjl@gnu.org>
+
+ * ld-shared/symbolic.dat: New.
+
+ * ld-shared/shared.exp: Also check -Bsymbolic.
+
2001-04-28 Andreas Jaeger <aj@suse.de>
* ld-scripts/phdrs.exp: x86-64 is a 64 bit ELF platform, handle it
diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp
index 6060322922..43959e5b1a 100644
--- a/ld/testsuite/ld-shared/shared.exp
+++ b/ld/testsuite/ld-shared/shared.exp
@@ -222,6 +222,11 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
shared_test shp "shared" mainnp.o sh1p.o sh2p.o xcoff
} else {
shared_test shp "shared" mainnp.o sh1p.o sh2p.o shared
+ ld_compile "$CC $CFLAGS -DXCOFF_TEST $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o
+ ld_compile "$CC $CFLAGS -DXCOFF_TEST $SHCFLAG $picflag" $srcdir/$subdir/sh1.c $tmpdir/sh1p.o
+ shared_test shp "shared -Bsymbolic" mainnp.o sh1p.o sh2p.o symbolic "-Bsymbolic"
+ ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o
+ ld_compile "$CC $CFLAGS $SHCFLAG $picflag" $srcdir/$subdir/sh1.c $tmpdir/sh1p.o
} }
}
}
diff --git a/ld/testsuite/ld-shared/symbolic.dat b/ld/testsuite/ld-shared/symbolic.dat
new file mode 100644
index 0000000000..2859f3d06d
--- /dev/null
+++ b/ld/testsuite/ld-shared/symbolic.dat
@@ -0,0 +1,10 @@
+mainvar == 1
+overriddenvar == 2
+shlibvar1 == 3
+shlib_shlibvar1 () == 3
+shlib_shlibvar2 () == 4
+shlib_shlibcall () == 5
+main_called () == 6
+shlib_checkfunptr1 (shlib_shlibvar1) == 0
+shlib_getfunptr1 () != shlib_shlibvar1
+shlib_check () == 1
OpenPOWER on IntegriCloud