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

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: Update per codereview. Created 7 years, 10 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
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

Powered by Google App Engine
This is Rietveld 408576698