]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sh: place board lowlevel_init code in the beginning of .text
authorVladimir Zapolskiy <vz@mleia.com>
Sun, 27 Nov 2016 22:15:26 +0000 (00:15 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 3 Dec 2016 02:32:47 +0000 (21:32 -0500)
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>
19 files changed:
arch/sh/cpu/u-boot.lds
board/alphaproject/ap_sh4a_4a/Makefile
board/espt/Makefile
board/mpr2/Makefile
board/ms7720se/Makefile
board/ms7722se/Makefile
board/ms7750se/Makefile
board/renesas/MigoR/Makefile
board/renesas/ap325rxa/Makefile
board/renesas/ecovec/Makefile
board/renesas/r0p7734/Makefile
board/renesas/r2dplus/Makefile
board/renesas/r7780mp/Makefile
board/renesas/rsk7203/Makefile
board/renesas/rsk7264/Makefile
board/renesas/rsk7269/Makefile
board/renesas/sh7763rdp/Makefile
board/renesas/sh7785lcr/Makefile
board/shmin/Makefile

index 6f38563303793f32996b3223121eb780ddaa55ce..e90ac06c3707760d44cb08ed78fa42063eab8712 100644 (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)
index 486d0ac5507a0ffbbda038339e5a7c1a4957ecff..df76466e9bc8db37cbecf896921e818057e59d0b 100644 (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
index 8a8a2c992be032eab06c257c743164dd6b5e59b5..f24e9cf49a6ab7402710ab1fed91c437cf2cacf3 100644 (file)
@@ -8,4 +8,4 @@
 #
 
 obj-y  := espt.o
-obj-y  += lowlevel_init.o
+extra-y        += lowlevel_init.o
index b6cdeb4efa7fc890f07fa1fcb6c468b30535fbac..0cb1dd610460c19f8963a9739ad6c83d013553fc 100644 (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
index 1819c4c10d3394f294a8ea9a2d4cfdedb8dab49b..66c25fa6f3b552abba77da8f95f3f5960bc77667 100644 (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
index 9f7af787380a050f4e1184495f9629fa3421639f..808d459975b3af1c4c192b6b3889decb5654f8f1 100644 (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
index a8e3ca0acf24be1c7b469339077f7fbf358a1fd6..a010e32cc381cece5afc0d1464b2ec49ae7bc2e8 100644 (file)
@@ -6,4 +6,4 @@
 #
 
 obj-y  := ms7750se.o
-obj-y  += lowlevel_init.o
+extra-y        += lowlevel_init.o
index b4691a116554dc5df38321198a3b712db314874c..0686f9749ed877c1db4fc643e7cbab6978d55242 100644 (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
index ff72de902c45779d5a30a26c405e193e37a1e683..18e1ed5f5d6671df3e9c2ead43fc9e41e522bf28 100644 (file)
@@ -9,4 +9,4 @@
 #
 
 obj-y  := ap325rxa.o cpld-ap325rxa.o
-obj-y  += lowlevel_init.o
+extra-y        += lowlevel_init.o
index 943fa4760dd10ddf21076d930e894dbc1a7da2c6..2e6fb50fea2cdf2fe260dcf2d59514bd2d9319e8 100644 (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
index 1f24d9296200ce221a581563d3d56a329044b8cf..bfe52d6dc962cbbaf0be309b966c281074bc08d6 100644 (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
index acffb6d3196036ecd27bd8dbcd43b1a9d37e7b0c..4021ab6228a82c573044ee01bdf8138c700f43bb 100644 (file)
@@ -6,4 +6,4 @@
 #
 
 obj-y  := r2dplus.o
-obj-y  += lowlevel_init.o
+extra-y        += lowlevel_init.o
index 8dab4358cd6e320a72599deafad724f35e44c293..66813a3e13ab6e5716266e39ef5572c1bf173df4 100644 (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
index 16acfaf40a369e326455e9134d1ebfff452b24a7..08139a2339af0a4837ec4a545b988f4e79c85e02 100644 (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
index 7ada697c888dab4a2afe8be635c19b7ae2e2e20f..2a845a0041607bea54586efa9236a907b499cea9 100644 (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
index 0f053d8fa65e69df35141afa9adcb74c18e5667e..86b2263310df27c63929d41b9b96408b7a159251 100644 (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
index cbf38bbc18f9c1d8bca26493f8bdbf854edd769b..13f7ae9b476c91d79123afb047c22e69d1a1223f 100644 (file)
@@ -9,4 +9,4 @@
 #
 
 obj-y  := sh7763rdp.o
-obj-y  += lowlevel_init.o
+extra-y        += lowlevel_init.o
index e8cfb053ce43f18bfa0db8c461d47f17327feb39..1bf5d532c7f23d6edd4a28c5fc31ddadc84ee547 100644 (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
index daf36deed05e867db026d24848cbefb17c706e49..d16966189db9dcb21a84ac0cdd3a936bfb8f4b1e 100644 (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