aboutsummaryrefslogtreecommitdiff
path: root/bl2
diff options
context:
space:
mode:
authorBalint Matyi <Balint.Matyi@arm.com>2020-05-14 10:32:55 +0100
committerTamas Ban <tamas.ban@arm.com>2020-12-17 13:06:19 +0000
commitb7d1288e9aebbe2f880fc8640b3dd6590f11ca1f (patch)
treea65be4089c8494913ba6ea43fb8268832ba0d3a4 /bl2
parentec109eabcfca540ffbee5dcbf1f629740f9de5dd (diff)
Build: Extend code sharing
Utilize the additional opportunities for code sharing that are made possible by applying the patch in the previous commit. Allow data ('D') symbols to be shared. Also allow for empty lines in the symbol template file. Signed-off-by: Balint Matyi <Balint.Matyi@arm.com> Change-Id: Ife5fc6011c678c8f43e53d8cc087f40e32871301
Diffstat (limited to 'bl2')
-rw-r--r--bl2/src/shared_symbol_template.txt45
1 files changed, 27 insertions, 18 deletions
diff --git a/bl2/src/shared_symbol_template.txt b/bl2/src/shared_symbol_template.txt
index 65e305a4b..429e0bdd0 100644
--- a/bl2/src/shared_symbol_template.txt
+++ b/bl2/src/shared_symbol_template.txt
@@ -4,22 +4,31 @@
# SPDX-License-Identifier: BSD-3-Clause
#
# -----------------------------------------------------------
-mbedtls_internal
-mbedtls_sha256
+
+#Groups of functions that can be always shared with no exceptions
+mbedtls_asn1
+
+mbedtls_mpi
+
+mbedtls_platform
+
mbedtls_rsa
-mpi
-mbedtls_mpi_write_binary
-mbedtls_asn1_get_len
-mbedtls_asn1_get_tag
-mbedtls_mpi_bitlen
-mbedtls_cmp_abs
-mbedtls_cmp_int
-mbedtls_cmp_mpi
-mbedtls_mpi_get_bit
-mbedtls_mpi_init
-mbedtls_mpi_size
-mbedtls_aes_free
-mbedtls_aes_init
-mbedtls_entropy_free
-mbedtls_ctr_drbg_free
-mbedtls_mpi_cmp_mpi
+
+#This group is only relevant if BL2 image encryption is on
+mbedtls_md
+
+#This group has two functions that cause runtime errors when shared, so the
+#error-free ones are listed piece by piece
+mbedtls_internal_sha256
+mbedtls_sha256_free
+mbedtls_sha256_init
+mbedtls_sha256_ret
+mbedtls_sha256_starts_ret
+
+#Symbols necessary to make sharing additional functions possible
+mbedtls_calloc
+mbedtls_free
+
+#Miscellaneous functions
+mbedtls_exit
+memset_func \ No newline at end of file