The connection script of the Linux kernel sets the entry address of the kernel

01_ENTRY
http://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_mono/ld.html#IDX322
ENTRY(symbol):
In the link script, specify the first instruction to be executed.
For example, in the link script in U-Boot, specify:
u-boot-1.1.6\board\100ask24x0\u-boot.lds

ENTRY(_start)

_start is a label defined in start.S, followed by the exception vector table
u-boot-1.1.6\cpu\arm920t\start.S

.globl _start
_start: b reset //address:0x00
ldr pc, _undefined_instruction //address:0x04
ldr pc, _software_interrupt //address:0x08
ldr pc, _prefetch_abort //address:0x0c
ldr pc, _data_abort //address:0x10
ldr pc, _not_used //address:0x14
ldr pc, _irq //address:0x18
ldr pc, _fiq //address:0x1c

_undefined_instruction: .word undefined_instruction
_software_interrupt: .word software_interrupt
_prefetch_abort: .word prefetch_abort
_data_abort: .word data_abort
_not_used: .word not_used
_irq: .word irq
_fiq: .word fiq

Guess you like

Origin blog.csdn.net/wzc18743083828/article/details/100544267