shinh / maloader

mach-o loader for linux
GNU General Public License v3.0
606 stars 63 forks source link

I'v got some problems with atos and libCoreFoundation.so #7

Open emil-palm opened 12 years ago

emil-palm commented 12 years ago

Hi. First to say, awsome project i works just wonderful with dwarfdump but when i needed to use "atos" from the xcode toolchain i ran into the problem with libCoreFoundation.so not not beeing found.

i'v got libCoreFoundation.so* in /usr/local/lib/ and as you then can conclude i have installed opencflite-476.19.0 and made it work.

But when i open atos i get:

../xcode_3.2.6_and_ios_sdk_4.3/root/usr/bin/atos -arch armv7
Couldn't load libCoreFoundation.so for /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
NSNonOwnedPointerHashCallBacks: undefined symbol
OBJC_CLASS_$_NSAssertionHandler: undefined symbol
OBJC_CLASS_$_NSAutoreleasePool: undefined symbol
OBJC_CLASS_$_NSMutableString: undefined symbol
OBJC_CLASS_$_NSProcessInfo: undefined symbol
OBJC_CLASS_$_NSString: undefined symbol
_NSConcreteStackBlock: undefined symbol
objc_msgSend_fixup: undefined symbol
objc_msgSend_fixup: undefined symbol
objc_msgSend_fixup: undefined symbol
objc_msgSend_fixup: undefined symbol
objc_msgSend_fixup: undefined symbol
objc_msgSend_fixup: undefined symbol
objc_msgSend_fixup: undefined symbol
objc_msgSend_fixup: undefined symbol
OBJC_CLASS_$_NSMutableArray: undefined symbol
OBJC_CLASS_$_NSMutableDictionary: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
__CFConstantStringClassReference: undefined symbol
AuthorizationCopyRights: undefined symbol
AuthorizationCreate: undefined symbol
AuthorizationFree: undefined symbol
AuthorizationFreeItemSet: undefined symbol
CSIsNull: undefined symbol
CSSourceInfoGetFilename: undefined symbol
CSSourceInfoGetLineNumber: undefined symbol
CSSymbolGetName: undefined symbol
CSSymbolGetRange: undefined symbol
CSSymbolOwnerGetBaseAddress: undefined symbol
CSSymbolOwnerGetName: undefined symbol
CSSymbolOwnerGetSourceInfoWithAddress: undefined symbol
CSSymbolOwnerGetSymbolWithAddress: undefined symbol
CSSymbolicatorCreateWithPathAndArchitecture: undefined symbol
CSSymbolicatorCreateWithTask: undefined symbol
CSSymbolicatorForeachSymbolOwnerAtTime: undefined symbol
CSSymbolicatorGetSymbolOwnerCountAtTime: undefined symbol
CSSymbolicatorGetSymbolOwnerWithAddressAtTime: undefined symbol
NSCountHashTable: undefined symbol
NSCreateHashTable: undefined symbol
NSEndHashTableEnumeration: undefined symbol
NSEnumerateHashTable: undefined symbol
NSHashInsert: undefined symbol
NSNextHashEnumeratorItem: undefined symbol
NXGetArchInfoFromCpuType: undefined symbol
errc: undefined symbol
getprogname: undefined symbol
objc_enumerationMutation: undefined symbol
objc_msgSend: undefined symbol
pidFromHint: undefined symbol
posix_spawnattr_setbinpref_np: undefined symbol
proc_name: undefined symbol
proc_pidinfo: undefined symbol
proc_pidpath: undefined symbol
psName: undefined symbol
task_for_pid: undefined symbol
task_stop_peeking: undefined symbol
Undefined function called

Any ideas on what im doing wrong?

Cheers Emil

shinh commented 12 years ago

You did nothing wrong. Unfortunately, current ld-mac doesn't work for atos. It might not easy to fix this issue because implementing CS* APIs might not be trivial.

I've recently contributed a few patches for binutils to support dwarf in mach-o and I guess you might be able to use addr2line in binutils HEAD.

emil-palm commented 12 years ago

Where can i get that binutils version to test? cheers.