Commit 9ec4a67e authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by Tom Rini

sh: place board lowlevel_init code in the beginning of .text

Reference lowlevel_init of all supported SH2A/SH3/SH4/SH4A boards
from a shared linker script, the lowlevel_init function will be called
by a relative address.
Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 3f8b5391
......@@ -31,7 +31,7 @@ SECTIONS
.text :
{
KEEP(*/start.o (.text))
KEEP(CONFIG_BOARDDIR/lowlevel_init.o (.spiboot1.text))
KEEP(CONFIG_BOARDDIR/lowlevel_init.o (.text .spiboot1.text))
KEEP(*(.spiboot2.text))
. = ALIGN(8192);
common/env_embedded.o (.ppcenv)
......
......@@ -4,4 +4,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := ap_sh4a_4a.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -8,4 +8,4 @@
#
obj-y := espt.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -16,4 +16,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := mpr2.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -13,4 +13,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := ms7720se.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -10,4 +10,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := ms7722se.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -6,4 +6,4 @@
#
obj-y := ms7750se.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -10,4 +10,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := migo_r.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -9,4 +9,4 @@
#
obj-y := ap325rxa.o cpld-ap325rxa.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -5,4 +5,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := ecovec.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -4,4 +4,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := r0p7734.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -6,4 +6,4 @@
#
obj-y := r2dplus.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -6,4 +6,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := r7780mp.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -7,4 +7,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := rsk7203.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -4,4 +4,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := rsk7264.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -5,4 +5,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := rsk7269.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -9,4 +9,4 @@
#
obj-y := sh7763rdp.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -4,4 +4,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := sh7785lcr.o selfcheck.o rtl8169_mac.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
......@@ -7,4 +7,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := shmin.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment