* emultempl/aix.em: Add support for various AIX linker options,
[external/binutils.git] / ld / scripttempl / aix.sc
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 cat <<EOF
6 OUTPUT_ARCH(${ARCH})
7 ENTRY(__start)
8 SECTIONS
9 {
10   .pad 0 : { *(.pad) }
11   ${RELOCATING+PROVIDE (_text = .);}
12   .text ${RELOCATING-0} : {
13     *(.text)
14     *(.pr)
15     *(.ro)
16     *(.db)
17     *(.gl)
18     *(.xo)
19     *(.ti)
20     *(.tb)
21   }
22   ${RELOCATING+PROVIDE (_etext = .);}
23   ${RELOCATING+PROVIDE (_data = .);}
24   .data ${RELOCATING-0} : {
25     *(.data)
26     *(.rw)
27     *(.sv)
28     *(.ua)
29     *(.ds)
30     *(.tc0)
31     *(.tc)
32     *(.td)
33   }
34   ${RELOCATING+PROVIDE (_edata = .);}
35   .bss : {
36     *(.bss)
37     *(.bs)
38     *(.uc)
39     *(COMMON)
40   }
41   ${RELOCATING+PROVIDE (_end = .);}
42   ${RELOCATING+PROVIDE (end = .);}
43   .loader 0 : {
44     *(.loader)
45   }
46   .debug 0 : {
47     *(.debug)
48   }
49 }
50 EOF