Thread (7 messages) 7 messages, 3 authors, 2012-09-26

Missing __versions section on .ko

From: Ramesh.P <hidden>
Date: 2012-09-19 00:54:03

Hi,

'Invalid module' is typically thrown when you don't compile your
module against the kernel you are linking into. I think __versions
section is added by vermagic.o as part of build process. Please refer
http://lwn.net/images/pdf/LDD3/ch02.pdf, Version dependency section
for more details.

Thanks,
Ramesh

On Tue, Sep 18, 2012 at 7:10 AM, Pritam Bankar
[off-list ref] wrote:
On Tue, Sep 18, 2012 at 7:27 PM, Pritam Bankar
[off-list ref] wrote:
quoted
Any idea what causes __versions section to get added in *.ko module. A
simple hello.ko on ubuntu 12.04 i386 machine gets loaded successfully.
Other module just doesn't get loaded giving error " Invalid module ".
When I compared both modules with objdump -h I found __versions
section was missing from second module and that can be the reason its
not getting loaded. How can I add this section to other .ko ? What
causes __versions to get added in ko ?

I have compiled both modules with modpost and Module.symvers.


 Thanks,
 Pritam Bankar

--

Pritam Bankar

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help