Don't execute random garbage. Fixes mprotect_mremap_exec test.

This commit is contained in:
uwe 2017-07-20 01:13:47 +00:00
parent a9fb96bdfe
commit 0188ee35ae

View File

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