Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/csu Stub out on platforms without ifunc support in...



details:   https://anonhg.NetBSD.org/src/rev/c4eb17afb343
branches:  trunk
changeset: 321333:c4eb17afb343
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Mar 11 21:20:22 2018 +0000

description:
Stub out on platforms without ifunc support in the linker.

diffstat:

 tests/lib/csu/h_ifunc_static.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 497c1085e485 -r c4eb17afb343 tests/lib/csu/h_ifunc_static.c
--- a/tests/lib/csu/h_ifunc_static.c    Sun Mar 11 20:17:19 2018 +0000
+++ b/tests/lib/csu/h_ifunc_static.c    Sun Mar 11 21:20:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: h_ifunc_static.c,v 1.1 2018/03/09 20:20:47 joerg Exp $ */
+/*     $NetBSD: h_ifunc_static.c,v 1.2 2018/03/11 21:20:22 joerg Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -29,6 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if defined(__arm__) || defined(__i386__) || defined(__x86_64__) || defined(__powerpc__) || defined(__sparc__)
 #include <stdlib.h>
 #include <string.h>
 
@@ -62,3 +63,10 @@
                return 1;
        return atoll(argv[1]) != ifunc();
 }
+#else
+int
+main(int argc, char **argv)
+{
+       return 127;
+}
+#endif



Home | Main Index | Thread Index | Old Index