交叉编译arm32无法正确运行程序
RelaxOne opened this issue · 1 comments
RelaxOne commented
iDings commented
对thumb模式跟arm模式混合使用的话,现在的打桩需要做下处理,
我现在正在使用rt-thread,它的qemu-vexpress-a9是使用的thumb模式的libc,然后用cpp-stub打桩的话之后会挂掉。
arm-none-eabi-gcc -march=armv7-a -marm -msoft-float --print-file-name=libc.a
gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v7/nofp/libc.a
初步想法是, 对于thumb模式的话,获取的符号地址的最地位是1,增对这个需要做下特殊处理,但是我现在还没有成功构建thumb到arm的跳转指令