From d76218e817a13f17763ffe03cdc349cae01c3124 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Thu, 1 Aug 2024 21:36:03 +0800 Subject: [PATCH] greenhills: fix the moblib asm compile error CC: assert/lib_assert.c [asarm] (error #2179) modlib/modlib_globals.S 61: unexpected token type (char) encountered; expected type (identifier) .size \ globalNames , . - \ globalNames --------^ [asarm] (error #2179) modlib/modlib_globals.S 67: unexpected token type (char) encountered; expected type (identifier) .size \ nglobals , . - \ nglobals --------^ [asarm] (error #2179) modlib/modlib_globals.S 72: unexpected token type (char) encountered; expected type (identifier) .size \ global_table , . - \ global_table --------^ Signed-off-by: guoshichao --- libs/libc/modlib/modlib_globals.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/libc/modlib/modlib_globals.S b/libs/libc/modlib/modlib_globals.S index bdc8912271..b65edfb51a 100644 --- a/libs/libc/modlib/modlib_globals.S +++ b/libs/libc/modlib/modlib_globals.S @@ -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