diff --git a/tests/lib/libc/arch/sparc/exec_prot_support.c b/tests/lib/libc/arch/sparc/exec_prot_support.c index 474cfc742f69..5d396a14b1b4 100644 --- a/tests/lib/libc/arch/sparc/exec_prot_support.c +++ b/tests/lib/libc/arch/sparc/exec_prot_support.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_prot_support.c,v 1.1 2011/07/18 23:16:10 jym Exp $ */ +/* $NetBSD: exec_prot_support.c,v 1.2 2018/01/14 19:59:51 martin Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -30,12 +30,13 @@ */ #include -__RCSID("$NetBSD: exec_prot_support.c,v 1.1 2011/07/18 23:16:10 jym Exp $"); +__RCSID("$NetBSD: exec_prot_support.c,v 1.2 2018/01/14 19:59:51 martin Exp $"); #include "../../common/exec_prot.h" int exec_prot_support(void) { - return NOTIMPL; + + return PERPAGE_XP; } diff --git a/tests/lib/libc/arch/sparc/return_one.S b/tests/lib/libc/arch/sparc/return_one.S index 3495260d6f68..d254ba5be542 100644 --- a/tests/lib/libc/arch/sparc/return_one.S +++ b/tests/lib/libc/arch/sparc/return_one.S @@ -1,8 +1,11 @@ -/* $NetBSD: return_one.S,v 1.1 2011/07/18 23:16:10 jym Exp $ */ +/* $NetBSD: return_one.S,v 1.2 2018/01/14 19:59:51 martin Exp $ */ #include -.globl return_one, return_one_end; +.global return_one_end -return_one: return_one_end: - nop +ENTRY(return_one) +return_one: + retl + mov 1, %o0 +return_one_end: