Index: crypto/modes/asm/ghash-x86_64.pl
--- crypto/modes/asm/ghash-x86_64.pl.orig
+++ crypto/modes/asm/ghash-x86_64.pl
@@ -534,6 +534,7 @@ $code.=<<___;
 .align	16
 gcm_init_clmul:
 .cfi_startproc
+	endbranch
 .L_init_clmul:
 ___
 $code.=<<___ if ($win64);
@@ -1027,6 +1028,7 @@ $code.=<<___;
 .align	32
 gcm_init_avx:
 .cfi_startproc
+	endbranch
 ___
 if ($avx) {
 my ($Htbl,$Xip)=@_4args;
@@ -1609,6 +1611,7 @@ ___
 }
 
 $code.=<<___;
+.rodata
 .align	64
 .Lbswap_mask:
 	.byte	15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
@@ -1662,6 +1665,7 @@ $code.=<<___;
 
 .asciz	"GHASH for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
 .align	64
+.previous
 ___
 
 # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
