linux-mips-fnet
[Top] [All Lists]

Re: 1.3.58 on Magnum?

To: linux-mips@fnet.fr
Subject: Re: 1.3.58 on Magnum?
From: Systemkennung Linux <linux@mailhost.uni-koblenz.de>
Date: Sun, 4 Feb 1996 03:24:24 +0100 (MET)
In-reply-to: <9602010245.AA23471@silver.sni.CA> from "David Kerry" at Dec 31, 95 09:45:24 pm
Hi David,

Take a look at your mails headers:

> Resent-Date: Thu, 1 Feb 1996 03:36:37 +0100 (MET)
> Date: Sun, 31 Dec 1995 21:45:24 -0500

(Seems your clock is wrong by one month.  That why my elm sorted your mail
to the other ancient stuff ...)

> Hello All,
> 
>       I'm in the process of catching up again with the current
> progress (real busy at the other office :), and have run into a snag.
> I've picked up the binutils-2.6-1.diffs and the gcc-2.7.2-1.diffs and
> applied them to create a cross-development environment
> (target=mipsel-linuxelf), and the linux-1.3.58.tar.gz source
> from fnet.fr.

So far good.

                 The build seems to make it most of the way through
> until it hits the magnum4000.S file upon which the assembler complains
> (err, this is configured for a Magnum 4000, elf compiler, extra elf
> compiler by the way):

The ELF compiler may only be used for the user programs.  There is some
problem with the ELF assembler or linker that prevents to use these
tools also for the kernel.  Instead you should use the mipsel-linux
tools for building the kernel.  I know, it's annoying having to have
these two flavours of the tools ...

> mipsel-linuxelf-gcc -D__KERNEL__ 
> -I/home/davidk/mips/kernel/v1.3/linux/include\
>  -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -G0 -mno-abicalls\
>  -fno-pic -D__R4000__ -mcpu=r4400 -mips2   -c -o jazzdma.o jazzdma.c
> mipsel-linuxelf-gcc -D__KERNEL__ 
> -I/home/davidk/mips/kernel/v1.3/linux/include\
>  -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -G0 -mno-abicalls\
>  -fno-pic -D__R4000__ -mcpu=r4400 -mips2   -c -o ksyms.o ksyms.c
> /home/davidk/mips/kernel/v1.3/linux/include/asm/floppy.h:60: warning: `FDC2' 
> defined but not used
> mipsel-linuxelf-gcc -D__KERNEL__ 
> -I/home/davidk/mips/kernel/v1.3/linux/include\
>  -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -G0 -mno-abicalls\
>  -fno-pic -D__R4000__ -mcpu=r4400 -mips2  -c magnum4000.S -o magnum4000.o
> magnum4000.S: Assembler messages:
> magnum4000.S:30: Error: Can not represent relocation in this object file 
> format
> make[1]: *** [magnum4000.o] Error 1
> make[1]: Leaving directory 
> `/home/davidk/mips/kernel/v1.3/linux/arch/mips/kernel'
> make: *** [linuxsubdirs] Error 2
> 
>       Any ideas? I presume it has something to do with elf vs a.out, but
> I have no idea where to look.

Yes, it has something to do with ELF vs. a.out.  magnum4000.S contains branch
instructions to external targets.  It is possible to do this with a.out, but
not with ELF (This is no bug in the tools but in the ELF ...)  Take a look at
pica.S.  The two files are that similar that we should only be using one,
anyway.  I leave that job to one of the Magnum/M700 hackers.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>