umanovskis / baremetal-arm

An ebook about bare-metal programming for ARM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong name of the global symbol in LinkerScript part

oliwkowemango opened this issue · comments

This script tells the linker that the program's entry point is at the global symbol _Entry, which we export from startup.s.

Should it be a _Reset instead of _Entry?

@oliwkowemango

yes, you're right. You can see that it actually uses _Reset in the linker script:

.text : {
startup.o (.vector_table)
*(.text*)

.section .vector_table, "x"
.global _Reset
.global _start
_Reset:
b Reset_Handler