146283Sdfr/* Copyright (C) 2009-2020 Free Software Foundation, Inc.
298944Sobrien
346283SdfrThis file is part of GCC.
498944Sobrien
546283SdfrGCC is free software; you can redistribute it and/or modify it under
698944Sobrienthe terms of the GNU General Public License as published by the Free
798944SobrienSoftware Foundation; either version 3, or (at your option) any later
898944Sobrienversion.
998944Sobrien
1046283SdfrGCC is distributed in the hope that it will be useful, but WITHOUT ANY
1198944SobrienWARRANTY; without even the implied warranty of MERCHANTABILITY or
1298944SobrienFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1398944Sobrienfor more details.
1498944Sobrien
1546283SdfrUnder Section 7 of GPL version 3, you are granted additional
1698944Sobrienpermissions described in the GCC Runtime Library Exception, version
1798944Sobrien3.1, as published by the Free Software Foundation.
1898944Sobrien
1998944SobrienYou should have received a copy of the GNU General Public License and
2046283Sdfra copy of the GCC Runtime Library Exception along with this program;
2146283Sdfrsee the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2246283Sdfr<http://www.gnu.org/licenses/>.  */
2346283Sdfr
2446283Sdfr#undef  STARTFILE_SPEC
2546283Sdfr#define STARTFILE_SPEC \
2646283Sdfr  "%{!shared: crt1%O%s} crti%O%s crtbegin%O%s"
2746283Sdfr
2898944Sobrien#undef LINK_SPEC
2946283Sdfr#define LINK_SPEC "-elf2flt"
3046283Sdfr
3146283Sdfr#define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
3246283Sdfr
3346283Sdfr#undef TARGET_LIBC_HAS_FUNCTION
3446283Sdfr#define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function
3546283Sdfr
3698944Sobrien/* Like the definition in gcc.c, but for purposes of uClinux, every link is
3746283Sdfr   static.  */
3846283Sdfr#define MFWRAP_SPEC " %{fmudflap|fmudflapth: \
3946283Sdfr --wrap=malloc --wrap=free --wrap=calloc --wrap=realloc\
4046283Sdfr --wrap=mmap --wrap=munmap --wrap=alloca\
4146283Sdfr %{fmudflapth: --wrap=pthread_create\
4246283Sdfr}} %{fmudflap|fmudflapth: --wrap=main}"
4346283Sdfr