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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [arm/] [linux-elf.h] - Blame information for rev 744

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

Line No. Rev Author Line
1 709 jeremybenn
/* Definitions for ARM running Linux-based GNU systems using ELF
2
   Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3
   2005, 2006, 2007, 2008, 2009, 2010, 2011
4
   Free Software Foundation, Inc.
5
   Contributed by Philip Blundell <philb@gnu.org>
6
 
7
   This file is part of GCC.
8
 
9
   GCC is free software; you can redistribute it and/or modify it
10
   under the terms of the GNU General Public License as published
11
   by the Free Software Foundation; either version 3, or (at your
12
   option) any later version.
13
 
14
   GCC is distributed in the hope that it will be useful, but WITHOUT
15
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
17
   License for more details.
18
 
19
   You should have received a copy of the GNU General Public License
20
   along with GCC; see the file COPYING3.  If not see
21
   <http://www.gnu.org/licenses/>.  */
22
 
23
/* elfos.h should have already been included.  Now just override
24
   any conflicting definitions and add any extras.  */
25
 
26
/* Run-time Target Specification.  */
27
#undef  TARGET_DEFAULT_FLOAT_ABI
28
#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
29
 
30
/* TARGET_BIG_ENDIAN_DEFAULT is set in
31
   config.gcc for big endian configurations.  */
32
#if TARGET_BIG_ENDIAN_DEFAULT
33
#define TARGET_ENDIAN_DEFAULT    MASK_BIG_END
34
#define TARGET_ENDIAN_OPTION     "mbig-endian"
35
#define TARGET_LINKER_EMULATION  "armelfb_linux"
36
#else
37
#define TARGET_ENDIAN_DEFAULT    0
38
#define TARGET_ENDIAN_OPTION     "mlittle-endian"
39
#define TARGET_LINKER_EMULATION  "armelf_linux"
40
#endif
41
 
42
#undef  TARGET_DEFAULT
43
#define TARGET_DEFAULT (TARGET_ENDIAN_DEFAULT)
44
 
45
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
46
 
47
#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p"
48
 
49
#undef  MULTILIB_DEFAULTS
50
#define MULTILIB_DEFAULTS \
51
        { "marm", "mlittle-endian", "mfloat-abi=hard", "mno-thumb-interwork" }
52
 
53
/* Now we define the strings used to build the spec file.  */
54
#undef  LIB_SPEC
55
#define LIB_SPEC \
56
  "%{pthread:-lpthread} \
57
   %{shared:-lc} \
58
   %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
59
 
60
#define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
61
 
62
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
63
 
64
#define LINUX_TARGET_LINK_SPEC  "%{h*} \
65
   %{static:-Bstatic} \
66
   %{shared:-shared} \
67
   %{symbolic:-Bsymbolic} \
68
   %{rdynamic:-export-dynamic} \
69
   -dynamic-linker " GNU_USER_DYNAMIC_LINKER " \
70
   -X \
71
   %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
72
   SUBTARGET_EXTRA_LINK_SPEC
73
 
74
#undef  LINK_SPEC
75
#define LINK_SPEC LINUX_TARGET_LINK_SPEC
76
 
77
#define TARGET_OS_CPP_BUILTINS()                \
78
  do                                            \
79
    {                                           \
80
        GNU_USER_TARGET_OS_CPP_BUILTINS();      \
81
    }                                           \
82
  while (0)
83
 
84
/* This is how we tell the assembler that two symbols have the same value.  */
85
#define ASM_OUTPUT_DEF(FILE, NAME1, NAME2) \
86
  do                                       \
87
    {                                      \
88
      assemble_name (FILE, NAME1);         \
89
      fputs (" = ", FILE);                 \
90
      assemble_name (FILE, NAME2);         \
91
      fputc ('\n', FILE);                  \
92
    }                                      \
93
  while (0)
94
 
95
/* NWFPE always understands FPA instructions.  */
96
#undef  FPUTYPE_DEFAULT
97
#define FPUTYPE_DEFAULT "fpe3"
98
 
99
/* Call the function profiler with a given profile label.  */
100
#undef  ARM_FUNCTION_PROFILER
101
#define ARM_FUNCTION_PROFILER(STREAM, LABELNO)                          \
102
{                                                                       \
103
  fprintf (STREAM, "\tbl\tmcount%s\n",                                  \
104
           (TARGET_ARM && NEED_PLT_RELOC) ? "(PLT)" : "");              \
105
}
106
 
107
/* The GNU/Linux profiler clobbers the link register.  Make sure the
108
   prologue knows to save it.  */
109
#define PROFILE_HOOK(X)                                         \
110
  emit_clobber (gen_rtx_REG (SImode, LR_REGNUM))
111
 
112
/* The GNU/Linux profiler needs a frame pointer.  */
113
#define SUBTARGET_FRAME_POINTER_REQUIRED crtl->profile
114
 
115
/* Add .note.GNU-stack.  */
116
#undef NEED_INDICATE_EXEC_STACK
117
#define NEED_INDICATE_EXEC_STACK        1

powered by: WebSVN 2.1.0

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