revert, everything coredumps with this change.

This commit is contained in:
christos 2016-06-04 18:22:45 +00:00
parent cae3c2f471
commit 22cce15d1f
4 changed files with 16 additions and 10 deletions

View File

@ -215,8 +215,14 @@ sub ::initseg
.long $f
___
}
elsif ($::elf || $::coff) # Let the linker use whatever it wants.
{ $initseg.=<<___;
elsif ($::elf)
{ $initseg.=<<___;
.section .init
call $f
___
}
elsif ($::coff)
{ $initseg.=<<___; # applies to both Cygwin and Mingw
.section .ctors
.long $f
___

View File

@ -20,9 +20,8 @@ open OUT,"| \"$^X\" $xlate $flavour $output";
print<<___;
.extern OPENSSL_cpuid_setup
.hidden OPENSSL_cpuid_setup
.section .ctors
.align 8
.quad OPENSSL_cpuid_setup
.section .init
call OPENSSL_cpuid_setup
.hidden OPENSSL_ia32cap_P
.comm OPENSSL_ia32cap_P,8,4

View File

@ -342,5 +342,7 @@ OPENSSL_ia32_rdrand:
ret
.size OPENSSL_ia32_rdrand,.-.L_OPENSSL_ia32_rdrand_begin
.comm OPENSSL_ia32cap_P,8,4
.section .ctors
.long OPENSSL_cpuid_setup
.section .init
PIC_PROLOGUE
call PIC_PLT(OPENSSL_cpuid_setup)
PIC_EPILOGUE

View File

@ -1,9 +1,8 @@
#include <machine/asm.h>
.globl OPENSSL_cpuid_setup
.section .ctors
.align 8
.quad OPENSSL_cpuid_setup
.section .init
call PIC_PLT(OPENSSL_cpuid_setup)
.hidden OPENSSL_ia32cap_P
.comm OPENSSL_ia32cap_P,8,4