[commit: ghc] master: RTS: Detect powerpc64le as ELF 64-bit system (c8d0af3)

git at git.haskell.org git at git.haskell.org
Sun Dec 27 22:53:54 UTC 2015


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

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

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

commit c8d0af3107d4a01b73f813e31ac9b989772a2288
Author: Peter Trommler <ptrommler at acm.org>
Date:   Sun Dec 27 23:53:18 2015 +0100

    RTS: Detect powerpc64le as ELF 64-bit system
    
    
    Test Plan: validate
    
    Reviewers: simonmar, erikd, austin, bgamari
    
    Reviewed By: austin, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1672
    
    GHC Trac Issues: #11269


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

c8d0af3107d4a01b73f813e31ac9b989772a2288
 rts/Linker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rts/Linker.c b/rts/Linker.c
index 3bd12b3..2ee3cbc 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -4159,7 +4159,7 @@ ocRunInit_PEi386 ( ObjectCode *oc )
 #  define ELF_TARGET_X64_64
 #  define ELF_64BIT
 #  define ELF_TARGET_AMD64 /* Used inside <elf.h> on Solaris 11 */
-#elif defined(powerpc64_HOST_ARCH)
+#elif defined(powerpc64_HOST_ARCH) || defined(powerpc64le_HOST_ARCH)
 #  define ELF_64BIT
 #endif
 



More information about the ghc-commits mailing list