* emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
[deliverable/binutils-gdb.git] / ld / emulparams / elf64ppc.sh
1 TEMPLATE_NAME=elf32
2 EXTRA_EM_FILE=ppc64elf
3 ELFSIZE=64
4 GENERATE_SHLIB_SCRIPT=yes
5 GENERATE_PIE_SCRIPT=yes
6 SCRIPT_NAME=elf
7 OUTPUT_FORMAT="elf64-powerpc"
8 TEXT_START_ADDR=0x10000000
9 #SEGMENT_SIZE=0x10000000
10 MAXPAGESIZE=0x10000
11 COMMONPAGESIZE=0x1000
12 ARCH=powerpc:common64
13 MACHINE=
14 NOP=0x60000000
15 OTHER_TEXT_SECTIONS="*(.sfpr .glink)"
16 BSS_PLT=
17 OTHER_BSS_SYMBOLS="
18 .tocbss ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.tocbss)}"
19 OTHER_PLT_RELOC_SECTIONS="
20 .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }"
21 GOT="
22 .got ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.got${RELOCATING+ .toc}) }
23 ${RELOCATING-.toc 0 : { *(.toc) }}"
24 OTHER_GOT_RELOC_SECTIONS="
25 .rela.toc ${RELOCATING-0} : { *(.rela.toc) }"
26 OTHER_READWRITE_SECTIONS="
27 .toc1 ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc1) }
28 .opd ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { KEEP (*(.opd)) }"
29
30 # Treat a host that matches the target with the possible exception of "64"
31 # in the name as if it were native.
32 if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
33 case " $EMULATION_LIBPATH " in
34 *" ${EMULATION_NAME} "*)
35 NATIVE=yes
36 ;;
37 esac
38 fi
39
40 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
41 case "$EMULATION_NAME" in
42 *64*) LIBPATH_SUFFIX=64 ;;
43 esac
This page took 0.03354 seconds and 5 git commands to generate.