726543c8e7ee1822af3c3c57c59f5a015db3c661
[external/binutils.git] / ld / mips.sc-sh
1 # Linker script for MIPS.  This works on a DECstation running Ultrix,
2 # and may work on other platforms as well.
3 # Ian Lance Taylor <ian@cygnus.com>.
4 cat <<EOF
5 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
6 ${LIB_SEARCH_DIRS}
7
8 ENTRY(__start)
9
10 SECTIONS
11 {
12   .text ${RELOCATING+ 0x400000 + SIZEOF_HEADERS} : {
13     *(.init)
14     ${RELOCATING+ eprol  =  .};
15     *(.text)
16     *(.fini)
17     ${RELOCATING+ etext  =  .};
18   }
19   .rdata ${RELOCATING+ 0x10000000} : {
20     *(.rdata)
21   }
22   .data ${RELOCATING+ .} : {
23     *(.data)
24   }
25   ${RELOCATING+ _gp = . + 0x8000;}
26   .lit8 ${RELOCATING+ .} : {
27     *(.lit8)
28   }
29   .lit4 ${RELOCATING+ .} : {
30     *(.lit4)
31   }
32   .sdata ${RELOCATING+ .} : {
33     *(.sdata)
34   }
35   ${RELOCATING+ edata  =  .;}
36   .sbss ${RELOCATING+ .} : {
37     *(.sbss)
38     *(.scommon)
39   }
40   .bss ${RELOCATING+ .} : {
41     *(.bss)
42     *(COMMON)
43   }
44   ${RELOCATING+ end = .;}
45 }
46 EOF