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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [arm/] [elf.h] - Diff between revs 154 and 816

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

Rev 154 Rev 816
/* Definitions of target machine for GNU compiler.
/* Definitions of target machine for GNU compiler.
   For ARM with ELF obj format.
   For ARM with ELF obj format.
   Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2004, 2005,
   Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2004, 2005,
   2007 Free Software Foundation, Inc.
   2007 Free Software Foundation, Inc.
   Contributed by Philip Blundell <philb@gnu.org> and
   Contributed by Philip Blundell <philb@gnu.org> and
   Catherine Moore <clm@cygnus.com>
   Catherine Moore <clm@cygnus.com>
 
 
   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/>.  */
 
 
#ifndef OBJECT_FORMAT_ELF
#ifndef OBJECT_FORMAT_ELF
 #error elf.h included before elfos.h
 #error elf.h included before elfos.h
#endif
#endif
 
 
#ifndef LOCAL_LABEL_PREFIX
#ifndef LOCAL_LABEL_PREFIX
#define LOCAL_LABEL_PREFIX "."
#define LOCAL_LABEL_PREFIX "."
#endif
#endif
 
 
#ifndef SUBTARGET_CPP_SPEC
#ifndef SUBTARGET_CPP_SPEC
#define SUBTARGET_CPP_SPEC  "-D__ELF__"
#define SUBTARGET_CPP_SPEC  "-D__ELF__"
#endif
#endif
 
 
#ifndef SUBTARGET_EXTRA_SPECS
#ifndef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
#define SUBTARGET_EXTRA_SPECS \
  { "subtarget_extra_asm_spec", SUBTARGET_EXTRA_ASM_SPEC }, \
  { "subtarget_extra_asm_spec", SUBTARGET_EXTRA_ASM_SPEC }, \
  { "subtarget_asm_float_spec", SUBTARGET_ASM_FLOAT_SPEC },
  { "subtarget_asm_float_spec", SUBTARGET_ASM_FLOAT_SPEC },
#endif
#endif
 
 
#ifndef SUBTARGET_EXTRA_ASM_SPEC
#ifndef SUBTARGET_EXTRA_ASM_SPEC
#define SUBTARGET_EXTRA_ASM_SPEC ""
#define SUBTARGET_EXTRA_ASM_SPEC ""
#endif
#endif
 
 
#ifndef SUBTARGET_ASM_FLOAT_SPEC
#ifndef SUBTARGET_ASM_FLOAT_SPEC
#define SUBTARGET_ASM_FLOAT_SPEC "\
#define SUBTARGET_ASM_FLOAT_SPEC "\
%{mapcs-float:-mfloat}"
%{mapcs-float:-mfloat}"
#endif
#endif
 
 
#ifndef ASM_SPEC
#ifndef ASM_SPEC
#define ASM_SPEC "\
#define ASM_SPEC "\
%{mbig-endian:-EB} \
%{mbig-endian:-EB} \
%{mlittle-endian:-EL} \
%{mlittle-endian:-EL} \
%{mcpu=*:-mcpu=%*} \
%{mcpu=*:-mcpu=%*} \
%{march=*:-march=%*} \
%{march=*:-march=%*} \
%{mapcs-*:-mapcs-%*} \
%{mapcs-*:-mapcs-%*} \
%(subtarget_asm_float_spec) \
%(subtarget_asm_float_spec) \
%{mthumb-interwork:-mthumb-interwork} \
%{mthumb-interwork:-mthumb-interwork} \
%{msoft-float:-mfloat-abi=soft} %{mhard-float:-mfloat-abi=hard} \
%{msoft-float:-mfloat-abi=soft} %{mhard-float:-mfloat-abi=hard} \
%{mfloat-abi=*} %{mfpu=*} \
%{mfloat-abi=*} %{mfpu=*} \
%(subtarget_extra_asm_spec)"
%(subtarget_extra_asm_spec)"
#endif
#endif
 
 
/* The ARM uses @ are a comment character so we need to redefine
/* The ARM uses @ are a comment character so we need to redefine
   TYPE_OPERAND_FMT.  */
   TYPE_OPERAND_FMT.  */
#undef  TYPE_OPERAND_FMT
#undef  TYPE_OPERAND_FMT
#define TYPE_OPERAND_FMT        "%%%s"
#define TYPE_OPERAND_FMT        "%%%s"
 
 
/* We might need a ARM specific header to function declarations.  */
/* We might need a ARM specific header to function declarations.  */
#undef  ASM_DECLARE_FUNCTION_NAME
#undef  ASM_DECLARE_FUNCTION_NAME
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)             \
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)             \
  do                                                            \
  do                                                            \
    {                                                           \
    {                                                           \
      ARM_DECLARE_FUNCTION_NAME (FILE, NAME, DECL);             \
      ARM_DECLARE_FUNCTION_NAME (FILE, NAME, DECL);             \
      ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "function");       \
      ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "function");       \
      ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL));            \
      ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL));            \
      ASM_OUTPUT_LABEL(FILE, NAME);                             \
      ASM_OUTPUT_LABEL(FILE, NAME);                             \
      ARM_OUTPUT_FN_UNWIND (FILE, TRUE);                        \
      ARM_OUTPUT_FN_UNWIND (FILE, TRUE);                        \
    }                                                           \
    }                                                           \
  while (0)
  while (0)
 
 
