Add support for SunOS shared libraries.
[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 }
25 .data ${RELOCATING+${DATA_ALIGNMENT}} :
26 {
27 /* The first three sections are for SunOS dynamic linking. */
28 *(.dynamic)
29 *(.got)
30 *(.plt)
31 *(.data)
32 ${CONSTRUCTING+CONSTRUCTORS}
33 ${RELOCATING+_edata = .;}
34 }
35 .bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} :
36 {
37 ${RELOCATING+ __bss_start = .};
38 *(.bss)
39 *(COMMON)
40 ${RELOCATING+_end = ALIGN(4) };
41 ${RELOCATING+__end = ALIGN(4) };
42 }
43 }
44 EOF
This page took 0.030549 seconds and 4 git commands to generate.