diff --git a/tests/libexec/ld.elf_so/h_ifunc.c b/tests/libexec/ld.elf_so/h_ifunc.c index 8929a93e8088..4816f33878d8 100644 --- a/tests/libexec/ld.elf_so/h_ifunc.c +++ b/tests/libexec/ld.elf_so/h_ifunc.c @@ -1,4 +1,4 @@ -/* $NetBSD: h_ifunc.c,v 1.2 2018/03/09 20:15:03 joerg Exp $ */ +/* $NetBSD: h_ifunc.c,v 1.3 2020/05/05 20:47:14 skrll Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -39,5 +39,12 @@ main(int argc, char **argv) if (argc != 2) return 1; +/* + * Not supported on hppa + */ +#if defined(__hppa__) + return 1; +#else return ifunc() != atoll(argv[1]); +#endif } diff --git a/tests/libexec/ld.elf_so/helper_ifunc_dso/h_helper_ifunc.c b/tests/libexec/ld.elf_so/helper_ifunc_dso/h_helper_ifunc.c index ddb1d02205d3..c434b78be512 100644 --- a/tests/libexec/ld.elf_so/helper_ifunc_dso/h_helper_ifunc.c +++ b/tests/libexec/ld.elf_so/helper_ifunc_dso/h_helper_ifunc.c @@ -30,6 +30,11 @@ #include #include +/* + * Not supported on hppa + */ +#if !defined(__hppa__) + static long long ifunc1(void) { @@ -73,3 +78,4 @@ long long (*ifunc_indirect(void))(void) { return ifunc_hidden; } +#endif