From a8d65a3f56d3a0ce3a4896b81833569012f87a21 Mon Sep 17 00:00:00 2001 From: miod Date: Fri, 12 Jul 2024 05:26:34 +0000 Subject: [PATCH] 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. --- lib/libssl/hidden/ssl_namespace.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/libssl/hidden/ssl_namespace.h b/lib/libssl/hidden/ssl_namespace.h index 7a941a0e109..5d26516f3c5 100644 --- a/lib/libssl/hidden/ssl_namespace.h +++ b/lib/libssl/hidden/ssl_namespace.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_namespace.h,v 1.2 2023/02/16 08:38:17 tb Exp $ */ +/* $OpenBSD: ssl_namespace.h,v 1.3 2024/07/12 05:26:34 miod Exp $ */ /* * Copyright (c) 2016 Philip Guenther * @@ -27,7 +27,11 @@ #define LSSL_UNUSED(x) typeof(x) x __attribute__((deprecated)) #define LSSL_USED(x) __attribute__((visibility("hidden"))) \ typeof(x) x asm("_lssl_"#x) +#if defined(__hppa__) +#define LSSL_ALIAS(x) asm("! .global "#x" ! .set "#x", _lssl_"#x) +#else #define LSSL_ALIAS(x) asm(".global "#x"; "#x" = _lssl_"#x) +#endif #else #define LSSL_UNUSED(x) #define LSSL_USED(x) -- 2.20.1