Class GnuVerneed

java.lang.Object
ghidra.app.util.bin.format.elf.GnuVerneed
All Implemented Interfaces:
StructConverter

public class GnuVerneed extends Object implements StructConverter
Version dependency section.
typedef struct {
  Elf32_Half    vn_version;             //Version of structure
  Elf32_Half    vn_cnt;                 //Number of associated aux entries
  Elf32_Word    vn_file;                //Offset of filename for this dependency
  Elf32_Word    vn_aux;                 //Offset in bytes to vernaux array
  Elf32_Word    vn_next;                //Offset in bytes to next verneed entry
} Elf32_Verneed;

typedef struct {
  Elf64_Half    vn_version;             //Version of structure
  Elf64_Half    vn_cnt;                 //Number of associated aux entries
  Elf64_Word    vn_file;                //Offset of filename for this dependency
  Elf64_Word    vn_aux;                 //Offset in bytes to vernaux array
  Elf64_Word    vn_next;                //Offset in bytes to next verneed entry
} Elf64_Verneed;

  • Method Details

    • getVersion

      public short getVersion()
    • getCnt

      public short getCnt()
    • getFile

      public int getFile()
    • getAux

      public int getAux()
    • getNext

      public int getNext()
    • toDataType

      public DataType toDataType() throws DuplicateNameException, IOException
      Description copied from interface: StructConverter
      Returns a structure datatype representing the contents of the implementor of this interface.

      For example, given:

      class A {
          int foo;
          double bar;
      }
      

      The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

      Specified by:
      toDataType in interface StructConverter
      Returns:
      returns a structure datatype representing the implementor of this interface
      Throws:
      DuplicateNameException - when a datatype of the same name already exists
      IOException - if an IO-related error occurs
      See Also: