* emultempl/armelf.em (gld_armelf_before_allocation):
[deliverable/binutils-gdb.git] / ld / scripttempl / sparccoff.sc
CommitLineData
1ffcbc25
SS
1# Linker script for Sparc COFF.
2# Based on i386coff.sc by Ian Taylor <ian@cygnus.com>.
3test -z "$ENTRY" && ENTRY=_start
4cat <<EOF
5OUTPUT_FORMAT("${OUTPUT_FORMAT}")
6${LIB_SEARCH_DIRS}
7
8ENTRY(${ENTRY})
9
10SECTIONS
11{
12 .text ${RELOCATING+ SIZEOF_HEADERS} : {
13 *(.init)
14 *(.text)
15 *(.fini)
16 ${RELOCATING+ etext = .};
17 }
18 .data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
19 *(.data)
20 ${RELOCATING+ edata = .};
21 }
22 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
23 {
24 *(.bss)
25 *(COMMON)
26 ${RELOCATING+ end = .};
27 }
28 .stab . (NOLOAD) :
29 {
30 [ .stab ]
31 }
32 .stabstr . (NOLOAD) :
33 {
34 [ .stabstr ]
35 }
36}
37EOF
This page took 0.16141 seconds and 4 git commands to generate.