This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Patch for RELATIVE relocation for an non-loaded section
- To: Ken Block USG <block at zk3 dot dec dot com>
- Subject: Re: Patch for RELATIVE relocation for an non-loaded section
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Mon, 13 Mar 2000 10:13:17 -0800
- Cc: binutils at sourceware dot cygnus dot com
- References: <38C94048.1FFD2EFB@zk3.dec.com>
On Fri, Mar 10, 2000 at 01:34:48PM -0500, Ken Block USG wrote:
> Same patch again, hopefully, the text is wrapped properly this time.
> catch.zko.dec.com> ccc -c -g foo.c
> catch.zko.dec.com> ccc foo.o -shared -o libfoo.so
> catch.zko.dec.com> ccc -o main main.c ./libfoo.so
> catch.zko.dec.com> ./main
> foo
>
>
> Relink using the old RH5.2 ld.
>
> catch.zko.dec.com> $DECC_STABLE/ld -o libfoo.so -O1 -m elf64alpha -G 8
> -shared -
> L/usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/lib -L/usr/local/lib
> -L/usr/alpha-r
> edhat-linux/lib -L/usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.90.29
> /usr/lib/comp
> aq/ccc-6.2.9.002-2/alpha-linux/bin/crti.o
> /usr/lib/compaq/ccc-6.2.9.002-2/alpha-
> linux/bin/crtbegin.o foo.o -lgcc -lc -lgcc -lots
> /usr/lib/compaq/ccc-6.2.9.002-2
> /alpha-linux/bin/crtend.o
> /usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/bin/crtn.o
I am not sure if I get this right: your patch fixes a bug with linking
a DSO generated by ld on RedHat 5.2. I don't know enough about it.
H.J.