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 |
24718e3b L |
10 | MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" |
11 | COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" | |
120d20f2 | 12 | ARCH=powerpc:common64 |
5c67d4bb AM |
13 | MACHINE= |
14 | NOP=0x60000000 | |
82bd7b59 | 15 | OTHER_TEXT_SECTIONS="*(.sfpr .glink)" |
5c67d4bb AM |
16 | BSS_PLT= |
17 | OTHER_BSS_SYMBOLS=" | |
e87deb82 | 18 | .tocbss ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.tocbss)}" |
5c67d4bb AM |
19 | OTHER_PLT_RELOC_SECTIONS=" |
20 | .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }" | |
f37f3db7 AM |
21 | |
22 | if test x${RELOCATING+set} = xset; then | |
23 | GOT=" | |
e87deb82 | 24 | .got : ALIGN(8) { *(.got .toc) }" |
f37f3db7 AM |
25 | else |
26 | GOT=" | |
27 | .got 0 : { *(.got) } | |
28 | .toc 0 : { *(.toc) }" | |
29 | fi | |
5c67d4bb AM |
30 | OTHER_GOT_RELOC_SECTIONS=" |
31 | .rela.toc ${RELOCATING-0} : { *(.rela.toc) }" | |
32 | OTHER_READWRITE_SECTIONS=" | |
e87deb82 AM |
33 | .toc1 ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.toc1) } |
34 | .opd ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { KEEP (*(.opd)) }" | |
eb3d6bb8 AM |
35 | |
36 | # Treat a host that matches the target with the possible exception of "64" | |
37 | # in the name as if it were native. | |
38 | if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then | |
9c8ebd6a DJ |
39 | case " $EMULATION_LIBPATH " in |
40 | *" ${EMULATION_NAME} "*) | |
41 | NATIVE=yes | |
42 | ;; | |
43 | esac | |
eb3d6bb8 | 44 | fi |
9c8ebd6a DJ |
45 | |
46 | # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first. | |
47 | case "$EMULATION_NAME" in | |
48 | *64*) LIBPATH_SUFFIX=64 ;; | |
49 | esac |