]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/scripttempl/aix.sc
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / ld / scripttempl / aix.sc
CommitLineData
57fc1e90
ILT
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.
5cat <<EOF
585c92fe 6OUTPUT_FORMAT("${OUTPUT_FORMAT}")
57fc1e90 7OUTPUT_ARCH(${ARCH})
585c92fe 8${RELOCATING+${LIB_SEARCH_DIRS}}
57fc1e90
ILT
9ENTRY(__start)
10SECTIONS
11{
12 .pad 0 : { *(.pad) }
57fc1e90 13 .text ${RELOCATING-0} : {
328e5a48 14 ${RELOCATING+PROVIDE (_text = .);}
57fc1e90
ILT
15 *(.text)
16 *(.pr)
17 *(.ro)
18 *(.db)
19 *(.gl)
20 *(.xo)
21 *(.ti)
22 *(.tb)
328e5a48 23 ${RELOCATING+PROVIDE (_etext = .);}
57fc1e90 24 }
328e5a48
ILT
25 .data 0 : {
26 ${RELOCATING+PROVIDE (_data = .);}
57fc1e90
ILT
27 *(.data)
28 *(.rw)
29 *(.sv)
30 *(.ua)
31 *(.ds)
32 *(.tc0)
33 *(.tc)
34 *(.td)
328e5a48 35 ${RELOCATING+PROVIDE (_edata = .);}
57fc1e90 36 }
57fc1e90
ILT
37 .bss : {
38 *(.bss)
39 *(.bs)
40 *(.uc)
41 *(COMMON)
328e5a48
ILT
42 ${RELOCATING+PROVIDE (_end = .);}
43 ${RELOCATING+PROVIDE (end = .);}
57fc1e90 44 }
57fc1e90
ILT
45 .loader 0 : {
46 *(.loader)
47 }
48 .debug 0 : {
49 *(.debug)
50 }
51}
52EOF