2001-04-29 H.J. Lu <hjl@gnu.org>

* ld-shared/symbolic.dat: New.

	* ld-shared/shared.exp: Also check -Bsymbolic.
This commit is contained in:
H.J. Lu 2001-04-29 19:10:21 +00:00
parent f4ddc5e633
commit f0f077e5e5
3 changed files with 21 additions and 0 deletions

View 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

View 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
} }
}
}

View file

@ -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