summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/vmlinux.lds.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-02-12 15:41:45 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-02-12 15:41:45 +0900
commit19f6b8b44e3f633d5d7d1ed68848b1eb89a1e800 (patch)
tree4d2bacbf4a1ae3f3cbbb9c32a0c9d126731b89f3 /arch/sh/include/asm/vmlinux.lds.h
parentb0f3ae03aca0f331b851ae94bc066124e7f104df (diff)
sh64: fix up memory offset calculation.
The linker script offsets were broken by the recent 29/32-bit integration, so this fixes it up for sh64. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/vmlinux.lds.h')
-rw-r--r--arch/sh/include/asm/vmlinux.lds.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/include/asm/vmlinux.lds.h b/arch/sh/include/asm/vmlinux.lds.h
index 244ec4ad9a7..d58ad493b3a 100644
--- a/arch/sh/include/asm/vmlinux.lds.h
+++ b/arch/sh/include/asm/vmlinux.lds.h
@@ -14,4 +14,12 @@
#define DWARF_EH_FRAME
#endif
+#ifdef CONFIG_SUPERH64
+#define EXTRA_TEXT \
+ *(.text64) \
+ *(.text..SHmedia32)
+#else
+#define EXTRA_TEXT
+#endif
+
#endif /* __ASM_SH_VMLINUX_LDS_H */