• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: xcode-2.4 cctools-622.3 ld and KEXTs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xcode-2.4 cctools-622.3 ld and KEXTs


  • Subject: Re: xcode-2.4 cctools-622.3 ld and KEXTs
  • From: Rick Altherr <email@hidden>
  • Date: Tue, 15 Aug 2006 19:51:30 -0700

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

_______________________________________________ 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
  • Follow-Ups:
    • Re: xcode-2.4 cctools-622.3 ld and KEXTs
      • From: "Bhavesh Davda" <email@hidden>
References: 
 >xcode-2.4 cctools-622.3 ld and KEXTs (From: "Bhavesh Davda" <email@hidden>)

  • Prev by Date: Setting external editor for CSS files
  • Next by Date: Re: Unit Testing frameworks problem - 2.4
  • Previous by thread: xcode-2.4 cctools-622.3 ld and KEXTs
  • Next by thread: Re: xcode-2.4 cctools-622.3 ld and KEXTs
  • Index(es):
    • Date
    • Thread