From f86ef7548280b5eedaf73e87146c14022d484cdd Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Mon, 29 Jan 2018 23:57:45 +0100 Subject: WIP: alias only local symbols for now otherwise it seems to trip up darwin ld62 and gnu linkers --- compiler/nativeGen/X86/Ppr.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/nativeGen/X86') diff --git a/compiler/nativeGen/X86/Ppr.hs b/compiler/nativeGen/X86/Ppr.hs index 2a673ec77b..ea26e18062 100644 --- a/compiler/nativeGen/X86/Ppr.hs +++ b/compiler/nativeGen/X86/Ppr.hs @@ -151,6 +151,7 @@ pprDatas (_, Statics alias [CmmStaticLit lit@(CmmLabel lbl), CmmStaticLit ind, _ labelInd (CmmLabel l) = Just l labelInd _ = Nothing , Just ind' <- labelInd ind + , not $ externallyVisibleCLabel ind' -- trips ld64 otherwise , let equate = pprGloblDecl alias $$ text ".equiv" <+> ppr alias <> comma <> ppr (CmmLabel ind') = pprTrace "IndStaticInfo: pprDatas" (ppr alias <+> ppr lit <+> ppr ind') equate -- cgit v1.2.1