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 | ||
e76d716a RH |
25 | if [ "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 | |
57 | fi |