Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CodeWarrior IOKit Kernel Extension building



Anyone else besides me interested in or trying to build IOKit kernel
extensions with CodeWarrior 8.3?

I have gotten the sources to compile fine with just a few #defines and the
correct access paths. Two files had assembler intrinsics CW couldn't
handle, but other than that it was very straightforward.

But both CodeWarrior linkers ('Apple Mach-O PowerPC' and 'Mac OS X PowerPC
Mach-O' linker') give me an assortment of problems I can't seem to work
around:

'Apple Mach-O PowerPC'

- Barfs when I set the target type to 'Kernel Extension'. Reports:

Expected '*/' in linker command file at line '55849562'.
An unknown error occurred when linking target 3Test Project2 for project
3Test Project2.

- Creates a more-or-less correct looking object file when I set the target
type to 'object'. But, the resulting .o file cannot be imported into my
Project Builder kext project; I get the message:

ld: ../BuiltObjects/testobject.o incompatible, file contains unsupported
type of section 2 (__TEXT,__picsymbol_stub) in load command 1 (must specify
"-dynamic" to be used)


'Mac OS X PowerPC Mach-O'
- Linker can't be beat into ignoring the (dynamically linked) external
definitions for the external references (to IOAudioFamily objects in my
case). Duh..., no stub file!


I'm bugging Metrowerks for some help, but I haven't heard back yet.

Anyone else working in this area? Hints?

Thanks in advance...

Cameron Jones
Salem Technology Associates

--
Cameron W. Jones
** Please help reduce Internet Junk Email **
** by keeping this email address confidential **
** Thank You! **
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.