From: wolfgang.thaller@gmx.net Date: Thu, 7 Dec 2006 13:31:08 +0000 (+0000) Subject: Unbreak previous x86_64 PIC patch X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=ba8b3afc73880f49c3c9a960d3ac8fc3247fa6f8;p=ghc-hetmet.git Unbreak previous x86_64 PIC patch Make things compile on Linux again --- diff --git a/compiler/nativeGen/PositionIndependentCode.hs b/compiler/nativeGen/PositionIndependentCode.hs index 523f305..53ee563 100644 --- a/compiler/nativeGen/PositionIndependentCode.hs +++ b/compiler/nativeGen/PositionIndependentCode.hs @@ -269,7 +269,7 @@ howToAccessLabel DataReference lbl -- (AccessDirectly, because we get an implicit symbol stub) -- and calling functions from PIC code on non-i386 platforms (via a symbol stub) -howToAccessLabel CallLabel lbl +howToAccessLabel CallReference lbl | labelDynamic lbl && not opt_PIC = AccessDirectly #if !i386_TARGET_ARCH