Disable attempt to use ifunc on hppa. It doesn't work and new binutils

throws a build error.
This commit is contained in:
skrll 2020-05-05 20:47:14 +00:00
parent fd7fe8589e
commit bda3cfd2fc
2 changed files with 14 additions and 1 deletions

View File

@ -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
}

View File

@ -30,6 +30,11 @@
#include <stdlib.h>
#include <string.h>
/*
* 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