Chromium Code Reviews| Index: pydir/build-runtime.py |
| diff --git a/pydir/build-runtime.py b/pydir/build-runtime.py |
| index c4ba6d47e63aef0dbff6347d4bc6ba1441cd5826..c4f0b4eb0893c4f1b1015227ff8b1bf9b99d5030 100755 |
| --- a/pydir/build-runtime.py |
| +++ b/pydir/build-runtime.py |
| @@ -6,6 +6,7 @@ import shutil |
| import tempfile |
| import targets |
| +from utils import GetObjcopyCmd |
|
Jim Stichnoth
2016/03/09 23:15:24
Maybe put these 3 on a single sorted line like the
Sean Klein
2016/03/09 23:20:20
Done.
|
| from utils import shellcmd |
| from utils import FindBaseNaCl |
| @@ -26,7 +27,7 @@ def Translate(ll_files, extra_args, obj, verbose): |
| '-arm-enable-dwarf-eh=1', |
| '-o', obj |
| ] + extra_args, echo=verbose) |
| - shellcmd(['le32-nacl-objcopy', |
| + shellcmd([GetObjcopyCmd(), |
| '--strip-symbol=nacl_tp_tdb_offset', |
| '--strip-symbol=nacl_tp_tls_offset', |
| obj |
| @@ -82,7 +83,7 @@ def MakeRuntimesForTarget(target_info, ll_files, |
| ['-m {ld_emu}'.format(ld_emu=target_info.ld_emu)], |
| OutFile('{rtdir}/szrt_native_{target}.o'), |
| verbose) |
| - shellcmd(['le32-nacl-objcopy', |
| + shellcmd([GetObjcopyCmd(), |
| '--strip-symbol=NATIVE', |
| OutFile('{rtdir}/szrt_native_{target}.o')]) |
| @@ -111,7 +112,7 @@ def MakeRuntimesForTarget(target_info, ll_files, |
| ['-m {ld_emu}'.format(ld_emu=target_info.sb_emu)], |
| OutFile('{rtdir}/szrt_sb_{target}.o'), |
| verbose) |
| - shellcmd(['le32-nacl-objcopy', |
| + shellcmd([GetObjcopyCmd(), |
| '--strip-symbol=NACL', |
| OutFile('{rtdir}/szrt_sb_{target}.o')]) |
| @@ -139,7 +140,7 @@ def MakeRuntimesForTarget(target_info, ll_files, |
| ['-m {ld_emu}'.format(ld_emu=target_info.ld_emu)], |
| OutFile('{rtdir}/szrt_nonsfi_{target}.o'), |
| verbose) |
| - shellcmd(['le32-nacl-objcopy', |
| + shellcmd([GetObjcopyCmd(), |
| '--strip-symbol=NONSFI', |
| OutFile('{rtdir}/szrt_nonsfi_{target}.o')]) |