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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [arm/] [linux-elf.h] - Blame information for rev 154

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

Line No. Rev Author Line
1 38 julius
/* 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
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_VERSION
28
#define TARGET_VERSION  fputs (" (ARM GNU/Linux with ELF)", stderr);
29
 
30
#undef  TARGET_DEFAULT_FLOAT_ABI
31
#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
32
 
33
#undef  TARGET_DEFAULT
34
#define TARGET_DEFAULT (0)
35
 
36
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
37
 
38
#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
39
 
40
#undef  MULTILIB_DEFAULTS
41
#define MULTILIB_DEFAULTS \
42
        { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
43
 
44
/* Now we define the strings used to build the spec file.  */
45
#undef  LIB_SPEC
46
#define LIB_SPEC \
47
  "%{pthread:-lpthread} \
48
   %{shared:-lc} \
49
   %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
50
 
51
#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
52
 
53
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
54
 
55
#define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \
56
   %{b} \
57
   %{static:-Bstatic} \
58
   %{shared:-shared} \
59
   %{symbolic:-Bsymbolic} \
60
   %{rdynamic:-export-dynamic} \
61
   %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "} \
62
   -X \
63
   %{mbig-endian:-EB}" \
64
   SUBTARGET_EXTRA_LINK_SPEC
65
 
66
#undef  LINK_SPEC
67
#define LINK_SPEC LINUX_TARGET_LINK_SPEC
68
 
69
#define TARGET_OS_CPP_BUILTINS()                \
70
  do                                            \
71
    {                                           \
72
        LINUX_TARGET_OS_CPP_BUILTINS();         \
73
    }                                           \
74
  while (0)
75
 
76
/* This is how we tell the assembler that two symbols have the same value.  */
77
#define ASM_OUTPUT_DEF(FILE, NAME1, NAME2) \
78
  do                                       \
79
    {                                      \
80
      assemble_name (FILE, NAME1);         \
81
      fputs (" = ", FILE);                 \
82
      assemble_name (FILE, NAME2);         \
83
      fputc ('\n', FILE);                  \
84
    }                                      \
85
  while (0)
86
 
87
/* NWFPE always understands FPA instructions.  */
88
#undef  FPUTYPE_DEFAULT
89
#define FPUTYPE_DEFAULT FPUTYPE_FPA_EMU3
90
 
91
/* Call the function profiler with a given profile label.  */
92
#undef  ARM_FUNCTION_PROFILER
93
#define ARM_FUNCTION_PROFILER(STREAM, LABELNO)                          \
94
{                                                                       \
95
  fprintf (STREAM, "\tbl\tmcount%s\n",                                  \
96
           (TARGET_ARM && NEED_PLT_RELOC) ? "(PLT)" : "");              \
97
}
98
 
99
/* The GNU/Linux profiler clobbers the link register.  Make sure the
100
   prologue knows to save it.  */
101
#define PROFILE_HOOK(X)                                         \
102
  emit_insn (gen_rtx_CLOBBER (VOIDmode, gen_rtx_REG (SImode, LR_REGNUM)))
103
 
104
/* The GNU/Linux profiler needs a frame pointer.  */
105
#define SUBTARGET_FRAME_POINTER_REQUIRED current_function_profile

powered by: WebSVN 2.1.0

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