提交 2460c7f1 编写于 作者: A Andy Polyakov 提交者: Richard Levitte

poly1305/asm/poly1305-x86_64.pl: make it work with linux-x32.

Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 0a86f668
......@@ -745,7 +745,7 @@ sub vc_wince_info {
inherit_from => [ "linux-generic32", asm("x86_64_asm") ],
cflags => add("-mx32 -DL_ENDIAN"),
bn_ops => "SIXTY_FOUR_BIT",
perlasm_scheme => "elf",
perlasm_scheme => "elf32",
shared_ldflag => "-mx32",
multilib => "x32",
},
......
......@@ -165,10 +165,16 @@ $code.=<<___;
and 8($inp),%rcx
mov %rax,24($ctx)
mov %rcx,32($ctx)
___
$code.=<<___ if ($flavour !~ /elf32/);
mov %r10,0(%rdx)
mov %r11,8(%rdx)
___
$code.=<<___ if ($flavour =~ /elf32/);
mov %r10d,0(%rdx)
mov %r11d,4(%rdx)
___
$code.=<<___;
mov \$1,%eax
.Lno_key:
ret
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册