- Download strace source code strace 4.8
- Download/Pull RPi toolchain: https://github.com/raspberrypi/tools
- Export CC variable, point to compiler RPi toolchain gcc
export CC=/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
run
export LDFLAGS=-static && ./configure --host=arm-linux
make
Check
file strace
strace: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, not stripped
No comments:
Post a Comment