Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Make the address of the vector table configurable. #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion link.x.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ SECTIONS
PROVIDE(_stack_start = ORIGIN(RAM) + LENGTH(RAM));

/* ## Sections in FLASH */

PROVIDE(_svector_table = ORIGIN(FLASH));

/* ### Vector table */
.vector_table ORIGIN(FLASH) :
.vector_table _svector_table :
{
/* Initial Stack Pointer (SP) value */
LONG(_stack_start);
Expand Down