| 1 | OUTPUT_FORMAT("elf32-m32r", "elf32-m32r", |
| 2 | "elf32-m32r") |
| 3 | OUTPUT_ARCH(m32r) |
| 4 | ENTRY(_start) |
| 5 | SEARCH_DIR(/usr/cygnus/m32r-961018/H-sparc-sun-sunos4.1//lib); |
| 6 | /* Do we need any of these for elf? |
| 7 | __DYNAMIC = 0; */ |
| 8 | SECTIONS |
| 9 | { |
| 10 | OVERLAY 0x300000 : AT (0x400000) |
| 11 | { |
| 12 | .ovly0 { foo.o(.text) } |
| 13 | .ovly1 { bar.o(.text) } |
| 14 | } |
| 15 | OVERLAY 0x380000 : AT (0x480000) |
| 16 | { |
| 17 | .ovly2 { baz.o(.text) } |
| 18 | .ovly3 { grbx.o(.text) } |
| 19 | } |
| 20 | OVERLAY 0x340000 : AT (0x440000) |
| 21 | { |
| 22 | .data00 { foo.o(.data) } |
| 23 | .data01 { bar.o(.data) } |
| 24 | } |
| 25 | OVERLAY 0x3C0000 : AT (0x4C0000) |
| 26 | { |
| 27 | .data02 { baz.o(.data) } |
| 28 | .data03 { grbx.o(.data) } |
| 29 | } |
| 30 | |
| 31 | /* Read-only sections, merged into text segment: */ |
| 32 | . = 0x208000; |
| 33 | .interp : { *(.interp) } |
| 34 | .hash : { *(.hash) } |
| 35 | .dynsym : { *(.dynsym) } |
| 36 | .dynstr : { *(.dynstr) } |
| 37 | .rel.text : { *(.rel.text) } |
| 38 | .rela.text : { *(.rela.text) } |
| 39 | .rel.data : { *(.rel.data) } |
| 40 | .rela.data : { *(.rela.data) } |
| 41 | .rel.rodata : { *(.rel.rodata) } |
| 42 | .rela.rodata : { *(.rela.rodata) } |
| 43 | .rel.got : { *(.rel.got) } |
| 44 | .rela.got : { *(.rela.got) } |
| 45 | .rel.ctors : { *(.rel.ctors) } |
| 46 | .rela.ctors : { *(.rela.ctors) } |
| 47 | .rel.dtors : { *(.rel.dtors) } |
| 48 | .rela.dtors : { *(.rela.dtors) } |
| 49 | .rel.init : { *(.rel.init) } |
| 50 | .rela.init : { *(.rela.init) } |
| 51 | .rel.fini : { *(.rel.fini) } |
| 52 | .rela.fini : { *(.rela.fini) } |
| 53 | .rel.bss : { *(.rel.bss) } |
| 54 | .rela.bss : { *(.rela.bss) } |
| 55 | .rel.plt : { *(.rel.plt) } |
| 56 | .rela.plt : { *(.rela.plt) } |
| 57 | .init : { *(.init) } =0 |
| 58 | .plt : { *(.plt) } |
| 59 | .text : |
| 60 | { |
| 61 | *(.text) |
| 62 | /* .gnu.warning sections are handled specially by elf32.em. */ |
| 63 | *(.gnu.warning) |
| 64 | *(.gnu.linkonce.t*) |
| 65 | } =0 |
| 66 | _etext = .; |
| 67 | PROVIDE (etext = .); |
| 68 | .fini : { *(.fini) } =0 |
| 69 | .rodata : { *(.rodata) *(.gnu.linkonce.r*) } |
| 70 | .rodata1 : { *(.rodata1) } |
| 71 | /* Adjust the address for the data segment. We want to adjust up to |
| 72 | the same address within the page on the next page up. */ |
| 73 | . = ALIGN(32) + (ALIGN(8) & (32 - 1)); |
| 74 | .data : |
| 75 | { |
| 76 | *(.data) |
| 77 | *(.gnu.linkonce.d*) |
| 78 | _ovly_table = .; |
| 79 | _ovly0_entry = .; |
| 80 | LONG(ABSOLUTE(ADDR(.ovly0))); |
| 81 | LONG(SIZEOF(.ovly0)); |
| 82 | LONG(LOADADDR(.ovly0)); |
| 83 | LONG(0); |
| 84 | _ovly1_entry = .; |
| 85 | LONG(ABSOLUTE(ADDR(.ovly1))); |
| 86 | LONG(SIZEOF(.ovly1)); |
| 87 | LONG(LOADADDR(.ovly1)); |
| 88 | LONG(0); |
| 89 | _ovly2_entry = .; |
| 90 | LONG(ABSOLUTE(ADDR(.ovly2))); |
| 91 | LONG(SIZEOF(.ovly2)); |
| 92 | LONG(LOADADDR(.ovly2)); |
| 93 | LONG(0); |
| 94 | _ovly3_entry = .; |
| 95 | LONG(ABSOLUTE(ADDR(.ovly3))); |
| 96 | LONG(SIZEOF(.ovly3)); |
| 97 | LONG(LOADADDR(.ovly3)); |
| 98 | LONG(0); |
| 99 | _data00_entry = .; |
| 100 | LONG(ABSOLUTE(ADDR(.data00))); |
| 101 | LONG(SIZEOF(.data00)); |
| 102 | LONG(LOADADDR(.data00)); |
| 103 | LONG(0); |
| 104 | _data01_entry = .; |
| 105 | LONG(ABSOLUTE(ADDR(.data01))); |
| 106 | LONG(SIZEOF(.data01)); |
| 107 | LONG(LOADADDR(.data01)); |
| 108 | LONG(0); |
| 109 | _data02_entry = .; |
| 110 | LONG(ABSOLUTE(ADDR(.data02))); |
| 111 | LONG(SIZEOF(.data02)); |
| 112 | LONG(LOADADDR(.data02)); |
| 113 | LONG(0); |
| 114 | _data03_entry = .; |
| 115 | LONG(ABSOLUTE(ADDR(.data03))); |
| 116 | LONG(SIZEOF(.data03)); |
| 117 | LONG(LOADADDR(.data03)); |
| 118 | LONG(0); |
| 119 | _novlys = .; |
| 120 | LONG((_novlys - _ovly_table) / 16); |
| 121 | |
| 122 | CONSTRUCTORS |
| 123 | } |
| 124 | .data1 : { *(.data1) } |
| 125 | .ctors : { *(.ctors) } |
| 126 | .dtors : { *(.dtors) } |
| 127 | .got : { *(.got.plt) *(.got)} |
| 128 | .dynamic : { *(.dynamic) } |
| 129 | /* We want the small data sections together, so single-instruction offsets |
| 130 | can access them all, and initialized data all before uninitialized, so |
| 131 | we can shorten the on-disk segment size. */ |
| 132 | .sdata : { *(.sdata) } |
| 133 | _edata = .; |
| 134 | PROVIDE (edata = .); |
| 135 | __bss_start = .; |
| 136 | .sbss : { *(.sbss) *(.scommon) } |
| 137 | .bss : { *(.dynbss) *(.bss) *(COMMON) } |
| 138 | _end = . ; |
| 139 | PROVIDE (end = .); |
| 140 | /* Stabs debugging sections. */ |
| 141 | .stab 0 : { *(.stab) } |
| 142 | .stabstr 0 : { *(.stabstr) } |
| 143 | .stab.excl 0 : { *(.stab.excl) } |
| 144 | .stab.exclstr 0 : { *(.stab.exclstr) } |
| 145 | .stab.index 0 : { *(.stab.index) } |
| 146 | .stab.indexstr 0 : { *(.stab.indexstr) } |
| 147 | .comment 0 : { *(.comment) } |
| 148 | /* DWARF debug sections. |
| 149 | Symbols in the .debug DWARF section are relative to the beginning of the |
| 150 | section so we begin .debug at 0. It's not clear yet what needs to happen |
| 151 | for the others. */ |
| 152 | .debug 0 : { *(.debug) } |
| 153 | .debug_srcinfo 0 : { *(.debug_srcinfo) } |
| 154 | .debug_aranges 0 : { *(.debug_aranges) } |
| 155 | .debug_pubnames 0 : { *(.debug_pubnames) } |
| 156 | .debug_sfnames 0 : { *(.debug_sfnames) } |
| 157 | .line 0 : { *(.line) } |
| 158 | .stack 0x5ffffc : { _stack = .; *(.stack) } |
| 159 | /* These must appear regardless of . */ |
| 160 | } |