Compiling Valgrind for armv5

all. I am having trouble while cross compile valgrind for armv5 (arm926ej-s). I can figure out some of them, but there is one that I cannot solve. I will write these problems:

  • Valgrind does not support armv5 in configure

    instead armv7*)

    with armv7*|arm*)

    and it works well.

  • -mcpu=cortex-a8

    is incorrect as I have arm926ej processor. So I use this command to replace them all in the Makfiles:

    sed -i 's / -mcpu = cortex-a8 / -mcpu = arm926ej-s / g' `find. -name "Makefile *" `

  • A problem arises. movw

    and movt

    armv5 is not supported in source code. Error message:

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 think instead of movw

and movt

with mov

. But I am not familiar with the assembly code. Anyone can help? Thank!

+1


source to share


1 answer


There are some fixes for bug 248998 in valgrind's buffer tracker trying to add armv5 support, but I don't have how complete they are or how well they work.



Either way, they will probably make a good starting point for your work.

+2


source







All Articles