/* We might need an ARM specific trailer for function declarations.  */
/* We might need an ARM specific trailer for function declarations.  */
#undef  ASM_DECLARE_FUNCTION_SIZE
#undef  ASM_DECLARE_FUNCTION_SIZE
#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL)            \
#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL)            \
  do                                                            \
  do                                                            \
    {                                                           \
    {                                                           \
      ARM_OUTPUT_FN_UNWIND (FILE, FALSE);                       \
      ARM_OUTPUT_FN_UNWIND (FILE, FALSE);                       \
      ARM_DECLARE_FUNCTION_SIZE (FILE, FNAME, DECL);            \
      ARM_DECLARE_FUNCTION_SIZE (FILE, FNAME, DECL);            \
      if (!flag_inhibit_size_directive)                         \
      if (!flag_inhibit_size_directive)                         \
        ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME);                 \
        ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME);                 \
    }                                                           \
    }                                                           \
  while (0)
  while (0)
 
 
/* Define this macro if jump tables (for `tablejump' insns) should be
/* Define this macro if jump tables (for `tablejump' insns) should be
   output in the text section, along with the assembler instructions.
   output in the text section, along with the assembler instructions.
   Otherwise, the readonly data section is used.  */
   Otherwise, the readonly data section is used.  */
/* We put ARM jump tables in the text section, because it makes the code
/* We put ARM jump tables in the text section, because it makes the code
   more efficient, but for Thumb it's better to put them out of band.  */
   more efficient, but for Thumb it's better to put them out of band.  */
#define JUMP_TABLES_IN_TEXT_SECTION (TARGET_ARM)
#define JUMP_TABLES_IN_TEXT_SECTION (TARGET_ARM)
 
 
#ifndef LINK_SPEC
#ifndef LINK_SPEC
#define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} -X"
#define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} -X"
#endif
#endif
 
 
/* Run-time Target Specification.  */
/* Run-time Target Specification.  */
#ifndef TARGET_VERSION
#ifndef TARGET_VERSION
#define TARGET_VERSION fputs (" (ARM/elf)", stderr)
#define TARGET_VERSION fputs (" (ARM/elf)", stderr)
#endif
#endif
 
 
#ifndef TARGET_DEFAULT
#ifndef TARGET_DEFAULT
#define TARGET_DEFAULT (MASK_APCS_FRAME)
#define TARGET_DEFAULT (MASK_APCS_FRAME)
#endif
#endif
 
 
#ifndef MULTILIB_DEFAULTS
#ifndef MULTILIB_DEFAULTS
#define MULTILIB_DEFAULTS \
#define MULTILIB_DEFAULTS \
  { "marm", "mlittle-endian", "msoft-float", "mno-thumb-interwork", "fno-leading-underscore" }
  { "marm", "mlittle-endian", "msoft-float", "mno-thumb-interwork", "fno-leading-underscore" }
#endif
#endif


#define TARGET_ASM_FILE_START_APP_OFF true
#define TARGET_ASM_FILE_START_APP_OFF true
#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true


 
 
/* Output an element in the static constructor array.  */
/* Output an element in the static constructor array.  */
#undef TARGET_ASM_CONSTRUCTOR
#undef TARGET_ASM_CONSTRUCTOR
#define TARGET_ASM_CONSTRUCTOR arm_elf_asm_constructor
#define TARGET_ASM_CONSTRUCTOR arm_elf_asm_constructor
 
 
/* For PIC code we need to explicitly specify (PLT) and (GOT) relocs.  */
/* For PIC code we need to explicitly specify (PLT) and (GOT) relocs.  */
#define NEED_PLT_RELOC  flag_pic
#define NEED_PLT_RELOC  flag_pic
#define NEED_GOT_RELOC  flag_pic
#define NEED_GOT_RELOC  flag_pic
 
 
/* The ELF assembler handles GOT addressing differently to NetBSD.  */
/* The ELF assembler handles GOT addressing differently to NetBSD.  */
#define GOT_PCREL       0
#define GOT_PCREL       0
 
 
/* Biggest alignment supported by the object file format of this
/* Biggest alignment supported by the object file format of this
   machine.  Use this macro to limit the alignment which can be
   machine.  Use this macro to limit the alignment which can be
   specified using the `__attribute__ ((aligned (N)))' construct.  If
   specified using the `__attribute__ ((aligned (N)))' construct.  If
   not defined, the default value is `BIGGEST_ALIGNMENT'.  */
   not defined, the default value is `BIGGEST_ALIGNMENT'.  */
#define MAX_OFILE_ALIGNMENT (32768 * 8)
#define MAX_OFILE_ALIGNMENT (32768 * 8)
 
 
/* Align output to a power of two.  Note ".align 0" is redundant,
/* Align output to a power of two.  Note ".align 0" is redundant,
   and also GAS will treat it as ".align 2" which we do not want.  */
   and also GAS will treat it as ".align 2" which we do not want.  */
#define ASM_OUTPUT_ALIGN(STREAM, POWER)                 \
#define ASM_OUTPUT_ALIGN(STREAM, POWER)                 \
  do                                                    \
  do                                                    \
    {                                                   \
    {                                                   \
      if ((POWER) > 0)                                  \
      if ((POWER) > 0)                                  \
        fprintf (STREAM, "\t.align\t%d\n", POWER);      \
        fprintf (STREAM, "\t.align\t%d\n", POWER);      \
    }                                                   \
    }                                                   \
  while (0)
  while (0)
 
 
/* The EABI doesn't provide a way of implementing init_priority.  */
/* The EABI doesn't provide a way of implementing init_priority.  */
#define SUPPORTS_INIT_PRIORITY (!TARGET_AAPCS_BASED)
#define SUPPORTS_INIT_PRIORITY (!TARGET_AAPCS_BASED)
 
 

powered by: WebSVN 2.1.0

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