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