From 31125c3069e1c041db3dc86a3756024839515ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 20 Jul 2014 18:16:45 +0200 Subject: [PATCH 1/2] Use absolute paths in GNU ld linker scripts The new gold linker does not support relative paths to the current directory, while the old bfd linker supports both. Just convert all paths to absolute paths for now. Trac #7452 --- a/compiler/main/DriverPipeline.hs +++ b/compiler/main/DriverPipeline.hs @@ -2166,7 +2166,9 @@ joinObjectFiles dflags o_files output_fn = do if ldIsGnuLd then do script <- newTempName dflags "ldscript" - writeFile script $ "INPUT(" ++ unwords o_files ++ ")" + cwd <- getCurrentDirectory + let o_files_abs = map (cwd ) o_files + writeFile script $ "INPUT(" ++ unwords o_files_abs ++ ")" ld_r [SysTools.FileOption "" script] ccInfo else if sLdSupportsFilelist mySettings then do