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], |