This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch for RELATIVE relocation for an non-loaded section


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]