-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-lang/ghc-7.8.4: backported support for gold (https://bugs.gentoo.…
…org/536426) Signed-off-by: Sergei Trofimovich <siarheit@google.com>
- Loading branch information
Showing
4 changed files
with
155 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Gentoo-bug: https://bugs.gentoo.org/536426 | ||
Reported-by: Eric Siegel | ||
commit 021b7978d14799bae779907faf7490cfd21b3f46 | ||
Author: Austin Seipp <austin@well-typed.com> | ||
Date: Sun Jul 20 10:13:15 2014 -0500 | ||
|
||
driver: use absolute paths in ld scripts (#7452) | ||
|
||
Patch contributed by slowmo. | ||
|
||
Signed-off-by: Austin Seipp <austin@well-typed.com> | ||
|
||
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs | ||
index 11427e2..49126fe 100644 | ||
--- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters