[Top] [All Lists]

Re: help with asm errors

Subject: Re: help with asm errors
From: (Paul Antoine)
Date: Sun, 11 May 1997 14:03:16 +1000 (EST)
In-reply-to: <> from "David Monro" at May 11, 97 11:40:48 am
Organization: Softway Pty Ltd
David wrote:

> Got it - in the head.s that I have, these are actually
> .org . + 0x1000
> and then there is a #ifndef CONFIG_MIPS_DECSTATION around the .org for
> kernel_entry as follows:
>                 .org 0x8000
> #else
>                 .org . + 0x8000
> So of course I was getting the .org 0x8000 rather than . + 0x8000, and since
> the other entries used . +, I had gone over 0x8000 already. 

Ahhh... you fell foul of a previous hack of mine! :-)

> Changing them all back to just .org 0x?000 allows me to assemble head.S. 
> I note they are just .org 0x?000 in the 2.1.36 version (which seems to 
> have a radically different head.S anyway).

Yes, so don't worry about it.  The 2.1.14 tree is compiling fine like this.

> However I now get a really weird error when linking:
> mips-linux-ld -N -G 0  -Ttext 0x80100000 arch/mips/kernel/head.o init/main.o 
> init/version.o \
>         arch/mips/mips1/mips.o arch/mips/kernel/kernel.o arch/mips/mm/mm.o 
> kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o net/network.a \
>         fs/filesystems.a \
>         drivers/block/block.a drivers/char/char.a drivers/net/net.a \
>         arch/mips/lib/lib.a
> /amd/milawa/root/u2/staff/davidm/mips/linux-2.1.1.dec/lib/lib.a
> arch/mips/lib/lib.a -o vmlinux
> mips-linux-ld: warning: cannot find entry symbol __start; defaulting to 
> 0000000 080100000

Are you sure you want to link it as high as 0x80100000??  Even the DECStation
only steals 192K of memory down low...

> mips-linux-ld: vmlinux: Not enough room for program headers (allocated 3, 
> need 4)
> mips-linux-ld: final link failed: Bad value
> make: *** [vmlinux] Error 1
> I'm not too worried about the 'can't find symbol start', 

Yes, this is probably just a problem in your ld.script.

> but the other message is very odd. This is using binutils-2.8 and 
> gcc- with gcc-2.7.2-3.diffs and float.h found on fnet, all 
> compiled with --target=mips-linux. Anybody seen this one?

No - what object format are you compiling to?  I now leave all intermediate
object files in elf and specify ecoff-littlemips to the linker as the final
output format.

Paul M. Antoine,                                        Net:
Softway Pty Ltd                                         WWW:
PO Box 305, Strawberry Hills, NSW 2012, Australia       Tel: +61 2 9698 2322
Level 2, 79 Myrtle St, Chippendale, NSW 2008, Australia Fax: +61 2 9699 9174

"It is the lack of acceptance of diversity which threatens to 
 destroy society, NOT the free expression of it." - Me.

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