add a memory section for RAM so that the linker will warn when you've

made your program too big.
This commit is contained in:
maralvira 2010-11-07 14:54:05 +00:00
parent 8385536c41
commit b8ebce0fef

View file

@ -2,7 +2,13 @@
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
"elf32-littlearm") "elf32-littlearm")
OUTPUT_ARCH(arm) OUTPUT_ARCH(arm)
SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib"); ENTRY(_start)
MEMORY
{
ram (rwx) : org = 0x00400000, l = 96K
}
SECTIONS SECTIONS
{ {