Commit c85449f1 authored by Samuel Huang's avatar Samuel Huang Committed by Commit Bot

[Supersize] Simple fix to remove LLD-LTO errors.

This CL modifies linker_map_filter.py to add a filter for object
filenames. This enables Supersize to run for LTO (under LLD) without
crashing -- although some data are missing (to be fixed in follow-ups).

Bug: 723798
Change-Id: I90b7439368cca96921d688b0c9db95a599fa2bca
Reviewed-on: https://chromium-review.googlesource.com/982254Reviewed-by: default avataragrieve <agrieve@chromium.org>
Commit-Queue: agrieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546161}
parent c89b8fab
...@@ -352,6 +352,8 @@ class MapFileParserLld(object): ...@@ -352,6 +352,8 @@ class MapFileParserLld(object):
# Treat all literals as stirng literals. # Treat all literals as stirng literals.
# FIXME(huangs): Refine this. Checking align == 1 is insufficient. # FIXME(huangs): Refine this. Checking align == 1 is insufficient.
sym_maker.cur_sym.full_name = '** lld merge strings' sym_maker.cur_sym.full_name = '** lld merge strings'
elif cur_obj == 'lto.tmp' or cur_obj.startswith('thinlto-cache'):
pass
else: else:
sym_maker.cur_sym.object_path = cur_obj sym_maker.cur_sym.object_path = cur_obj
......
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