ldd

What is the equivalent of Linux's ldd on windows?

旧时模样 提交于 2019-11-30 10:19:05
问题 What is the equivalent of Linux's ldd on Windows? 回答1: Here is Dependency Walker. http://dependencywalker.com/ 回答2: or the GNU tool : i586-mingw32msvc-objdump -p *.exe | grep 'DLL Name:' 回答3: The dumpbin command can be useful for many things, although in this case dependency walker is probably a little more verbose. dumpbin /dependents some.dll 回答4: PowerShell can do this PS > Start-Process -PassThru calc.exe | Get-Process -Module Size(K) ModuleName ------- ---------- 908 calc.exe 1700 ntdll

ldd equivalent on android

☆樱花仙子☆ 提交于 2019-11-30 06:06:18
I have a libTest.so that does not load on some devices. logcat is absolutely useless. Using arm-linux-androideabi-readelf.exe -d libTest.so I was able to see all required libs that libTest.so needs. I pulled them all in, into the same folder on my local PC. How can I find out which symbols is missing and in which library? I have only standard set of tools from the NDK (nm, readelf, objdump etc). Which tool and how can I use so that it parses my libTest.so and all dependent libs as well and tells me which symbol prevents my lib from loading on the target device. Thanks to android developers. My

Tool for Library Dependency

社会主义新天地 提交于 2019-11-30 05:16:55
I'm looking for the tool / command on Unix platform to detect the library dependencies of the .so and .o files. I have already used the ldd / nm / truss , but I don't know the proper approach to detect library dependencies. It depends on what exactly is meant by "detect library dependencies". The ldd command works on shared libraries, not just on executables. It will display the dependencies of a shared library declared when the library was built: $ ldd /usr/lib/libgtk-3.so linux-vdso.so.1 (0x00007ffff8fff000) libgdk-3.so.0 => /usr/lib/libgdk-3.so.0 (0x00007f43fcf47000) libgmodule-2.0.so.0 =>

What is the difference between ldd and objdump?

两盒软妹~` 提交于 2019-11-30 05:01:24
I am running these two commands, and I'm getting different output: $ ldd `which ls` linux-gate.so.1 => (0x00db3000) libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0x00ba2000) librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0x007bf000) libacl.so.1 => /lib/i386-linux-gnu/libacl.so.1 (0x004ce000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00110000) libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x00398000) /lib/ld-linux.so.2 (0x00dea000) libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x00a83000) libattr.so.1 => /lib/i386-linux-gnu/libattr.so.1 (0x00d3d000) and then objdump -x

gcc link shared library against symbolic link

假装没事ソ 提交于 2019-11-30 04:13:30
问题 I have two libraries, for example two toaster libraries libtoaster_a.so and libtoaster_b.so and all the associated major/minor/rev symlinks eg libtoaster_a.so.1.0.0 etc. Both libraries implement the same toaster interface, but simply do the processing differently. Hence when I build an application that uses the library it doesn't matter which is used (from the applications perspective they are the same). Because I would like to decide which library to use after the application has been

What are ld-linux.so.2 and linux-gate.so.1?

亡梦爱人 提交于 2019-11-29 22:58:00
When I run ldd program I get an output of the form linux-gate.so.1 => (0xb77ae000) libstdc++.so.6 => /lib/libstdc++.so.6 (0xb76bc000) libm.so.6 => /lib/libm.so.6 (0xb7691000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7674000) libc.so.6 => /lib/libc.so.6 (0xb74c2000) /lib/ld-linux.so.2 (0xb77af000) Can you explain the output and the reason linux-gate.so.1 and ld-linux.so.2 show differently than other entries? What are their roles? Petesh I hope that you're not asking about the main entries, which are stating that for the requested library libm.so.6 it was found in the file /lib/libm.so.6 , for

ldd equivalent on android

安稳与你 提交于 2019-11-29 05:49:15
问题 I have a libTest.so that does not load on some devices. logcat is absolutely useless. Using arm-linux-androideabi-readelf.exe -d libTest.so I was able to see all required libs that libTest.so needs. I pulled them all in, into the same folder on my local PC. How can I find out which symbols is missing and in which library? I have only standard set of tools from the NDK (nm, readelf, objdump etc). Which tool and how can I use so that it parses my libTest.so and all dependent libs as well and

Tool for Library Dependency

元气小坏坏 提交于 2019-11-29 02:50:55
问题 I'm looking for the tool / command on Unix platform to detect the library dependencies of the .so and .o files. I have already used the ldd / nm / truss , but I don't know the proper approach to detect library dependencies. 回答1: It depends on what exactly is meant by "detect library dependencies". The ldd command works on shared libraries, not just on executables. It will display the dependencies of a shared library declared when the library was built: $ ldd /usr/lib/libgtk-3.so linux-vdso.so

What is the difference between ldd and objdump?

Deadly 提交于 2019-11-29 00:57:20
问题 I am running these two commands, and I'm getting different output: $ ldd `which ls` linux-gate.so.1 => (0x00db3000) libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0x00ba2000) librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0x007bf000) libacl.so.1 => /lib/i386-linux-gnu/libacl.so.1 (0x004ce000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00110000) libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x00398000) /lib/ld-linux.so.2 (0x00dea000) libpthread.so.0 => /lib/i386-linux-gnu/libpthread

Does ldd also show dependencies of dependencies?

眉间皱痕 提交于 2019-11-28 20:46:12
I have a binary for which ldd shows an unexpected dependency und libicuuc (from "icu"). #ldd A [...] libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007faaf9722000) libicuuc.so.49 => /usr/lib64/libicuuc.so.49 (0x00007faaf5689000) Since on this system libxml depends dynamically on libicuuc, it makes sense that ldd enventually ends up finding it, but is it expected that libicuuc also appears in the ldd output for A? Is there some command to retrieve only the libraries that are linked in as dependencies of dependencies? ldd shows all libraries that it would need to load when starting the application