2011-11-03 Tristan Gingold <gingold@adacore.com>
[deliverable/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.
742aeb63 5
252b5132 6cat <<EOF
252b5132
RH
7OUTPUT_ARCH(${ARCH})
8${RELOCATING+${LIB_SEARCH_DIRS}}
596d6d91 9${RELOCATING+ENTRY (__start)}
252b5132
RH
10SECTIONS
11{
12 .pad 0 : { *(.pad) }
3b1b01cf 13
bbd0c8e2 14 . = ALIGN (0x10000000 + SIZEOF_HEADERS, 32);
ec2d9b29 15 .text ${RELOCATING-0} : {
252b5132
RH
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 }
bbd0c8e2
TG
27
28 . = ALIGN (ALIGN (0x10000000) + (. & 0xfff), 32);
3b1b01cf 29 .data . : {
252b5132
RH
30 ${RELOCATING+PROVIDE (_data = .);}
31 *(.data)
32 *(.rw)
33 *(.sv)
3b1b01cf
TR
34 *(.sv64)
35 *(.sv3264)
252b5132
RH
36 *(.ua)
37 . = ALIGN(4);
38 ${CONSTRUCTING+CONSTRUCTORS}
39 *(.ds)
40 *(.tc0)
41 *(.tc)
42 *(.td)
43 ${RELOCATING+PROVIDE (_edata = .);}
44 }
45 .bss : {
46 *(.tocbss)
47 *(.bss)
48 *(.bs)
49 *(.uc)
50 *(COMMON)
51 ${RELOCATING+PROVIDE (_end = .);}
52 ${RELOCATING+PROVIDE (end = .);}
53 }
3b1b01cf
TR
54
55 .loader : {
252b5132
RH
56 *(.loader)
57 }
3b1b01cf
TR
58
59 .debug : {
252b5132
RH
60 *(.debug)
61 }
62}
63EOF
This page took 0.466368 seconds and 4 git commands to generate.