Class ELFExternalSymbolResolver


  • public class ELFExternalSymbolResolver
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void fixUnresolvedExternalSymbols​(Program program, boolean saveIfModified, MessageLog messageLog, TaskMonitor monitor)
      Links unresolved symbols to the first symbol found in the (ordered) linked libraries (saved in the program's properties as "ELF Required Library [nn]").
      • Methods inherited from class java.lang.Object

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

      • ELFExternalSymbolResolver

        public ELFExternalSymbolResolver()
    • Method Detail

      • fixUnresolvedExternalSymbols

        public static void fixUnresolvedExternalSymbols​(Program program,
                                                        boolean saveIfModified,
                                                        MessageLog messageLog,
                                                        TaskMonitor monitor)
                                                 throws CancelledException,
                                                        java.io.IOException
        Links unresolved symbols to the first symbol found in the (ordered) linked libraries (saved in the program's properties as "ELF Required Library [nn]").

        The ordering and precedence logic is ELF specific though no ELF binary formats are parsed or required.

        The program's external libraries need to already be populated with paths to already existing / imported libraries.

        Parameters:
        program - ELF Program to fix.
        saveIfModified - boolean flag, if true the program will be saved if there was a modification.
        messageLog - MessageLog to write info message to.
        monitor - TaskMonitor to watch for cancel and update with progress.
        Throws:
        CancelledException - if user cancels
        java.io.IOException - if error reading