程序源码:
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
本文深入探讨了程序源码中的关键函数定义及其作用,并详细介绍了编译过程和连接器的作用,同时展示了如何使用特定命令进行编译和连接,以及如何去除ELF头以优化二进制文件。
1067

被折叠的 条评论
为什么被折叠?



