GHC.Linker.ExtraObj

ghc-9.14.0.20251028: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.Linker.ExtraObj

Synopsis

- mkExtraObj :: Logger -> TmpFs -> DynFlags -> UnitState -> Suffix -> String -> IO FilePath
- mkExtraObjToLinkIntoBinary :: Logger -> TmpFs -> DynFlags -> UnitState -> IO (Maybe FilePath)
- mkNoteObjsToLinkIntoBinary :: Logger -> TmpFs -> DynFlags -> UnitEnv -> [UnitId] -> IO [FilePath]
- checkLinkInfo :: Logger -> DynFlags -> UnitEnv -> [UnitId] -> FilePath -> IO Bool
- getLinkInfo :: DynFlags -> UnitEnv -> [UnitId] -> IO String
- ghcLinkInfoSectionName :: String
- ghcLinkInfoNoteName :: String
- platformSupportsSavingLinkOpts :: OS -> Bool
- haveRtsOptsFlags :: DynFlags -> Bool

# Documentation

mkExtraObj :: Logger -> TmpFs -> DynFlags -> UnitState -> Suffix -> String -> IO FilePath Source #

mkExtraObjToLinkIntoBinary :: Logger -> TmpFs -> DynFlags -> UnitState -> IO (Maybe FilePath) Source #

mkNoteObjsToLinkIntoBinary :: Logger -> TmpFs -> DynFlags -> UnitEnv -> [UnitId] -> IO [FilePath] Source #

checkLinkInfo :: Logger -> DynFlags -> UnitEnv -> [UnitId] -> FilePath -> IO Bool Source #

getLinkInfo :: DynFlags -> UnitEnv -> [UnitId] -> IO String Source #

Return the "link info" string

See Note [LinkInfo section]

ghcLinkInfoSectionName :: String Source #

ghcLinkInfoNoteName :: String Source #

platformSupportsSavingLinkOpts :: OS -> Bool Source #

haveRtsOptsFlags :: DynFlags -> Bool Source #