Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (6561 KB)
pvs(1)Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Attributes | See Also Name
Synopsispvs [-Cdlnorsv] [-N name] file... Description
The pvs utility displays any internal version information contained within an ELF file. Commonly, these files are dynamic executables and shared objects, and possibly relocatable objects. This version information can fall into one of two categories: Version definitions describe the interfaces that are made available by an ELF file. Each version definition is associated to a set of global symbols provided by the file. Version definitions can be assigned to a file during its creation by the link-editor using the -M option and the associated mapfile directives. See the for more details. Version dependencies describe the binding requirements of dynamic objects on the version definitions of any shared object dependencies. When a dynamic object is built with a shared object, the link-editor records information within the dynamic object indicating that the shared object is a dependency. This dependency must be satisfied at runtime. If the shared object also contains version definitions, then those version definitions that satisfy the global symbol requirements of the dynamic object are also recorded in the dynamic object being created. At process initialization, the runtime linker uses any version dependencies as a means of validating the interface requirements of the dynamic objects used to construct the process. Options
The following options are supported. If neither the -d or -r options are specified, both are enabled. Operands
The following operands are supported. ExamplesExample 1 Displaying version definitionsThe following example displays the version definitions of libelf.so.1:
Example 2 Creating a one-liner displayA normalized, one-liner display, suitable for creating a mapfile version control directive, can be created using the -n and -o options:
Example 3 Displaying version requirementsThe following example displays the version requirements of ldd and pvs:
Exit Status
If the requested version information is not found, a non-zero value is returned. Otherwise, a 0 value is returned. Version information is determined not found when any of the following is true: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.10 Last Revised 14 Apr 2004Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Attributes | See Also |
|||||||