2001-04-29 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 29 Apr 2001 19:10:21 +0000 (19:10 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 29 Apr 2001 19:10:21 +0000 (19:10 +0000)
* ld-shared/symbolic.dat: New.

* ld-shared/shared.exp: Also check -Bsymbolic.

ld/testsuite/ChangeLog
ld/testsuite/ld-shared/shared.exp
ld/testsuite/ld-shared/symbolic.dat [new file with mode: 0644]

index f8149caf5035bf50b2299a13375276a89a14b88b..f0e15ed1e23feb54c37de3cf2045aaa557243342 100644 (file)
@@ -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
index 606032292298e717a9ab09d311c2e6183ce5c19b..43959e5b1a614e842986085c34ab51b75eefabb6 100644 (file)
@@ -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 (file)
index 0000000..2859f3d
--- /dev/null
@@ -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