elf64_sparc.sh revision 104834
1SCRIPT_NAME=elf 2ELFSIZE=64 3TEMPLATE_NAME=elf32 4OUTPUT_FORMAT="elf64-sparc" 5MAXPAGESIZE=0x100000 6COMMONPAGESIZE=0x2000 7ARCH="sparc:v9" 8MACHINE= 9DATA_PLT= 10GENERATE_SHLIB_SCRIPT=yes 11NOP=0x01000000 12NO_SMALL_DATA=yes 13 14case "$target" in 15 sparc*-solaris*) 16 TEXT_START_ADDR=0x100000000 17 NONPAGED_TEXT_START_ADDR=0x100000000 18 ;; 19 *) 20 TEXT_START_ADDR=0x100000 21 NONPAGED_TEXT_START_ADDR=0x100000 22 ;; 23esac 24 25if [ "x${host}" = "x${target}" ]; then 26 case " $EMULATION_LIBPATH " in 27 *" ${EMULATION_NAME} "*) 28 # Native, and default or emulation requesting LIB_PATH. 29 30 # Linux and Solaris modify the default library search path 31 # to first include a 64-bit specific directory. It's put 32 # in slightly different places on the two systems. 33 case "$target" in 34 sparc*-linux*) 35 suffix=64 ;; 36 sparc*-solaris*) 37 suffix=/sparcv9 ;; 38 esac 39 40 if [ -n "${suffix}" ]; then 41 42 LIB_PATH=/lib${suffix}:/lib 43 LIB_PATH=${LIB_PATH}:/usr/lib${suffix}:/usr/lib 44 if [ -n "${NATIVE_LIB_DIRS}" ]; then 45 LIB_PATH=${LIB_PATH}:`echo ${NATIVE_LIB_DIRS} | sed s_:_${suffix}:_g`${suffix}:${NATIVE_LIB_DIRS} 46 fi 47 if [ "${libdir}" != /usr/lib ]; then 48 LIB_PATH=${LIB_PATH}:${libdir}${suffix}:${libdir} 49 fi 50 if [ "${libdir}" != /usr/local/lib ]; then 51 LIB_PATH=${LIB_PATH}:/usr/local/lib${suffix}:/usr/local/lib 52 fi 53 54 fi 55 ;; 56 esac 57fi 58