Lippman 发表于 2008-01-18 13:13

Solaris Developer Quiz April 25, 2007

Which utility lists the dynamic dependencies of executable files or shared objects?
a) ld.so.1
b) crle
c) ldd
d) pvs

The correct answer is c.

'ldd' lists the dynamic dependencies of executable files or shared objects. 'ldd' uses the runtime linker, to generate the diagnostics.The runtime linker takes the object being inspected and prepares the object as would occur in a running process. By default, 'ldd' triggers the loading of any lazy dependencies.

'ld.so.1' is the runtime linker for dynamic objects. Dynamic applications consist of one or more dynamic objects. As part of theinitialization and execution of a dynamic application, an interpreter is called. This interpreter completes thebinding of the application to its shared object dependencies. In Solaris, this interpreter is referred to as the runtime linker.

'crle' provides for the creation and display of a runtimelinkingconfiguration file. The configuration file is read and interpreted by the runtime linker, 'ld.so.1', during process start-up.

'pvs' displays any internal version information containedwithinanELFfile.Commonly, these files are dynamic executables and shared objects, and possibly relocatable objects.

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/27174/showart_467072.html
页: [1]
查看完整版本: Solaris Developer Quiz April 25, 2007