程序源码:
int (*show)(const char *,...); int main(int argc, char const *argv[]) { show = 0x80522860; show("hello world my god!\n"); return 0; }只编译不连接:
arm-linux-gcc -c -o p.o p.c
指定地址连接:
arm-linux-ld -Ttext=83000000 p.o -o p
arm-linux-objcopy -L elf32-littlearm -O binary p p.nohead