file as.info-7 was initially added on branch binutils-2_10-branch.
[binutils.git] / ld / emulparams / elf64_sparc.sh
blob2ab2e4fabb9dfa306d9f9fd785671a81bddb5ae3
1 SCRIPT_NAME=elf
2 ELFSIZE=64
3 TEMPLATE_NAME=elf32
4 OUTPUT_FORMAT="elf64-sparc"
5 TEXT_START_ADDR=0x100000
6 MAXPAGESIZE=0x100000
7 NONPAGED_TEXT_START_ADDR=0x100000
8 ARCH="sparc:v9"
9 MACHINE=
10 DATA_PLT=
11 GENERATE_SHLIB_SCRIPT=yes
12 NOP=0x01000000
14 if [ "x${host}" = "x${target}" ]; then
15 case " $EMULATION_LIBPATH " in
16 *" ${EMULATION_NAME} "*)
17 # Native, and default or emulation requesting LIB_PATH.
19 # Linux and Solaris modify the default library search path
20 # to first include a 64-bit specific directory. It's put
21 # in slightly different places on the two systems.
22 case "$target" in
23 sparc*-linux*)
24 suffix=64 ;;
25 sparc*-solaris*)
26 suffix=/sparcv9 ;;
27 esac
29 if [ -n "${suffix}" ]; then
31 LIB_PATH=/lib${suffix}:/lib
32 LIB_PATH=${LIB_PATH}:/usr/lib${suffix}:/usr/lib
33 if [ -n "${NATIVE_LIB_DIRS}" ]; then
34 LIB_PATH=${LIB_PATH}:`echo ${NATIVE_LIB_DIRS} | sed s/:/${suffix}:/g`${suffix}:${NATIVE_LIB_DIRS}
36 if [ "${libdir}" != /usr/lib ]; then
37 LIB_PATH=${LIB_PATH}:${libdir}${suffix}:${libdir}
39 if [ "${libdir}" != /usr/local/lib ]; then
40 LIB_PATH=${LIB_PATH}:/usr/local/lib${suffix}:/usr/local/lib
45 esac