Merge BoringSSL c48c8b6: Move no-exec-stack sections outside of #ifs.
This commit is contained in:
commit
b6daf733df
@ -2131,8 +2131,8 @@ mov sp,r12
|
||||
vpop {q4,q5,q6,q7}
|
||||
bx lr
|
||||
|
||||
#endif /* !OPENSSL_NO_ASM && __arm__ && !__APPLE__ */
|
||||
|
||||
#if defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
||||
#endif /* !OPENSSL_NO_ASM && __arm__ && !__APPLE__ */
|
||||
|
@ -224,10 +224,10 @@ while(my $line=<>) {
|
||||
print "\n";
|
||||
}
|
||||
|
||||
# See https://www.airs.com/blog/archives/518.
|
||||
print ".section\t.note.GNU-stack,\"\",\%progbits\n" if ($flavour =~ /linux/);
|
||||
|
||||
print "#endif\n" if ($flavour eq "linux32" || $flavour eq "linux64");
|
||||
print "#endif // !OPENSSL_NO_ASM\n";
|
||||
|
||||
close STDOUT or die "error closing STDOUT";
|
||||
# See https://www.airs.com/blog/archives/518.
|
||||
print ".section\t.note.GNU-stack,\"\",\%progbits\n" if ($flavour =~ /linux/);
|
||||
|
||||
close STDOUT;
|
||||
|
@ -1253,10 +1253,9 @@ while(defined(my $line=<>)) {
|
||||
|
||||
print "\n$current_segment\tENDS\n" if ($current_segment && $masm);
|
||||
print "END\n" if ($masm);
|
||||
print "#endif\n" if ($gas);
|
||||
# See https://www.airs.com/blog/archives/518.
|
||||
print ".section\t.note.GNU-stack,\"\",\@progbits\n" if ($elf);
|
||||
print "#endif\n" if ($gas);
|
||||
|
||||
|
||||
close STDOUT or die "error closing STDOUT";
|
||||
|
||||
|
@ -277,9 +277,9 @@ ___
|
||||
___
|
||||
}
|
||||
print @out;
|
||||
print "#endif\n" unless ($win32 || $netware);
|
||||
# See https://www.airs.com/blog/archives/518.
|
||||
print ".section\t.note.GNU-stack,\"\",\@progbits\n" if ($elf);
|
||||
print "#endif\n" unless ($win32 || $netware);
|
||||
}
|
||||
|
||||
sub ::asm_init
|
||||
|
Loading…
x
Reference in New Issue
Block a user