Commit 88ab5ca4 by Jim Stichnoth

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.
parent ac7d7344
...@@ -286,7 +286,8 @@ def ProcessPexe(args, pexe, exe): ...@@ -286,7 +286,8 @@ def ProcessPexe(args, pexe, exe):
).format(objcopy=objcopy, partial=obj_partial), ).format(objcopy=objcopy, partial=obj_partial),
echo=args.verbose) echo=args.verbose)
shellcmd(( shellcmd((
'{objcopy} --globalize-symbol={start} {partial}' '{objcopy} --globalize-symbol={start} ' +
'--globalize-symbol=__Sz_block_profile_info {partial}'
).format(objcopy=objcopy, partial=obj_partial, ).format(objcopy=objcopy, partial=obj_partial,
start='_start' if args.sandbox else '_user_start'), start='_start' if args.sandbox else '_user_start'),
echo=args.verbose) echo=args.verbose)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment