[build] Warn on zero-length symbols when building symbol table

Make build_symbol_table.py output statistics on the symbol table it
builds, and emit warnings for zero-length symbols. Also added lengths to
several functions defined in asm that this uncovered.
This commit is contained in:
Justin C. Miller
2023-02-06 00:37:26 -08:00
parent ab31825ab3
commit 8966380ef9
6 changed files with 51 additions and 21 deletions

View File

@@ -42,15 +42,17 @@ bsp_idle:
jmp bsp_idle
.end:
global interrupts_enable: function hidden
global interrupts_enable: function hidden (interrupts_enable.end - interrupts_enable)
interrupts_enable:
sti
ret
.end:
global interrupts_disable: function hidden
global interrupts_disable: function hidden (interrupts_disable.end - interrupts_disable)
interrupts_disable:
cli
ret
.end:
section .bss
align 0x100