Skip to content

Commit

Permalink
Update linker script
Browse files Browse the repository at this point in the history
  • Loading branch information
mauri870 committed Jan 20, 2018
1 parent 4db8a4f commit 63a2401
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions kernel.ld
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
/*
* Very simple linker script, combing the text and data sections
* and putting them starting at address 0x800.
*/
MEMORY
{
/*
* Memory for the stack and sections
*/
RAM (rwx) : ORIGIN = 0x8000, LENGTH = 1024K
}

SECTIONS {
/* Put the initialisation code at 0x8000, leaving room for ARM
/* Put the initialization code at 0x8000, leaving room for ARM
* and the stack. It also conforms to the standard expectations.
*/
.init 0x8000 : {
.init : {
*(.init)
}
} > RAM

/* Put the rest of code next */
.text : {
*(.text)
}
} > RAM

/* Put the data after the code */
.data : {
*(.data)
}
} > RAM
}

0 comments on commit 63a2401

Please sign in to comment.