Class ElfDynamicSection.ElfDynamicStructure

java.lang.Object
net.fornwall.jelf.ElfDynamicSection.ElfDynamicStructure
Enclosing class:
ElfDynamicSection

public static class ElfDynamicSection.ElfDynamicStructure extends Object
An entry in the ElfDynamicSection.entries of a ElfDynamicSection.

In the elf.h header file this represents either of the following structures:

 typedef struct {
     Elf32_Sword d_tag;
     union {
         Elf32_Word      d_val;
         Elf32_Addr      d_ptr;
         Elf32_Off       d_off;
     } d_un;
 } Elf32_Dyn;

 typedef struct {
     Elf64_Xword d_tag;
     union {
         Elf64_Xword d_val;
         Elf64_Addr d_ptr;
     } d_un;
 } Elf64_Dyn;
 
  • Field Details

    • d_tag

      public final long d_tag
      A tag value whose value defines how to interpret d_val_or_ptr.

      One of the DT_* constants in ElfDynamicSection.

    • d_val_or_ptr

      public final long d_val_or_ptr
      A field whose value is to be interpreted as specified by the d_tag.
  • Constructor Details

    • ElfDynamicStructure

      public ElfDynamicStructure(long d_tag, long d_val_or_ptr)
  • Method Details