1 /* Support for GCC on Xilinx embedded PowerPC systems
2 Copyright (C) 2008-2017 Free Software Foundation, Inc.
3 Contributed by Michael Eager, eager@eagercon.com
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published
9 by the Free Software Foundation; either version 3, or (at your
10 option) any later version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 /* Set defaults for Xilinx embedded target boards. */
26 %{mfpu=sp_lite: -DHAVE_XFPU_SP_LITE} \
27 %{mfpu=sp_full: -DHAVE_XFPU_SP_FULL} \
28 %{mfpu=dp_lite: -DHAVE_XFPU_DP_LITE} \
29 %{mfpu=dp_full: -DHAVE_XFPU_DP_FULL} \
30 %{mfpu=*: -DHAVE_XFPU}"
32 #undef LIB_DEFAULT_SPEC
33 #define LIB_DEFAULT_SPEC "\
34 %{!nostdlib: --start-group -lxil -lc -lm --end-group \
35 %{mppcperflib: %{mfpu=*: -lppcstr405 -lgcc} \
36 %{!mfpu=*: -lppcstr405 -lppcfp -lgcc}} \
37 %{!mppcperflib: -lgcc}}"
39 #undef STARTFILE_DEFAULT_SPEC
40 #define STARTFILE_DEFAULT_SPEC "\
41 ecrti.o%s %{pg: %{!mno-clearbss: xil-pgcrt0.o%s} \
42 %{mno-clearbss: xil-sim-pgcrt0.o%s}} \
43 %{!pg: %{!mno-clearbss: xil-crt0.o%s} \
44 %{mno-clearbss: xil-sim-crt0.o%s}} crtbegin.o%s"
46 #undef LINK_START_DEFAULT_SPEC
47 #define LINK_START_DEFAULT_SPEC "-T xilinx.ld%s"