2012-03-26 21:18:29 +02:00
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
default_mem : ORIGIN = 0x0, LENGTH = 0x100000
|
|
|
|
text_mem : ORIGIN = 0x60000000, LENGTH = 0x100
|
|
|
|
data_mem : ORIGIN = 0x70000000, LENGTH = 0x100
|
|
|
|
}
|
|
|
|
|
|
|
|
PHDRS
|
|
|
|
{
|
2017-04-10 13:32:00 +02:00
|
|
|
headers PT_PHDR PHDRS;
|
|
|
|
text_phdr PT_LOAD PHDRS;
|
2012-03-26 21:18:29 +02:00
|
|
|
data_phdr PT_LOAD;
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2017-04-10 13:32:00 +02:00
|
|
|
.text : { *(.text) } > text_mem : text_phdr :headers
|
2012-03-26 21:18:29 +02:00
|
|
|
.data : { *(.data) } > data_mem : data_phdr
|
|
|
|
.bss : { *(.bss) } > data_mem : data_phdr
|
|
|
|
/DISCARD/ : { *(.reginfo) *(.glue*) }
|
|
|
|
/* .orphan_data is an orphan */
|
|
|
|
}
|