From: wolfgang.thaller@gmx.net Date: Fri, 24 Mar 2006 18:13:05 +0000 (+0000) Subject: Darwin Mangler: include alignment statements for symbol stubs X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=3f873f31fef918ba53fa802a77c308b07f9e676f;p=ghc-hetmet.git Darwin Mangler: include alignment statements for symbol stubs --- 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 . $_;