]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/scripttempl/aix.sc
import gdb-2000-01-05 snapshot
[thirdparty/binutils-gdb.git] / ld / scripttempl / aix.sc
CommitLineData
252b5132
RH
1# AIX linker script.
2# AIX always uses shared libraries. The section VMA appears to be
3# unimportant. The native linker aligns the sections on boundaries
4# specified by the -H option.
5cat <<EOF
6OUTPUT_FORMAT("${OUTPUT_FORMAT}")
7OUTPUT_ARCH(${ARCH})
8${RELOCATING+${LIB_SEARCH_DIRS}}
9ENTRY(__start)
10SECTIONS
11{
12 .pad 0 : { *(.pad) }
13 .text ${RELOCATING-0} : {
14 ${RELOCATING+PROVIDE (_text = .);}
15 *(.text)
16 *(.pr)
17 *(.ro)
18 *(.db)
19 *(.gl)
20 *(.xo)
21 *(.ti)
22 *(.tb)
23 ${RELOCATING+PROVIDE (_etext = .);}
24 }
25 .data 0 : {
26 ${RELOCATING+PROVIDE (_data = .);}
27 *(.data)
28 *(.rw)
29 *(.sv)
30 *(.ua)
31 . = ALIGN(4);
32 ${CONSTRUCTING+CONSTRUCTORS}
33 *(.ds)
34 *(.tc0)
35 *(.tc)
36 *(.td)
37 ${RELOCATING+PROVIDE (_edata = .);}
38 }
39 .bss : {
40 *(.tocbss)
41 *(.bss)
42 *(.bs)
43 *(.uc)
44 *(COMMON)
45 ${RELOCATING+PROVIDE (_end = .);}
46 ${RELOCATING+PROVIDE (end = .);}
47 }
48 .loader 0 : {
49 *(.loader)
50 }
51 .debug 0 : {
52 *(.debug)
53 }
54}
55EOF