summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormiod <>2024-07-12 05:26:34 +0000
committermiod <>2024-07-12 05:26:34 +0000
commitb4a70af2e7b2138e1a2735a1cca240f83b85bdf6 (patch)
tree0f6b8b0a84e415ababb371e7701bf77edf0332b8 /src
parentfa93323d36367ed7af0931f3b8c0181fe8dce26e (diff)
downloadopenbsd-b4a70af2e7b2138e1a2735a1cca240f83b85bdf6.tar.gz
openbsd-b4a70af2e7b2138e1a2735a1cca240f83b85bdf6.tar.bz2
openbsd-b4a70af2e7b2138e1a2735a1cca240f83b85bdf6.zip
Despite being an ELF citizen, hppa is its own special snowflake and requires
different asm stanzas to produce strong aliases. This unbreaks libssl on hppa after the recent switch to LIBRESSL_NAMESPACE.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/hidden/ssl_namespace.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libssl/hidden/ssl_namespace.h b/src/lib/libssl/hidden/ssl_namespace.h
index 7a941a0e10..5d26516f3c 100644
--- a/src/lib/libssl/hidden/ssl_namespace.h
+++ b/src/lib/libssl/hidden/ssl_namespace.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_namespace.h,v 1.2 2023/02/16 08:38:17 tb Exp $ */ 1/* $OpenBSD: ssl_namespace.h,v 1.3 2024/07/12 05:26:34 miod Exp $ */
2/* 2/*
3 * Copyright (c) 2016 Philip Guenther <guenther@openbsd.org> 3 * Copyright (c) 2016 Philip Guenther <guenther@openbsd.org>
4 * 4 *
@@ -27,7 +27,11 @@
27#define LSSL_UNUSED(x) typeof(x) x __attribute__((deprecated)) 27#define LSSL_UNUSED(x) typeof(x) x __attribute__((deprecated))
28#define LSSL_USED(x) __attribute__((visibility("hidden"))) \ 28#define LSSL_USED(x) __attribute__((visibility("hidden"))) \
29 typeof(x) x asm("_lssl_"#x) 29 typeof(x) x asm("_lssl_"#x)
30#if defined(__hppa__)
31#define LSSL_ALIAS(x) asm("! .global "#x" ! .set "#x", _lssl_"#x)
32#else
30#define LSSL_ALIAS(x) asm(".global "#x"; "#x" = _lssl_"#x) 33#define LSSL_ALIAS(x) asm(".global "#x"; "#x" = _lssl_"#x)
34#endif
31#else 35#else
32#define LSSL_UNUSED(x) 36#define LSSL_UNUSED(x)
33#define LSSL_USED(x) 37#define LSSL_USED(x)