mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
tools: make the symbol table generated by mkallsyms.py two-byte aligned
When using stm32, the starting address of the function parsed by mkallsyms.py is an odd number, one large than the actual address Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@ class SymbolTables(object):
|
|||||||
if self.symbol_filter(symbol) is not None:
|
if self.symbol_filter(symbol) is not None:
|
||||||
symbol_name = cxxfilt.demangle(symbol.name)
|
symbol_name = cxxfilt.demangle(symbol.name)
|
||||||
func_name = re.sub(r"\(.*$", "", symbol_name)
|
func_name = re.sub(r"\(.*$", "", symbol_name)
|
||||||
self.symbol_list.append((symbol["st_value"], func_name))
|
self.symbol_list.append((symbol["st_value"] & ~0x01, func_name))
|
||||||
self.symbol_list = sorted(self.symbol_list, key=lambda item: item[0])
|
self.symbol_list = sorted(self.symbol_list, key=lambda item: item[0])
|
||||||
|
|
||||||
def emitline(self, s=""):
|
def emitline(self, s=""):
|
||||||
|
|||||||
Reference in New Issue
Block a user