<br><br><div class="gmail_quote">On Tue, Sep 18, 2012 at 10:10 PM, Pritam Bankar <span dir="ltr"><<a href="mailto:pritambankar1988@gmail.com" target="_blank">pritambankar1988@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">On Tue, Sep 18, 2012 at 7:27 PM, Pritam Bankar<br>
<<a href="mailto:pritambankar1988@gmail.com">pritambankar1988@gmail.com</a>> wrote:<br>
> Any idea what causes __versions section to get added in *.ko module. A<br>
> simple hello.ko on ubuntu 12.04 i386 machine gets loaded successfully.<br>
> Other module just doesn't get loaded giving error " Invalid module ".<br>
> When I compared both modules with objdump -h I found __versions<br>
> section was missing from second module and that can be the reason its<br>
> not getting loaded. How can I add this section to other .ko ? What<br>
> causes __versions to get added in ko ?<br>
<br>
<br>
</div>I have compiled both modules with modpost and Module.symvers.<br>
<br>
<br></blockquote><div> </div><div>The real reason why kernel prevent the module outside to insmod is ABI,
Application binary interface, which is referred in
<a href="http://en.wikipedia.org/wiki/Application_binary_interface">http://en.wikipedia.org/wiki/Application_binary_interface</a>. If you do
want to bypass it without rebuilding kernel ,you can do like this.
<a href="http://hi.baidu.com/wzt85/item/dcea082c90c9ed0942634ad2">http://hi.baidu.com/wzt85/item/dcea082c90c9ed0942634ad2</a> :) <br></div></div><br>