Re: Export Symbols from shared library without source

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

 



Now that I did this:

LD_PRELOAD=/topath/to/libdriver.so
export LD_PRELOAD

I get:

insmod ./interceptor.ko
insmod: error while loading shared libraries:
/path/to/libdriver.so: ELF file's phentsize not the expected size

using 2.5.73-osdl3

<quote sender="Eugene Teo">
> Hi guys,
> 
> I am trying to port the cisco vpn client to then kernel 2.5.x. I have
> made changes, and managed to compile the module. When I load the module,
> I get this:
> 
> insmod ./interceptor.ko
> Error inserting './interceptor.ko': -1 Unknown symbol in module
> 
> And in my log, I get this:
> 
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol CniPluginUnload
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol CNICallbackTable
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol cleanup_frag_queue
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol CniPluginLoad
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol CniPluginIOCTL
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol pcDeviceName
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol CniPluginDeviceCreated
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol CniNewFragment
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol handle_fragment
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol CniNewPacket
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol CniAddFragToFront
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol need_reorder_frag
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol CniReleaseFragment
> Jun 28 11:22:44 philyra kernel: interceptor: Unknown symbol CniReleasePacket
> 
> Apparently, all the unknown symbols seem to come from the shared
> library, libdriver.so, that i do not have source from. Is there
> any way to make these symbols exported so that i can use the vpn
> client?
> 
> Cheers,
> Eugene
> -- 
> Eugene TEO @ Linux Users Group, Singapore <eugeneteo@lugs.org.sg>
> GPG FP: D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5 
> main(i){putchar(182623909>>(i-1)*5&31|!!(i<7)<<6)&&main(++i);}
> 



-- 
Eugene TEO @ Linux Users Group, Singapore <eugeneteo@lugs.org.sg>
GPG FP: D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5 
main(i){putchar(182623909>>(i-1)*5&31|!!(i<7)<<6)&&main(++i);}

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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