Skip to content
Snippets Groups Projects
Commit 1195d9d4 authored by Eetu Pesonen's avatar Eetu Pesonen
Browse files

Modify linker script

parent 63847839
No related branches found
No related tags found
No related merge requests found
ENTRY(start)
SECTIONS
{
.data :
.intvec 0x0 :
{
data = .; _data = .; __data = .;
*(.data)
*(.rodata)
*(.intvec)
. = ALIGN(4096);
}
.text 0x1000 :
{
code = .; _code = .; __code = .;
*(.multiboot)
*(.text)
. = ALIGN(4096);
}
.data :
{
data = .; _data = .; __data = .;
*(.data)
*(.rodata)
. = ALIGN(4096);
}
.bss :
{
bss = .; _bss = .; __bss = .;
......@@ -24,3 +29,4 @@ SECTIONS
. = ALIGN(4096);
}
}
.section .intvec
.org 0
reset:
.word 0
.section .text
.globl start
start:
......@@ -34,3 +39,4 @@ notzero:
.section .data
num:
.byte 64
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment