1 # Linker script for Sparc COFF.
2 # Based on i386coff.sc by Ian Taylor <ian@cygnus.com>.
3 test -z "$ENTRY" && ENTRY=_start
5 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
12 .text ${RELOCATING+ SIZEOF_HEADERS} : {
15 ${RELOCATING+ etext = .;}
16 ${CONSTRUCTING+ ___CTOR_LIST__ = .;}
17 ${CONSTRUCTING+ LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)}
18 ${CONSTRUCTING+ *(.ctors)}
19 ${CONSTRUCTING+ LONG(0)}
20 ${CONSTRUCTING+ ___CTOR_END__ = .;}
21 ${CONSTRUCTING+ ___DTOR_LIST__ = .;}
22 ${CONSTRUCTING+ LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)}
23 ${CONSTRUCTING+ *(.dtors)}
24 ${CONSTRUCTING+ LONG(0)}
25 ${CONSTRUCTING+ ___DTOR_END__ = .;}
27 ${RELOCATING+ etext = .};
29 .data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
31 ${RELOCATING+ edata = .};
33 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
37 ${RELOCATING+ end = .};
39 .stab 0 ${RELOCATING+(NOLOAD)} :
43 .stabstr 0 ${RELOCATING+(NOLOAD)} :