using of a clear seperation between code and data

This commit is contained in:
Stefan Lankes 2011-02-22 14:03:22 +01:00
parent 31ad08b7ae
commit 2e6e1c78ea

View file

@ -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)