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