- To: "Sun, Lei" <firstname.lastname@example.org>
- Cc: "Debian-Mips \(E-mail\)" <email@example.com>
- Subject: Re: _gp_disp
- From: "Bradley D. LaRonde" <firstname.lastname@example.org>
- Date: Tue, 11 Sep 2001 12:09:25 -0400
- Message-id: <email@example.com>
- References: <32CC5B62AF0BD2119E4C00A0C9663E226F8E25@MAIL>
If you are building your module as part of kernel (make modules) that should
take care of the flags.
You might be seeing a binutil issue. I think loadable modules were broken
until the trad[big|little]mips emulations. What version of binutils are you
----- Original Message -----
From: "Sun, Lei" <firstname.lastname@example.org>
To: "'Pete Popov'" <email@example.com>; "Jun Sun" <firstname.lastname@example.org>
Cc: "Sun, Lei" <email@example.com>; "Debian-Mips (E-mail)"
Sent: Tuesday, September 11, 2001 11:19 AM
Subject: RE: _gp_disp
> Could you tell me which options will cause the "_gp_disp" disappear? I
> assume some options are CPPFLAGS such as -DMODULE
> and -DEXPORT_SYMTAB. My platform is RC32334 processor from IDT system,
> mcpu option should I choose for this?
> Thank you!
> lei sun
> -----Original Message-----
> From: Pete Popov [mailto:firstname.lastname@example.org]
> Sent: Monday, September 10, 2001 7:32 PM
> To: Jun Sun
> Cc: Sun, Lei; Debian-Mips (E-mail)
> Subject: Re: _gp_disp
> Jun Sun wrote:
> > Pete Popov wrote:
> >>Sun, Lei wrote:
> >>> 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 -G
> >>-mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE
> >> -DEXPORT_SYMTAB
> > I think some of the options might not be necessary, but you definitely
> > "-DKERNEL"
> Probably not all the options are necessary, but this is safe. These are
> options the Makefiles in the kernel use.
> To UNSUBSCRIBE, email to email@example.com
> with a subject of "unsubscribe". Trouble? Contact