为 armv5 编译 Valgrind [英] Compile Valgrind for armv5
问题描述
大家.我在为 armv5(arm926ej-s) 交叉编译 valgrind 时遇到了一些问题.我可以找出其中的一些,但有一个我无法解决.我会写这些问题:
Valgrind 在
configure
中不支持 armv5,我用armv7*|arm*)
代替了armv7*)
并且它效果很好.
<块引用>-mcpu=cortex-a8
不对,因为我有一个 arm926ej-s CPU.所以我用这个命令将它们全部替换到 Makfiles 中:sed -i 's/-mcpu=cortex-a8/-mcpu=arm926ej-s/g' `find .-姓名"Makefile*"`
问题来了.armv5不支持源码中的
movw
和movt
.错误信息是:
<块引用>
m_dispatch/dispatch-arm-linux.S:汇编消息:m_dispatch/dispatch-arm-linux.S:122: 错误:选定的处理器不支持`movw r1,#47'm_dispatch/dispatch-arm-linux.S:123: 错误:选定的处理器不支持`movw r2,#0'm_dispatch/dispatch-arm-linux.S:175: 错误:所选处理器不支持`movw r1,#:lower16:vgPlain_stats__n_xindirs_32'm_dispatch/dispatch-arm-linux.S:176: 错误:选定的处理器不支持`movt r1,#:upper16:vgPlain_stats__n_xindirs_32'm_dispatch/dispatch-arm-linux.S:183: 错误:所选处理器不支持`movw r1,#(((1<<15))-1)'m_dispatch/dispatch-arm-linux.S:184: 错误: 所选处理器不支持`movw r4,#:lower16:vgPlain_tt_fast'm_dispatch/dispatch-arm-linux.S:187: 错误:选定的处理器不支持`movt r4,#:upper16:vgPlain_tt_fast'm_dispatch/dispatch-arm-linux.S:200: 错误: 选定的处理器不支持`movw r1,#:lower16:vgPlain_stats__n_xindir_misses_32'm_dispatch/dispatch-arm-linux.S:201:错误:选定的处理器不支持`movt r1,#:upper16:vgPlain_stats__n_xindir_misses_32'
我正在考虑用 mov
代替 movw
和 movt
.但我不熟悉汇编代码.有人可以帮忙吗?谢谢!
bug 248998 在 valgrind 错误跟踪器中,它试图添加对 armv5 的支持,但我不知道它们有多完整或它们的工作情况如何.
无论如何,它们可能是您工作的一个很好的起点.
everyone. I got some problems while cross compile valgrind for armv5(arm926ej-s). I can figure out some of them, but there is one I cannot solve. I will write these problems:
Valgrind don't support armv5 in
configure
, I insteadarmv7*)
witharmv7*|arm*)
and it works well.-mcpu=cortex-a8
is not right since I have a arm926ej-s CPU. So I use this command to replace them all in Makfiles:sed -i 's/-mcpu=cortex-a8/-mcpu=arm926ej-s/g' `find . -name "Makefile*"`
There comes the problem.
movw
andmovt
in the source code is not supported by armv5. The error message is:
m_dispatch/dispatch-arm-linux.S: Assembler messages: m_dispatch/dispatch-arm-linux.S:122: Error: selected processor does not support `movw r1,#47' m_dispatch/dispatch-arm-linux.S:123: Error: selected processor does not support `movw r2,#0' m_dispatch/dispatch-arm-linux.S:175: Error: selected processor does not support `movw r1,#:lower16:vgPlain_stats__n_xindirs_32' m_dispatch/dispatch-arm-linux.S:176: Error: selected processor does not support `movt r1,#:upper16:vgPlain_stats__n_xindirs_32' m_dispatch/dispatch-arm-linux.S:183: Error: selected processor does not support `movw r1,#(((1<<15))-1)' m_dispatch/dispatch-arm-linux.S:184: Error: selected processor does not support `movw r4,#:lower16:vgPlain_tt_fast' m_dispatch/dispatch-arm-linux.S:187: Error: selected processor does not support `movt r4,#:upper16:vgPlain_tt_fast' m_dispatch/dispatch-arm-linux.S:200: Error: selected processor does not support `movw r1,#:lower16:vgPlain_stats__n_xindir_misses_32' m_dispatch/dispatch-arm-linux.S:201: Error: selected processor does not support `movt r1,#:upper16:vgPlain_stats__n_xindir_misses_32'
I'm thinking of instead of movw
and movt
with mov
. But I'm not familiar with assembly code. Any one could help? Thanks!
There are some patches on bug 248998 in the valgrind bug tracker which attempt to add support for armv5 but I have no how complete they are or how well they work.
They would probably make a good starting point for your work anyway.
这篇关于为 armv5 编译 Valgrind的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!