> As posted above http://pastebin.com/LijCA8Km shows that there are some 
> symbols that are undefined. I see that in x86, these symbols are also 
> undefined. I don't really know what happens in the background if a symbol is 
> undefined but there is no problem running valgrind on x86 with these 
> undefined symbol.

You must find out where is [and why is] 'getpagesize' in your environment.

For instance, on amd64 it is undefined in vgpreload_memcheck-amd64-linux.so:
   000000208a28  000200000007 R_X86_64_JUMP_SLO 0000000000000000 getpagesize + 0
        2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND getpagesize
       79: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND getpagesize
but defined in /lib64/libc.so.6:
   873: 0000003d25ed8e80    23 FUNC    WEAK   DEFAULT   12 
getpagesize@@GLIBC_2.2.5
  1796: 0000003d25ed8e80    23 FUNC    GLOBAL DEFAULT   12 
__getpagesize@@GLIBC_2.2.5
  1977: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS getpagesize.c
  5027: 0000003d25ed8e80    23 FUNC    LOCAL  DEFAULT   12 __GI___getpagesize
  6204: 0000003d25ed8e80    23 FUNC    WEAK   DEFAULT   12 getpagesize
  6768: 0000003d25ed8e80    23 FUNC    GLOBAL DEFAULT   12 __getpagesize

On amd64, then either memcheck actually does not call getpagesize(), or libc
supplies a definition.  Apparently in your environment memcheck does call
getpagesize, but you get a complaint that memcheck cannot see any definition 
for it.

Therefore, add the obvious definition to vgpreload_core-arm-linux.so
and vgpreload_memcheck-arm-linux.so.  Specifically, insert:
        int getpagesize() { return 4096; }
into appropriate source file(s), then re-make valgrind until there is no more 
"UND getpagesize".

Alternatively, figure out what valgrind/config.h.in is doing with 
HAVE_GETPAGESIZE,
then change so that it reflects reality for your _runtime_ environment.  Again,
re-make valgrind until there is no more "UND getpagesize".

-- 

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to