This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: A patch for elflink.h
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Subject: Re: A patch for elflink.h
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Sun, 29 Apr 2001 12:11:57 -0700
- Cc: amodra at one dot net dot au, binutils at sourceware dot cygnus dot com
- References: <20010427114620.A8342@lucon.org> <200104291606.SAA16405@ignucius.axis.se>
On Sun, Apr 29, 2001 at 06:06:13PM +0200, Hans-Peter Nilsson wrote:
>
> Can you add your test-case to ld or glibc as appropriate?
>
I checked this into CVS. Now you will get a failure in ld -).
H.J.
----
2001-04-29 H.J. Lu <hjl@gnu.org>
* ld-shared/symbolic.dat: New.
* ld-shared/shared.exp: Also check -Bsymbolic.
Index: ld-shared/shared.exp
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-shared/shared.exp,v
retrieving revision 1.3
diff -u -p -r1.3 shared.exp
--- ld-shared/shared.exp 2001/03/17 20:48:17 1.3
+++ ld-shared/shared.exp 2001/04/29 19:01:46
@@ -222,6 +222,11 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $
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
} }
}
}
--- /dev/null Fri Mar 23 20:37:44 2001
+++ ld-shared/symbolic.dat Sun Apr 29 12:01:31 2001
@@ -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