diff options
author | Adam Langley <agl@google.com> | 2015-02-13 14:47:35 -0800 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-02-13 14:47:35 -0800 |
commit | 13066f1c7a8aaacf80e8fe62f31526fa7cae8072 (patch) | |
tree | 9b62dc90bfd1f466274463881bd0ad7f2c5567b7 /src/crypto | |
parent | 07f07a86937b16fe653fd34d77320dea1716827d (diff) | |
download | external_boringssl-13066f1c7a8aaacf80e8fe62f31526fa7cae8072.zip external_boringssl-13066f1c7a8aaacf80e8fe62f31526fa7cae8072.tar.gz external_boringssl-13066f1c7a8aaacf80e8fe62f31526fa7cae8072.tar.bz2 |
Mark OPENSSL_armcap_P as hidden in asm files.
Without this, the linker says:
(sha512-armv4.o): requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC
This is (I believe) a very misleading error message. The R_ARM_REL32
relocation type is the correct type for position independent code. But
unless the target symbol is hidden then the linker doesn't know that
it's not going to be overridden by a different ELF module.
Change-Id: I9bb5f6b5f85c8de1ad5b6426cf27826976ce8248
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/sha/asm/sha1-armv4-large.pl | 1 | ||||
-rw-r--r-- | src/crypto/sha/asm/sha256-armv4.pl | 1 | ||||
-rw-r--r-- | src/crypto/sha/asm/sha512-armv4.pl | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/crypto/sha/asm/sha1-armv4-large.pl b/src/crypto/sha/asm/sha1-armv4-large.pl index b2c3032..1ffa041 100644 --- a/src/crypto/sha/asm/sha1-armv4-large.pl +++ b/src/crypto/sha/asm/sha1-armv4-large.pl @@ -642,6 +642,7 @@ ___ $code.=<<___; #if __ARM_MAX_ARCH__>=7 .comm OPENSSL_armcap_P,4,4 +.hidden OPENSSL_armcap_P #endif ___ diff --git a/src/crypto/sha/asm/sha256-armv4.pl b/src/crypto/sha/asm/sha256-armv4.pl index f14c9c3..398376e 100644 --- a/src/crypto/sha/asm/sha256-armv4.pl +++ b/src/crypto/sha/asm/sha256-armv4.pl @@ -621,6 +621,7 @@ $code.=<<___; .align 2 #if __ARM_MAX_ARCH__>=7 .comm OPENSSL_armcap_P,4,4 +.hidden OPENSSL_armcap_P #endif ___ diff --git a/src/crypto/sha/asm/sha512-armv4.pl b/src/crypto/sha/asm/sha512-armv4.pl index fb7dc50..bfe28c4 100644 --- a/src/crypto/sha/asm/sha512-armv4.pl +++ b/src/crypto/sha/asm/sha512-armv4.pl @@ -599,6 +599,7 @@ $code.=<<___; .align 2 #if __ARM_MAX_ARCH__>=7 .comm OPENSSL_armcap_P,4,4 +.hidden OPENSSL_armcap_P #endif ___ |