Revision history   OpenPOWER Library

 5.1.1. ELF Header

The ELF header of generated object files must be marked as follows to indicate compliance with the ELFv2 ABI:

  1. The file class member of the ELF header identification array, e_ident[EI_CLASS], identifies the ELF file as 64-bit encoded by holding the value ELFCLASS64.

  2. Processor identification resides in the ELF header's e_machine member, and must have the value EM_PPC64, defined as the value 21.

  3. The ELF header's e_flags member holds the bit flag 2 to indicate use of the ELFv2 ABI.