|
Last change
on this file since 607 was 10, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 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
|
|---|
| 11 |
|
|---|
| 12 | case "$target" in
|
|---|
| 13 | sparc*-solaris*)
|
|---|
| 14 | TEXT_START_ADDR=0x100000000
|
|---|
| 15 | NONPAGED_TEXT_START_ADDR=0x100000000
|
|---|
| 16 | ;;
|
|---|
| 17 | *)
|
|---|
| 18 | TEXT_START_ADDR=0x100000
|
|---|
| 19 | NONPAGED_TEXT_START_ADDR=0x100000
|
|---|
| 20 | ;;
|
|---|
| 21 | esac
|
|---|
| 22 |
|
|---|
| 23 | if [ "x${host}" = "x${target}" ]; then
|
|---|
| 24 | case " $EMULATION_LIBPATH " in
|
|---|
| 25 | *" ${EMULATION_NAME} "*)
|
|---|
| 26 | # Native, and default or emulation requesting LIB_PATH.
|
|---|
| 27 |
|
|---|
| 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
|
|---|
| 37 |
|
|---|
| 38 | if [ -n "${suffix}" ]; then
|
|---|
| 39 |
|
|---|
| 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}
|
|---|
| 44 | fi
|
|---|
| 45 | if [ "${libdir}" != /usr/lib ]; then
|
|---|
| 46 | LIB_PATH=${LIB_PATH}:${libdir}${suffix}:${libdir}
|
|---|
| 47 | fi
|
|---|
| 48 | if [ "${libdir}" != /usr/local/lib ]; then
|
|---|
| 49 | LIB_PATH=${LIB_PATH}:/usr/local/lib${suffix}:/usr/local/lib
|
|---|
| 50 | fi
|
|---|
| 51 |
|
|---|
| 52 | fi
|
|---|
| 53 | ;;
|
|---|
| 54 | esac
|
|---|
| 55 | fi
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.