source: trunk/binutils/ld/emulparams/elf64ppc.sh@ 2523

Last change on this file since 2523 was 607, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.6 KB
Line 
1TEMPLATE_NAME=elf32
2EXTRA_EM_FILE=ppc64elf
3ELFSIZE=64
4GENERATE_SHLIB_SCRIPT=yes
5SCRIPT_NAME=elf
6OUTPUT_FORMAT="elf64-powerpc"
7TEXT_START_ADDR=0x10000000
8#SEGMENT_SIZE=0x10000000
9MAXPAGESIZE=0x10000
10COMMONPAGESIZE=0x1000
11ARCH=powerpc:common64
12MACHINE=
13NOP=0x60000000
14EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
15OTHER_BSS_END_SYMBOLS='__end = .;'
16CTOR_START='PROVIDE (__CTOR_LIST__ = .); PROVIDE (___CTOR_LIST__ = .);'
17CTOR_END='PROVIDE (__CTOR_END__ = .); PROVIDE (___CTOR_END__ = .);'
18DTOR_START='PROVIDE (__DTOR_LIST__ = .); PROVIDE (___DTOR_LIST__ = .);'
19DTOR_END='PROVIDE (__DTOR_END__ = .); PROVIDE (___DTOR_END__ = .);'
20OTHER_TEXT_SECTIONS="*(.sfpr .glink)"
21BSS_PLT=
22OTHER_BSS_SYMBOLS="
23 .tocbss ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.tocbss)}"
24OTHER_PLT_RELOC_SECTIONS="
25 .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }"
26OTHER_GOT_SECTIONS="
27 .toc ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc) }"
28OTHER_GOT_RELOC_SECTIONS="
29 .rela.toc ${RELOCATING-0} : { *(.rela.toc) }"
30OTHER_READWRITE_SECTIONS="
31 .toc1 ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc1) }
32 .opd ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { KEEP (*(.opd)) }"
33
34# Treat a host that matches the target with the possible exception of "64"
35# in the name as if it were native.
36if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
37 case " $EMULATION_LIBPATH " in
38 *" ${EMULATION_NAME} "*)
39 NATIVE=yes
40 ;;
41 esac
42fi
43
44# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
45case "$EMULATION_NAME" in
46 *64*) LIBPATH_SUFFIX=64 ;;
47esac
Note: See TracBrowser for help on using the repository browser.