From: H.J. Lu Date: Sun, 29 Apr 2001 19:10:21 +0000 (+0000) Subject: 2001-04-29 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0f077e5e57fa5fcd5e23130cf0b4afbc5b34bba;p=binutils-gdb.git 2001-04-29 H.J. Lu * ld-shared/symbolic.dat: New. * ld-shared/shared.exp: Also check -Bsymbolic. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index f8149caf503..f0e15ed1e23 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2001-04-29 H.J. Lu + + * ld-shared/symbolic.dat: New. + + * ld-shared/shared.exp: Also check -Bsymbolic. + 2001-04-28 Andreas Jaeger * 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 60603229229..43959e5b1a6 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 00000000000..2859f3d06d6 --- /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