commit | e1ce0aefff75a1d20703b5971d840d97344c5036 | [log] [tgz] |
---|---|---|
author | Yong Cong Sin <ycsin@meta.com> | Sat May 18 16:45:44 2024 +0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu May 23 11:52:08 2024 -0400 |
tree | 504d4a6d3a5483308d79badefd268bb7a225f4b1 | |
parent | 0af906a533e36a69938567d6294c559366c5684e [diff] |
debug: implement symtab generation Use pyelftools to extract the symbol table from the link stage executable. Then, filter out the function names and sort them based on their offsets before writing into the `symtab.c`, this is similar to how the `isr_tables` works. To access the structure, simply include the new header: ```c #include <zephyr/debug/symtab.h> ``` Signed-off-by: Yong Cong Sin <ycsin@meta.com>