最新文章:

首页 code

valgrind porting

发布时间:2016年11月07日 评论数:抢沙发 阅读数:16838

    Attachment:

    Dynamic Binary Analysis and Instrumentation or Building Tools is Easy (click to download)

    -----------------------------------------------

    for Taroko


    Uargs error issue when make

    add in Formosa.mk

    PKG_CONFIG_VARS:=

    Pre-Requisites

    • Toolchain
    LDSO_PRELOAD_ENV_SUPPORT=y
    • Kernel
        CONFIG_OPT_NO_LSTRIP=y
        CONFIG_OPT_NO_LSHRINK=y

    Config Toolchain

    /bin/rsdk-linux-wrapper -uclibc

    Usage

    • Setup environment variable
    	$ VALGRIND_LIB=/lib/valgrind
    	$ export VALGRIND_LIB
    • Run (default usememchecktool)
    	$ valgrind --run-libc-freeres=no --suppressions=/lib/valgrind/uclibc.supp PROG PROG_ARG1 PROG_ARG2 ...
    
    


    ------------------------------------------------------------------------------------------------------------------------------


    for amd64 Gentoo Desktop

    when install and run valgrind, return
    dc@Gentoo ~ $ valgrind ./test
    ==888== Memcheck, a memory error detector
    ==888== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
    ==888== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
    ==888== Command: ./test
    ==888== 
    
    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:      strlen
    valgrind:  in an object with soname matching:   ld-linux-x86-64.so.2
    valgrind:  was not found whilst processing
    valgrind:  symbols from the object with soname: ld-linux-x86-64.so.2
    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.  The package you need
    valgrind:  to install for fix (1) is called
    valgrind:  
    valgrind:    On Debian, Ubuntu:                 libc6-dbg
    valgrind:    On SuSE, openSuSE, Fedora, RHEL:   glibc-debuginfo
    valgrind:  
    valgrind:  Cannot continue -- exiting now.  Sorry.


    加了USE=debug没用。

    参考 https://wiki.gentoo.org/wiki/Debugging 解决


二维码加载中...
本文作者:admin      文章标题: valgrind porting
本文地址:http://jiang.shuang.he.cn/blog/?post=20
版权声明:若无注明,本文皆为“”原创,转载请保留文章出处。
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
提交评论

清空信息
关闭评论