perlasm: Replace .previous with the actual previous section
Older versions of darwin (10.8 and earlier) don't understand .previous.
this tweak emits the previous section directive which preceeds the
rodata (for example .text) instead of using .previous. We use the
same for mingw.
Fixes #26447
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26585)
(cherry picked from commit fd6f27bdd5
)
This commit is contained in:
parent
39cd63bdc9
commit
432eb50957
1 changed files with 3 additions and 1 deletions
|
@ -957,7 +957,9 @@ my %globals;
|
|||
$current_segment = ".text";
|
||||
push(@segment_stack, $current_segment);
|
||||
}
|
||||
$self->{value} = $current_segment if ($flavour eq "mingw64");
|
||||
if ($flavour eq "mingw64" || $flavour eq "macosx") {
|
||||
$self->{value} = $current_segment;
|
||||
}
|
||||
}
|
||||
$$line = "";
|
||||
return $self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue