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>
master
Vladimir Zapolskiy 8 years ago committed by Tom Rini
parent 3f8b5391ec
commit 9ec4a67ef3
  1. 2
      arch/sh/cpu/u-boot.lds
  2. 2
      board/alphaproject/ap_sh4a_4a/Makefile
  3. 2
      board/espt/Makefile
  4. 2
      board/mpr2/Makefile
  5. 2
      board/ms7720se/Makefile
  6. 2
      board/ms7722se/Makefile
  7. 2
      board/ms7750se/Makefile
  8. 2
      board/renesas/MigoR/Makefile
  9. 2
      board/renesas/ap325rxa/Makefile
  10. 2
      board/renesas/ecovec/Makefile
  11. 2
      board/renesas/r0p7734/Makefile
  12. 2
      board/renesas/r2dplus/Makefile
  13. 2
      board/renesas/r7780mp/Makefile
  14. 2
      board/renesas/rsk7203/Makefile
  15. 2
      board/renesas/rsk7264/Makefile
  16. 2
      board/renesas/rsk7269/Makefile
  17. 2
      board/renesas/sh7763rdp/Makefile
  18. 2
      board/renesas/sh7785lcr/Makefile
  19. 2
      board/shmin/Makefile

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

Loading…
Cancel
Save