PowerPC64 changes for xlc
[deliverable/binutils-gdb.git] / ld / emulparams / elf64ppc.sh
CommitLineData
6c668e71 1. ${srcdir}/emulparams/elf32ppccommon.sh
58d180e8 2. ${srcdir}/emulparams/plt_unwind.sh
1f808cd5 3EXTRA_EM_FILE=ppc64elf
5c67d4bb 4ELFSIZE=64
5c67d4bb
AM
5OUTPUT_FORMAT="elf64-powerpc"
6TEXT_START_ADDR=0x10000000
1a3fdaa7 7#SEGMENT_SIZE=0x10000000
120d20f2 8ARCH=powerpc:common64
5c67d4bb 9NOP=0x60000000
6c668e71
AM
10unset EXECUTABLE_SYMBOLS
11unset SDATA_START_SYMBOLS
12unset SDATA2_START_SYMBOLS
13unset SBSS_START_SYMBOLS
14unset SBSS_END_SYMBOLS
15unset OTHER_END_SYMBOLS
16unset OTHER_RELRO_SECTIONS
82bd7b59 17OTHER_TEXT_SECTIONS="*(.sfpr .glink)"
5ad18f16 18OTHER_SDATA_SECTIONS="
e87deb82 19 .tocbss ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.tocbss)}"
f37f3db7
AM
20
21if test x${RELOCATING+set} = xset; then
22 GOT="
e87deb82 23 .got : ALIGN(8) { *(.got .toc) }"
f37f3db7
AM
24else
25 GOT="
26 .got 0 : { *(.got) }
27 .toc 0 : { *(.toc) }"
28fi
829da898
AM
29# Put .opd relocs first so ld.so will process them before any ifunc relocs.
30INITIAL_RELOC_SECTIONS="
31 .rela.opd ${RELOCATING-0} : { *(.rela.opd) }"
5c67d4bb 32OTHER_GOT_RELOC_SECTIONS="
b796d39d 33 .rela.toc ${RELOCATING-0} : { *(.rela.toc) }
5ad18f16
AM
34 .rela.toc1 ${RELOCATING-0} : { *(.rela.toc1) }
35 .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }
b796d39d 36 .rela.branch_lt ${RELOCATING-0} : { *(.rela.branch_lt) }"
3e2b0f31 37OTHER_RELRO_SECTIONS_2="
23283c1b 38 .opd ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { KEEP (*(.opd)) }
5ad18f16 39 .toc1 ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.toc1) }
23283c1b 40 .branch_lt ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.branch_lt) }"
dbd1e97e
AM
41INITIAL_READWRITE_SECTIONS="
42 .toc ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.toc) }"
23283c1b
AM
43# Put .got before .data
44DATA_GOT=" "
45# Always make .got read-only after relocation
46SEPARATE_GOTPLT=0
47# Also put .sdata before .data
48DATA_SDATA=" "
49# and .plt/.iplt before .data
50DATA_PLT=
51PLT_BEFORE_GOT=" "
This page took 0.538201 seconds and 4 git commands to generate.