Commit | Line | Data |
---|---|---|
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. | |
985743c7 | 5 | # |
219d1afa | 6 | # Copyright (C) 2014-2018 Free Software Foundation, Inc. |
6c19b93b | 7 | # |
985743c7 NC |
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. | |
742aeb63 | 11 | |
252b5132 | 12 | cat <<EOF |
219d1afa | 13 | /* Copyright (C) 2014-2018 Free Software Foundation, Inc. |
985743c7 NC |
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 | ||
252b5132 RH |
19 | OUTPUT_ARCH(${ARCH}) |
20 | ${RELOCATING+${LIB_SEARCH_DIRS}} | |
596d6d91 | 21 | ${RELOCATING+ENTRY (__start)} |
252b5132 RH |
22 | SECTIONS |
23 | { | |
24 | .pad 0 : { *(.pad) } | |
3b1b01cf | 25 | |
bbd0c8e2 | 26 | . = ALIGN (0x10000000 + SIZEOF_HEADERS, 32); |
ec2d9b29 | 27 | .text ${RELOCATING-0} : { |
252b5132 RH |
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 | } | |
bbd0c8e2 TG |
39 | |
40 | . = ALIGN (ALIGN (0x10000000) + (. & 0xfff), 32); | |
3b1b01cf | 41 | .data . : { |
252b5132 RH |
42 | ${RELOCATING+PROVIDE (_data = .);} |
43 | *(.data) | |
44 | *(.rw) | |
45 | *(.sv) | |
3b1b01cf TR |
46 | *(.sv64) |
47 | *(.sv3264) | |
252b5132 RH |
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 | } | |
3b1b01cf TR |
66 | |
67 | .loader : { | |
252b5132 RH |
68 | *(.loader) |
69 | } | |
6c19b93b | 70 | |
3b1b01cf | 71 | .debug : { |
252b5132 RH |
72 | *(.debug) |
73 | } | |
74 | } | |
75 | EOF |