[commit: ghc] ghc-8.0: Show error message for unknown symbol on Elf_Rel platforms (f48fdee)
git at git.haskell.org
git at git.haskell.org
Mon Jan 25 15:58:08 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.0
Link : http://ghc.haskell.org/trac/ghc/changeset/f48fdeeafeb4ca1992c4aba4c35a3009b73f2af8/ghc
>---------------------------------------------------------------
commit f48fdeeafeb4ca1992c4aba4c35a3009b73f2af8
Author: Reid Barton <rwbarton at gmail.com>
Date: Mon Jan 25 09:12:40 2016 -0500
Show error message for unknown symbol on Elf_Rel platforms
Summary: This is already the behavior on Elf_Rela platforms, and is helpful.
Reviewers: simonmar, austin, bgamari, erikd
Reviewed By: erikd
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1841
(cherry picked from commit 5c8233388983a5af9fda5f3395ad28f4e0392f98)
>---------------------------------------------------------------
f48fdeeafeb4ca1992c4aba4c35a3009b73f2af8
rts/Linker.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/rts/Linker.c b/rts/Linker.c
index 1c76a00..b9a1d34 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -5009,7 +5009,6 @@ do_Elf_Rel_relocations ( ObjectCode* oc, char* ehdrC,
} else {
symbol = strtab + sym.st_name;
S_tmp = lookupSymbol_( symbol );
- if (S_tmp == NULL) return 0;
S = (Elf_Addr)S_tmp;
}
if (!S) {
More information about the ghc-commits
mailing list