* gp_disp
@ 2004-05-27 8:56 Nilanjan Roychowdhury
2004-05-27 8:56 ` gp_disp Nilanjan Roychowdhury
2004-05-27 9:25 ` gp_disp Ralf Baechle
0 siblings, 2 replies; 4+ messages in thread
From: Nilanjan Roychowdhury @ 2004-05-27 8:56 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 288 bytes --]
Hi,
I have a kernel module which works fine with linux X86 combo.
But when I try to compile it with mips cross toll chain it compiles well but insmod gives me error on "_gp_disp" unknown symbol.
How do I get rid of that ??? Do I need to do anything special with my compiler flags.
[-- Attachment #2: Type: text/html, Size: 4241 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* gp_disp
2004-05-27 8:56 gp_disp Nilanjan Roychowdhury
@ 2004-05-27 8:56 ` Nilanjan Roychowdhury
2004-05-27 9:25 ` gp_disp Ralf Baechle
1 sibling, 0 replies; 4+ messages in thread
From: Nilanjan Roychowdhury @ 2004-05-27 8:56 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 288 bytes --]
Hi,
I have a kernel module which works fine with linux X86 combo.
But when I try to compile it with mips cross toll chain it compiles well but insmod gives me error on "_gp_disp" unknown symbol.
How do I get rid of that ??? Do I need to do anything special with my compiler flags.
[-- Attachment #2: Type: text/html, Size: 4241 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gp_disp
@ 2004-05-27 8:58 Guangxing Zhang
0 siblings, 0 replies; 4+ messages in thread
From: Guangxing Zhang @ 2004-05-27 8:58 UTC (permalink / raw)
To: Nilanjan Roychowdhury, linux-mips@linux-mips.org
_gp_disp is a magic symbol references to which are only generated by the
assembler when generating PIC code, so you simply compiled using the
wrong options. Add ``-fno-pic -mno-abicalls'' to the options and this
problem will go away.
BTW,I find this in google, may it will be help to you !
======= nilanjan@genesis-microchip.com 2004-05-27 17:26:54 WROTE:=======
>Hi,
>I have a kernel module which works fine with linux X86 combo.
>But when I try to compile it with mips cross toll chain it compiles well but insmod gives me error on "_gp_disp" unknown symbol.
>
>How do I get rid of that ??? Do I need to do anything special with my compiler flags.
= = = = = = = = = = = = = = = = = = = =
Guangxing Zhang
guangxing@ict.ac.cn
2004-05-27 16:57:24
--------------------------------------------------------------------------------------------
Far and away the best prize that life offers is the chance to work hard at work worth doing.
--------------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gp_disp
2004-05-27 8:56 gp_disp Nilanjan Roychowdhury
2004-05-27 8:56 ` gp_disp Nilanjan Roychowdhury
@ 2004-05-27 9:25 ` Ralf Baechle
1 sibling, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2004-05-27 9:25 UTC (permalink / raw)
To: Nilanjan Roychowdhury; +Cc: linux-mips
On Thu, May 27, 2004 at 02:26:54PM +0530, Nilanjan Roychowdhury wrote:
> Hi,
> I have a kernel module which works fine with linux X86 combo.
Which provides aproximately zero proof for the correctness of your code,
sorry ...
> But when I try to compile it with mips cross toll chain it compiles well
> but insmod gives me error on "_gp_disp" unknown symbol.
>
> How do I get rid of that ??? Do I need to do anything special with my
> compiler flags.
Read the FAQ, it's described there.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-05-27 9:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-27 8:56 gp_disp Nilanjan Roychowdhury
2004-05-27 8:56 ` gp_disp Nilanjan Roychowdhury
2004-05-27 9:25 ` gp_disp Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2004-05-27 8:58 gp_disp Guangxing Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox