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

Unified Diff: pydir/build-runtime.py

Issue 2482123002: Subzero, MIPS32: Sandbox initial patch (Closed)
Patch Set: Created 4 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 | « no previous file | src/IceTargetLoweringMIPS32.h » ('j') | src/IceTargetLoweringMIPS32.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/build-runtime.py
diff --git a/pydir/build-runtime.py b/pydir/build-runtime.py
index 622235bbf65e5bc13aa332fea6356a7eaedd2852..fe43f71b56249a06a33e8fbaaec0d98e2c250d8b 100755
--- a/pydir/build-runtime.py
+++ b/pydir/build-runtime.py
@@ -15,7 +15,7 @@ def Translate(ll_files, extra_args, obj, verbose, target):
Use pnacl-llc to translate textual bitcode input ll_files into object file
obj, using extra_args as the architectural flags.
"""
- externalize = [] if target == 'mips32' else ['-externalize']
+ externalize = ['-externalize']
shellcmd(['cat'] + ll_files + ['|',
'pnacl-llc',
'-function-sections',
@@ -26,8 +26,13 @@ def Translate(ll_files, extra_args, obj, verbose, target):
] + extra_args + externalize, echo=verbose)
strip_syms = [] if target == 'mips32' else ['nacl_tp_tdb_offset',
'nacl_tp_tls_offset']
- shellcmd([GetObjcopyCmd(target), obj] +
- [('--strip-symbol=' + sym) for sym in strip_syms])
+ if target != 'mips32':
Jim Stichnoth 2016/11/08 13:36:31 Is this diff actually needed? As I understand it,
Stefan Maksimovic 2016/11/08 14:59:55 Initially I got the undefined reference errors poi
Jim Stichnoth 2016/11/08 15:34:08 Ah sorry! I misread the logic in the new code. I
+ shellcmd([GetObjcopyCmd(target), obj] +
+ [('--strip-symbol=' + sym) for sym in strip_syms])
+ else:
+ shellcmd([GetObjcopyCmd(target), obj] +
+ [('--strip-symbol=' + sym) for sym in strip_syms] +
+ ['-L','nacl_tp_tdb_offset','-L','nacl_tp_tls_offset'])
def PartialLink(obj_files, extra_args, lib, verbose):
« no previous file with comments | « no previous file | src/IceTargetLoweringMIPS32.h » ('j') | src/IceTargetLoweringMIPS32.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698