Home | History | Annotate | Line # | Download | only in emulparams
elf64ppc.sh revision 1.1
      1  1.1  christos . ${srcdir}/emulparams/plt_unwind.sh
      2  1.1  christos TEMPLATE_NAME=elf32
      3  1.1  christos EXTRA_EM_FILE=ppc64elf
      4  1.1  christos ELFSIZE=64
      5  1.1  christos GENERATE_SHLIB_SCRIPT=yes
      6  1.1  christos GENERATE_PIE_SCRIPT=yes
      7  1.1  christos SCRIPT_NAME=elf
      8  1.1  christos OUTPUT_FORMAT="elf64-powerpc"
      9  1.1  christos NO_REL_RELOCS=yes
     10  1.1  christos TEXT_START_ADDR=0x10000000
     11  1.1  christos #SEGMENT_SIZE=0x10000000
     12  1.1  christos MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
     13  1.1  christos COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
     14  1.1  christos ARCH=powerpc:common64
     15  1.1  christos MACHINE=
     16  1.1  christos NOP=0x60000000
     17  1.1  christos OTHER_TEXT_SECTIONS="*(.sfpr .glink)"
     18  1.1  christos BSS_PLT=
     19  1.1  christos OTHER_BSS_SYMBOLS="
     20  1.1  christos   .tocbss	${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.tocbss)}"
     21  1.1  christos OTHER_PLT_RELOC_SECTIONS="
     22  1.1  christos   .rela.tocbss	${RELOCATING-0} : { *(.rela.tocbss) }"
     23  1.1  christos 
     24  1.1  christos if test x${RELOCATING+set} = xset; then
     25  1.1  christos   GOT="
     26  1.1  christos   .got		: ALIGN(8) { *(.got .toc) }"
     27  1.1  christos else
     28  1.1  christos   GOT="
     29  1.1  christos   .got		0 : { *(.got) }
     30  1.1  christos   .toc		0 : { *(.toc) }"
     31  1.1  christos fi
     32  1.1  christos # Put .opd relocs first so ld.so will process them before any ifunc relocs.
     33  1.1  christos INITIAL_RELOC_SECTIONS="
     34  1.1  christos   .rela.opd	${RELOCATING-0} : { *(.rela.opd) }"
     35  1.1  christos OTHER_GOT_RELOC_SECTIONS="
     36  1.1  christos   .rela.toc	${RELOCATING-0} : { *(.rela.toc) }
     37  1.1  christos   .rela.branch_lt	${RELOCATING-0} : { *(.rela.branch_lt) }"
     38  1.1  christos OTHER_READWRITE_SECTIONS="
     39  1.1  christos   .toc1		${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.toc1) }
     40  1.1  christos   .opd		${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { KEEP (*(.opd)) }
     41  1.1  christos   .branch_lt	${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.branch_lt) }"
     42  1.1  christos 
     43  1.1  christos # Treat a host that matches the target with the possible exception of "64"
     44  1.1  christos # in the name as if it were native.
     45  1.1  christos if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
     46  1.1  christos   case " $EMULATION_LIBPATH " in
     47  1.1  christos     *" ${EMULATION_NAME} "*)
     48  1.1  christos       NATIVE=yes
     49  1.1  christos       ;;
     50  1.1  christos   esac
     51  1.1  christos fi
     52  1.1  christos 
     53  1.1  christos # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
     54  1.1  christos case "$EMULATION_NAME" in
     55  1.1  christos   *64*) LIBPATH_SUFFIX=64 ;;
     56  1.1  christos esac
     57