From a4fb56a4374ac52a0b1c23e3654d4426c2e4adb3 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Fri, 6 Mar 2015 11:08:23 -0800 Subject: Include .extern and .hidden in x86-64 asm. This is backport of BoringSSL's d216b71f909fe56255813dab0a8d052534bdcb91 and https://boringssl-review.googlesource.com/3810 and should allow asm on x86-64 to build correctly. Change-Id: Id321768930182951223dbf90c4c910e24d9b6798 --- linux-x86_64/crypto/bn/rsaz-x86_64.S | 3 ++- linux-x86_64/crypto/bn/x86_64-mont.S | 6 ++++-- linux-x86_64/crypto/bn/x86_64-mont5.S | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'linux-x86_64/crypto/bn') diff --git a/linux-x86_64/crypto/bn/rsaz-x86_64.S b/linux-x86_64/crypto/bn/rsaz-x86_64.S index fe0eed5..dd3d310 100644 --- a/linux-x86_64/crypto/bn/rsaz-x86_64.S +++ b/linux-x86_64/crypto/bn/rsaz-x86_64.S @@ -1,7 +1,8 @@ #if defined(__x86_64__) .text - +.extern OPENSSL_ia32cap_P +.hidden OPENSSL_ia32cap_P .globl rsaz_512_sqr .hidden rsaz_512_sqr diff --git a/linux-x86_64/crypto/bn/x86_64-mont.S b/linux-x86_64/crypto/bn/x86_64-mont.S index ebe7678..4d401c6 100644 --- a/linux-x86_64/crypto/bn/x86_64-mont.S +++ b/linux-x86_64/crypto/bn/x86_64-mont.S @@ -1,7 +1,8 @@ #if defined(__x86_64__) .text - +.extern OPENSSL_ia32cap_P +.hidden OPENSSL_ia32cap_P .globl bn_mul_mont .hidden bn_mul_mont @@ -610,7 +611,8 @@ bn_mul4x_mont: .Lmul4x_epilogue: .byte 0xf3,0xc3 .size bn_mul4x_mont,.-bn_mul4x_mont - +.extern bn_sqr8x_internal +.hidden bn_sqr8x_internal .type bn_sqr8x_mont,@function .align 32 diff --git a/linux-x86_64/crypto/bn/x86_64-mont5.S b/linux-x86_64/crypto/bn/x86_64-mont5.S index 357bc11..02edc69 100644 --- a/linux-x86_64/crypto/bn/x86_64-mont5.S +++ b/linux-x86_64/crypto/bn/x86_64-mont5.S @@ -1,7 +1,8 @@ #if defined(__x86_64__) .text - +.extern OPENSSL_ia32cap_P +.hidden OPENSSL_ia32cap_P .globl bn_mul_mont_gather5 .hidden bn_mul_mont_gather5 -- cgit v1.1