PATCH: Handle R_ALPHA_NONE
H . J . Lu
hjl@lucon.org
Tue Apr 16 17:31:00 GMT 2002
On Mon, Apr 15, 2002 at 11:48:35PM -0700, Richard Henderson wrote:
> On Mon, Apr 15, 2002 at 09:45:53PM -0700, H . J . Lu wrote:
> > The issue is ELF/alpha allocates more relocation entries for ld.so than
> > needed.
>
> But why? It is already trying to compute exactly how many
> are needed.
>
I am enclosing a testcase here. You need an alpha gcc which supports
string merge to duplcate it. I included .o files in my tarball so that
you can duplcate with a cross binutils.
# make
gcc -fPIC -O -c x.c
gcc -fPIC -O -c y.c
ld -r -m elf64alpha x.o y.o
ld -m elf64alpha -O1 -shared -o bad.so a.out -z nocombreloc
rm -f a.out
readelf -r bad.so | grep NONE
000000000000 000000000000 R_ALPHA_NONE
0000000000000000
ld -m elf64alpha -O1 -shared -o good.so x.o y.o -z nocombreloc
readelf -r good.so | grep NONE
make: *** [all] Error 1
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.tar.gz
Type: application/x-gzip
Size: 888 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20020416/e8b39502/attachment.bin>
More information about the Binutils
mailing list