This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: MIPS cross glibc?
- To: "Brian R. Gaeke" <brg at sartre dot dgate dot org>
- Subject: Re: MIPS cross glibc?
- From: Ulf Carlsson <ulfc at calypso dot engr dot sgi dot com>
- Date: 02 Sep 2000 15:09:38 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <20000827232129.A20218@celes.dgate.ORG>
"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.
Ulf