From: Vladimir Zapolskiy Date: Sun, 27 Nov 2016 22:15:26 +0000 (+0200) Subject: sh: place board lowlevel_init code in the beginning of .text X-Git-Tag: v2017.01-rc1~114 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9ec4a67ef342b2dbcecc9721f5369f022ea59b26;p=oweals%2Fu-boot.git 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 Reviewed-by: Simon Glass --- diff --git a/arch/sh/cpu/u-boot.lds b/arch/sh/cpu/u-boot.lds index 6f38563303..e90ac06c37 100644 --- a/arch/sh/cpu/u-boot.lds +++ b/arch/sh/cpu/u-boot.lds @@ -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) diff --git a/board/alphaproject/ap_sh4a_4a/Makefile b/board/alphaproject/ap_sh4a_4a/Makefile index 486d0ac550..df76466e9b 100644 --- a/board/alphaproject/ap_sh4a_4a/Makefile +++ b/board/alphaproject/ap_sh4a_4a/Makefile @@ -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 diff --git a/board/espt/Makefile b/board/espt/Makefile index 8a8a2c992b..f24e9cf49a 100644 --- a/board/espt/Makefile +++ b/board/espt/Makefile @@ -8,4 +8,4 @@ # obj-y := espt.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/mpr2/Makefile b/board/mpr2/Makefile index b6cdeb4efa..0cb1dd6104 100644 --- a/board/mpr2/Makefile +++ b/board/mpr2/Makefile @@ -16,4 +16,4 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y := mpr2.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/ms7720se/Makefile b/board/ms7720se/Makefile index 1819c4c10d..66c25fa6f3 100644 --- a/board/ms7720se/Makefile +++ b/board/ms7720se/Makefile @@ -13,4 +13,4 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y := ms7720se.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/ms7722se/Makefile b/board/ms7722se/Makefile index 9f7af78738..808d459975 100644 --- a/board/ms7722se/Makefile +++ b/board/ms7722se/Makefile @@ -10,4 +10,4 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y := ms7722se.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/ms7750se/Makefile b/board/ms7750se/Makefile index a8e3ca0acf..a010e32cc3 100644 --- a/board/ms7750se/Makefile +++ b/board/ms7750se/Makefile @@ -6,4 +6,4 @@ # obj-y := ms7750se.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/renesas/MigoR/Makefile b/board/renesas/MigoR/Makefile index b4691a1165..0686f9749e 100644 --- a/board/renesas/MigoR/Makefile +++ b/board/renesas/MigoR/Makefile @@ -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 diff --git a/board/renesas/ap325rxa/Makefile b/board/renesas/ap325rxa/Makefile index ff72de902c..18e1ed5f5d 100644 --- a/board/renesas/ap325rxa/Makefile +++ b/board/renesas/ap325rxa/Makefile @@ -9,4 +9,4 @@ # obj-y := ap325rxa.o cpld-ap325rxa.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/renesas/ecovec/Makefile b/board/renesas/ecovec/Makefile index 943fa4760d..2e6fb50fea 100644 --- a/board/renesas/ecovec/Makefile +++ b/board/renesas/ecovec/Makefile @@ -5,4 +5,4 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y := ecovec.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/renesas/r0p7734/Makefile b/board/renesas/r0p7734/Makefile index 1f24d92962..bfe52d6dc9 100644 --- a/board/renesas/r0p7734/Makefile +++ b/board/renesas/r0p7734/Makefile @@ -4,4 +4,4 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y := r0p7734.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/renesas/r2dplus/Makefile b/board/renesas/r2dplus/Makefile index acffb6d319..4021ab6228 100644 --- a/board/renesas/r2dplus/Makefile +++ b/board/renesas/r2dplus/Makefile @@ -6,4 +6,4 @@ # obj-y := r2dplus.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/renesas/r7780mp/Makefile b/board/renesas/r7780mp/Makefile index 8dab4358cd..66813a3e13 100644 --- a/board/renesas/r7780mp/Makefile +++ b/board/renesas/r7780mp/Makefile @@ -6,4 +6,4 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y := r7780mp.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/renesas/rsk7203/Makefile b/board/renesas/rsk7203/Makefile index 16acfaf40a..08139a2339 100644 --- a/board/renesas/rsk7203/Makefile +++ b/board/renesas/rsk7203/Makefile @@ -7,4 +7,4 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y := rsk7203.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/renesas/rsk7264/Makefile b/board/renesas/rsk7264/Makefile index 7ada697c88..2a845a0041 100644 --- a/board/renesas/rsk7264/Makefile +++ b/board/renesas/rsk7264/Makefile @@ -4,4 +4,4 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y := rsk7264.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/renesas/rsk7269/Makefile b/board/renesas/rsk7269/Makefile index 0f053d8fa6..86b2263310 100644 --- a/board/renesas/rsk7269/Makefile +++ b/board/renesas/rsk7269/Makefile @@ -5,4 +5,4 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y := rsk7269.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/renesas/sh7763rdp/Makefile b/board/renesas/sh7763rdp/Makefile index cbf38bbc18..13f7ae9b47 100644 --- a/board/renesas/sh7763rdp/Makefile +++ b/board/renesas/sh7763rdp/Makefile @@ -9,4 +9,4 @@ # obj-y := sh7763rdp.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o diff --git a/board/renesas/sh7785lcr/Makefile b/board/renesas/sh7785lcr/Makefile index e8cfb053ce..1bf5d532c7 100644 --- a/board/renesas/sh7785lcr/Makefile +++ b/board/renesas/sh7785lcr/Makefile @@ -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 diff --git a/board/shmin/Makefile b/board/shmin/Makefile index daf36deed0..d16966189d 100644 --- a/board/shmin/Makefile +++ b/board/shmin/Makefile @@ -7,4 +7,4 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y := shmin.o -obj-y += lowlevel_init.o +extra-y += lowlevel_init.o