|
From: Jose C. <jos...@if...> - 2007-02-09 12:56:19
|
Hi everyone, I am using Valgrind 3.2.3, trying to compile it in a cross-compile environment, with following information: Host machine: PowerPC with Linux 2.4.25 Cross compiler: ppc-linux-gcc (GCC) 3.3.3 (DENX ELDK 3.1.1 3.3.3-10) Compiling in a i686 machine with Linux 2.4.21-138-smp To configure Valgrind, I used the following command: ./valgrind-3.2.3> ./configure --prefix=/data/valgrind --exec-prefix=/data/valgrind --disable-tls --host=ppc-linux --build=ppc (The folder /data/valgrind will be later mounted in the PowerPC machine over NFS) Then, I use "make install" to compile it: no error was reported, just a couple of warnings in sim.c and calling inline functions. I had to execute ./VEX/auxprogs/genoffsets after logging in the host PPC machine. My issue is the following: I launched valgrind and try to debug the "busybox" application, running the "date" command. It does not depend on the application (tried with lots of them) and I received always the follwing error: valgrind: /bin/busybox: bad ELF magic number I searched in google and anything was found. Then, I looked in to valgrind source code and I found that the problem is in the function VG_(pread). This function does not fill the information from the file into the buffer. I do not know if my problem root is in the Valgrind configuration and/or compilation, or in the Valgrind version, or ther cause. Ideas? Thanks for the help, Jose Camacho -- View this message in context: http://www.nabble.com/Error-%22Bad-ELF-magic-number%22-tf3200231.html#a8885223 Sent from the Valgrind - Users mailing list archive at Nabble.com. |