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