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

Unified Diff: pydir/szbuild.py

Issue 631383003: Subzero: Fix emission of global initializers. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove the -disable-globals option Created 6 years, 2 months 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/IceClFlags.h » ('j') | tests_lit/llvm2ice_tests/globalinit.pnacl.ll » ('J')
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 e0dbfc7303999ed03fe8069d4a731624e75ef972..116c3732f0659b1b6158ea8283db817651f6f8b3 100755
--- a/pydir/szbuild.py
+++ b/pydir/szbuild.py
@@ -175,6 +175,7 @@ def ProcessPexe(args, pexe, exe):
opt_level_map = { 'm1':'0', '-1':'0', '0':'0', '1':'1', '2':'2' }
shellcmd(['pnacl-translate',
'-ffunction-sections',
+ '-fdata-sections',
'-c',
'-arch', 'x86-32-linux',
'-O' + opt_level_map[opt_level],
@@ -194,9 +195,9 @@ def ProcessPexe(args, pexe, exe):
shellcmd([llvm2ice,
'-O' + opt_level,
'-bitcode-format=pnacl',
- '-disable-globals',
'-externalize',
'-ffunction-sections',
+ '-fdata-sections',
'-o', asm_sz] +
args.sz_args +
[pexe],
« no previous file with comments | « no previous file | src/IceClFlags.h » ('j') | tests_lit/llvm2ice_tests/globalinit.pnacl.ll » ('J')

Powered by Google App Engine
This is Rietveld 408576698