Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / config / bfin / linux.h
blobb5732011224ad32ed59f9bc54373d9b1ae36e7c6
1 #undef SUBTARGET_DRIVER_SELF_SPECS
2 #define SUBTARGET_DRIVER_SELF_SPECS \
3 "%{!mno-fdpic:-mfdpic}",
5 #undef TARGET_OS_CPP_BUILTINS
6 #define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
8 #undef STARTFILE_SPEC
9 #define STARTFILE_SPEC \
10 "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} crtreloc.o%s \
11 crti.o%s %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
13 #undef LINK_GCC_C_SEQUENCE_SPEC
14 #define LINK_GCC_C_SEQUENCE_SPEC \
15 "%{static:--start-group} %{mfast-fp:-lbffastfp} %G %L %{static:--end-group} \
16 %{!static:%{mfast-fp:-lbffastfp} %G}"
18 #undef LINK_SPEC
19 #define LINK_SPEC "\
20 %{mfdpic: -m elf32bfinfd -z text} %{shared} %{pie} \
21 %{static:-dn -Bstatic} \
22 %{shared:-G -Bdynamic} \
23 %{!shared: %{!static: \
24 %{rdynamic:-export-dynamic} \
25 %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
26 %{static}} -init __init -fini __fini"
28 #define MD_UNWIND_SUPPORT "config/bfin/linux-unwind.h"