Commit | Line | Data |
---|---|---|
465bc359 AM |
1 | # If you change this file, please also look at files which source this one: |
2 | # elf32lppc.sh elf32ppclinux.sh elf32ppcsim.sh | |
3 | ||
252b5132 | 4 | TEMPLATE_NAME=elf32 |
f9e6bfa8 | 5 | EXTRA_EM_FILE=ppc32elf |
252b5132 | 6 | GENERATE_SHLIB_SCRIPT=yes |
36af4a4e | 7 | GENERATE_PIE_SCRIPT=yes |
bdbe5705 | 8 | SCRIPT_NAME=elf |
252b5132 RH |
9 | OUTPUT_FORMAT="elf32-powerpc" |
10 | TEXT_START_ADDR=0x01800000 | |
18069efc | 11 | MAXPAGESIZE=0x10000 |
5c368657 | 12 | ARCH=powerpc:common |
252b5132 | 13 | MACHINE= |
bdbe5705 GK |
14 | BSS_PLT= |
15 | EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);' | |
16 | OTHER_BSS_END_SYMBOLS='__end = .;' | |
465bc359 AM |
17 | OTHER_READWRITE_SECTIONS=" |
18 | .fixup ${RELOCATING-0} : { *(.fixup) } | |
19 | .got1 ${RELOCATING-0} : { *(.got1) } | |
20 | .got2 ${RELOCATING-0} : { *(.got2) } | |
21 | " | |
fdb9132d L |
22 | OTHER_GOT_RELOC_SECTIONS=" |
23 | .rela.got1 ${RELOCATING-0} : { *(.rela.got1) } | |
24 | .rela.got2 ${RELOCATING-0} : { *(.rela.got2) } | |
25 | " | |
eb3d6bb8 AM |
26 | |
27 | # Treat a host that matches the target with the possible exception of "64" | |
28 | # in the name as if it were native. | |
29 | if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then | |
9c8ebd6a DJ |
30 | case " $EMULATION_LIBPATH " in |
31 | *" ${EMULATION_NAME} "*) | |
32 | NATIVE=yes | |
33 | ;; | |
34 | esac | |
eb3d6bb8 | 35 | fi |
9c8ebd6a DJ |
36 | |
37 | # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first. | |
38 | case "$EMULATION_NAME" in | |
39 | *64*) LIBPATH_SUFFIX=64 ;; | |
40 | esac |