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.
5
6cat <<EOF
7OUTPUT_ARCH(${ARCH})
8${RELOCATING+${LIB_SEARCH_DIRS}}
9ENTRY(__start)
10SECTIONS
11{
12  .pad 0 : { *(.pad) }
13
14  . = 0x10000000;
15  .text ${RELOCATING-0} : {
16    ${RELOCATING+PROVIDE (_text = .);}
17    *(.text)
18    *(.pr)
19    *(.ro)
20    *(.db)
21    *(.gl)
22    *(.xo)
23    *(.ti)
24    *(.tb)
25    ${RELOCATING+PROVIDE (_etext = .);}
26  }
27  . = ALIGN (0x10000000);
28  .data . : {
29    ${RELOCATING+PROVIDE (_data = .);}
30    *(.data)
31    *(.rw)
32    *(.sv)
33    *(.sv64)
34    *(.sv3264)
35    *(.ua)
36    . = ALIGN(4);
37    ${CONSTRUCTING+CONSTRUCTORS}
38    *(.ds)
39    *(.tc0)
40    *(.tc)
41    *(.td)
42    ${RELOCATING+PROVIDE (_edata = .);}
43  }
44  .bss : {
45    *(.tocbss)
46    *(.bss)
47    *(.bs)
48    *(.uc)
49    *(COMMON)
50    ${RELOCATING+PROVIDE (_end = .);}
51    ${RELOCATING+PROVIDE (end = .);}
52  }
53
54  .loader : {
55    *(.loader)
56  }
57
58  .debug : {
59    *(.debug)
60  }
61}
62EOF
63