Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssl/dist/crypto Replace init section...



details:   https://anonhg.NetBSD.org/src/rev/9fbdf81f1892
branches:  trunk
changeset: 345648:9fbdf81f1892
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Jun 03 15:41:57 2016 +0000

description:
Replace init sections with the simpler .ctor sections.

diffstat:

 crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl |  10 ++--------
 crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl    |   5 +++--
 2 files changed, 5 insertions(+), 10 deletions(-)

diffs (35 lines):

diff -r 1c6317631e32 -r 9fbdf81f1892 crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl
--- a/crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl Fri Jun 03 15:37:16 2016 +0000
+++ b/crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl Fri Jun 03 15:41:57 2016 +0000
@@ -215,14 +215,8 @@
 .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
 ___
diff -r 1c6317631e32 -r 9fbdf81f1892 crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl
--- a/crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl    Fri Jun 03 15:37:16 2016 +0000
+++ b/crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl    Fri Jun 03 15:41:57 2016 +0000
@@ -20,8 +20,9 @@
 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



Home | Main Index | Thread Index | Old Index