20180-12-08 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / config / c6x / elf-common.h
blob8aac3dc186d474c916fe6feff8e257a2695962f3
1 /* ELF definitions for TI C6X
2 Copyright (C) 2010-2018 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 /* Controlling the Compilation Driver. */
23 #define ENDIAN_LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} "
25 #undef ASM_SPEC
26 #define ASM_SPEC "%{march=*:-march=%*} %{mbig-endian:-mbig-endian} \
27 %{mdsbt:-mdsbt %{" NO_FPIC2_SPEC ":-mpid=near} \
28 %{" FPIC2_SPEC ":-mpid=far -mpic} %{" FPIC1_SPEC ":-mpic}} \
29 %{!mdsbt:%{" FPIC1_SPEC ":-mpic -mpid=near} \
30 %{" FPIC2_SPEC ":-mpic -mpid=far}}"
32 #undef DATA_SECTION_ASM_OP
33 #define DATA_SECTION_ASM_OP "\t.section\t\".fardata\",\"aw\""
34 #undef READONLY_DATA_SECTION_ASM_OP
35 #define READONLY_DATA_SECTION_ASM_OP "\t.section\t\".const\",\"a\",@progbits"
36 #define BSS_SECTION_ASM_OP "\t.section\t\".far\",\"aw\",@nobits"
37 #define SDATA_SECTION_ASM_OP "\t.section\t\".neardata\",\"aw\""
38 #define SBSS_SECTION_ASM_OP "\t.section\t\".bss\",\"aw\",@nobits"
39 #define TARGET_LIBGCC_SDATA_SECTION ".neardata"