insmod: error inserting in 2.6
I have compiled the code on 2.6 kernel. Compilation doesn't through any error. But, when i try to insert the module i get this error,
insmod: error inserting './hello.o': -1 Invalid module format
I read some of threads, the compilation in 2.6 kernel is different.
Can anyone let me know the difference in 2.4 and 2.6. or please let me know you to compile for 2.6.
If i compile same code in 2.4 it works fine.