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"
8TEXT_START_ADDR=0x10000000
1a3fdaa7 9#SEGMENT_SIZE=0x10000000
24718e3b
L
10MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
11COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
120d20f2 12ARCH=powerpc:common64
5c67d4bb
AM
13MACHINE=
14NOP=0x60000000
82bd7b59 15OTHER_TEXT_SECTIONS="*(.sfpr .glink)"
5c67d4bb
AM
16BSS_PLT=
17OTHER_BSS_SYMBOLS="
e87deb82 18 .tocbss ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.tocbss)}"
5c67d4bb
AM
19OTHER_PLT_RELOC_SECTIONS="
20 .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }"
f37f3db7
AM
21
22if test x${RELOCATING+set} = xset; then
23 GOT="
e87deb82 24 .got : ALIGN(8) { *(.got .toc) }"
f37f3db7
AM
25else
26 GOT="
27 .got 0 : { *(.got) }
28 .toc 0 : { *(.toc) }"
29fi
5c67d4bb
AM
30OTHER_GOT_RELOC_SECTIONS="
31 .rela.toc ${RELOCATING-0} : { *(.rela.toc) }"
32OTHER_READWRITE_SECTIONS="
e87deb82
AM
33 .toc1 ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.toc1) }
34 .opd ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { KEEP (*(.opd)) }"
eb3d6bb8
AM
35
36# Treat a host that matches the target with the possible exception of "64"
37# in the name as if it were native.
38if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
9c8ebd6a
DJ
39 case " $EMULATION_LIBPATH " in
40 *" ${EMULATION_NAME} "*)
41 NATIVE=yes
42 ;;
43 esac
eb3d6bb8 44fi
9c8ebd6a
DJ
45
46# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
47case "$EMULATION_NAME" in
48 *64*) LIBPATH_SUFFIX=64 ;;
49esac
This page took 0.218609 seconds and 4 git commands to generate.