Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4db3aec authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Fix up the _stext references for SH-5.



Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 6694e825
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -82,7 +82,13 @@ KBUILD_IMAGE := arch/sh/boot/zImage
# Choosing incompatible machines durings configuration will result in
# error messages during linking.
#
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'