tools: GCC 11 uses both '.debug_line_str' and '.debug_str' sections

pull/9068/head
Anton Maklakov 2022-01-20 13:39:14 +07:00
rodzic 9177e9fb37
commit 51c22d3b8b
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -381,9 +381,7 @@ def load_sections(map_file: TextIO) -> Dict:
if srcs:
last_src = srcs[-1]
if last_src['size'] > 0 and last_src['address'] == int(match_line.group('address'), 16):
if '.comment' != section['name'] and '.debug_str' != section['name'] and\
'rodata' not in last_src['sym_name']:
if section['name'] not in ['.comment', '.debug_str', '.debug_line_str'] and 'rodata' not in last_src['sym_name']:
raise RuntimeError('Due to overlap with following lines, size of the line set to 0:\n %s' % dump_src_line(last_src))
last_src['size'] = 0