From c82e28ab6c6ae8f4da2e2486ea57225f74247530 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Tue, 20 Nov 2007 15:38:11 +0900 Subject: [PATCH] --- yaml --- r: 77745 b: refs/heads/master c: b4db3aec8351c78df77bbd95f1951a4dd0246853 h: refs/heads/master i: 77743: 78e177255580ccd8001a236c5b6d00c3340be364 v: v3 --- [refs] | 2 +- trunk/arch/sh/Makefile | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 32e563fa9931..71ba11a92a2e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6694e8250e37058d5a8db23245a349db4e112fe4 +refs/heads/master: b4db3aec8351c78df77bbd95f1951a4dd0246853 diff --git a/trunk/arch/sh/Makefile b/trunk/arch/sh/Makefile index 4da3bc696b3d..15161f1851a5 100644 --- a/trunk/arch/sh/Makefile +++ b/trunk/arch/sh/Makefile @@ -74,15 +74,21 @@ OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -R .stab -R # never be used by anyone. Use a board-specific defconfig that has a # reasonable chance of being current instead. # -KBUILD_DEFCONFIG := r7780rp_defconfig +KBUILD_DEFCONFIG := r7780rp_defconfig -KBUILD_IMAGE := arch/sh/boot/zImage +KBUILD_IMAGE := arch/sh/boot/zImage # # Choosing incompatible machines durings configuration will result in # error messages during linking. # -LDFLAGS_vmlinux += -e _stext +ifdef CONFIG_SUPERH32 +LDFLAGS_vmlinux += -e _stext +else +LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_CACHED_MEMORY_OFFSET) \ + --defsym phys_stext_shmedia=phys_stext+1 \ + -e phys_stext_shmedia +endif ifdef CONFIG_CPU_LITTLE_ENDIAN LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64'