Skip to content

Commit

Permalink
Take BoringSSL 'a43c76d': Work around nasm bug with empty assembly files
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Sep 28, 2023
2 parents 6452e74 + a43c76d commit 78b0af8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion crypto/perlasm/x86_64-xlate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,12 @@ sub process_line {
#endif
___
} elsif ($nasm) {
print "\%endif\n";
print <<___;
\%else
; Work around https://bugzilla.nasm.us/show_bug.cgi?id=3392738
ret
\%endif
___
} else {
die "unknown assembler";
}
Expand Down
7 changes: 6 additions & 1 deletion crypto/perlasm/x86asm.pl
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,12 @@ sub ::asm_finish
\%ifidn __OUTPUT_FORMAT__, win32
___
print @out;
print "\%endif\n";
print <<___ unless $masm;
\%else
; Work around https://bugzilla.nasm.us/show_bug.cgi?id=3392738
ret
\%endif
___
} else {
my $target;
if ($elf) {
Expand Down

0 comments on commit 78b0af8

Please sign in to comment.