Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-09-25 05:18:53 +0300
committerAdam Langley <agl@google.com>2015-09-29 21:07:54 +0300
commit5b61b9ebc5ad0e25475f2aa633d3a6592dd65ba1 (patch)
tree059fd8c11c3ad520b693da9047aa8e742cb35417 /crypto/chacha
parent3f85e04f40c12282021241b393d94901e5c1027b (diff)
Update ChaCha20 ARM asm with sections.
The ChaCha20 ARM asm is generated from GCC. This change updates the GCC command line to include -ffunction-sections, which causes GCC to put each function in its own section so that the linker with --gc-sections can trim unused functions. Since the file only has a single function, this is a bit useless, but it'll now be consistent with the other ARM asm. Change-Id: If12c675700310ea55af817b5433844eeffc9d029 Reviewed-on: https://boringssl-review.googlesource.com/6006 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/chacha')
-rw-r--r--crypto/chacha/chacha_vec_arm.S4
-rw-r--r--crypto/chacha/chacha_vec_arm_generate.go1
2 files changed, 3 insertions, 2 deletions
diff --git a/crypto/chacha/chacha_vec_arm.S b/crypto/chacha/chacha_vec_arm.S
index 0f826279..e1ec46ef 100644
--- a/crypto/chacha/chacha_vec_arm.S
+++ b/crypto/chacha/chacha_vec_arm.S
@@ -20,7 +20,7 @@
# This file was generated by chacha_vec_arm_generate.go using the following
# compiler command:
#
-# /opt/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -O3 -mcpu=cortex-a8 -mfpu=neon -fpic -DASM_GEN -I ../../include -S chacha_vec.c -o -
+# /opt/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -O3 -mcpu=cortex-a8 -mfpu=neon -fpic -ffunction-sections -DASM_GEN -I ../../include -S chacha_vec.c -o -
#if !defined(OPENSSL_NO_ASM)
#if defined(__arm__) || defined(__aarch64__)
@@ -52,7 +52,7 @@
.eabi_attribute 18, 4
.thumb
.file "chacha_vec.c"
- .text
+ .section .text.CRYPTO_chacha_20_neon,"ax",%progbits
.align 2
.global CRYPTO_chacha_20_neon
.hidden CRYPTO_chacha_20_neon
diff --git a/crypto/chacha/chacha_vec_arm_generate.go b/crypto/chacha/chacha_vec_arm_generate.go
index 6d167b9a..1e185e57 100644
--- a/crypto/chacha/chacha_vec_arm_generate.go
+++ b/crypto/chacha/chacha_vec_arm_generate.go
@@ -36,6 +36,7 @@ func main() {
"-mcpu=cortex-a8",
"-mfpu=neon",
"-fpic",
+ "-ffunction-sections",
"-DASM_GEN",
"-I", "../../include",
"-S", "chacha_vec.c",