diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-06-06 15:17:00 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2018-07-07 22:04:25 +0200 |
commit | da81c86aac0d6c8ae229e0385c7850782a0efa6b (patch) | |
tree | 278bf491060cc2f0e7aac2452e18f30e20c28e35 /arm | |
parent | 7ef18d1e764c8cf967d8636ede2ce3c42ea06e7d (diff) | |
download | nettle-da81c86aac0d6c8ae229e0385c7850782a0efa6b.tar.gz |
abi: explicitly export intended symbols and hide others
This adds all exported symbols in the map files explicitly under
the following rules:
- Symbols mentioned in internal headers go in a section which is
valid only for testing, and linking with these symbols will break
in library updates.
- Symbols mentioned in installed headers go in the exported sections
and are considered part of the ABI.
- All internal symbols move to internal headers.
- The _nettle_md5_compress and _nettle_sha1_compress become exported
without the _nettle prefix, due to existing usage.
Diffstat (limited to 'arm')
-rw-r--r-- | arm/fat/sha1-compress-2.asm | 2 | ||||
-rw-r--r-- | arm/v6/sha1-compress.asm | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arm/fat/sha1-compress-2.asm b/arm/fat/sha1-compress-2.asm index c326befd..b915bb45 100644 --- a/arm/fat/sha1-compress-2.asm +++ b/arm/fat/sha1-compress-2.asm @@ -31,7 +31,7 @@ ifelse(< not, see http://www.gnu.org/licenses/. >) -dnl PROLOGUE(_nettle_sha1_compress) picked up by configure +dnl PROLOGUE(nettle_sha1_compress) picked up by configure define(<fat_transform>, <$1_armv6>) include_src(<arm/v6/sha1-compress.asm>) diff --git a/arm/v6/sha1-compress.asm b/arm/v6/sha1-compress.asm index 8cc22be7..f60b4230 100644 --- a/arm/v6/sha1-compress.asm +++ b/arm/v6/sha1-compress.asm @@ -101,7 +101,7 @@ define(<ROUND3>, < ror $2, $2, #2 add $5, $5, T0 >) - C void _nettle_sha1_compress(uint32_t *state, const uint8_t *input) + C void nettle_sha1_compress(uint32_t *state, const uint8_t *input) .text .align 2 @@ -112,7 +112,7 @@ define(<ROUND3>, < .LK3: .int 0x8F1BBCDC -PROLOGUE(_nettle_sha1_compress) +PROLOGUE(nettle_sha1_compress) push {r4,r5,r6,r7,r8,r10,lr} sub sp, sp, #64 @@ -246,7 +246,7 @@ IF_BE(< rsb SHIFT, SHIFT, #32>) add sp, sp, #64 stm STATE, {SA,SB,SC,SD,SE} pop {r4,r5,r6,r7,r8,r10,pc} -EPILOGUE(_nettle_sha1_compress) +EPILOGUE(nettle_sha1_compress) .LK4: .int 0xCA62C1D6 |