1 #define OBJECT_FORMAT_ELF
3 #define LOCAL_LABEL_PREFIX "L$"
5 #undef ASM_GENERATE_INTERNAL_LABEL
6 #define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM) \
7 sprintf (LABEL, "*%s%s$%d", LOCAL_LABEL_PREFIX, PREFIX, (int) NUM)
10 #define STARTFILE_SPEC "\
11 %{msim:%{!shared:crt0%O%s}} \
12 %{!msim:%{mcpu=bf531|mcpu=bf532|mcpu=bf533 \
13 |mcpu=bf534|mcpu=bf536|mcpu=bf537:crt532%O%s} \
14 %{!mcpu=*:crt532%O%s}} \
15 crti%O%s crtbegin%O%s crtlibid%O%s"
18 #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
21 #define LIB_SPEC "--start-group -lc %{msim:-lsim}%{!msim:-lnosys} --end-group \
22 %{!T*:%{!msim:%{mcpu=bf531:-Tbf531.ld}%{mcpu=bf532:-Tbf532.ld} \
23 %{mcpu=bf533:-Tbf533.ld}%{mcpu=bf534:-Tbf534.ld} \
24 %{mcpu=bf536:-Tbf536.ld}%{mcpu=bf537:-Tbf537.ld} \
25 %{!mcpu=*:-Tbf532.ld}}}"
27 #undef USER_LABEL_PREFIX
28 #define USER_LABEL_PREFIX "_"
31 #define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \
33 asm ("P3 = [SP + 20];\n\tcall " USER_LABEL_PREFIX #FUNC ";"); \
34 asm (TEXT_SECTION_ASM_OP);
37 #define NO_IMPLICIT_EXTERN_C