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

Unified Diff: pydir/szbuild.py

Issue 1491473002: Subzero. ARM32. Initial sandboxing code. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Renames run-pnacl-sz argument. Created 5 years 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 | « pydir/run-pnacl-sz.py ('k') | pydir/targets.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/szbuild.py
diff --git a/pydir/szbuild.py b/pydir/szbuild.py
index 569c8caa64b3da9c5c47e62725df97cd070e40b1..10ce8c1e51450dc503b72de6b40c0b0ce6c1a483 100755
--- a/pydir/szbuild.py
+++ b/pydir/szbuild.py
@@ -318,10 +318,14 @@ def ProcessPexe(args, pexe, exe):
# Run the linker regardless of hybrid mode.
if args.sandbox:
- assert args.target in ['x8632'], \
+ assert args.target in ('x8632', 'arm32'), \
'-sandbox is not available for %s' % args.target
+ target_lib_dir = {
+ 'arm32': 'arm',
+ 'x8632': 'x86-32',
+ }[args.target]
linklib = ('{root}/toolchain/linux_x86/pnacl_newlib_raw/translator/' +
- 'x86-32/lib').format(root=nacl_root)
+ '{target_dir}/lib').format(root=nacl_root, target_dir=target_lib_dir)
shellcmd((
'{gold} -nostdlib --no-fix-cortex-a8 --eh-frame-hdr -z text ' +
'--build-id --entry=__pnacl_start -static ' +
« no previous file with comments | « pydir/run-pnacl-sz.py ('k') | pydir/targets.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698