X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=pkgsrc-ghc.git;a=blobdiff_plain;f=patches%2Fpatch-rts_StgCRun.c;h=60f6fb48f2473f522de09cca374bfdc9a5439eae;hp=de223003f199cd2e1549aac0d3c3fa90e22f8cbe;hb=4fe2e34ec7254f1e4eb85b085ea22fd09866b245;hpb=96e61103d139f67648ba7729b614e2cedcbb1ad4 diff --git a/patches/patch-rts_StgCRun.c b/patches/patch-rts_StgCRun.c index de22300..60f6fb4 100644 --- a/patches/patch-rts_StgCRun.c +++ b/patches/patch-rts_StgCRun.c @@ -10,17 +10,18 @@ to trigger a bug in old binutils which results in: With this workaround we can no longer override those two symbols using LD_PRELOAD, but I think there is no reason to do so anyway. ---- rts/StgCRun.c.orig 2012-03-21 03:41:49.000000000 +0000 + +--- rts/StgCRun.c.orig 2013-01-27 13:21:52.000000000 +0000 +++ rts/StgCRun.c -@@ -238,6 +238,7 @@ StgRunIsImplementedInAssembler(void) +@@ -246,6 +246,7 @@ StgRunIsImplementedInAssembler(void) * save callee-saves registers on behalf of the STG code. */ ".globl " STG_RUN "\n" + ".hidden " STG_RUN "\n" STG_RUN ":\n\t" - "subq %0, %%rsp\n\t" + "subq %1, %%rsp\n\t" "movq %%rsp, %%rax\n\t" -@@ -259,6 +260,7 @@ StgRunIsImplementedInAssembler(void) +@@ -280,6 +281,7 @@ StgRunIsImplementedInAssembler(void) "jmp *%%rax\n\t" ".globl " STG_RETURN "\n"