2002-10-16 Klee Dienes <kdienes@apple.com>
[deliverable/binutils-gdb.git] / ld / emulparams / elf64_sparc.sh
CommitLineData
252b5132
RH
1SCRIPT_NAME=elf
2ELFSIZE=64
3TEMPLATE_NAME=elf32
4OUTPUT_FORMAT="elf64-sparc"
252b5132 5MAXPAGESIZE=0x100000
2d20f7bf 6COMMONPAGESIZE=0x2000
252b5132
RH
7ARCH="sparc:v9"
8MACHINE=
9DATA_PLT=
10GENERATE_SHLIB_SCRIPT=yes
11NOP=0x01000000
48459341 12NO_SMALL_DATA=yes
e76d716a 13
645571e1
JJ
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
e76d716a
RH
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
645571e1 45 LIB_PATH=${LIB_PATH}:`echo ${NATIVE_LIB_DIRS} | sed s_:_${suffix}:_g`${suffix}:${NATIVE_LIB_DIRS}
e76d716a
RH
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
This page took 0.212851 seconds and 4 git commands to generate.