This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
MIPS GOT overflow in gcc 3.2.
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Eric Christopher <echristo at redhat dot com>
- Cc: linux-mips at oss dot sgi dot com,GNU C Library <libc-alpha at sources dot redhat dot com>,binutils at sources dot redhat dot com
- Date: Mon, 1 Jul 2002 18:46:40 -0700
- Subject: MIPS GOT overflow in gcc 3.2.
On Mon, Jul 01, 2002 at 06:29:24PM -0700, H. J. Lu wrote:
>
> libjava failed to build. I got so many
>
> .libs/prims.o: In function `_Jv_ThrowBadArrayIndex':
> /home/hjl/work/gnu/src/gcc/gcc/libjava/prims.cc:313: relocation truncated to
> fit: R_MIPS_GOT16 java::lang::ArrayIndexOutOfBoundsException::class$
> .libs/prims.o: In function `_Jv_ThisExecutable(char const*)':
> /home/hjl/work/gnu/src/gcc/gcc/libjava/prims.cc:722: relocation truncated to
> fit: R_MIPS_CALL16 strcpy
> .libs/jni.o: In function `mangled_name':
> /home/hjl/work/gnu/src/gcc/gcc/libjava/gcj/cni.h:70: relocation truncated to
> fit: R_MIPS_CALL16 java::lang::Class::getName()
> .libs/jni.o: In function `mangled_name':
> :50: relocation truncated to fit: R_MIPS_CALL16 java::lang::Class::getName()
>
> I don't know if it is due to GOT overflow or something else. gcc 3.1.1
> builds fine.
>
For gcc 3.1.1, I got
[17] .got PROGBITS 0068b8a0 64b8a0 00ff90 04 WAp 0 0
16
0x00ff90 is very close to 64K. I thought it would only happen to KDE.
H.J.