linux-mips
[Top] [All Lists]

Re: error:Unhandled relocation of type 7 for

To: ?????? <li_jiankun@hotmail.com>
Subject: Re: error:Unhandled relocation of type 7 for
From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Date: Mon, 21 Feb 2005 13:34:45 +0100
Cc: linux-mips <linux-mips@linux-mips.org>
In-reply-to: <BAY16-DAV135F2C5B899BA0A6CC8E23E96D0@phx.gbl>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <BAY16-DAV135F2C5B899BA0A6CC8E23E96D0@phx.gbl>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.6+20040907i
?????? wrote:
> Hi everyone,
> 
>   I has been developing drivers for AMD MIPS CPU Au1x00, but I encounted some 
> problems, maybe you could help me!
> 
>   I cross-complile my kernel with options:
>   make CFLAGS="-D__KERNEL__ -I/work/opt/target/root/ljk/pda_linux/include 
> -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
> -pipe -fno-pic -mno-abicalls -mlong-calls -fomit-frame-pointer -I 
> /work/opt/target/root/ljk/pda_linux/include/asm/gcc -G 0 -mno-abicalls 
> -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap " -C  arch/mips/lib
> 
>   and then I compile my driver modules with following options:
>   mips_fp_le-gcc  -D__KERNEL__ -DMODULE=1 
> -I/opt/target/root/ljk/pda_linux/include -O2  -DLINUX -Wall 
> -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 
> -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix 
> include -fno-pic -mno-abicalls -mlong-calls

"-G 0 -mcpu=r4600 -mips2 -Wa,--trap" went missing.

>   but when I want to insmod this modules, the errors come:
>   insmod snd-page-alloc.o
>   snd-page-alloc.o: Unhandled relocation of type 7 for
>   snd-page-alloc.o: Unhandled relocation of type 7 for
>   snd-page-alloc.o: Unhandled relocation of type 7 for
>   snd-page-alloc.o: Unhandled relocation of type 7 for
>   snd-page-alloc.o: Unhandled relocation of type 7 for
>   snd-page-alloc.o: Unhandled relocation of type 7 for
>   snd-page-alloc.o: Unhandled relocation of type 7 for
>   snd-page-alloc.o: Unhandled relocation of type 7 for
>   snd-page-alloc.o: Unhandled relocation of type 7 for
>   snd-page-alloc.o: Unhandled relocation of type 7 for

And that's the result of it (missing -G 0, specifically).


Thiemo

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