首页 > 其他 > 详细

busybox filesystem add ldd function

时间:2016-01-23 17:59:36      阅读:152      评论:0      收藏:0      [点我收藏+]
/********************************************************************
 *               busybox filesystem add ldd function
 * 声明:
 *     本文主要是为了解决缪新建提出的查看程序涉及到动态链接库的问题。
 *
 *                                 2016-1-23 深圳 南山平山村 曾剑锋
 *******************************************************************/

一、参考文章:
    where is ldd?
        http://buildroot-busybox.2317881.n4.nabble.com/where-is-ldd-td48070.html

二、解决办法:
    1. You really dont need a special ldd. ldd is just a script. In its most basic usage (ldd <executable>), it just runs: 
        # LD_TRACE_LOADED_OBJECTS=1 <executable> 
    2. For example on busybox: 
        # LD_TRACE_LOADED_OBJECTS=1 /bin/busybox 
            linux-vdso32.so.1 =>  (0x00100000) 
            libc.so.6 => /lib/libc.so.6 (0x0fe70000) 
            /lib/ld.so.1 (0x48000000 

三、测试效果:
    [zengjf@root ]# LD_TRACE_LOADED_OBJECTS=1 /bin/busybox
            libm.so.6 => /lib/libm.so.6 (0x2ac8c000)
            libc.so.6 => /lib/libc.so.6 (0x2acf6000)
            /lib/ld-linux-armhf.so.3 (0x2aae1000)
    [zengjf@root ]# LD_TRACE_LOADED_OBJECTS=1 /bin/main
    hello world.
    [zengjf@root ]# LD_TRACE_LOADED_OBJECTS=1 /bin/main
    main    mainso
    [zengjf@root ]# LD_TRACE_LOADED_OBJECTS=1 /bin/mainso
            libc.so.6 => /lib/libc.so.6 (0x2abea000)
            /lib/ld-linux-armhf.so.3 (0x2ab1b000)
    [zengjf@root ]# 

 

busybox filesystem add ldd function

原文:http://www.cnblogs.com/zengjfgit/p/5153575.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!