From: | "Joseph Jezak (josejx)" <josejx@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-lang/ghc/files: ghc-7.0.4-fix-ppc-linker.patch |
Date: | Wed, 28 Dec 2011 08:47:44 |
Message-Id: | 20111228084734.E61C52004C@flycatcher.gentoo.org |
1 | josejx 11/12/28 08:47:34 |
2 | |
3 | Added: ghc-7.0.4-fix-ppc-linker.patch |
4 | Log: |
5 | Added patch for compilation on ppc32 and added binary build. |
6 | |
7 | (Portage version: 2.1.10.43/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-lang/ghc/files/ghc-7.0.4-fix-ppc-linker.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ghc/files/ghc-7.0.4-fix-ppc-linker.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ghc/files/ghc-7.0.4-fix-ppc-linker.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: ghc-7.0.4-fix-ppc-linker.patch |
16 | =================================================================== |
17 | commit 243c304273a1254418aeacf4d81cadb2d59945ad |
18 | Author: Erik de Castro Lopo <erikd@×××××××××.com> |
19 | Date: Mon Apr 4 22:40:15 2011 +1000 |
20 | |
21 | Fix compiling on linux-powerpc. |
22 | |
23 | diff --git a/rts/Linker.c b/rts/Linker.c |
24 | index 5285ec6..c840857 100644 |
25 | --- a/rts/Linker.c |
26 | +++ b/rts/Linker.c |
27 | @@ -2572,7 +2572,11 @@ static void |
28 | ocFlushInstructionCache( ObjectCode *oc ) |
29 | { |
30 | /* The main object code */ |
31 | - ocFlushInstructionCacheFrom(oc->image + oc->misalignment, oc->fileSize); |
32 | + ocFlushInstructionCacheFrom(oc->image |
33 | +#ifdef darwin_HOST_OS |
34 | + + oc->misalignment |
35 | +#endif |
36 | + , oc->fileSize); |
37 | |
38 | /* Jump Islands */ |
39 | ocFlushInstructionCacheFrom(oc->symbol_extras, sizeof(SymbolExtra) * oc->n_symbol_extras); |