Unable to use exported symbols

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Hi,

I have marked certain symbols in my module as exported using EXPORT_SYMBOL.
All these symbols are non static symbols but internally they call static symbols.
This module M1 loads correctly.

Now, I just include the header file which has all these symbols while compiling module
M2. The compilation goes through except the undefined symbols warning for exported
symbols from M1. Which is fine since these would be resolved at load time.

But M2 does not load it says

no symbol version for m1_sym
Unknown symbol m1_sym

Where m1_sym is exported from M1. A look at /proc/kallsyms shows that this symbol is
exported properly.

#grep m1_sym /proc/kallsyms

f7ccb1c4    r   __ksymtab    m1_sym    [my_stuff]
f7ccb370    r   __kstrtab     m1_sym    [my_stuff]
f7ccb230    r   __kcrctab    m1_sym    [my_stuff]
31a87d38   a   __crc          m1_sym    [my_stuff]
31a87324   T                     m1_sym    [my_stuff]


What might be going wrong here?

-Leo


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux