diff options
author | drow <drow@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-10 01:04:31 +0000 |
---|---|---|
committer | drow <drow@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-10 01:04:31 +0000 |
commit | 73ef502eb24a5d47813fb3984e364d506649bd2d (patch) | |
tree | fd7ed0f1944d6b6180c6a0df54ad756ec0eb963a /gcc/config/arm/uclinux-elf.h | |
parent | a77d870c3b55e5e850ac79f540df3b21068b76ca (diff) | |
download | gcc-73ef502eb24a5d47813fb3984e364d506649bd2d.tar.gz |
* config.gcc (arm*-*-linux*): Remove redundant extra_parts and
gnu_ld assignments.
* config/arm/t-linux-eabi (LIB1ASMFUNCS)
(EXTRA_MULTILIB_PARTS): Define.
* config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
(STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
(LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
* config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
(STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
(LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105162 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/arm/uclinux-elf.h')
-rw-r--r-- | gcc/config/arm/uclinux-elf.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gcc/config/arm/uclinux-elf.h b/gcc/config/arm/uclinux-elf.h index 645243e97c4..9f112cddaa2 100644 --- a/gcc/config/arm/uclinux-elf.h +++ b/gcc/config/arm/uclinux-elf.h @@ -28,3 +28,47 @@ #undef TARGET_DEFAULT #define TARGET_DEFAULT (MASK_SINGLE_PIC_BASE) + +/* NOTE: The remaining definitions in this file are needed because uclinux + does not use config/linux.h. */ + +/* Do not assume anything about header files. */ +#define NO_IMPLICIT_EXTERN_C + +/* The GNU C++ standard library requires that these macros be defined. */ +#undef CPLUSPLUS_CPP_SPEC +#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)" + +/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add + the GNU/Linux magical crtbegin.o file (see crtstuff.c) which + provides part of the support for getting C++ file-scope static + object constructed before entering `main'. */ + +#undef STARTFILE_SPEC +#define STARTFILE_SPEC \ + "%{!shared: \ + %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \ + %{!p:%{profile:gcrt1.o%s} \ + %{!profile:crt1.o%s}}}} \ + crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" + +/* Provide a ENDFILE_SPEC appropriate for GNU/Linux. Here we tack on + the GNU/Linux magical crtend.o file (see crtstuff.c) which + provides part of the support for getting C++ file-scope static + object constructed before entering `main', followed by a normal + GNU/Linux "finalizer" file, `crtn.o'. */ + +#undef ENDFILE_SPEC +#define ENDFILE_SPEC \ + "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s" + +#undef CC1_SPEC +#define CC1_SPEC "%{profile:-p}" + +#define LINK_GCC_C_SEQUENCE_SPEC \ + "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" + +/* Use --as-needed -lgcc_s for eh support. */ +#ifdef HAVE_LD_AS_NEEDED +#define USE_LD_AS_NEEDED 1 +#endif |