Module Name:    src
Committed By:   joerg
Date:           Fri Jun  3 15:41:57 UTC 2016

Modified Files:
        src/crypto/external/bsd/openssl/dist/crypto: x86_64cpuid.pl
        src/crypto/external/bsd/openssl/dist/crypto/perlasm: x86gas.pl

Log Message:
Replace init sections with the simpler .ctor sections.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
    src/crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl
cvs rdiff -u -r1.1.1.3 -r1.2 \
    src/crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl
diff -u src/crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl:1.3 src/crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl:1.4
--- src/crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl:1.3	Mon Mar 21 19:12:26 2016
+++ src/crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl	Fri Jun  3 15:41:57 2016
@@ -20,8 +20,9 @@ open OUT,"| \"$^X\" $xlate $flavour $out
 print<<___;
 .extern		OPENSSL_cpuid_setup
 .hidden		OPENSSL_cpuid_setup
-.section	.init
-	call	OPENSSL_cpuid_setup
+.section	.ctors
+	.align 8
+	.quad	OPENSSL_cpuid_setup
 
 .hidden	OPENSSL_ia32cap_P
 .comm	OPENSSL_ia32cap_P,8,4

Index: src/crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl
diff -u src/crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl:1.1.1.3 src/crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl:1.2
--- src/crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl:1.1.1.3	Thu Jul 26 15:02:35 2012
+++ src/crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl	Fri Jun  3 15:41:57 2016
@@ -215,14 +215,8 @@ sub ::initseg
 .long	$f
 ___
     }
-    elsif ($::elf)
-    {	$initseg.=<<___;
-.section	.init
-	call	$f
-___
-    }
-    elsif ($::coff)
-    {   $initseg.=<<___;	# applies to both Cygwin and Mingw
+    elsif ($::elf || $::coff) # Let the linker use whatever it wants.
+    {   $initseg.=<<___;
 .section	.ctors
 .long	$f
 ___

Reply via email to