2014-03-25 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / config / c6x / elf.h
bloba4189f6ae572f37c402791cc5fd4dc47a4ac64d1
1 /* ELF definitions for TI C6X
2 Copyright (C) 2010-2014 Free Software Foundation, Inc.
3 Contributed by Andrew Jenner <andrew@codesourcery.com>
4 Contributed by Bernd Schmidt <bernds@codesourcery.com>
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published
10 by the Free Software Foundation; either version 3, or (at your
11 option) any later version.
13 GCC is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 /* crt0.o should come from the linker script, but for compatibility,
23 we mention it here for -msim. */
24 #undef STARTFILE_SPEC
25 #define STARTFILE_SPEC "%{msim:crt0%O%s} crti%O%s crtbegin%O%s"
27 #undef ENDFILE_SPEC
28 #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
30 #undef LIB_SPEC
31 #define LIB_SPEC "%{msim:--start-group -lc -lsim --end-group;" \
32 ":-lc}"
34 #undef LINK_SPEC
35 #define LINK_SPEC ENDIAN_LINK_SPEC