[Top] [All Lists]

RE: RE: _gp_disp

To: "'Zhang Fuxin'" <>, "Sun, Lei" <>
Subject: RE: RE: _gp_disp
From: "Sun, Lei" <>
Date: Wed, 12 Sep 2001 12:48:57 -0400
  Unfortunately, make clean didn't work, the linking problem still sit


-----Original Message-----
From: Zhang Fuxin []
Sent: Wednesday, September 12, 2001 12:38 PM
To: Sun, Lei
Subject: Re: RE: _gp_disp

Sun, Lei,您好!

 I think a make clean will do.
 You got some .o lurking compiled without the flags

在 2001-09-12 11:57:00 您写道:
>Thanks for the kind response.
>after modified my Makefile according to Pete's suggestion, But I got the
>following erro when linking
>/opt/Embedix/tools/mipsel-linux/bin/ld: prism2dl.o: linking PIC files with
>IC files
>/opt/Embedix/tools/mipsel-linux/bin/ld: prism2dl.o: uses different e_flags
>(0x100) fields than previous modules(0x0)
>Bad value: failed to merge target specific data of file prism2dl.o
>ANy more input?
>thank you!
>-----Original Message-----
>From: Jun Sun []
>Sent: Monday, September 10, 2001 7:18 PM
>To: Pete Popov
>Cc: Sun, Lei; Debian-Mips (E-mail)
>Subject: Re: _gp_disp
>Pete Popov wrote:
>> Sun, Lei wrote:
>> > Hi:
>> >   I was trying to port a wireless lan driver to MIPS based platform
>> > 79S334), the compilation seems fine, But when I try to load the created
>> > module, it tells me "unresoved symbol _gp_disp".( I cross-compiled it
>> > mipsel-gcc compiler).
>> >   By doing a quick grep in the driver source, I didn't find the gp_disp
>> > symbol. My question is where did the _gp_disp come from and how I
>> > solve this problem?
>> >
>> > Appreciate your help!
>> You did not use the correct gcc options. Add these to your gcc flags and
>> should work (replace -mcpu=<cpu> if you need to):
>> -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
>> -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE
>I think some of the options might not be necessary, but you definitely need
>To UNSUBSCRIBE, email to
>with a subject of "unsubscribe". Trouble? Contact


            Zhang Fuxin

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