problem linking an "object" in kernel build
problem linking an "object" in kernel build
- Subject: problem linking an "object" in kernel build
- From: "billy lau" <email@hidden>
- Date: Mon, 9 Jul 2007 15:27:39 -0500
Hi list,
I am wondering if anybody has any success in linking an independent object or a library to the kernel itself? What I'm currently doing is that I am modifying the kernel memory allocator to call certain functions not defined by the kernel, but built independently, and therefore, a separate library. However, as I am doing that, the make gives me an error as:
/usr/bin/ld: <somefile>.o incompatible, file contains unsupported type of section 5 (__IMPORT,__jump_table) in load command 0 (must specify "-dynamic" to be used)
collect2: ld returned 1 exit status
Does anyone knows a way to work around this?
I have also seen make calling seg_hack to convert some .o files and I tried to do that manually too, but seg_hack gives me a
can't process -dynamic object: <somefile>.o
Any idea?
thank you.
- billy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden