先进入 /toolchain4/Projects/piaoyun目录下
C代码编译方法:
main.m 文件内容如下:
#include <stdio.h>
int main()
{
printf("www.dllhook.com");
}
输入:
// 生成执行文件
/toolchain4/pre/bin/arm-apple-darwin9-gcc main.m -o test
// 生成动态库文件dylib
/toolchain4/pre/bin/arm-apple-darwin9-gcc main.m -o main.dylib --shared
ARM汇编编译方法:
armtest.s 文件内容如下:输入
/toolchain4/pre/bin/arm-apple-darwin9-gcc -g -c -o armtest armtest.s
编译完成
// 设置签名环境变量
export CODESIGN_ALLOCATE=/toolchain4/pre/bin/arm-apple-darwin9-codesign_allocate
// 签名
/toolchain4/pre/bin/ldid -S debug
发表评论