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

Re: Big Endian Linux/MIPS kernel linking problem

To: linux-mips@fnet.fr
Subject: Re: Big Endian Linux/MIPS kernel linking problem
From: paul@suite.sw.oz.au (Paul Antoine)
Date: Wed, 20 Dec 1995 09:12:08 +1100 (EST)
In-reply-to: <0d6ea200@mailgw.sanders.lockheed.com> from "BHOUGH@mailgw.sanders.lockheed.com" at Dec 19, 95 11:33:30 am
Organization: Softway Pty Ltd
Hi Brannen,

I'm replying to this because I'm still having trouble posting to the
list.  Just so you know who I am, I'm currently the co-ordinator and
principal architect for the R3000 port to the DECStation...

>                On to the next problem.
>           
>                Here's a strange one...
>           
>                Mike and I are trying to compile the kernel before the 
>           Christmas break here.  So I tried it yesterday and got some 
>           linking errors.  Here's a sample:
>           
>      mips-linuxelf-ld  -r -o kernel.o ksyms.o sched.o dma.o fork.o 
> exec_domain.o 
>      panic.o printk.o sys.o module.o exit.o signal.o itimer.o info.o time.o 
>      softirq.o resource.o
>      signal.o(.text+0x3f4): relocation truncated to fit: R_MIPS_GOT16 .text
>      signal.o(.text+0x62c): relocation truncated to fit: R_MIPS_GOT16 .text
>      itimer.o(.text+0x1e8): relocation truncated to fit: R_MIPS_GOT16 .text
>      itimer.o(.text+0x208): relocation truncated to fit: R_MIPS_GOT16 .text
>      itimer.o(.text+0x274): relocation truncated to fit: R_MIPS_GOT16 .text
>      itimer.o(.text+0x3bc): relocation truncated to fit: R_MIPS_GOT16 .text
>      itimer.o(.text+0x3dc): relocation truncated to fit: R_MIPS_GOT16 .text
>      itimer.o(.text+0x404): relocation truncated to fit: R_MIPS_GOT16 .text
>      itimer.o(.text+0x634): relocation truncated to fit: R_MIPS_GOT16 .text
>      resource.o(.text+0x230): relocation truncated to fit: R_MIPS_GOT16 .text
>      resource.o(.text+0x300): relocation truncated to fit: R_MIPS_GOT16 .text
>      resource.o(.text+0x3c4): relocation truncated to fit: R_MIPS_GOT16 .text
>      resource.o(.text+0x44c): relocation truncated to fit: R_MIPS_GOT16 .text
>      make[1]: *** [kernel.o] Error 1
>      make[1]: Leaving directory `/usr/local/src/linux-1.3.39/kernel'
>      make: *** [linuxsubdirs] Error 2
>           
>                Any ideas anyone? 

I had this problem too, until I used an alternate link script that set
the _gp symbol.  I fixed it, but still feel this shouldn't need to be
done.  Hopefully Ralf will have an answer for both of us.

In the meantime, I can dig up the link script at home tonight and send
it to you if that will help.

>           We're expecting a storm tonight and 
>           tomorrow, so we might not be in 'till Thursday - lots of 
>           snow!

Cool! (Literally!)

Regards,
Paul
_______________________________________________________________________________
Paul M. Antoine,                                        Net: paul@sw.oz.au
Softway Pty Ltd                                         WWW: www.softway.com.au
PO Box 305, Strawberry Hills, NSW 2012, Australia       Tel: +61 2 698 2322
Level 2, 79 Myrtle St, Chippendale, NSW 2008, Australia Fax: +61 2 699 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>