* Re: RE: _gp_disp
@ 2001-09-12 16:37 Zhang Fuxin
0 siblings, 0 replies; 6+ messages in thread
From: Zhang Fuxin @ 2001-09-12 16:37 UTC (permalink / raw)
To: Sun, Lei; +Cc: linux-mips@oss.sgi.com
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=<cpu> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: RE: _gp_disp
@ 2001-09-12 16:48 Sun, Lei
2001-09-12 16:50 ` H . J . Lu
2001-09-12 23:45 ` Ralf Baechle
0 siblings, 2 replies; 6+ messages in thread
From: Sun, Lei @ 2001-09-12 16:48 UTC (permalink / raw)
To: 'Zhang Fuxin', Sun, Lei; +Cc: linux-mips
Hi:
Unfortunately, make clean didn't work, the linking problem still sit
there!
thanks
lei
-----Original Message-----
From: Zhang Fuxin [mailto:fxzhang@ict.ac.cn]
Sent: Wednesday, September 12, 2001 12:38 PM
To: Sun, Lei
Cc: linux-mips@oss.sgi.com
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
>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=<cpu> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: RE: _gp_disp
2001-09-12 16:48 Sun, Lei
@ 2001-09-12 16:50 ` H . J . Lu
2001-09-12 23:45 ` Ralf Baechle
1 sibling, 0 replies; 6+ messages in thread
From: H . J . Lu @ 2001-09-12 16:50 UTC (permalink / raw)
To: Sun, Lei; +Cc: 'Zhang Fuxin', linux-mips
On Wed, Sep 12, 2001 at 12:48:57PM -0400, Sun, Lei wrote:
> Hi:
> Unfortunately, make clean didn't work, the linking problem still sit
> there!
>
Please check the kernel source how to build the mips kernel modules.
# make modules
should give you a clue.
H.J.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: RE: _gp_disp
@ 2001-09-12 16:53 Sun, Lei
2001-09-12 16:57 ` H . J . Lu
0 siblings, 1 reply; 6+ messages in thread
From: Sun, Lei @ 2001-09-12 16:53 UTC (permalink / raw)
To: 'H . J . Lu', Sun, Lei; +Cc: 'Zhang Fuxin', linux-mips
The source I am building is not a kernel module, I built kernel module with
no problem.
-----Original Message-----
From: H . J . Lu [mailto:hjl@lucon.org]
Sent: Wednesday, September 12, 2001 12:50 PM
To: Sun, Lei
Cc: 'Zhang Fuxin'; linux-mips@oss.sgi.com
Subject: Re: RE: _gp_disp
On Wed, Sep 12, 2001 at 12:48:57PM -0400, Sun, Lei wrote:
> Hi:
> Unfortunately, make clean didn't work, the linking problem still sit
> there!
>
Please check the kernel source how to build the mips kernel modules.
# make modules
should give you a clue.
H.J.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: RE: _gp_disp
2001-09-12 16:53 RE: _gp_disp Sun, Lei
@ 2001-09-12 16:57 ` H . J . Lu
0 siblings, 0 replies; 6+ messages in thread
From: H . J . Lu @ 2001-09-12 16:57 UTC (permalink / raw)
To: Sun, Lei; +Cc: 'Zhang Fuxin', linux-mips
On Wed, Sep 12, 2001 at 12:53:39PM -0400, Sun, Lei wrote:
> The source I am building is not a kernel module, I built kernel module with
> no problem.
>
What are you building? You said you were trying to port a wireless lan
driver to MIPS based platform and having problems with it.
H.J.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: RE: _gp_disp
2001-09-12 16:48 Sun, Lei
2001-09-12 16:50 ` H . J . Lu
@ 2001-09-12 23:45 ` Ralf Baechle
1 sibling, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2001-09-12 23:45 UTC (permalink / raw)
To: Sun, Lei; +Cc: 'Zhang Fuxin', linux-mips
On Wed, Sep 12, 2001 at 12:48:57PM -0400, Sun, Lei wrote:
> Unfortunately, make clean didn't work, the linking problem still sit
> there!
This is a linker bug which has been fixed several months ago.
Ralf
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-09-12 23:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-12 16:53 RE: _gp_disp Sun, Lei
2001-09-12 16:57 ` H . J . Lu
-- strict thread matches above, loose matches on Subject: below --
2001-09-12 16:48 Sun, Lei
2001-09-12 16:50 ` H . J . Lu
2001-09-12 23:45 ` Ralf Baechle
2001-09-12 16:37 Zhang Fuxin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox