Commit | Line | Data |
---|---|---|
a85d7ed0 NC |
1 | SCRIPT_NAME=elf |
2 | ELFSIZE=64 | |
3 | OUTPUT_FORMAT="elf64-s390" | |
4 | TEXT_START_ADDR=0x80000000 | |
5 | MAXPAGESIZE=0x1000 | |
6 | NONPAGED_TEXT_START_ADDR=0x80000000 | |
d86bcc10 | 7 | ARCH="s390:64-bit" |
a85d7ed0 | 8 | MACHINE= |
563e308f | 9 | NOP=0x07070707 |
a85d7ed0 NC |
10 | TEMPLATE_NAME=elf32 |
11 | GENERATE_SHLIB_SCRIPT=yes | |
36af4a4e | 12 | GENERATE_PIE_SCRIPT=yes |
f52d1d64 JJ |
13 | |
14 | # Treat a host that matches the target with the possible exception of "x" | |
15 | # in the name as if it were native. | |
16 | if test `echo "$host" | sed -e s/390x/390/` \ | |
17 | = `echo "$target" | sed -e s/390x/390/`; then | |
18 | case " $EMULATION_LIBPATH " in | |
19 | *" ${EMULATION_NAME} "*) | |
9c8ebd6a | 20 | NATIVE=yes |
f52d1d64 JJ |
21 | esac |
22 | fi | |
9c8ebd6a DJ |
23 | |
24 | # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first | |
25 | # on Linux. | |
26 | case "$target" in | |
27 | s390*-linux*) | |
28 | case "$EMULATION_NAME" in | |
29 | *64*) | |
cad91d28 | 30 | LIBPATH_SUFFIX=64 ;; |
9c8ebd6a DJ |
31 | esac |
32 | ;; | |
33 | esac |