]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/bfin/elf.h
config.gcc (bfin*-linux-uclibc*): Add ./linux-sysroot-suffix.h to tm_file.
[thirdparty/gcc.git] / gcc / config / bfin / elf.h
1 #undef STARTFILE_SPEC
2 #define STARTFILE_SPEC "\
3 %{msim:%{!shared:crt0%O%s}} \
4 %{!msim:basiccrt%O%s} \
5 crti%O%s crtbegin%O%s crtlibid%O%s"
6
7 #undef ENDFILE_SPEC
8 #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
9
10 #undef LIB_SPEC
11 #define LIB_SPEC "--start-group -lc %{msim:-lsim}%{!msim:-lnosys} --end-group \
12 %{!T*:%{!msim:%{mcpu=bf522*:-T bf522.ld%s}%{mcpu=bf525*:-T bf525.ld%s} \
13 %{mcpu=bf527*:-T bf527.ld%s} \
14 %{mcpu=bf531*:-T bf531.ld%s}%{mcpu=bf532*:-T bf532.ld%s} \
15 %{mcpu=bf533*:-T bf533.ld%s}%{mcpu=bf534*:-T bf534.ld%s} \
16 %{mcpu=bf536*:-T bf536.ld%s}%{mcpu=bf537*:-T bf537.ld%s} \
17 %{mcpu=bf538*:-T bf538.ld%s}%{mcpu=bf539*:-T bf539.ld%s} \
18 %{mcpu=bf542*:-T bf542.ld%s}%{mcpu=bf544*:-T bf544.ld%s} \
19 %{mcpu=bf548*:-T bf548.ld%s}%{mcpu=bf549*:-T bf549.ld%s} \
20 %{!mcpu=*:-T bf532.ld%s} \
21 -T bfin-common-sc.ld%s}}"
22
23 #undef USER_LABEL_PREFIX
24 #define USER_LABEL_PREFIX "_"
25
26 #ifdef __BFIN_FDPIC__
27 #define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \
28 asm (SECTION_OP); \
29 asm ("P3 = [SP + 20];\n\tcall " USER_LABEL_PREFIX #FUNC ";"); \
30 asm (TEXT_SECTION_ASM_OP);
31 #endif
32
33 #define NO_IMPLICIT_EXTERN_C