Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | SCRIPT_NAME=elf |
2 | ELFSIZE=64 | |
3 | TEMPLATE_NAME=elf32 | |
4 | OUTPUT_FORMAT="elf64-sparc" | |
252b5132 | 5 | MAXPAGESIZE=0x100000 |
2d20f7bf | 6 | COMMONPAGESIZE=0x2000 |
252b5132 RH |
7 | ARCH="sparc:v9" |
8 | MACHINE= | |
9 | DATA_PLT= | |
10 | GENERATE_SHLIB_SCRIPT=yes | |
11 | NOP=0x01000000 | |
48459341 | 12 | NO_SMALL_DATA=yes |
e76d716a | 13 | |
645571e1 JJ |
14 | case "$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 | ;; | |
23 | esac | |
24 | ||
f52d1d64 JJ |
25 | # Treat a host that matches the target with the possible exception of "64" |
26 | # and "v7", "v8", "v9" in the name as if it were native. | |
27 | if test `echo "$host" | sed -e 's/64//;s/v[789]//'` \ | |
28 | = `echo "$target" | sed -e 's/64//;s/v[789]//'`; then | |
e76d716a RH |
29 | case " $EMULATION_LIBPATH " in |
30 | *" ${EMULATION_NAME} "*) | |
f52d1d64 JJ |
31 | LIB_PATH=${libdir} |
32 | for lib in ${NATIVE_LIB_DIRS}; do | |
33 | case :${LIB_PATH}: in | |
34 | *:${lib}:*) ;; | |
35 | *) LIB_PATH=${LIB_PATH}:${lib} ;; | |
36 | esac | |
37 | done | |
e76d716a RH |
38 | |
39 | # Linux and Solaris modify the default library search path | |
40 | # to first include a 64-bit specific directory. It's put | |
41 | # in slightly different places on the two systems. | |
42 | case "$target" in | |
f52d1d64 JJ |
43 | sparc*-linux*) |
44 | suffix=64 ;; | |
45 | sparc*-solaris*) | |
46 | suffix=/sparcv9 ;; | |
e76d716a RH |
47 | esac |
48 | ||
f52d1d64 JJ |
49 | # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first |
50 | # on Linux and /lib/sparcv9, /usr/lib/sparcv9 etc. on Solaris. | |
51 | if [ -n "$suffix" ]; then | |
52 | case "$EMULATION_NAME" in | |
53 | *64*) | |
54 | LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,$suffix:,g`$LIB_PATH ;; | |
55 | esac | |
56 | fi ;; | |
e76d716a RH |
57 | esac |
58 | fi |