From 3f873f31fef918ba53fa802a77c308b07f9e676f Mon Sep 17 00:00:00 2001 From: "wolfgang.thaller@gmx.net" Date: Fri, 24 Mar 2006 18:13:05 +0000 Subject: [PATCH] Darwin Mangler: include alignment statements for symbol stubs --- ghc/driver/mangler/ghc-asm.lprl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ghc/driver/mangler/ghc-asm.lprl b/ghc/driver/mangler/ghc-asm.lprl index 18388b5..902593e 100644 --- a/ghc/driver/mangler/ghc-asm.lprl +++ b/ghc/driver/mangler/ghc-asm.lprl @@ -602,6 +602,9 @@ sub mangle_asm { $chkcat[$i] = 'dyld'; $chksymb[$i] = ''; $dyld_section = $_; + } elsif ( $TargetPlatform =~ /^.*-apple-darwin.*/ && $chkcat[$i] eq 'dyld' && /^\s*\.align/) + { # non_lazy_symbol_ptrs that point to local symbols + $dyld_section .= $_; } elsif ( $TargetPlatform =~ /^.*-apple-darwin.*/ && $chkcat[$i] eq 'dyld' && /^L_.*:$/) { # non_lazy_symbol_ptrs that point to local symbols $chk[++$i] = $dyld_section . $_; -- 1.7.10.4