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

Unified Diff: pnacl/driver/driver_tools.py

Issue 11299012: PNaCl: Add more MIPS support to the toolchain (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix Created 8 years, 1 month 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 | « pnacl/build.sh ('k') | pnacl/driver/pnacl-as.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pnacl/driver/driver_tools.py
diff --git a/pnacl/driver/driver_tools.py b/pnacl/driver/driver_tools.py
index 26ab657acc5e73f9282e3c5ce587710751903ea9..875aa15b61defb279c524253cb13a9c23990d155 100755
--- a/pnacl/driver/driver_tools.py
+++ b/pnacl/driver/driver_tools.py
@@ -433,6 +433,7 @@ class ELFHeader(object):
2: 'EXEC', # .exe
3: 'DYN' } # .so
ELF_MACHINES = { 3: '386',
+ 8: 'MIPS',
40: 'ARM',
62: 'X86_64' }
ELF_OSABI = { 0: 'UNIX',
@@ -938,7 +939,11 @@ def FixArch(arch):
'arm' : 'ARM',
'armv7' : 'ARM',
- 'arm-thumb2' : 'ARM' }
+ 'arm-thumb2' : 'ARM',
+
+ 'mips32': 'MIPS32',
+ 'mips' : 'MIPS32',
+ }
if arch not in archfix:
Log.Fatal('Unrecognized arch "%s"!', arch)
return archfix[arch]
« no previous file with comments | « pnacl/build.sh ('k') | pnacl/driver/pnacl-as.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698