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:
parent
510f13b24a
commit
8f021a505a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue