LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 08-25-2006, 02:08 PM   #1
Mechanic
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.
 
  


Reply


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


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

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