x86_64: Don't assume 8-byte pointer size
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 9 Jan 2020 14:20:09 +0000 (06:20 -0800)
committerTomas Mraz <tmraz@fedoraproject.org>
Tue, 18 Feb 2020 17:03:16 +0000 (18:03 +0100)
commit0d51cf3ccc0224def10c32b6defd4a77a1b4322a
tree989d96b36f3e257d2403c22275a6929447894d27
parent21542a48ab542dc4d687a15e19c11318df58f72e
x86_64: Don't assume 8-byte pointer size

Since pointer in x32 is 4 bytes, add x86_64-support.pl to define
pointer_size and pointer_register based on flavour to support
stuctures like:

struct {  void *ptr; int blocks;  }

This fixes 90-test_sslapi.t on x32.  Verified with

$ ./Configure shared linux-x86_64
$ make
$ make test

and

$ ./Configure shared linux-x32
$ make
$ make test

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10988)
crypto/aes/asm/aesni-mb-x86_64.pl
crypto/perlasm/x86_64-support.pl [new file with mode: 0644]
crypto/sha/asm/sha1-mb-x86_64.pl
crypto/sha/asm/sha256-mb-x86_64.pl