Index: tests/stubout_mode/partly_invalid.c |
diff --git a/tests/stubout_mode/partly_invalid.c b/tests/stubout_mode/partly_invalid.c |
index 38fa15f60bc5e8c5de36e61270ec530346759d6a..8b0f020d812084155249db47dfd4328354e077f9 100644 |
--- a/tests/stubout_mode/partly_invalid.c |
+++ b/tests/stubout_mode/partly_invalid.c |
@@ -1,7 +1,7 @@ |
/* |
- * Copyright 2010 The Native Client Authors. All rights reserved. |
- * Use of this source code is governed by a BSD-style license that can |
- * be found in the LICENSE file. |
+ * Copyright (c) 2010 The Native Client Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
*/ |
#include <stdio.h> |
@@ -10,6 +10,9 @@ void unfixed_code(void); |
#if defined(__i386__) || defined(__x86_64__) |
__asm__("unfixed_code: ret\n"); |
+#elif defined(__mips__) |
+__asm__("unfixed_code: jr $ra\n" |
+ "nop\n"); |
#else |
# error "Unsupported architecture" |
#endif |
@@ -31,6 +34,11 @@ __asm__(".p2align 5\n" |
/* "0f 05" disassembles to "syscall". */ |
".fill 1000, 2, 0x050f\n" |
".p2align 5\n"); |
+#elif defined(__mips__) |
+__asm__(".p2align 4 \n" |
Mark Seaborn
2013/02/13 22:14:09
Nit: For consistency, no space before \n
petarj
2013/03/05 17:50:04
Done.
|
+ /* "0xc" disassembles to "syscall". */ |
+ ".fill 1000, 4, 0x0000000c \n" |
+ ".p2align 4 \n"); |
#else |
# error "Unsupported architecture" |
#endif |