aix: implement R_TOCU and R_TOCL relocations
[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.
985743c7 5#
250d07de 6# Copyright (C) 2014-2021 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 12cat <<EOF
250d07de 13/* Copyright (C) 2014-2021 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
19OUTPUT_ARCH(${ARCH})
20${RELOCATING+${LIB_SEARCH_DIRS}}
596d6d91 21${RELOCATING+ENTRY (__start)}
252b5132
RH
22SECTIONS
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)
4a403be0 55 *(.te)
252b5132
RH
56 ${RELOCATING+PROVIDE (_edata = .);}
57 }
58 .bss : {
59 *(.tocbss)
60 *(.bss)
61 *(.bs)
62 *(.uc)
63 *(COMMON)
64 ${RELOCATING+PROVIDE (_end = .);}
65 ${RELOCATING+PROVIDE (end = .);}
66 }
3b1b01cf
TR
67
68 .loader : {
252b5132
RH
69 *(.loader)
70 }
6c19b93b 71
3b1b01cf 72 .debug : {
252b5132
RH
73 *(.debug)
74 }
75}
76EOF
This page took 1.029452 seconds and 4 git commands to generate.