Template Information

Trang

Create google android strace tool

Thứ Năm, 14 tháng 7, 2011 / 02:33

Prerequisite, you already have the cross compiler downloaded from download GNU toolchain site, make sure you select ARM GNU/Linux, and IA32 GNU/Linux.

1. Download the strace source distribution from SourceForge strace project
2. Extract the strace package on your linux machine
3. Set your cross compiler information with command: # export CC=your_cross_compiler_folder/bin/arm-none-linux-gnueabi-gcc
4. Add your_cross_compiler_folder/bin into your $PATH for path searching
5. Change your current folder to strace package extract folder, use command: # ./configure -host=arm-linux
6. You have the Makefile generated, edit it, append -static after CFLAGS variable in Makefile
7. Compile it with simple command: # make
8. You have the strace now, verify it with command: # file strace, you shall see "strace: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, statically linked, not stripped"

Done, you have another powerful tool for your android

0 nhận xét:

Đăng nhận xét