Commit 89576072cb60d50b61813f901c6fc296c01de506
1 parent
0241c3131d
Exists in
v2017.01-smarct4x
and in
37 other branches
arc: make sure _start is in the beginning of .text section
This is important to have entry point in the beginning of .text section because it allows simple loading and execution of U-Boot. For example pre-bootloader loads U-Boot in memory starting from offset 0x81000000 and then just jumps to the same address. Otherwise pre-bootloader would need to find-out where entry-point is. In its turn if it deals with binary image of U-Boot there's no way for pre-bootloader to get required value. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Showing 2 changed files with 2 additions and 1 deletions Side-by-side Diff
arch/arc/cpu/u-boot.lds
arch/arc/lib/Makefile
... | ... | @@ -4,6 +4,7 @@ |
4 | 4 | # SPDX-License-Identifier: GPL-2.0+ |
5 | 5 | # |
6 | 6 | |
7 | +head-y := start.o | |
7 | 8 | obj-y += cache.o |
8 | 9 | obj-y += cpu.o |
9 | 10 | obj-y += interrupts.o |
... | ... | @@ -18,7 +19,6 @@ |
18 | 19 | obj-y += memset.o |
19 | 20 | obj-y += reset.o |
20 | 21 | obj-y += timer.o |
21 | -obj-y += start.o | |
22 | 22 | obj-y += ints_low.o |
23 | 23 | obj-y += init_helpers.o |
24 | 24 |