Package com.sun.jna

Klasse ELFAnalyser

java.lang.Object
com.sun.jna.ELFAnalyser

class ELFAnalyser extends Object
Analyse an ELF file for platform specific attributes.

Primary use-case: Detect whether the java binary is arm hardfloat or softfloat.

  • Methodendetails

    • analyse

      public static ELFAnalyser analyse(String filename) throws IOException
      Löst aus:
      IOException
    • isELF

      public boolean isELF()
      Gibt zurück:
      true if the parsed file was detected to be an ELF file
    • is64Bit

      public boolean is64Bit()
      Gibt zurück:
      true if the parsed file was detected to be for a 64bit architecture and pointers are expected to be 8byte wide
    • isBigEndian

      public boolean isBigEndian()
      Gibt zurück:
      true if the parsed file is detected to be big endian, false if the file is little endian
    • getFilename

      public String getFilename()
      Gibt zurück:
      filename of the parsed file
    • isArmHardFloat

      public boolean isArmHardFloat()
    • isArmEabiAapcsVfp

      public boolean isArmEabiAapcsVfp()
      Gibt zurück:
      true if file was detected to specify, that FP parameters/result passing conforms to AAPCS, VFP variant (hardfloat)
    • isArmHardFloatFlag

      public boolean isArmHardFloatFlag()
      Gibt zurück:
      true if file was detected to conform to the hardware floating-point procedure-call standard via ELF flags
    • isArmSoftFloatFlag

      public boolean isArmSoftFloatFlag()
      Gibt zurück:
      true if file was detected to conform to the software floating-point procedure-call standard via ELF flags
    • isArm

      public boolean isArm()
      Gibt zurück:
      true if the parsed file was detected to be build for the arm architecture