* error:Unhandled relocation of type 7 for
@ 2005-02-17 3:23 李建坤
2005-02-21 12:34 ` Thiemo Seufer
0 siblings, 1 reply; 3+ messages in thread
From: 李建坤 @ 2005-02-17 3:23 UTC (permalink / raw)
To: linux-mips
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 1745 bytes --]
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
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
Have you come up with these problems? and Could you help me or give me some suggestions?
Thank you in advance!
¡¡ li_jiankun@hotmail.com
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-02-17
ÿ÷¨,·µã@Åë¸ã\¯j\x193½Ç
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: error:Unhandled relocation of type 7 for
2005-02-17 3:23 error:Unhandled relocation of type 7 for 李建坤
@ 2005-02-21 12:34 ` Thiemo Seufer
2005-02-21 13:59 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Thiemo Seufer @ 2005-02-21 12:34 UTC (permalink / raw)
To: ??????; +Cc: linux-mips
?????? 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: error:Unhandled relocation of type 7 for
2005-02-21 12:34 ` Thiemo Seufer
@ 2005-02-21 13:59 ` Ralf Baechle
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2005-02-21 13:59 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: ??????, linux-mips
On Mon, Feb 21, 2005 at 01:34:45PM +0100, Thiemo Seufer wrote:
> Date: Mon, 21 Feb 2005 13:34:45 +0100
> To: ?????? <li_jiankun@hotmail.com>
> Cc: linux-mips <linux-mips@linux-mips.org>
> Subject: Re: error:Unhandled relocation of type 7 for
> Content-Type: text/plain; charset=us-ascii
> From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
>
> ?????? 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).
GP Optimization has _never_ done anything useful on Linux as such I blame
the person who put that -G 8 crap into gcc.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-02-21 14:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-17 3:23 error:Unhandled relocation of type 7 for 李建坤
2005-02-21 12:34 ` Thiemo Seufer
2005-02-21 13:59 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox