From b9c0a0436d387429035241d3d4d03446b6f915cf Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 6 Nov 2014 12:05:38 +1100 Subject: linkers: Disable .type statements in symbol code. Some of the assemblers do not support this statement. --- linkers/rtems-syms.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linkers') diff --git a/linkers/rtems-syms.cpp b/linkers/rtems-syms.cpp index 24cc56d..6f167e3 100644 --- a/linkers/rtems-syms.cpp +++ b/linkers/rtems-syms.cpp @@ -80,16 +80,20 @@ static const char* c_trailer[] = { "asm(\" .byte 0\");", "asm(\" .ascii \\\"\\xde\\xad\\xbe\\xef\\\"\");", +#if BROKEN_ON_SOME_ASSEMBLERS "asm(\" .type rtems__rtl_base_globals, #object\");", "asm(\" .size rtems__rtl_base_globals, . - rtems__rtl_base_globals\");", +#endif "", "/*", " * Symbol table size.", " */", "asm(\" .align 4\");", "asm(\" .local rtems__rtl_base_globals_size\");", +#if BROKEN_ON_SOME_ASSEMBLERS "asm(\" .type rtems__rtl_base_globals_size, #object\");", "asm(\" .size rtems__rtl_base_globals_size, 4\");", +#endif "asm(\"rtems__rtl_base_globals_size:\");", "asm(\" .long rtems__rtl_base_globals_size - rtems__rtl_base_globals\");", "", -- cgit v1.2.3