Still SEGV trouble in .init segment under Solaris x86...
This commit is contained in:
parent
b9927cfa2d
commit
225f4daf15
1 changed files with 7 additions and 1 deletions
|
@ -537,7 +537,8 @@ sub main'file_end
|
||||||
if ($main'elf && grep {/%[x]*mm[0-7]/i} @out) {
|
if ($main'elf && grep {/%[x]*mm[0-7]/i} @out) {
|
||||||
local($tmp);
|
local($tmp);
|
||||||
|
|
||||||
push (@out,"\n.comm\t${under}OPENSSL_ia32cap_P,4,4\n");
|
push (@out,"\n.section\t.bss\n");
|
||||||
|
push (@out,".comm\t${under}OPENSSL_ia32cap_P,4,4\n");
|
||||||
|
|
||||||
push (@out,".section\t.init\n");
|
push (@out,".section\t.init\n");
|
||||||
# One can argue that it's wasteful to craft every
|
# One can argue that it's wasteful to craft every
|
||||||
|
@ -572,6 +573,8 @@ sub main'file_end
|
||||||
movl %edx,0(%edi)
|
movl %edx,0(%edi)
|
||||||
popl %ebx
|
popl %ebx
|
||||||
popl %edi
|
popl %edi
|
||||||
|
jmp 1f
|
||||||
|
.align $align
|
||||||
1:
|
1:
|
||||||
___
|
___
|
||||||
push (@out,$tmp);
|
push (@out,$tmp);
|
||||||
|
@ -716,6 +719,9 @@ sub main'initseg
|
||||||
$tmp=<<___;
|
$tmp=<<___;
|
||||||
.section .init
|
.section .init
|
||||||
call $under$f
|
call $under$f
|
||||||
|
jmp 1f
|
||||||
|
.align $align
|
||||||
|
1:
|
||||||
___
|
___
|
||||||
}
|
}
|
||||||
elsif ($main'coff)
|
elsif ($main'coff)
|
||||||
|
|
Loading…
Reference in a new issue