Skip to content

交叉编译arm32无法正确运行程序 #28

Description

@RelaxOne

前两天在使用 stub 进行插桩时,遇到了在 arm32 上执行段错误的问题,通过对源代码的反汇编分析发现,使用 arm-linux-g++ 编译器编译出来的地址和程序中获取函数的地址有差距,后来发现需要在编译的时候添加 -marm 参数。这样就能得到正确的地址了。
11f6541a1ddc6849375b98c057e77f2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions