Hi

I want to cross-compile valgrind for arm cortex a9.

I use this command for configuration:

./configure --prefix=/usr/valgrind  --host=armv7-unknown-linux-gnu
CC="arm-gcc --sysroot
/home/lisa/cross-build/SRC/open_source_archive/linux/toolchains/gnu_cortex-a
9_tools" CXX="arm-g++ --sysroot
/home/lisa/cross-build/SRC/open_source_archive/linux/toolchains/gnu_cortex-a
9_tools"

 

It seemed to go well. I install the binaries to arm machine and run, some
errors came out like:

 

==7390== Memcheck, a memory error detector

==7390== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.

==7390== Using Valgrind-3.7.0.SVN and LibVEX; rerun with -h for copyright
info

==7390== Command: ./testVal

==7390== 

 

valgrind:  Fatal error at startup: a function redirection

valgrind:  which is mandatory for this platform-tool combination

valgrind:  cannot be set up.  Details of the redirection are:

valgrind:  

valgrind:  A must-be-redirected function

valgrind:  whose name matches the pattern:      memcpy

valgrind:  in an object with soname matching:   ld-linux.so.3

valgrind:  was not found whilst processing

valgrind:  symbols from the object with soname: ld-linux.so.3

valgrind:  

valgrind:  Possible fixes: (1, short term): install glibc's debuginfo

valgrind:  package on this machine.  (2, longer term): ask the packagers

valgrind:  for your Linux distribution to please in future ship a non-

valgrind:  stripped ld.so (or whatever the dynamic linker .so is called)

valgrind:  that exports the above-named function using the standard

valgrind:  calling conventions for this platform.

valgrind:  

valgrind:  Cannot continue -- exiting now.  Sorry.

 

 

I file my ld-linux.so.3 like

#File ./ld-linux.so.3 

It tells me:

./ld-linux.so.3: ELF 32-bit LSB shared object, ARM, version 1 (SYSV),
dynamically linked, not stripped

 

Seems that it is already a not-stripped library.

 

Did I do anything wrong? Does anyone encounter such problem? 

 

Thanks

lisa



?????????????? - Shenzhen Taishan Online Technology Co.,Ltd. Statement
---------------------------------------------------------------------------------
??????????????????????????????????,????????,?????????????????????????????????
This e-mail and its attachment contain confidential business information. If 
you are not the intended recipient of this email, please immediately inform the 
sender,please do not disclose it and permanently delete all the original 
documents, copies and output parts of this email and its attachments.
??????????????????????????????????????????????,??????????????(??????????), 
???????????????????????
All information you received is the sender's personal opinions. Except paper 
documentation signed by Taishan Online's legal representative or chopped with 
Taishan Online's seal, any other documents or data(including but not limited to 
emails), Taishan Online refuse to recognize them as legally binding contract.
------------------------------------------------------------------------------------
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to