bfd/
[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 EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
16 OTHER_BSS_END_SYMBOLS='__end = .;'
17 CTOR_START='PROVIDE (__CTOR_LIST__ = .); PROVIDE (___CTOR_LIST__ = .);'
18 CTOR_END='PROVIDE (__CTOR_END__ = .); PROVIDE (___CTOR_END__ = .);'
19 DTOR_START='PROVIDE (__DTOR_LIST__ = .); PROVIDE (___DTOR_LIST__ = .);'
20 DTOR_END='PROVIDE (__DTOR_END__ = .); PROVIDE (___DTOR_END__ = .);'
21 OTHER_TEXT_SECTIONS="*(.sfpr .glink)"
22 BSS_PLT=
23 OTHER_BSS_SYMBOLS="
24 .tocbss ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.tocbss)}"
25 OTHER_PLT_RELOC_SECTIONS="
26 .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }"
27 OTHER_GOT_SECTIONS="
28 .toc ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc) }"
29 OTHER_GOT_RELOC_SECTIONS="
30 .rela.toc ${RELOCATING-0} : { *(.rela.toc) }"
31 OTHER_READWRITE_SECTIONS="
32 .toc1 ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc1) }
33 .opd ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { KEEP (*(.opd)) }"
34
35 # Treat a host that matches the target with the possible exception of "64"
36 # in the name as if it were native.
37 if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
38 case " $EMULATION_LIBPATH " in
39 *" ${EMULATION_NAME} "*)
40 NATIVE=yes
41 ;;
42 esac
43 fi
44
45 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
46 case "$EMULATION_NAME" in
47 *64*) LIBPATH_SUFFIX=64 ;;
48 esac
This page took 0.049599 seconds and 4 git commands to generate.