Browse Source

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.
Yuri D'Elia 1 year ago
parent
commit
8f021a505a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lang/lang-map.py

+ 1 - 1
lang/lang-map.py

@@ -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