Revision history   OpenPOWER Library

 6.1.4. Dynamic loading

When loading dynamically linked applications, the dynamic loader must recursively load all dependent shared libraries and resolve dynamic relocations in accordance with the requirements in section 3.5 Relocation Types of the ELFv2 ABI specification. Specifically, the dynamic loader must support at least the following dynamic relocation types:

  • R_PPC64_RELATIVE

  • R_PPC64_JMP_SLOT

  • R_PPC64_IRELATIVE

  • R_PPC64_JMP_IREL

  • R_PPC64_GLOB_DAT

  • R_PPC64_COPY

  • R_PPC64_DTPMOD64

  • R_PPC64_DTPREL64

  • R_PPC64_TPREL64

In addition, the dynamic linker must initialize the contents of the Procedure Linkage Table in accordance with the requirements in section 4.2.5 "Procedure Linkage Table" of the ELFv2 ABI specification.

The dynamic loader may assume that a dynamic section as specified in section 4.2.2 "Dynamic Section" of the ELFv2 ABI is present in each dynamically linked application or shared library.