arm: Add missing .vectors section to linker scripts
authorBenoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
Thu, 21 Aug 2014 13:43:11 +0000 (15:43 +0200)
committerTom Rini <trini@ti.com>
Sat, 30 Aug 2014 11:46:41 +0000 (07:46 -0400)
Commit 41623c9 'arm: move exception handling out of start.S files' missed some
linker scripts. Hence, some boards no longer had exception handling linked since
this commit. Restore the original behavior by adding the .vectors section to
these linker scripts.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
12 files changed:
arch/arm/cpu/arm1136/u-boot-spl.lds
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds
arch/arm/cpu/armv7/am33xx/u-boot-spl.lds
arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
arch/arm/cpu/armv7/socfpga/u-boot-spl.lds
arch/arm/cpu/at91-common/u-boot-spl.lds
board/Barix/ipam390/u-boot-spl-ipam390.lds
board/ait/cam_enc_4xx/u-boot-spl.lds
board/davinci/da8xxevm/u-boot-spl-da850evm.lds
board/davinci/da8xxevm/u-boot-spl-hawk.lds
board/samsung/common/exynos-uboot-spl.lds
board/vpac270/u-boot-spl.lds

index 0299902..97e4a8b 100644 (file)
@@ -22,6 +22,7 @@ SECTIONS
        .text      :
        {
        __start = .;
+         *(.vectors)
          arch/arm/cpu/arm1136/start.o  (.text*)
          *(.text*)
        } >.sram
index f4bf8ac..bf2ac13 100644 (file)
@@ -21,6 +21,7 @@ SECTIONS
        . = ALIGN(4);
        .text   :
        {
+               *(.vectors)
                arch/arm/cpu/arm926ejs/mxs/start.o      (.text*)
                *(.text*)
        }
index b1c28c9..07cf267 100644 (file)
@@ -22,6 +22,7 @@ SECTIONS
        .text      :
        {
                __start = .;
+               *(.vectors)
                arch/arm/cpu/armv7/start.o      (.text)
                *(.text*)
        } >.sram
index 745603d..ccd0c83 100644 (file)
@@ -22,6 +22,7 @@ SECTIONS
        .text      :
        {
                __start = .;
+               *(.vectors)
                arch/arm/cpu/armv7/start.o      (.text*)
                *(.text*)
        } >.sram
index 4282beb..db9bdad 100644 (file)
@@ -16,6 +16,7 @@ SECTIONS
        . = ALIGN(4);
        .text   :
        {
+               *(.vectors)
                arch/arm/cpu/armv7/start.o      (.text*)
                *(.text*)
        } >.sdram
index 57ac1eb..eccca43 100644 (file)
@@ -25,6 +25,7 @@ SECTIONS
        .text      :
        {
                __start = .;
+               *(.vectors)
                arch/arm/cpu/armv7/start.o      (.text*)
                *(.text*)
        } >.sram
index 8604696..5f290ec 100644 (file)
@@ -22,6 +22,7 @@ SECTIONS
        .text      :
        {
        __start = .;
+         *(.vectors)
          arch/arm/cpu/arm926ejs/start.o        (.text*)
          *(.text*)
        } >.sram
index c0d09ad..f5c19df 100644 (file)
@@ -22,6 +22,7 @@ SECTIONS
        .text      :
        {
        __start = .;
+         *(.vectors)
          arch/arm/cpu/arm926ejs/start.o        (.text*)
          *(.text*)
        } >.sram
index de21a13..ab4f50c 100644 (file)
@@ -22,6 +22,7 @@ SECTIONS
        .text      :
        {
        __start = .;
+         *(.vectors)
          arch/arm/cpu/arm926ejs/start.o        (.text*)
          *(.text*)
        } >.sram
index 299226b..682f268 100644 (file)
@@ -18,6 +18,7 @@ SECTIONS
        . = ALIGN(4);
        .text      :
        {
+         *(.vectors)
          arch/arm/cpu/arm926ejs/start.o                (.text*)
          arch/arm/cpu/arm926ejs/davinci/built-in.o     (.text*)
          drivers/mtd/nand/built-in.o                   (.text*)
index b22f9e0..4a933c8 100644 (file)
@@ -21,6 +21,7 @@ SECTIONS
        .text :
        {
                __start = .;
+               *(.vectors)
                arch/arm/cpu/armv7/start.o (.text*)
                *(.text*)
        } >.sram
index 5dbf94e..a10ea71 100644 (file)
@@ -19,6 +19,7 @@ SECTIONS
        . = CONFIG_SPL_TEXT_BASE;
        .text.0 :
        {
+               *(.vectors)
                arch/arm/cpu/pxa/start.o                (.text*)
                arch/arm/lib/built-in.o                 (.text*)
                board/vpac270/built-in.o                (.text*)