ObjLink

ghc-7.8.2: The GHC API

Safe Haskell | None
Language | Haskell98

ObjLink

Synopsis

- initObjLinker :: IO ()
- loadDLL :: String -> IO (Maybe String)
- loadArchive :: String -> IO ()
- loadObj :: String -> IO ()
- unloadObj :: String -> IO ()
- insertSymbol :: String -> String -> Ptr a -> IO ()
- lookupSymbol :: String -> IO (Maybe (Ptr a))
- resolveObjs :: IO SuccessFlag

# Documentation

initObjLinker :: IO () Source

loadDLL :: String -> IO (Maybe String) Source

loadDLL loads a dynamic library using the OS's native linker (i.e. dlopen() on Unix, LoadLibrary() on Windows). It takes either an absolute pathname to the file, or a relative filename (e.g. "libfoo.so" or "foo.dll"). In the latter case, loadDLL searches the standard locations for the appropriate library.

loadArchive :: String -> IO () Source

loadObj :: String -> IO () Source

unloadObj :: String -> IO () Source

insertSymbol :: String -> String -> Ptr a -> IO () Source

lookupSymbol :: String -> IO (Maybe (Ptr a)) Source

resolveObjs :: IO SuccessFlag Source