elf64_s390.sh revision 130561
1262569SimpSCRIPT_NAME=elf 2262569SimpELFSIZE=64 3262569SimpOUTPUT_FORMAT="elf64-s390" 4262569SimpTEXT_START_ADDR=0x80000000 5262569SimpMAXPAGESIZE=0x1000 6262569SimpNONPAGED_TEXT_START_ADDR=0x80000000 7262569SimpARCH="s390:64-bit" 8262569SimpMACHINE= 9262569SimpNOP=0x07070707 10262569SimpTEMPLATE_NAME=elf32 11262569SimpGENERATE_SHLIB_SCRIPT=yes 12262569SimpGENERATE_PIE_SCRIPT=yes 13262569SimpNO_SMALL_DATA=yes 14262569Simp 15262569Simp# Treat a host that matches the target with the possible exception of "x" 16262569Simp# in the name as if it were native. 17262569Simpif test `echo "$host" | sed -e s/390x/390/` \ 18262569Simp = `echo "$target" | sed -e s/390x/390/`; then 19262569Simp case " $EMULATION_LIBPATH " in 20262569Simp *" ${EMULATION_NAME} "*) 21262569Simp NATIVE=yes 22262569Simp esac 23262569Simpfi 24262569Simp 25262569Simp# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first 26262569Simp# on Linux. 27262569Simpcase "$target" in 28262569Simp s390*-linux*) 29262569Simp case "$EMULATION_NAME" in 30262569Simp *64*) 31262569Simp LIBPATH_SUFFIX=64 ;; 32262569Simp esac 33262569Simp ;; 34262569Simpesac 35262569Simp