aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2018-05-29 20:01:00 +0300
committerAlexey Brodkin <abrodkin@synopsys.com>2018-05-31 20:13:29 +0300
commitef2cd492adf20fa301a8c5b1ee516aedb677bba8 (patch)
treebdf3a088d9c3e0923aa53d2cbe8093def83e8977 /arch
parentce3071287e9837b897d49d1be03e00e52050a33e (diff)
downloadu-boot-ef2cd492adf20fa301a8c5b1ee516aedb677bba8.zip
u-boot-ef2cd492adf20fa301a8c5b1ee516aedb677bba8.tar.gz
u-boot-ef2cd492adf20fa301a8c5b1ee516aedb677bba8.tar.bz2
ARC: Move .ivt section to the very beginning of the image
This is useful for cases when U-Boot image is put in ROM and reset vector points to 0 where the very beginnign of the image reside. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arc/cpu/u-boot.lds15
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/arc/cpu/u-boot.lds b/arch/arc/cpu/u-boot.lds
index d5c88ef..ff8239b 100644
--- a/arch/arc/cpu/u-boot.lds
+++ b/arch/arc/cpu/u-boot.lds
@@ -12,13 +12,6 @@ SECTIONS
{
. = CONFIG_SYS_TEXT_BASE;
__image_copy_start = .;
- __text_start = .;
- .text : {
- arch/arc/lib/start.o (.text*)
- *(.text*)
- }
- __text_end = .;
-
. = ALIGN(1024);
__ivt_start = .;
.ivt :
@@ -27,6 +20,14 @@ SECTIONS
}
__ivt_end = .;
+ . = ALIGN(1024);
+ __text_start = .;
+ .text : {
+ arch/arc/lib/start.o (.text*)
+ *(.text*)
+ }
+ __text_end = .;
+
. = ALIGN(4);
.rodata : {
*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))