lang: Correctly include last element in map file

__loc_pri_end is inclusive and needs to be accounted for in
get_lang_symbols().

This was incorrectly excluding the last translatable string from the map
file.
This commit is contained in:
Yuri D'Elia 2022-08-09 17:12:52 +02:00 committed by DRracer
parent 510f13b24a
commit 8f021a505a

View file

@ -26,7 +26,7 @@ def get_lang_symbols(elf, symtab):
sym_start = sym.entry.st_value
sym_size = sym.entry.st_size
sym_end = sym_start + sym_size
if sym_start >= pri_start and sym_end < pri_end and sym_size > 0:
if sym_start >= pri_start and sym_end <= pri_end and sym_size > 0:
data = text_data[sym_start:sym_end]
# perform basic checks on the language section