_gp_disp
Sun, Lei,您好!
I think a make clean will do.
You got some .o lurking compiled without the flags
Quoted 43 lines · 在 2001-09-12 11:57:00 您写道:
Thanks for the kind response.
after modified myMakefileaccording 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 differente_flags(0x100) fields than previous modules(0x0)
Bad value: failed to merge target specific data of file prism2dl.oANy more input?
thank you!
lei-----Original Message-----
From: Jun Sun [mailto:[email protected]]
Sent: Monday, September 10, 2001 7:18 PM
To: Pete Popov
Cc: Sun, Lei; Debian-Mips (E-mail)
Subject: Re:_gp_dispQuoted 11 lines · Pete Popov
Quoted 9 lines · Lei
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 thegp_disp
symbol. My question is where did the_gp_dispcome from and how I should solve this problem?Quoted 3 lines
Quoted 1 line
Appreciate your help!
You did not use the correct gcc options. Add these to your gcc flags and
it
Quoted 3 lines
should work (replace -mcpu=<cpu> if you need to):
-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -G
0
Quoted 1 line
-mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE
Quoted 13 lines
-mlong-calls
Quoted 2 lines
-DEXPORT_SYMTAB
I think some of the options might not be necessary, but you definitely need "-DKERNEL"
Jun
Signature · 2 lines
To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]
致
礼!
Zhang Fuxin
[email protected]