summaryrefslogtreecommitdiff
path: root/arch/sh/cpu
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2016-11-27 22:15:27 (GMT)
committerTom Rini <trini@konsulko.com>2016-12-03 02:32:48 (GMT)
commitb26d25072ff83093e136eaac98a906188a22c57e (patch)
treee3a45e4ffe83c25e647b70b14a5d87ad987615d1 /arch/sh/cpu
parent9ec4a67ef342b2dbcecc9721f5369f022ea59b26 (diff)
downloadu-boot-fsl-qoriq-b26d25072ff83093e136eaac98a906188a22c57e.tar.xz
sh: define entry point and reloc_dst inside a linker script
No functional change, concentrate linker script commands in one place for convenience. Entry point is set to CONFIG_SYS_TEXT_BASE by default on build, so this option can be omitted from being added to the linker script. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sh/cpu')
-rw-r--r--arch/sh/cpu/u-boot.lds6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/sh/cpu/u-boot.lds b/arch/sh/cpu/u-boot.lds
index e90ac06..bc240bd 100644
--- a/arch/sh/cpu/u-boot.lds
+++ b/arch/sh/cpu/u-boot.lds
@@ -19,10 +19,7 @@ ENTRY(_start)
SECTIONS
{
- /*
- * entry and reloct_dst will be provided via ldflags
- */
- . = .;
+ reloc_dst = .;
PROVIDE (_ftext = .);
PROVIDE (_fcode = .);
@@ -73,7 +70,6 @@ SECTIONS
PROVIDE (__init_end = .);
PROVIDE (reloc_dst_end = .);
- /* _reloc_dst_end = .; */
PROVIDE (bss_start = .);
PROVIDE (__bss_start = .);