Module Name:    src
Committed By:   uwe
Date:           Thu Jul 20 01:13:47 UTC 2017

Modified Files:
        src/tests/lib/libc/arch/sh3: return_one.S

Log Message:
Don't execute random garbage.  Fixes mprotect_mremap_exec test.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/arch/sh3/return_one.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/arch/sh3/return_one.S
diff -u src/tests/lib/libc/arch/sh3/return_one.S:1.1 src/tests/lib/libc/arch/sh3/return_one.S:1.2
--- src/tests/lib/libc/arch/sh3/return_one.S:1.1	Mon Jul 18 23:16:10 2011
+++ src/tests/lib/libc/arch/sh3/return_one.S	Thu Jul 20 01:13:47 2017
@@ -1,8 +1,10 @@
-/*	$NetBSD: return_one.S,v 1.1 2011/07/18 23:16:10 jym Exp $ */
+/*	$NetBSD: return_one.S,v 1.2 2017/07/20 01:13:47 uwe Exp $ */
 
 #include <machine/asm.h>
 
-.globl	return_one, return_one_end;
-
-return_one: return_one_end:
-	nop
+NENTRY(return_one)
+	rts
+	 mov	#1, r0
+	SET_ENTRY_SIZE(return_one)
+	.globl	return_one_end
+return_one_end:

Reply via email to