diff options
author | Stuart Menefy <stuart.menefy@st.com> | 2006-11-20 21:16:57 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-12-05 20:45:38 -0500 |
commit | f0bc814cfbc212683c882e58b3d1afec6b3e3aa3 (patch) | |
tree | 8ad669003716a3c22fb43e9c2066dcc5e5e0ad2d /arch/sh/Makefile | |
parent | 53644087a607040a56d883df612b588814a56f11 (diff) |
sh: gcc4 support.
This fixes up the kernel for gcc4. The existing exception handlers
needed some wrapping for pt_regs access, acessing the registers
via a RELOC_HIDE() pointer.
The strcpy() issues popped up here too, so add -ffreestanding and
kill off the symbol export.
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r-- | arch/sh/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 6b3af5ce66a2..7f4516c3f83d 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -43,7 +43,7 @@ cflags-$(CONFIG_CPU_SH4A) := -m4a $(call cc-option,-m4a-nofpu,) | |||
43 | cflags-$(CONFIG_CPU_BIG_ENDIAN) += -mb | 43 | cflags-$(CONFIG_CPU_BIG_ENDIAN) += -mb |
44 | cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -ml | 44 | cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -ml |
45 | 45 | ||
46 | cflags-y += $(call as-option,-Wa$(comma)-isa=$(isa-y),) | 46 | cflags-y += $(call as-option,-Wa$(comma)-isa=$(isa-y),) -ffreestanding |
47 | 47 | ||
48 | cflags-$(CONFIG_SH_DSP) += -Wa,-dsp | 48 | cflags-$(CONFIG_SH_DSP) += -Wa,-dsp |
49 | cflags-$(CONFIG_SH_KGDB) += -g | 49 | cflags-$(CONFIG_SH_KGDB) += -g |