bfd:
[deliverable/binutils-gdb.git] / ld / emulparams / elf64ppc.sh
CommitLineData
5c67d4bb 1TEMPLATE_NAME=elf32
1f808cd5 2EXTRA_EM_FILE=ppc64elf
5c67d4bb
AM
3ELFSIZE=64
4GENERATE_SHLIB_SCRIPT=yes
36af4a4e 5GENERATE_PIE_SCRIPT=yes
5c67d4bb
AM
6SCRIPT_NAME=elf
7OUTPUT_FORMAT="elf64-powerpc"
485cf679 8NO_REL_RELOCS=yes
5c67d4bb 9TEXT_START_ADDR=0x10000000
1a3fdaa7 10#SEGMENT_SIZE=0x10000000
24718e3b
L
11MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
12COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
120d20f2 13ARCH=powerpc:common64
5c67d4bb
AM
14MACHINE=
15NOP=0x60000000
82bd7b59 16OTHER_TEXT_SECTIONS="*(.sfpr .glink)"
5c67d4bb
AM
17BSS_PLT=
18OTHER_BSS_SYMBOLS="
e87deb82 19 .tocbss ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.tocbss)}"
5c67d4bb
AM
20OTHER_PLT_RELOC_SECTIONS="
21 .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }"
f37f3db7
AM
22
23if test x${RELOCATING+set} = xset; then
24 GOT="
e87deb82 25 .got : ALIGN(8) { *(.got .toc) }"
f37f3db7
AM
26else
27 GOT="
28 .got 0 : { *(.got) }
29 .toc 0 : { *(.toc) }"
30fi
5c67d4bb 31OTHER_GOT_RELOC_SECTIONS="
b796d39d
JM
32 .rela.toc ${RELOCATING-0} : { *(.rela.toc) }
33 .rela.opd ${RELOCATING-0} : { *(.rela.opd) }
34 .rela.branch_lt ${RELOCATING-0} : { *(.rela.branch_lt) }"
5c67d4bb 35OTHER_READWRITE_SECTIONS="
e87deb82 36 .toc1 ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.toc1) }
e4e0193e
AM
37 .opd ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { KEEP (*(.opd)) }
38 .branch_lt ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.branch_lt) }"
eb3d6bb8
AM
39
40# Treat a host that matches the target with the possible exception of "64"
41# in the name as if it were native.
42if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
9c8ebd6a
DJ
43 case " $EMULATION_LIBPATH " in
44 *" ${EMULATION_NAME} "*)
45 NATIVE=yes
46 ;;
47 esac
eb3d6bb8 48fi
9c8ebd6a
DJ
49
50# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
51case "$EMULATION_NAME" in
52 *64*) LIBPATH_SUFFIX=64 ;;
53esac
This page took 0.317271 seconds and 4 git commands to generate.