> 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:
> #ifndef CONFIG_MIPS_DECSTATION
> .org 0x8000
> .org . + 0x8000
> #endif /* CONFIG_MIPS_DECSTATION */
> 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 -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-126.96.36.199 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
Paul M. Antoine, Net: firstname.lastname@example.org
Softway Pty Ltd WWW: www.softway.com.au
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.