Skip to content

Commit

Permalink
greenhills: fix the moblib asm compile error
Browse files Browse the repository at this point in the history
CC:  assert/lib_assert.c [asarm] (error apache#2179) modlib/modlib_globals.S 61: unexpected token type (char) encountered; expected type (identifier)
  .size \ globalNames , . - \ globalNames
--------^

[asarm] (error apache#2179) modlib/modlib_globals.S 67: unexpected token type (char) encountered; expected type (identifier)
  .size \ nglobals , . - \ nglobals
--------^

[asarm] (error apache#2179) modlib/modlib_globals.S 72: unexpected token type (char) encountered; expected type (identifier)
  .size \ global_table , . - \ global_table
--------^

Signed-off-by: guoshichao <[email protected]>
  • Loading branch information
extinguish authored and acassis committed Aug 11, 2024
1 parent ed9d57b commit d76218e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/libc/modlib/modlib_globals.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
.type SYMBOL(\ep), "object"
.endm
.macro SIZE ep
# if defined(__ghs__)
.size SYMBOL(ep), . - SYMBOL(ep)
# else
.size SYMBOL(\ep), . - SYMBOL(\ep)
# endif
.endm
#else
# define SYMBOL(s) _##s
Expand Down

0 comments on commit d76218e

Please sign in to comment.