2001-01-03 Philip Blundell <pb@futuretv.com>
[binutils.git] / ld / emulparams / elf64_sparc.sh
blobb0a58eadcb7d34a6ef8bc107c02b02c0891b80d9
1 SCRIPT_NAME=elf
2 ELFSIZE=64
3 TEMPLATE_NAME=elf32
4 OUTPUT_FORMAT="elf64-sparc"
5 MAXPAGESIZE=0x100000
6 ARCH="sparc:v9"
7 MACHINE=
8 DATA_PLT=
9 GENERATE_SHLIB_SCRIPT=yes
10 NOP=0x01000000
12 case "$target" in
13 sparc*-solaris*)
14 TEXT_START_ADDR=0x100000000
15 NONPAGED_TEXT_START_ADDR=0x100000000
18 TEXT_START_ADDR=0x100000
19 NONPAGED_TEXT_START_ADDR=0x100000
21 esac
23 if [ "x${host}" = "x${target}" ]; then
24 case " $EMULATION_LIBPATH " in
25 *" ${EMULATION_NAME} "*)
26 # Native, and default or emulation requesting LIB_PATH.
28 # Linux and Solaris modify the default library search path
29 # to first include a 64-bit specific directory. It's put
30 # in slightly different places on the two systems.
31 case "$target" in
32 sparc*-linux*)
33 suffix=64 ;;
34 sparc*-solaris*)
35 suffix=/sparcv9 ;;
36 esac
38 if [ -n "${suffix}" ]; then
40 LIB_PATH=/lib${suffix}:/lib
41 LIB_PATH=${LIB_PATH}:/usr/lib${suffix}:/usr/lib
42 if [ -n "${NATIVE_LIB_DIRS}" ]; then
43 LIB_PATH=${LIB_PATH}:`echo ${NATIVE_LIB_DIRS} | sed s_:_${suffix}:_g`${suffix}:${NATIVE_LIB_DIRS}
45 if [ "${libdir}" != /usr/lib ]; then
46 LIB_PATH=${LIB_PATH}:${libdir}${suffix}:${libdir}
48 if [ "${libdir}" != /usr/local/lib ]; then
49 LIB_PATH=${LIB_PATH}:/usr/local/lib${suffix}:/usr/local/lib
54 esac