]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/scripttempl/aix.sc
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.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 #
6 # Copyright (C) 2014-2021 Free Software Foundation, Inc.
7 #
8 # Copying and distribution of this file, with or without modification,
9 # are permitted in any medium without royalty provided the copyright
10 # notice and this notice are preserved.
11
12 cat <<EOF
13 /* Copyright (C) 2014-2021 Free Software Foundation, Inc.
14
15 Copying and distribution of this script, with or without modification,
16 are permitted in any medium without royalty provided the copyright
17 notice and this notice are preserved. */
18
19 OUTPUT_ARCH(${ARCH})
20 ${RELOCATING+${LIB_SEARCH_DIRS}}
21 ${RELOCATING+ENTRY (__start)}
22 SECTIONS
23 {
24 .pad 0 : { *(.pad) }
25
26 . = ALIGN (0x10000000 + SIZEOF_HEADERS, 32);
27 .text ${RELOCATING-0} : {
28 ${RELOCATING+PROVIDE (_text = .);}
29 *(.text)
30 *(.pr)
31 *(.ro)
32 *(.db)
33 *(.gl)
34 *(.xo)
35 *(.ti)
36 *(.tb)
37 ${RELOCATING+PROVIDE (_etext = .);}
38 }
39
40 . = ALIGN (ALIGN (0x10000000) + (. & 0xfff), 32);
41 .data . : {
42 ${RELOCATING+PROVIDE (_data = .);}
43 *(.data)
44 *(.rw)
45 *(.sv)
46 *(.sv64)
47 *(.sv3264)
48 *(.ua)
49 . = ALIGN(4);
50 ${CONSTRUCTING+CONSTRUCTORS}
51 *(.ds)
52 *(.tc0)
53 *(.tc)
54 *(.td)
55 ${RELOCATING+PROVIDE (_edata = .);}
56 }
57 .bss : {
58 *(.tocbss)
59 *(.bss)
60 *(.bs)
61 *(.uc)
62 *(COMMON)
63 ${RELOCATING+PROVIDE (_end = .);}
64 ${RELOCATING+PROVIDE (end = .);}
65 }
66
67 .loader : {
68 *(.loader)
69 }
70
71 .debug : {
72 *(.debug)
73 }
74 }
75 EOF