Package com.facebook.soloader
Class MinElf
java.lang.Object
com.facebook.soloader.MinElf
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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]Treatingbcas an ELF file, extract all the DT_NEEDED entries from its dynamic section.static String[]extract_DT_NEEDED(File elfFile)
-
Field Details
-
ELF_MAGIC
public static final int ELF_MAGIC- See Also:
-
DT_NULL
public static final int DT_NULL- See Also:
-
DT_NEEDED
public static final int DT_NEEDED- See Also:
-
DT_STRTAB
public static final int DT_STRTAB- See Also:
-
PT_LOAD
public static final int PT_LOAD- See Also:
-
PT_DYNAMIC
public static final int PT_DYNAMIC- See Also:
-
PN_XNUM
public static final int PN_XNUM- See Also:
-
-
Constructor Details
-
MinElf
public MinElf()
-
-
Method Details
-
extract_DT_NEEDED
- Throws:
IOException
-
extract_DT_NEEDED
Treatingbcas 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:
IOException- IOException
-