4.2.1 LLVM cross compiler

Added new LLVM code on linux, 4.2.1 builds right out of SVN, the arm darwin code is there: http://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk/gcc/config/darwin.h srv:~# uname -a Linux srv 2.6.22-14-server #1 SMP Tue Dec 18 05:52:24 UTC 2007 x86_64 GNU/Linux srv:~# arm-apple-darwin-gcc --version arm-apple-darwin-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5546) (LLVM build) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. srv:~# cat test.c #include main() { printf("\nHello World\n"); } srv:~# arm-apple-darwin-gcc -o test test.c srv:~# file test test: Mach-O executable acorn srv:~# scp test root@iphone-01: srv:~# ssh root@iphone-01 /var/root/test Hello World

native tools

OTOOL: # ./otool -L nmap nmap: /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 94.0.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0) /usr/local/arm-apple-darwin/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) STRINGS: # ./strings /usr/bin/uptime | tail -1 Copyright %s %d Free Software Foundation, Inc. SIZE: # ./size /usr/sbin/BTServer __TEXT __DATA __OBJC others dec hex 958464 1003520 0 94256 2056240 1f6030 LIPO: # ./lipo -info /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration Non-fat file: /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration is architecture: arm STRIP: # ls -ltra nmap -rwxr-xr-x 1 root wheel 1977956 Dec 28 17:56 nmap # ./nmap -h | head -1 Nmap 4.50 ( http://insecure.org ) # ls -ltra nmap -rwxr-xr-x 1 root wheel 1977956 Dec 28 17:56 nmap # ./strip nmap # ls -ltra nmap -rwxr-xr-x 1 root wheel 1513152 Dec 28 20:42 nmap # ./nmap -h | head -1 Nmap 4.50 ( http://insecure.org ) etc... more later :)