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