bfd/
[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
TR
13
14 . = 0x10000000;
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 }
06143382 27 . = ALIGN (0x10000000);
3b1b01cf 28 .data . : {
252b5132
RH
29 ${RELOCATING+PROVIDE (_data = .);}
30 *(.data)
31 *(.rw)
32 *(.sv)
3b1b01cf
TR
33 *(.sv64)
34 *(.sv3264)
252b5132
RH
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 }
3b1b01cf
TR
53
54 .loader : {
252b5132
RH
55 *(.loader)
56 }
3b1b01cf
TR
57
58 .debug : {
252b5132
RH
59 *(.debug)
60 }
61}
62EOF
This page took 0.457299 seconds and 4 git commands to generate.