Subzero: Fix szbuild.py linking.
The symbol __Sz_block_profile_info needs to be explicitly globalized when combining llc and Subzero .o output, i.e. when the --include or --exclude options are used.
BUG= none
R=jpp@chromium.org
Review URL: https://codereview.chromium.org/1275983003.
diff --git a/pydir/szbuild.py b/pydir/szbuild.py
index 558f8e2..08e1a09 100755
--- a/pydir/szbuild.py
+++ b/pydir/szbuild.py
@@ -286,7 +286,8 @@
).format(objcopy=objcopy, partial=obj_partial),
echo=args.verbose)
shellcmd((
- '{objcopy} --globalize-symbol={start} {partial}'
+ '{objcopy} --globalize-symbol={start} ' +
+ '--globalize-symbol=__Sz_block_profile_info {partial}'
).format(objcopy=objcopy, partial=obj_partial,
start='_start' if args.sandbox else '_user_start'),
echo=args.verbose)