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: Vladimir Zapolskiy <vz@mleia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Vladimir Zapolskiy 2016-11-28 00:15:26 +02:00 committed by Tom Rini
parent 3f8b5391ec
commit 9ec4a67ef3
19 changed files with 19 additions and 19 deletions

View File

@ -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)

View File

@ -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

View File

@ -8,4 +8,4 @@
#
obj-y := espt.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -16,4 +16,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := mpr2.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -13,4 +13,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := ms7720se.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -10,4 +10,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := ms7722se.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -6,4 +6,4 @@
#
obj-y := ms7750se.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -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

View File

@ -9,4 +9,4 @@
#
obj-y := ap325rxa.o cpld-ap325rxa.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -5,4 +5,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := ecovec.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -4,4 +4,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := r0p7734.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -6,4 +6,4 @@
#
obj-y := r2dplus.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -6,4 +6,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := r7780mp.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -7,4 +7,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := rsk7203.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -4,4 +4,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := rsk7264.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -5,4 +5,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := rsk7269.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -9,4 +9,4 @@
#
obj-y := sh7763rdp.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o

View File

@ -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

View File

@ -7,4 +7,4 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y := shmin.o
obj-y += lowlevel_init.o
extra-y += lowlevel_init.o