| 1 |
/* Linker script to create grub .img files on Cygwin. */ |
| 2 |
|
| 3 |
SECTIONS |
| 4 |
{ |
| 5 |
.text : |
| 6 |
{ |
| 7 |
start = . ; |
| 8 |
_start = . ; |
| 9 |
__start = . ; |
| 10 |
*(.text) |
| 11 |
etext = . ; |
| 12 |
} |
| 13 |
.data : |
| 14 |
{ |
| 15 |
__data_start__ = . ; |
| 16 |
*(.data) |
| 17 |
/* Do not discard this section. */ |
| 18 |
. = . ; |
| 19 |
__data_end__ = . ; |
| 20 |
__rdata_start__ = . ; |
| 21 |
*(.rdata) |
| 22 |
__rdata_end__ = . ; |
| 23 |
*(.pdata) |
| 24 |
edata = . ; |
| 25 |
_edata = . ; |
| 26 |
__edata = . ; |
| 27 |
} |
| 28 |
.bss : |
| 29 |
{ |
| 30 |
__bss_start__ = . ; |
| 31 |
*(.bss) |
| 32 |
__common_start__ = . ; |
| 33 |
*(COMMON) |
| 34 |
__bss_end__ = . ; |
| 35 |
} |
| 36 |
.edata : |
| 37 |
{ |
| 38 |
*(.edata) |
| 39 |
/* Do not discard this section. */ |
| 40 |
. = . ; |
| 41 |
end = . ; |
| 42 |
_end = . ; |
| 43 |
__end = . ; |
| 44 |
} |
| 45 |
.stab : |
| 46 |
{ |
| 47 |
*(.stab) |
| 48 |
} |
| 49 |
.stabstr : |
| 50 |
{ |
| 51 |
*(.stabstr) |
| 52 |
} |
| 53 |
} |
| 54 |
|
| 55 |
ASSERT("__rdata_end__"=="edata", ".pdata not empty") |
| 56 |
ASSERT("__bss_end__" =="end" , ".edata not empty") |
| 57 |
|