diff options
-rwxr-xr-x | src/lib/libcrypto/perlasm/x86_64-xlate.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/libcrypto/perlasm/x86_64-xlate.pl b/src/lib/libcrypto/perlasm/x86_64-xlate.pl index bc9d78eb02..642fc0090f 100755 --- a/src/lib/libcrypto/perlasm/x86_64-xlate.pl +++ b/src/lib/libcrypto/perlasm/x86_64-xlate.pl | |||
@@ -504,6 +504,9 @@ my %globals; | |||
504 | $self->{value} = ".p2align\t" . (log($line)/log(2)); | 504 | $self->{value} = ".p2align\t" . (log($line)/log(2)); |
505 | } elsif ($dir eq ".section") { | 505 | } elsif ($dir eq ".section") { |
506 | $current_segment=$line; | 506 | $current_segment=$line; |
507 | if (!$elf && $current_segment eq ".rodata") { | ||
508 | if ($flavour eq "macosx") { $self->{value} = ".section\t__DATA,__const"; } | ||
509 | } | ||
507 | if (!$elf && $current_segment eq ".init") { | 510 | if (!$elf && $current_segment eq ".init") { |
508 | if ($flavour eq "macosx") { $self->{value} = ".mod_init_func"; } | 511 | if ($flavour eq "macosx") { $self->{value} = ".mod_init_func"; } |
509 | elsif ($flavour eq "mingw64") { $self->{value} = ".section\t.ctors"; } | 512 | elsif ($flavour eq "mingw64") { $self->{value} = ".section\t.ctors"; } |