2000-03-09 01:26:04 +01:00
|
|
|
/* Definitions for embedded ia64-elf target. */
|
|
|
|
|
2001-11-10 02:07:17 +01:00
|
|
|
/* This macro is a C statement to print on `stderr' a string describing the
|
|
|
|
particular machine description choice. */
|
|
|
|
|
|
|
|
#define TARGET_VERSION fprintf (stderr, " (IA-64) ELF");
|
|
|
|
|
2003-09-27 06:48:30 +02:00
|
|
|
/* A C string constant that tells the GCC driver program options to pass to
|
2001-11-10 02:07:17 +01:00
|
|
|
the assembler. It can also specify how to translate options you give to GNU
|
2003-09-27 06:48:30 +02:00
|
|
|
CC into options for GCC to pass to the assembler. */
|
2001-11-10 02:07:17 +01:00
|
|
|
|
|
|
|
#if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GNU_AS) != 0
|
|
|
|
/* GNU AS. */
|
aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__ or set Acpu or Amachine.
2002-04-11 David O'Brien <obrien@FreeBSD.org>
* config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
or set Acpu or Amachine. Reformat.
(ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
define.
(LINK_SPEC): Do not need to undef.
* config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
* config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
(ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
define.
* config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
(ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
(LINK_SPEC): Do not need to undef.
(DONT_USE_BUILTIN_SETJMP): Do not define.
* config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
(CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
(DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
Remove trailing spaces.
* config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
__ELF__, or set Acpu or Amachine. Reformat.
(ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
define.
Approved by: Richard Henderson <rth@redhat.com>
Message-ID: <20020411160138.A11250@redhat.com>
From-SVN: r52191
2002-04-12 03:08:20 +02:00
|
|
|
#undef ASM_EXTRA_SPEC
|
|
|
|
#define ASM_EXTRA_SPEC \
|
|
|
|
"%{mno-gnu-as:-N so} %{!mno-gnu-as:-x}"
|
2001-11-10 02:07:17 +01:00
|
|
|
#else
|
|
|
|
/* Intel ias. */
|
aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__ or set Acpu or Amachine.
2002-04-11 David O'Brien <obrien@FreeBSD.org>
* config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
or set Acpu or Amachine. Reformat.
(ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
define.
(LINK_SPEC): Do not need to undef.
* config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
* config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
(ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
define.
* config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
(ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
(LINK_SPEC): Do not need to undef.
(DONT_USE_BUILTIN_SETJMP): Do not define.
* config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
(CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
(DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
Remove trailing spaces.
* config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
__ELF__, or set Acpu or Amachine. Reformat.
(ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
define.
Approved by: Richard Henderson <rth@redhat.com>
Message-ID: <20020411160138.A11250@redhat.com>
From-SVN: r52191
2002-04-12 03:08:20 +02:00
|
|
|
#undef ASM_SPEC
|
2001-11-10 02:07:17 +01:00
|
|
|
#define ASM_SPEC \
|
|
|
|
"%{!mgnu-as:-N so} %{mgnu-as:-x} %{mconstant-gp:-M const_gp}\
|
|
|
|
%{mauto-pic:-M no_plabel}"
|
|
|
|
#endif
|
|
|
|
|
2003-09-27 06:48:30 +02:00
|
|
|
/* A C string constant that tells the GCC driver program options to pass to
|
|
|
|
the linker. It can also specify how to translate options you give to GCC
|
|
|
|
into options for GCC to pass to the linker. */
|
2001-11-10 02:07:17 +01:00
|
|
|
|
|
|
|
/* The Intel linker does not support dynamic linking, so we need -dn.
|
|
|
|
The Intel linker gives annoying messages unless -N so is used. */
|
|
|
|
#if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GNU_LD) != 0
|
|
|
|
/* GNU LD. */
|
|
|
|
#define LINK_SPEC "%{mno-gnu-ld:-dn -N so}"
|
|
|
|
#else
|
|
|
|
/* Intel ild. */
|
|
|
|
#define LINK_SPEC "%{!mgnu-ld:-dn -N so}"
|
|
|
|
#endif
|
2000-03-09 01:26:04 +01:00
|
|
|
|
|
|
|
/* svr4.h links with crti.o/crtn.o, but elfos.h does not. We override elfos.h
|
|
|
|
so that we can use the standard ELF Unix method. */
|
|
|
|
#undef ENDFILE_SPEC
|
|
|
|
#define ENDFILE_SPEC "crtend.o%s crtn.o%s"
|
|
|
|
|
|
|
|
#undef STARTFILE_SPEC
|
|
|
|
#define STARTFILE_SPEC "%{!shared: \
|
|
|
|
%{!symbolic: \
|
|
|
|
%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}}\
|
|
|
|
crti.o%s crtbegin.o%s"
|
|
|
|
|
|
|
|
/* End of elf.h */
|