diff options
| author | tb <> | 2023-02-21 12:24:39 +0000 |
|---|---|---|
| committer | tb <> | 2023-02-21 12:24:39 +0000 |
| commit | bbd3444e2c08eee072f2585081aa72121247bc34 (patch) | |
| tree | 59d4a8db1539baa693fbc4e3fd40dbb18cefe674 /src | |
| parent | 9621af956078d2b4e673ead81eae044c72d3f40e (diff) | |
| download | openbsd-bbd3444e2c08eee072f2585081aa72121247bc34.tar.gz openbsd-bbd3444e2c08eee072f2585081aa72121247bc34.tar.bz2 openbsd-bbd3444e2c08eee072f2585081aa72121247bc34.zip | |
perlasm: properly spell .rodata for macOS on intel
ok jsing
Diffstat (limited to 'src')
| -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"; } |
