Commit | Line | Data |
---|---|---|
de7f8cc8 BW |
1 | MEMORY |
2 | { | |
3 | default_mem : ORIGIN = 0x0, LENGTH = 0x100000 | |
4 | text_mem : ORIGIN = 0x60000000, LENGTH = 0x100 | |
5 | data_mem : ORIGIN = 0x70000000, LENGTH = 0x100 | |
6 | } | |
7 | ||
8 | PHDRS | |
9 | { | |
1a9ccd70 NC |
10 | headers PT_PHDR PHDRS; |
11 | text_phdr PT_LOAD PHDRS; | |
de7f8cc8 BW |
12 | data_phdr PT_LOAD; |
13 | } | |
14 | ||
15 | SECTIONS | |
16 | { | |
1a9ccd70 | 17 | .text : { *(.text) } > text_mem : text_phdr :headers |
de7f8cc8 BW |
18 | .data : { *(.data) } > data_mem : data_phdr |
19 | .bss : { *(.bss) } > data_mem : data_phdr | |
74541ad4 | 20 | /DISCARD/ : { *(.reginfo) *(.glue*) } |
de7f8cc8 BW |
21 | /* .orphan_data is an orphan */ |
22 | } |