2006年1月12日木曜日

otool -L

なんとなくメモ

Mac OS X にゃlddコマンドがない。
素のlddならotool -L でソレっぽい感じ。

sh-2.05b$ file Fugu
Fugu: Mach-O fat file with 2 architectures
Fugu (for architecture ppc): Mach-O executable ppc
Fugu (for architecture i386): Mach-O executable i386

Universal Binary ですなー。

sh-2.05b$ otool -L Fugu
Fugu:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, curren
t version 11.0.0)
/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0,
current version 24989.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, curr
ent version 128.0.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version
1.0.0, current version 18.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility ver
sion 150.0.0, current version 368.24.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.2)

0 件のコメント:

コメントを投稿