On Fri, Apr 02, 1999 at 10:33:17PM -0500, Ulf Carlsson wrote:
> I've been trying with egcs 1.0.2, gcc 2.7.2, binutils 2.8.1 and binutils 2.9.1
> and it doesn't make any difference. I've also been trying without -pipe and
> -fomit-frame-pointer.
Use egcs 1.0.x and binutils 2.8.1.
> This is the error message:
>
> gcc -O2 -DLINUX -mips2 -mcpu=r4600 -Wall -Wstrict-prototypes -fomit-frame-pointer
>-pipe -I/usr/src/linux/include -I../include -c -o sound.o sound.c
> /tmp/cca03757.s: Assembler messages:
> /tmp/cca03757.s:1228: Error: Can not represent BFD_RELOC_16_PCREL_S2 relocation in
>this object file format
> /tmp/cca03757.s:1285: Error: Can not represent BFD_RELOC_16_PCREL_S2 relocation in
>this object file format
> It was something about the haifa scheduler I think.
Haifa is innocent. You are trying to compile the thing into PIC code and
that won't work for kernel code. Add -fno-pic -mno-abicalls and for modules
also add -mlong-calls.
Ralf