/******************************************************************** * busybox filesystem add LDD functio n * Declaration: * This article is mainly to solve the problem that the view program proposed by Munyan involves the dynamic link library. * 2016-1-23 Shenzhen Nanshan Ping Shan village Zengjianfeng *************************************************************** ****/First, reference article:where is 'LDD'?http://buildroot-busybox.2317881.n4.nabble.com/where-is-ldd-td48070.htmlSecond, the solution:1. You really don'T need a special LDD. LDD is just a script. In their 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(0x48000000third, the test effect: [[email protected]]# 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) [[email protected]]# ld_trace_loaded_objects=1/bin/main Hello world. [Email protected]]# ld_trace_loaded_objects=1/bin/main main Mainso [[email protected]]# ld_trace_loaded_objects=1/bin/Mainso libc.so.6= =/lib/libc.so.6(0x2abea000) /lib/ld-linux-armhf.so.3(0x2ab1b000) [[email protected]]#
BusyBox filesystem Add LDD function