using of a clear seperation between code and data
This commit is contained in:
parent
31ad08b7ae
commit
2e6e1c78ea
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,7 @@ GROUP(-lc -lgloss)
|
|||
SEARCH_DIR(.)
|
||||
__DYNAMIC = 0;
|
||||
phys = 0x40200000;
|
||||
PAGE_SIZE = 0x1000;
|
||||
|
||||
/*
|
||||
* Initalize some symbols to be zero so we can reference them in the
|
||||
|
@ -44,7 +45,7 @@ SECTIONS
|
|||
PROVIDE(_etext = .);
|
||||
PROVIDE(__etext = .);
|
||||
}
|
||||
. = .;
|
||||
. = ALIGN(PAGE_SIZE);
|
||||
.rdata : {
|
||||
*(.rdata)
|
||||
}
|
||||
|
@ -59,6 +60,7 @@ SECTIONS
|
|||
PROVIDE (__EH_FRAME_END__ = .);
|
||||
}
|
||||
_fdata = ALIGN(16);
|
||||
. = ALIGN(PAGE_SIZE);
|
||||
.data : {
|
||||
*(.data)
|
||||
*(.gcc_except_table)
|
||||
|
|
Loading…
Add table
Reference in a new issue