[5bb00a8] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | */ |
---|
| 4 | |
---|
[f198c63] | 5 | OUTPUT_FORMAT("elf32-bigmips") |
---|
| 6 | OUTPUT_ARCH(mips) |
---|
| 7 | /* Do we need any of these for elf? |
---|
| 8 | __DYNAMIC = 0; */ |
---|
| 9 | _DYNAMIC_LINK = 0; |
---|
| 10 | SECTIONS |
---|
| 11 | { |
---|
| 12 | /* Read-only sections, merged into text segment: */ |
---|
| 13 | .text 0x80030000 : /* */ |
---|
| 14 | /* .text 0xa0020000 : /* */ |
---|
| 15 | /* .text 0x00020000 : /* */ |
---|
| 16 | { |
---|
| 17 | _ftext = . ; |
---|
| 18 | *(.text) |
---|
| 19 | CREATE_OBJECT_SYMBOLS |
---|
| 20 | _etext = .; |
---|
| 21 | } |
---|
| 22 | .init ALIGN(8) : { *(.init) } =0 |
---|
| 23 | .fini ALIGN(8) : { *(.fini) } =0 |
---|
| 24 | .ctors ALIGN(8) : { *(.ctors) } |
---|
| 25 | .dtors ALIGN(8) : { *(.dtors) } |
---|
| 26 | .rodata ALIGN(8) : { *(.rodata) } |
---|
| 27 | .rodata1 ALIGN(8) : |
---|
| 28 | { |
---|
| 29 | *(.rodata1) |
---|
| 30 | . = ALIGN(8); |
---|
| 31 | } |
---|
| 32 | .reginfo . : { *(.reginfo) } |
---|
| 33 | /* also: .hash .dynsym .dynstr .plt(if r/o) .rel.got */ |
---|
| 34 | /* Read-write section, merged into data segment: */ |
---|
| 35 | .data ALIGN(16) : |
---|
| 36 | { |
---|
| 37 | _fdata = . ; |
---|
| 38 | *(.data) |
---|
| 39 | CONSTRUCTORS |
---|
| 40 | } |
---|
| 41 | .data1 ALIGN(8) : { *(.data1) } |
---|
| 42 | _gp = . + 0x8000; |
---|
| 43 | .lit8 . : { *(.lit8) } |
---|
| 44 | .lit4 . : { *(.lit4) } |
---|
| 45 | /* also (before uninitialized portion): .dynamic .got .plt(if r/w) |
---|
| 46 | (or does .dynamic go into its own segment?) */ |
---|
| 47 | /* We want the small data sections together, so single-instruction offsets |
---|
| 48 | can access them all, and initialized data all before uninitialized, so |
---|
| 49 | we can shorten the on-disk segment size. */ |
---|
| 50 | .sdata ALIGN(8) : { *(.sdata) } |
---|
| 51 | _edata = .; |
---|
| 52 | __bss_start = ALIGN(8); |
---|
| 53 | _fbss = .; |
---|
| 54 | .sbss ALIGN(8) : { *(.sbss) *(.scommon) } |
---|
| 55 | .bss ALIGN(8) : |
---|
| 56 | { |
---|
| 57 | *(.bss) |
---|
| 58 | *(COMMON) |
---|
| 59 | _end = . ; |
---|
| 60 | end = . ; |
---|
| 61 | } |
---|
| 62 | /* Debug sections. These should never be loadable, but they must have |
---|
| 63 | zero addresses for the debuggers to work correctly. */ |
---|
| 64 | .line 0 : { *(.line) } |
---|
| 65 | .debug 0 : { *(.debug) } |
---|
| 66 | .debug_sfnames 0 : { *(.debug_sfnames) } |
---|
| 67 | .debug_srcinfo 0 : { *(.debug_srcinfo) } |
---|
| 68 | .debug_macinfo 0 : { *(.debug_macinfo) } |
---|
| 69 | .debug_pubnames 0 : { *(.debug_pubnames) } |
---|
| 70 | .debug_aranges 0 : { *(.debug_aranges) } |
---|
| 71 | } |
---|
| 72 | |
---|