Chromium Code Reviews| 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): |