Package com.facebook.soloader
Class MinElf
- java.lang.Object
-
- com.facebook.soloader.MinElf
-
public final class MinElf extends java.lang.ObjectExtract 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 classMinElf.ISA
-
Constructor Summary
Constructors Constructor Description MinElf()
-
Method Summary
Modifier and Type Method Description static java.lang.String[]extract_DT_NEEDED(ElfByteChannel bc)Treatingbcas an ELF file, extract all the DT_NEEDED entries from its dynamic section.static java.lang.String[]extract_DT_NEEDED(java.io.File elfFile)
-
-
-
Field Detail
-
ELF_MAGIC
public static final int ELF_MAGIC
- See Also:
- Constant Field Values
-
DT_NULL
public static final int DT_NULL
- See Also:
- Constant Field Values
-
DT_NEEDED
public static final int DT_NEEDED
- See Also:
- Constant Field Values
-
DT_STRTAB
public static final int DT_STRTAB
- See Also:
- Constant Field Values
-
PT_LOAD
public static final int PT_LOAD
- See Also:
- Constant Field Values
-
PT_DYNAMIC
public static final int PT_DYNAMIC
- See Also:
- Constant Field Values
-
PN_XNUM
public static final int PN_XNUM
- See Also:
- Constant Field Values
-
-
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
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:
java.io.IOException- IOException
-
-