Commit | Line | Data |
---|---|---|
5c67d4bb | 1 | TEMPLATE_NAME=elf32 |
1f808cd5 | 2 | EXTRA_EM_FILE=ppc64elf |
5c67d4bb AM |
3 | ELFSIZE=64 |
4 | GENERATE_SHLIB_SCRIPT=yes | |
36af4a4e | 5 | GENERATE_PIE_SCRIPT=yes |
5c67d4bb AM |
6 | SCRIPT_NAME=elf |
7 | OUTPUT_FORMAT="elf64-powerpc" | |
8 | TEXT_START_ADDR=0x10000000 | |
1a3fdaa7 | 9 | #SEGMENT_SIZE=0x10000000 |
a86a09cc | 10 | MAXPAGESIZE=0x10000 |
120d20f2 AM |
11 | COMMONPAGESIZE=0x1000 |
12 | ARCH=powerpc:common64 | |
5c67d4bb AM |
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__ = .);' | |
82bd7b59 | 21 | OTHER_TEXT_SECTIONS="*(.sfpr .glink)" |
5c67d4bb AM |
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) } | |
e3e942e9 | 33 | .opd ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { KEEP (*(.opd)) }" |
eb3d6bb8 AM |
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 | |
9c8ebd6a DJ |
38 | case " $EMULATION_LIBPATH " in |
39 | *" ${EMULATION_NAME} "*) | |
40 | NATIVE=yes | |
41 | ;; | |
42 | esac | |
eb3d6bb8 | 43 | fi |
9c8ebd6a DJ |
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 |