Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Unified Diff: tests/data_not_executable/execute_data.c

Issue 12256018: [MIPS] Add remaining parts for building tests for MIPS (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Minor cleanup. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/barebones/top_of_sandbox.c ('k') | tests/data_not_executable/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/data_not_executable/execute_data.c
diff --git a/tests/data_not_executable/execute_data.c b/tests/data_not_executable/execute_data.c
index bd34e51d9c235f9881e00986f1ac0ec5246dfc0b..e3ad03a74307f4261cd9558f453a3e97534cfabd 100644
--- a/tests/data_not_executable/execute_data.c
+++ b/tests/data_not_executable/execute_data.c
@@ -13,6 +13,9 @@ int main(void) {
uint8_t code[] __attribute__((aligned(32))) = { 0xc3 /* ret */ };
#elif defined(__arm__)
uint32_t code[] __attribute__((aligned(32))) = { 0xe12fff1e /* BX LR */ };
+#elif defined(__mips__)
+ uint32_t code[] __attribute__((aligned(32))) = { 0x03e00008, /* JR RA */
+ 0 /* NOP */ };
#else
# error Unknown architecture
#endif
« no previous file with comments | « tests/barebones/top_of_sandbox.c ('k') | tests/data_not_executable/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698