From 9ccda9a0f26fa0f2f1db3d61d7d93ae32ca3c8b7 Mon Sep 17 00:00:00 2001 From: Manuel M T Chakravarty Date: Thu, 29 Oct 2009 12:41:59 +0000 Subject: [PATCH] Fix a dynamic linker bug that killed ghci on Snow Leopard --- rts/Linker.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rts/Linker.c b/rts/Linker.c index 45089e3..a2b69f9 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -4117,7 +4117,8 @@ static int relocateSection( || scat->r_type == PPC_RELOC_HI16_SECTDIFF || scat->r_type == PPC_RELOC_HA16_SECTDIFF) #else - else if(scat->r_type == GENERIC_RELOC_SECTDIFF) + else if(scat->r_type == GENERIC_RELOC_SECTDIFF + || scat->r_type == GENERIC_RELOC_LOCAL_SECTDIFF) #endif { struct scattered_relocation_info *pair = @@ -4180,7 +4181,8 @@ static int relocateSection( || scat->r_type == PPC_RELOC_SECTDIFF) #else if(scat->r_type == GENERIC_RELOC_VANILLA - || scat->r_type == GENERIC_RELOC_SECTDIFF) + || scat->r_type == GENERIC_RELOC_SECTDIFF + || scat->r_type == GENERIC_RELOC_LOCAL_SECTDIFF) #endif { *wordPtr = word; -- 1.7.10.4