MIPS cross glibc?

Ulf Carlsson ulfc@calypso.engr.sgi.com
Sat Sep 2 15:12:00 GMT 2000

"Brian R. Gaeke" <brg@sartre.dgate.ORG> writes:

> Sorry for the terseness of this query, but: using gcc-2.95.2 and
> binutils 2.10 configured --host=i686-pc-linux-gnu --target=mipsel-linux
> I am trying to compile glibc 2.1.92 with the same target.  I get this
> error message from the assembler:
> ../sysdeps/mips/setjmp.S:43: Error: Can not represent BFD_RELOC_16_PCREL_S2 relocation in this object file format.
> I'm not quite sure where to start with this -- should I be using a different
> compiler? a different binutils (and hence a different as)? a different glibc?
> I thought that ELF could handle the BFD_RELOC_16_PCREL_S2 relocation, but I'm
> not even certain that it should be generated here.

This happens when you try to assemble the ``j'' instruction in PIC
code.  I think it should work with GCC 2.96, there was some
incosistency in the spec files if I remember correctly.  Make sure
that PIC is defined so that the right code in setjmp.S is used.


More information about the Gcc mailing list