星期三, 2月 18, 2009

LDD Usage

2009/2/18(三) LDD 的簡化版,要看執行程式的動態鏈接簡單的方式: Type1:
  • export LD_TRACE_LOADED_OBJECTS=1
  • unset LD_TRACE_LOADED_OBJECTS
Type2:
  • eval LD_TRACE_LOADED_OBJECTS=1 '/lib/libcrypt-2.1.2.so'

jack@i7-build-server:~/git/titan/magic/web/cgi$ export LD_TRACE_LOADED_OBJECTS=1
jack@i7-build-server:~/git/titan/magic/web/cgi$ ./param.cgi
        linux-vdso.so.1 =>  (0x00007ffd664c5000)
        libmy.so => /lib/libmy.so (0x00007f5e96a7b000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f5e96873000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5e964a9000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5e9628c000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f5e96cd7000)
jack@i7-build-server:~/git/titan/magic/web/cgi$ unset LD_TRACE_LOADED_OBJECTS

沒有留言: