Class MinElf


  • public final class MinElf
    extends java.lang.Object
    Extract SoLoader bootstrap information from an ELF file. This is not a general purpose ELF library.

    See specification at http://www.sco.com/developers/gabi/latest/contents.html. You will not be able to verify the operation of the functions below without having read the ELF specification.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MinElf.ISA  
    • Constructor Summary

      Constructors 
      Constructor Description
      MinElf()  
    • Method Summary

      Modifier and Type Method Description
      static java.lang.String[] extract_DT_NEEDED​(ElfByteChannel bc)
      Treating bc as an ELF file, extract all the DT_NEEDED entries from its dynamic section.
      static java.lang.String[] extract_DT_NEEDED​(java.io.File elfFile)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MinElf

        public MinElf()
    • Method Detail

      • extract_DT_NEEDED

        public static java.lang.String[] extract_DT_NEEDED​(java.io.File elfFile)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • extract_DT_NEEDED

        public static java.lang.String[] extract_DT_NEEDED​(ElfByteChannel bc)
                                                    throws java.io.IOException
        Treating bc as an ELF file, extract all the DT_NEEDED entries from its dynamic section.
        Parameters:
        bc - ElfByteChannel referring to ELF file
        Returns:
        Array of strings, one for each DT_NEEDED entry, in file order
        Throws:
        java.io.IOException - IOException