[commit: ghc] ghc-7.8: Add ".text.unlikely" to recognized code sections on Windows. (b10b1a6)
git at git.haskell.org
git at git.haskell.org
Mon Jun 9 12:06:34 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.8
Link : http://ghc.haskell.org/trac/ghc/changeset/b10b1a6099d43b8b6b1fbae7a548668cdcf51bd3/ghc
>---------------------------------------------------------------
commit b10b1a6099d43b8b6b1fbae7a548668cdcf51bd3
Author: Niklas Larsson <niklas at mm.st>
Date: Sun May 25 11:54:13 2014 +0200
Add ".text.unlikely" to recognized code sections on Windows.
Fixes #9080
Signed-off-by: Austin Seipp <austin at well-typed.com>
(cherry picked from commit 56ea745c3dd00c87ad86b80f91a31ced5e86e488)
>---------------------------------------------------------------
b10b1a6099d43b8b6b1fbae7a548668cdcf51bd3
rts/Linker.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/rts/Linker.c b/rts/Linker.c
index 26c7bc9..47b4008 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -4053,6 +4053,7 @@ ocGetNames_PEi386 ( ObjectCode* oc )
if (0==strcmp(".text",(char*)secname) ||
0==strcmp(".text.startup",(char*)secname) ||
+ 0==strcmp(".text.unlikely", (char*)secname) ||
0==strcmp(".rdata",(char*)secname)||
0==strcmp(".eh_frame", (char*)secname)||
0==strcmp(".rodata",(char*)secname))
More information about the ghc-commits
mailing list