Commit | Line | Data |
---|---|---|
1ed89aa9 NC |
1 | PHDRS |
2 | { | |
3 | text PT_LOAD ; | |
4 | data PT_LOAD ; | |
5 | } | |
6 | ||
7 | SECTIONS | |
8 | { | |
9 | . = 0x800000 - 1; | |
10 | /* The PHDRS generated should start at the aligned .text section | |
11 | address, not the unaligned .empty section address */ | |
12 | .empty : { | |
13 | EMPTY_START = ABSOLUTE(.) ; | |
14 | *(.empty) | |
15 | EMPTY_END = ABSOLUTE(.) ; | |
16 | } : text | |
17 | .text : { *(.text) } :text | |
18 | .data : { *(.data) | |
19 | LONG(EMPTY_START) ; | |
20 | } :data | |
21 | ||
22 | /DISCARD/ : { *(.*) } | |
23 | } |