X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FPositionIndependentCode.hs;h=ead98632ed17da4e39fda2244efa9c67ab2e7284;hb=84923cc7de2a93c22a2f72daf9ac863959efae13;hp=523f305a6264a92bfaa8b1c2190d1cd5e27d3de5;hpb=28c556a5e0ed5c2687f19ec6ef8853b79ad65518;p=ghc-hetmet.git diff --git a/compiler/nativeGen/PositionIndependentCode.hs b/compiler/nativeGen/PositionIndependentCode.hs index 523f305..ead9863 100644 --- a/compiler/nativeGen/PositionIndependentCode.hs +++ b/compiler/nativeGen/PositionIndependentCode.hs @@ -269,12 +269,12 @@ 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 | labelDynamic lbl && opt_PIC - = AccessViaSymbolStub + = AccessViaStub #endif howToAccessLabel _ lbl