* scripttempl/aout.sc: Define __etext and __edata to go along with
[deliverable/binutils-gdb.git] / ld / scripttempl / aout.sc
1 cat <<EOF
2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3 OUTPUT_ARCH(${ARCH})
4
5 ${RELOCATING+${LIB_SEARCH_DIRS}}
6 ${STACKZERO+${RELOCATING+${STACKZERO}}}
7 ${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
8 SECTIONS
9 {
10 .text ${RELOCATING+${TEXT_START_ADDR}}:
11 {
12 CREATE_OBJECT_SYMBOLS
13 *(.text)
14 /* The next six sections are for SunOS dynamic linking. The order
15 is important. */
16 *(.dynrel)
17 *(.hash)
18 *(.dynsym)
19 *(.dynstr)
20 *(.rules)
21 *(.need)
22 ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}}
23 ${RELOCATING+_etext = ${DATA_ALIGNMENT};}
24 ${RELOCATING+__etext = ${DATA_ALIGNMENT};}
25 }
26 .data ${RELOCATING+${DATA_ALIGNMENT}} :
27 {
28 /* The first three sections are for SunOS dynamic linking. */
29 *(.dynamic)
30 *(.got)
31 *(.plt)
32 *(.data)
33 ${CONSTRUCTING+CONSTRUCTORS}
34 ${RELOCATING+_edata = .;}
35 ${RELOCATING+__edata = .;}
36 }
37 .bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} :
38 {
39 ${RELOCATING+ __bss_start = .};
40 *(.bss)
41 *(COMMON)
42 ${RELOCATING+_end = ALIGN(4) };
43 ${RELOCATING+__end = ALIGN(4) };
44 }
45 }
46 EOF
This page took 0.032017 seconds and 5 git commands to generate.