elf64_s390.sh revision 107492
1SCRIPT_NAME=elf
2ELFSIZE=64
3OUTPUT_FORMAT="elf64-s390"
4TEXT_START_ADDR=0x80000000
5MAXPAGESIZE=0x1000
6NONPAGED_TEXT_START_ADDR=0x80000000
7ARCH="s390:64-bit"
8MACHINE=
9NOP=0x07070707
10TEMPLATE_NAME=elf32
11GENERATE_SHLIB_SCRIPT=yes 
12
13# Treat a host that matches the target with the possible exception of "x"
14# in the name as if it were native.
15if test `echo "$host" | sed -e s/390x/390/` \
16   = `echo "$target" | sed -e s/390x/390/`; then
17  case " $EMULATION_LIBPATH " in
18    *" ${EMULATION_NAME} "*)
19      LIB_PATH=${libdir}
20      for lib in ${NATIVE_LIB_DIRS}; do
21	case :${LIB_PATH}: in
22	  *:${lib}:*) ;;
23	  *) LIB_PATH=${LIB_PATH}:${lib} ;;
24	esac
25      done
26
27      case "$target" in
28	s390*-linux*)
29	  suffix=64 ;;
30      esac
31
32      # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
33      # on Linux.
34      if [ -n "$suffix" ]; then
35	case "$EMULATION_NAME" in
36	  *64*)
37	    LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,$suffix:,g`$LIB_PATH ;;
38	esac
39      fi ;;
40  esac
41fi
42