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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [config/] [arm/] [linux-elf.h] - Diff between revs 38 and 154

Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 154
/* Definitions for ARM running Linux-based GNU systems using ELF
/* Definitions for ARM running Linux-based GNU systems using ELF
   Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
   Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
   2005, 2006, 2007
   2005, 2006, 2007
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
   Contributed by Philip Blundell <philb@gnu.org>
   Contributed by Philip Blundell <philb@gnu.org>
 
 
   This file is part of GCC.
   This file is part of GCC.
 
 
   GCC is free software; you can redistribute it and/or modify it
   GCC is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published
   under the terms of the GNU General Public License as published
   by the Free Software Foundation; either version 3, or (at your
   by the Free Software Foundation; either version 3, or (at your
   option) any later version.
   option) any later version.
 
 
   GCC is distributed in the hope that it will be useful, but WITHOUT
   GCC is distributed in the hope that it will be useful, but WITHOUT
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   License for more details.
   License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with GCC; see the file COPYING3.  If not see
   along with GCC; see the file COPYING3.  If not see
   <http://www.gnu.org/licenses/>.  */
   <http://www.gnu.org/licenses/>.  */
 
 
/* elfos.h should have already been included.  Now just override
/* elfos.h should have already been included.  Now just override
   any conflicting definitions and add any extras.  */
   any conflicting definitions and add any extras.  */
 
 
/* Run-time Target Specification.  */
/* Run-time Target Specification.  */
#undef  TARGET_VERSION
#undef  TARGET_VERSION
#define TARGET_VERSION  fputs (" (ARM GNU/Linux with ELF)", stderr);
#define TARGET_VERSION  fputs (" (ARM GNU/Linux with ELF)", stderr);
 
 
#undef  TARGET_DEFAULT_FLOAT_ABI
#undef  TARGET_DEFAULT_FLOAT_ABI
#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
 
 
#undef  TARGET_DEFAULT
#undef  TARGET_DEFAULT
#define TARGET_DEFAULT (0)
#define TARGET_DEFAULT (0)
 
 
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
 
 
#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
 
 
#undef  MULTILIB_DEFAULTS
#undef  MULTILIB_DEFAULTS
#define MULTILIB_DEFAULTS \
#define MULTILIB_DEFAULTS \
        { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
        { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
 
 
/* Now we define the strings used to build the spec file.  */
/* Now we define the strings used to build the spec file.  */
#undef  LIB_SPEC
#undef  LIB_SPEC
#define LIB_SPEC \
#define LIB_SPEC \
  "%{pthread:-lpthread} \
  "%{pthread:-lpthread} \
   %{shared:-lc} \
   %{shared:-lc} \
   %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
   %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
 
 
#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
 
 
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
 
 
#define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \
#define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \
   %{b} \
   %{b} \
   %{static:-Bstatic} \
   %{static:-Bstatic} \
   %{shared:-shared} \
   %{shared:-shared} \
   %{symbolic:-Bsymbolic} \
   %{symbolic:-Bsymbolic} \
   %{rdynamic:-export-dynamic} \
   %{rdynamic:-export-dynamic} \
   %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "} \
   %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "} \
   -X \
   -X \
   %{mbig-endian:-EB}" \
   %{mbig-endian:-EB}" \
   SUBTARGET_EXTRA_LINK_SPEC
   SUBTARGET_EXTRA_LINK_SPEC
 
 
#undef  LINK_SPEC
#undef  LINK_SPEC
#define LINK_SPEC LINUX_TARGET_LINK_SPEC
#define LINK_SPEC LINUX_TARGET_LINK_SPEC
 
 
#define TARGET_OS_CPP_BUILTINS()                \
#define TARGET_OS_CPP_BUILTINS()                \
  do                                            \
  do                                            \
    {                                           \
    {                                           \
        LINUX_TARGET_OS_CPP_BUILTINS();         \
        LINUX_TARGET_OS_CPP_BUILTINS();         \
    }                                           \
    }                                           \
  while (0)
  while (0)
 
 
/* This is how we tell the assembler that two symbols have the same value.  */
/* This is how we tell the assembler that two symbols have the same value.  */
#define ASM_OUTPUT_DEF(FILE, NAME1, NAME2) \
#define ASM_OUTPUT_DEF(FILE, NAME1, NAME2) \
  do                                       \
  do                                       \
    {                                      \
    {                                      \
      assemble_name (FILE, NAME1);         \
      assemble_name (FILE, NAME1);         \
      fputs (" = ", FILE);                 \
      fputs (" = ", FILE);                 \
      assemble_name (FILE, NAME2);         \
      assemble_name (FILE, NAME2);         \
      fputc ('\n', FILE);                  \
      fputc ('\n', FILE);                  \
    }                                      \
    }                                      \
  while (0)
  while (0)
 
 
/* NWFPE always understands FPA instructions.  */
/* NWFPE always understands FPA instructions.  */
#undef  FPUTYPE_DEFAULT
#undef  FPUTYPE_DEFAULT
#define FPUTYPE_DEFAULT FPUTYPE_FPA_EMU3
#define FPUTYPE_DEFAULT FPUTYPE_FPA_EMU3
 
 
/* Call the function profiler with a given profile label.  */
/* Call the function profiler with a given profile label.  */
#undef  ARM_FUNCTION_PROFILER
#undef  ARM_FUNCTION_PROFILER
#define ARM_FUNCTION_PROFILER(STREAM, LABELNO)                          \
#define ARM_FUNCTION_PROFILER(STREAM, LABELNO)                          \
{                                                                       \
{                                                                       \
  fprintf (STREAM, "\tbl\tmcount%s\n",                                  \
  fprintf (STREAM, "\tbl\tmcount%s\n",                                  \
           (TARGET_ARM && NEED_PLT_RELOC) ? "(PLT)" : "");              \
           (TARGET_ARM && NEED_PLT_RELOC) ? "(PLT)" : "");              \
}
}
 
 
/* The GNU/Linux profiler clobbers the link register.  Make sure the
/* The GNU/Linux profiler clobbers the link register.  Make sure the
   prologue knows to save it.  */
   prologue knows to save it.  */
#define PROFILE_HOOK(X)                                         \
#define PROFILE_HOOK(X)                                         \
  emit_insn (gen_rtx_CLOBBER (VOIDmode, gen_rtx_REG (SImode, LR_REGNUM)))
  emit_insn (gen_rtx_CLOBBER (VOIDmode, gen_rtx_REG (SImode, LR_REGNUM)))
 
 
/* The GNU/Linux profiler needs a frame pointer.  */
/* The GNU/Linux profiler needs a frame pointer.  */
#define SUBTARGET_FRAME_POINTER_REQUIRED current_function_profile
#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.