Commit ac66d84a42 for openssl.org

commit ac66d84a427e5a93aa0620969febe9031d76a5ed
Author: Mounir IDRASSI <mounir.idrassi@idrix.fr>
Date:   Fri Nov 20 14:15:24 2026 +0100

    Place x86-64 MinGW perlasm constants in read-only data

    The mingw64 flavour of x86_64-xlate.pl emits a bare .section .rodata.
    GNU as and Clang both mark that COFF section writable, and the ML-KEM
    AVX2 tables retain the write permission in the linked DLL.

    Emit .section .rdata,"dr" to place the constants in read-only
    initialized data, matching the Windows ARM64 translator.

    Assisted-by: Codex:gpt-6-astra
    Reviewed-by: Saša NedvÄ›dický <sashan@openssl.org>
    Reviewed-by: Bob Beck <beck@openssl.org>
    Merge-date: Fri Dec  4 11:49:57 2026
    Merged-from: https://github.com/openssl/openssl/pull/33877

diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl
index 12dd1b5470..7e993152fb 100755
--- a/crypto/perlasm/x86_64-xlate.pl
+++ b/crypto/perlasm/x86_64-xlate.pl
@@ -944,7 +944,7 @@ my %globals;
                     push(@segment_stack, $current_segment);
 		    if (!$elf && $current_segment eq ".rodata") {
 			if	($flavour eq "macosx") { $self->{value} = ".section\t__DATA,__const"; }
-			elsif	($flavour eq "mingw64")	{ $self->{value} = ".section\t.rodata"; }
+			elsif	($flavour eq "mingw64")	{ $self->{value} = ".section\t.rdata,\"dr\""; }
 		    }
 		    if (!$elf && $current_segment eq ".init") {
 			if	($flavour eq "macosx")	{ $self->{value} = ".mod_init_func"; }