summaryrefslogtreecommitdiff
path: root/tests/libexec
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2014-08-26 16:25:35 +0000
committerjoerg <joerg@NetBSD.org>2014-08-26 16:25:35 +0000
commitbf7a461d79d04949a4dcba69e1c6bada5fc418ee (patch)
tree9328f765079e87e0f2407b9f8954d2c5f2ea305b /tests/libexec
parent800653e1083306df796158095e31333ac0c2cb73 (diff)
Revert. There is no such thing as __HAVE_IFUNC and there should not be
one in first place.
Diffstat (limited to 'tests/libexec')
-rw-r--r--tests/libexec/ld.elf_so/helper_ifunc_dso/h_helper_ifunc.c6
1 files changed, 0 insertions, 6 deletions
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 a213aeb4721..1f4d15489d9 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
@@ -49,15 +49,9 @@ int (*resolve_ifunc(void))(void)
return e && strcmp(e, "1") == 0 ? ifunc2 : ifunc1;
}
-#ifdef __HAVE_IFUNC
-// XXX: m68k, vax, mips, sh3 (and others) binutils don't support this.
-// Needs to be staged in for archs that support it.
-__ifunc(ifunc, resolve_ifunc);
-#else
int ifunc(void);
int
ifunc(void) {
const char *e = getenv("USE_IFUNC2");
return e && strcmp(e, "1") == 0 ? ifunc2() : ifunc1();
}
-#endif