Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-25-2006, 02:08 PM   #1
LQ Newbie
Registered: Jun 2003
Posts: 24

Rep: Reputation: 15
Linking precompile archive/object files with kernel module possible?

I'm trying to build a filesystem kernel module in which I call functions that are in a precompiled proprietary library. Is this possible? I've tried to extract the object files from the archive and then manually link them with my module object file. It links without complaints but when I try to load the module into the kernel it fails with

insmod: error inserting 'dsfs.ko': -1 Invalid module format

I was able to get this module to work when I had created my own library object files (before the vendor had given me their library). It seems the module build system has no problem linking several object files to create a module as long as it can build them all. Any ideas?

Last edited by Mechanic; 08-25-2006 at 02:14 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem linking f77 and f90 object files Make problem (I think) TheBrick Programming 1 05-22-2006 06:17 AM
g++ trouble linking against archive exitsfunnel Programming 3 01-05-2005 09:16 AM
Linking whole archive into shared lib mj_ Programming 0 07-23-2004 06:00 AM
How to write a kernel module(kernel object, .ko) on linux-2.6.0? oskernel Programming 1 10-21-2003 02:20 PM
How to write a kernel module(kernel object, .ko) on linux-2.6.0? oskernel Linux - Software 2 10-18-2003 06:04 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration