Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/arch/sh3 Don't execute random garbage. Fixes...
details: https://anonhg.NetBSD.org/src/rev/70d294015c7c
branches: trunk
changeset: 355224:70d294015c7c
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Jul 20 01:13:47 2017 +0000
description:
Don't execute random garbage. Fixes mprotect_mremap_exec test.
diffstat:
tests/lib/libc/arch/sh3/return_one.S | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (19 lines):
diff -r 156c836810bd -r 70d294015c7c tests/lib/libc/arch/sh3/return_one.S
--- a/tests/lib/libc/arch/sh3/return_one.S Thu Jul 20 01:10:57 2017 +0000
+++ b/tests/lib/libc/arch/sh3/return_one.S Thu Jul 20 01:13:47 2017 +0000
@@ -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:
Home |
Main Index |
Thread Index |
Old Index