revert, everything coredumps with this change.
This commit is contained in:
parent
cae3c2f471
commit
22cce15d1f
|
@ -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
|
||||
___
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue