Class ElfNoteSection

java.lang.Object
net.fornwall.jelf.ElfSection
net.fornwall.jelf.ElfNoteSection

public class ElfNoteSection extends ElfSection
  • Field Details

    • NT_GNU_ABI_TAG

      public static final int NT_GNU_ABI_TAG
      A possible value of the n_type where the description should contain ElfNoteSection.GnuAbiDescriptor.
      See Also:
    • NT_GNU_HWCAP

      public static final int NT_GNU_HWCAP
      A possible value of the n_type for a note containing synthetic hwcap information.

      The descriptor begins with two words: word 0: number of entries word 1: bitmask of enabled entries Then follow variable-length entries, one byte followed by a '\0'-terminated hwcap name string. The byte gives the bit number to test if enabled, (1U << bit) & bitmask.

      See Also:
    • NT_GNU_BUILD_ID

      public static final int NT_GNU_BUILD_ID
      A possible value of the n_type for a note containing build ID bits as generated by "ld --build-id".

      The descriptor consists of any nonzero number of bytes.

      See Also:
    • NT_GNU_GOLD_VERSION

      public static final int NT_GNU_GOLD_VERSION
      A possible value of the n_type for a note containing a version string generated by GNU gold.
      See Also:
    • n_namesz

      public final int n_namesz
    • n_descsz

      public final int n_descsz
    • n_type

      public final int n_type
  • Method Details

    • getName

      public String getName()
    • descriptorBytes

      public byte[] descriptorBytes()
    • descriptorAsString

      public String descriptorAsString()
    • descriptorAsGnuAbi

      public ElfNoteSection.GnuAbiDescriptor descriptorAsGnuAbi()