]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/csky/csky-elf.h
155a42d20447539ea159d4e4e1f70ab95b88b655
1 /* Declarations for bare-metal C-SKY targets.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
3 Contributed by C-SKY Microsystems and Mentor Graphics.
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/>. */
22 /******************************************************************
23 * Run-time Target Specification *
24 ******************************************************************/
27 #define STARTFILE_SPEC \
28 "crt0.o%s crti.o%s crtbegin.o%s"
31 #define ENDFILE_SPEC "crtend.o%s crtn.o%s"
38 %{march=ck803s:-march=ck803} \
43 "%{mbig-endian:-mbig-endian} \
48 %{march=*:-march=%*} \
49 %{mhard-float:-mhard-float} \
51 %{mno-elrw:-mno-elrw} \
53 %{mno-istack:-mno-istack} \
57 %{msecurity|mmac:-msecurity} \
72 "%{pthread:-lpthread} -lc %{mccrt:-lcc-rt}"
73 /* FIXME add this to LIB_SPEC when need */
74 /* %{!shared:%{profile:-lc_p}%{!profile:-lc}}" */
77 #define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
79 /* Disable features only for Linux toolchains. */
80 #undef TARGET_POSIX_IO
81 #define TARGET_CSKY_LINUX 0