Hi ,<br>I am using k2.4.2 with cross compiler for PowerPC 8245 platform .<br>When I try to do an insmod of my driver it complains <br><br>unhandled reloc 18<br>insmod: Unhandled relocation of type 18 .......<br><br>for all the symbols in the driver .
<br><br>I am compiling my driver as a module using -fPIC and then doing ld -r mydriver -o mydrivernew `gcc -print-libgcc-file-name`<br><br>When I do an insmod mydrivernew it gives these relocation errors .<br><br>The reason why i using ld is that my code uses 64 bit division on 32 biut platform so when i try to do insmod mydriver
<br>it says undefined symbol __udivdi3 <br><br>I am able to locate this symbol in libgcc and hence I am trying to include it with my driver mydriver since I am not able to compile my kernel with gcc as this library symbol __udivdi3 is not exported in my kernel image when linked with libgcc with vmlinux .
<br><br>Please suggest me how to get rid of these relocation warnings ???<br><br>Thanks<br>Arun<br><br><br clear="all"><br>