File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
tools/binary_size/libsupersize Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,8 @@ def Parse(self, lines):
563
563
564
564
is_partial = False
565
565
cur_obj = None
566
- elif cur_obj == 'lto.tmp' or 'thinlto-cache' in cur_obj :
566
+ elif (cur_obj == 'lto.tmp' or 'thinlto-cache' in cur_obj
567
+ or '.lto.' in cur_obj ):
567
568
thin_map [address ] = os .path .basename (cur_obj )
568
569
cur_obj = None
569
570
@@ -670,8 +671,8 @@ def Parse(self, lines):
670
671
def _DetectLto (lines ):
671
672
"""Scans LLD linker map file and returns whether LTO was used."""
672
673
# It's assumed that the first line in |lines| was consumed to determine that
673
- # LLD was used. Seek 'thinlto-cache' prefix within an "indicator section" as
674
- # indicator for LTO.
674
+ # LLD was used. Seek 'thinlto-cache' prefix or the string '.lto' within an
675
+ # "indicator section" as indicator for LTO.
675
676
found_indicator_section = False
676
677
# Potential names of "main section". Only one gets used.
677
678
indicator_section_set = set (['.rodata' , '.ARM.exidx' ])
@@ -695,7 +696,7 @@ def _DetectLto(lines):
695
696
found_indicator_section = True
696
697
elif indent_size == 8 :
697
698
if found_indicator_section :
698
- if tok .startswith ('thinlto-cache' ):
699
+ if tok .startswith ('thinlto-cache' ) or '.lto.' in tok :
699
700
return True
700
701
return False
701
702
You can’t perform that action at this time.
0 commit comments