OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [xtensa/] [elf.h] - Blame information for rev 750

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 709 jeremybenn
/* Xtensa/Elf configuration.
2
   Derived from the configuration for GCC for Intel i386 running Linux.
3
   Copyright (C) 2001, 2003, 2006, 2007, 2010, 2011
4
   Free Software Foundation, Inc.
5
 
6
This file is part of GCC.
7
 
8
GCC is free software; you can redistribute it and/or modify it under
9
the terms of the GNU General Public License as published by the Free
10
Software Foundation; either version 3, or (at your option) any later
11
version.
12
 
13
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14
WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16
for more details.
17
 
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/>.  */
21
 
22
#define TARGET_SECTION_TYPE_FLAGS xtensa_multibss_section_type_flags
23
 
24
/* Don't assume anything about the header files.  */
25
#define NO_IMPLICIT_EXTERN_C
26
 
27
#undef ASM_APP_ON
28
#define ASM_APP_ON "#APP\n"
29
 
30
#undef ASM_APP_OFF
31
#define ASM_APP_OFF "#NO_APP\n"
32
 
33
#undef SIZE_TYPE
34
#define SIZE_TYPE "unsigned int"
35
 
36
#undef PTRDIFF_TYPE
37
#define PTRDIFF_TYPE "int"
38
 
39
#undef WCHAR_TYPE
40
#define WCHAR_TYPE "short unsigned int"
41
 
42
#undef WCHAR_TYPE_SIZE
43
#define WCHAR_TYPE_SIZE 16
44
 
45
#undef ASM_SPEC
46
#define ASM_SPEC \
47
 "%{mtext-section-literals:--text-section-literals} \
48
  %{mno-text-section-literals:--no-text-section-literals} \
49
  %{mtarget-align:--target-align} \
50
  %{mno-target-align:--no-target-align} \
51
  %{mlongcalls:--longcalls} \
52
  %{mno-longcalls:--no-longcalls}"
53
 
54
#undef LIB_SPEC
55
#define LIB_SPEC "-lc -lsim -lc -lhandlers-sim -lhal"
56
 
57
#undef STARTFILE_SPEC
58
#define STARTFILE_SPEC \
59
  "crt1-sim%O%s crt0%O%s crti%O%s crtbegin%O%s _vectors%O%s"
60
 
61
#undef ENDFILE_SPEC
62
#define ENDFILE_SPEC "crtend%O%s crtn%O%s"  
63
 
64
#undef LINK_SPEC
65
#define LINK_SPEC \
66
 "%{shared:-shared} \
67
  %{!shared: \
68
    %{!static: \
69
      %{rdynamic:-export-dynamic} \
70
    %{static:-static}}}"
71
 
72
#undef LOCAL_LABEL_PREFIX
73
#define LOCAL_LABEL_PREFIX      "."
74
 
75
/* Avoid dots for compatibility with VxWorks.  */
76
#undef NO_DOLLAR_IN_LABEL
77
#define NO_DOT_IN_LABEL
78
 
79
/* Do not force "-fpic" for this target.  */
80
#define XTENSA_ALWAYS_PIC 0
81
 
82
#undef DBX_REGISTER_NUMBER
83
 
84
/* Search for headers in $tooldir/arch/include and for libraries and
85
   startfiles in $tooldir/arch/lib.  */
86
#define GCC_DRIVER_HOST_INITIALIZATION \
87
do \
88
{ \
89
  char *tooldir, *archdir; \
90
  tooldir = concat (tooldir_base_prefix, spec_machine, \
91
                    dir_separator_str, NULL); \
92
  if (!IS_ABSOLUTE_PATH (tooldir)) \
93
    tooldir = concat (standard_exec_prefix, spec_machine, dir_separator_str, \
94
                      spec_version, dir_separator_str, tooldir, NULL); \
95
  archdir = concat (tooldir, "arch", dir_separator_str, NULL); \
96
  add_prefix (&startfile_prefixes, \
97
              concat (archdir, "lib", dir_separator_str, NULL), \
98
              "GCC", PREFIX_PRIORITY_LAST, 0, 1); \
99
  add_prefix (&include_prefixes, archdir, \
100
              "GCC", PREFIX_PRIORITY_LAST, 0, 0); \
101
  } \
102
while (0)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.