Re: xcode-2.4 cctools-622.3 ld and KEXTs
Re: xcode-2.4 cctools-622.3 ld and KEXTs
- Subject: Re: xcode-2.4 cctools-622.3 ld and KEXTs
- From: "Bhavesh Davda" <email@hidden>
- Date: Wed, 16 Aug 2006 10:30:44 -0700
Hi Rick,
I tried -fapple-kext but the Mach-O image still has the UUID load command.
c++-4.0 -o foo bar1.o bar2.o bar3.o -fapple-kext -static -nostdlib -r
-lkmodc++ -lkmod -lcc_kext -lcpp_kext
So the kext still fails to load using kextload.
Thanks
- Bhavesh
On 8/15/06, Rick Altherr <email@hidden> wrote:
I believe you need to use -fapple-kext. That modifies a few things
including not adding the UUID load command.
--
Rick Altherr
Architecture and Performance Group
email@hidden
On Aug 15, 2006, at 6:02 PM, Bhavesh Davda wrote:
> Hello,
>
> I was wondering what's changed in cctools-622.3's ld (from xcode-2.4)
> versus its previous version from xcode-2.3, that could lead to
> kextload failures of my KEXT.
>
> The basic difference I see in the kext Mach-O object generated is an
> extra "load command" that looks like this:
>
> Load command 2
> cmd LC_UUID
> cmdsize 24
> uuid 0x52 0xf8 0xd5 0x38 0xc7 0xce 0x46 0x63
> 0x90 0xae 0x6b 0x1b 0x06 0x76 0x0c 0xe2
>
> My compile flags:
>
> c++-4.0 -o foo bar1.o bar2.o bar3.o -static -nostdlib -r -lkmodc++
> -lkmod -lcc_kext -lcpp_kext
>
> kextload error:
>
> kextload: extension ... appears to be valid
> kld(): ... load command 2 unknown cmd field
> kextload: kld_load_from_memory() failed for module ...
> kextload: a link/load error occured for kernel extension ,,,
>
> Load command 2 is LC_UUID, that the dynamic loader on my MacBook Pro
> (Mac OS 10.4.7) doesn't understand.
>
> Thanks
>
> - Bhavesh
>
> --
> Bhavesh P. Davda
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40apple.com
>
> This email sent to email@hidden
--
Bhavesh P. Davda
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden