This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 6b10d8ed19 tools: make the symbol table generated by mkallsyms.py 
two-byte aligned
6b10d8ed19 is described below

commit 6b10d8ed19a1da837e935a12bdfc756e404967ca
Author: yinshengkai <yinsheng...@xiaomi.com>
AuthorDate: Wed Feb 22 21:36:53 2023 +0800

    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 <yinsheng...@xiaomi.com>
---
 tools/mkallsyms.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/mkallsyms.py b/tools/mkallsyms.py
index c7051de9ee..5c9b43f2ca 100755
--- a/tools/mkallsyms.py
+++ b/tools/mkallsyms.py
@@ -101,7 +101,7 @@ class SymbolTables(object):
             if self.symbol_filter(symbol) is not None:
                 symbol_name = cxxfilt.demangle(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])
 
     def emitline(self, s=""):

Reply via email to