[asm] add END_FUNCTION and END_DATA macros and mark up some riscv assembly

Doesn't really do much but at least sets the symbol size properly in a
symbol dump.
This commit is contained in:
Travis Geiselbrecht
2020-07-12 13:15:37 -07:00
parent cf7de9eaa7
commit dac96bea90
3 changed files with 9 additions and 0 deletions

View File

@@ -12,3 +12,6 @@
#define LOCAL_FUNCTION(x) .type x,STT_FUNC; x:
#define LOCAL_DATA(x) .type x,STT_OBJECT; x:
#define END_FUNCTION(x) .size x, . - x
#define END_DATA(x) .size x, . - x