[commit: ghc] master: Add ".text.unlikely" to recognized code sections on Windows. (56ea745)

git at git.haskell.org git at git.haskell.org
Thu Jun 5 14:12:04 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/56ea745c3dd00c87ad86b80f91a31ced5e86e488/ghc

>---------------------------------------------------------------

commit 56ea745c3dd00c87ad86b80f91a31ced5e86e488
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>


>---------------------------------------------------------------

56ea745c3dd00c87ad86b80f91a31ced5e86e488
 rts/Linker.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rts/Linker.c b/rts/Linker.c
index ea7c1c6..e5e61bb 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -4145,6 +4145,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