aboutsummaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2023-06-06 14:23:52 -0400
committerBoringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-06-07 14:57:07 +0000
commitd995d82ad53133017e34b009e9c6912b2ef6aeb7 (patch)
tree0665c7a67ba2ea6268307b1bda7f232d9644bef2 /third_party
parent9d4f833eec8205e7ad257fb7e7cb321270d3e3cb (diff)
downloadboringssl-d995d82ad53133017e34b009e9c6912b2ef6aeb7.zip
boringssl-d995d82ad53133017e34b009e9c6912b2ef6aeb7.tar.gz
boringssl-d995d82ad53133017e34b009e9c6912b2ef6aeb7.tar.bz2
Add .type, .hidden, and .size to the new fiat ADX assembly
.type seems to be needed for the unwind tester to report symbols correctly. I assume it does other useful things. .hidden (.private_extern on macOS) keeps it from being exported out of shared libraries. I'm not positive what .size does, but if ELF wants to know the size of the function, we should probably tell it that. Change-Id: Iaa2e4f8a72e81092ec1d81ee2177504c7dc89c76 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/60465 Commit-Queue: Adam Langley <agl@google.com> Reviewed-by: Andres Erbsen <andreser@google.com> Reviewed-by: Adam Langley <agl@google.com> Auto-Submit: David Benjamin <davidben@google.com>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/fiat/asm/fiat_curve25519_adx_mul.S6
-rw-r--r--third_party/fiat/asm/fiat_curve25519_adx_square.S6
2 files changed, 12 insertions, 0 deletions
diff --git a/third_party/fiat/asm/fiat_curve25519_adx_mul.S b/third_party/fiat/asm/fiat_curve25519_adx_mul.S
index acbac97..1d23f3f 100644
--- a/third_party/fiat/asm/fiat_curve25519_adx_mul.S
+++ b/third_party/fiat/asm/fiat_curve25519_adx_mul.S
@@ -1,8 +1,11 @@
.text
#if defined(__APPLE__)
+.private_extern fiat_curve25519_adx_mul
.global _fiat_curve25519_adx_mul
_fiat_curve25519_adx_mul:
#else
+.type fiat_curve25519_adx_mul, @function
+.hidden fiat_curve25519_adx_mul
.global fiat_curve25519_adx_mul
fiat_curve25519_adx_mul:
#endif
@@ -153,3 +156,6 @@ mov r15, [ rsp - 0x58 ]
mov rbp, [rsp - 0x08]
ret
.cfi_endproc
+#if defined(__ELF__)
+.size fiat_curve25519_adx_mul, .-fiat_curve25519_adx_mul
+#endif
diff --git a/third_party/fiat/asm/fiat_curve25519_adx_square.S b/third_party/fiat/asm/fiat_curve25519_adx_square.S
index 2ba3fd4..71f9108 100644
--- a/third_party/fiat/asm/fiat_curve25519_adx_square.S
+++ b/third_party/fiat/asm/fiat_curve25519_adx_square.S
@@ -1,8 +1,11 @@
.text
#if defined(__APPLE__)
+.private_extern fiat_curve25519_adx_square
.global _fiat_curve25519_adx_square
_fiat_curve25519_adx_square:
#else
+.type fiat_curve25519_adx_square, @function
+.hidden fiat_curve25519_adx_square
.global fiat_curve25519_adx_square
fiat_curve25519_adx_square:
#endif
@@ -121,3 +124,6 @@ mov r15, [ rsp - 0x58 ]
mov rbp, [rsp - 0x08]
ret
.cfi_endproc
+#if defined(__ELF__)
+.size fiat_curve25519_adx_square, .-fiat_curve25519_adx_square
+#endif