daily update
[deliverable/binutils-gdb.git] / ld / emulparams / elf64_sparc.sh
CommitLineData
252b5132
RH
1SCRIPT_NAME=elf
2ELFSIZE=64
3TEMPLATE_NAME=elf32
4OUTPUT_FORMAT="elf64-sparc"
24718e3b
L
5MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
6COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
252b5132
RH
7ARCH="sparc:v9"
8MACHINE=
9DATA_PLT=
10GENERATE_SHLIB_SCRIPT=yes
36af4a4e 11GENERATE_PIE_SCRIPT=yes
252b5132 12NOP=0x01000000
48459341 13NO_SMALL_DATA=yes
e76d716a 14
645571e1
JJ
15case "$target" in
16 sparc*-solaris*)
17 TEXT_START_ADDR=0x100000000
645571e1
JJ
18 ;;
19 *)
20 TEXT_START_ADDR=0x100000
645571e1
JJ
21 ;;
22esac
23
f52d1d64
JJ
24# Treat a host that matches the target with the possible exception of "64"
25# and "v7", "v8", "v9" in the name as if it were native.
26if test `echo "$host" | sed -e 's/64//;s/v[789]//'` \
27 = `echo "$target" | sed -e 's/64//;s/v[789]//'`; then
e76d716a
RH
28 case " $EMULATION_LIBPATH " in
29 *" ${EMULATION_NAME} "*)
9c8ebd6a
DJ
30 NATIVE=yes
31 ;;
e76d716a
RH
32 esac
33fi
9c8ebd6a
DJ
34
35# Linux and Solaris modify the default library search path
36# to first include a 64-bit specific directory. It's put
37# in slightly different places on the two systems.
38# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
39# on Linux and /lib/sparcv9, /usr/lib/sparcv9 etc. on Solaris.
40case "$EMULATION_NAME" in
41 *64*)
42 case "$target" in
43 sparc*-linux*)
cad91d28 44 LIBPATH_SUFFIX=64 ;;
9c8ebd6a 45 sparc*-solaris*)
cad91d28 46 LIBPATH_SUFFIX=/sparcv9 ;;
9c8ebd6a
DJ
47 esac
48 ;;
49esac
This page took 0.37043 seconds and 4 git commands to generate.