From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8CGcMN13110 for linux-mips-outgoing; Wed, 12 Sep 2001 09:38:22 -0700 Received: from mail.ict.ac.cn ([159.226.39.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8CGcHe13104 for ; Wed, 12 Sep 2001 09:38:17 -0700 Message-Id: <200109121638.f8CGcHe13104@oss.sgi.com> Received: (qmail 25549 invoked from network); 12 Sep 2001 16:32:31 -0000 Received: from unknown (HELO heart1) (159.226.39.162) by 159.226.39.4 with SMTP; 12 Sep 2001 16:32:31 -0000 Date: Thu, 13 Sep 2001 0:37:48 +0800 From: Zhang Fuxin To: "Sun, Lei" CC: "linux-mips@oss.sgi.com" Subject: Re: RE: _gp_disp X-mailer: FoxMail 3.11 Release [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id f8CGcHe13106 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk 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 >non-P >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! >lei > >-----Original Message----- >From: Jun Sun [mailto:jsun@mvista.com] >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 (IDT >> > 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 by >> > 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 should >> > solve this problem? >> > >> > Appreciate your help! >> >> You did not use the correct gcc options. Add these to your gcc flags and >it >> should work (replace -mcpu= if you need to): >> >> -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -G >0 >> -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE >-mlong-calls >> -DEXPORT_SYMTAB >> > >I think some of the options might not be necessary, but you definitely need >"-DKERNEL" > >Jun > > >-- >To UNSUBSCRIBE, email to debian-mips-request@lists.debian.org >with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Ö Àñ£¡ Zhang Fuxin fxzhang@ict.ac.cn