source: trunk/binutils/ld/emulparams/elf64_sparc.sh

Last change on this file was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1SCRIPT_NAME=elf
2ELFSIZE=64
3TEMPLATE_NAME=elf32
4OUTPUT_FORMAT="elf64-sparc"
5MAXPAGESIZE=0x100000
6COMMONPAGESIZE=0x2000
7ARCH="sparc:v9"
8MACHINE=
9DATA_PLT=
10GENERATE_SHLIB_SCRIPT=yes
11NOP=0x01000000
12NO_SMALL_DATA=yes
13
14case "$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 ;;
23esac
24
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.
27if test `echo "$host" | sed -e 's/64//;s/v[789]//'` \
28 = `echo "$target" | sed -e 's/64//;s/v[789]//'`; then
29 case " $EMULATION_LIBPATH " in
30 *" ${EMULATION_NAME} "*)
31 NATIVE=yes
32 ;;
33 esac
34fi
35
36# Linux and Solaris modify the default library search path
37# to first include a 64-bit specific directory. It's put
38# in slightly different places on the two systems.
39# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
40# on Linux and /lib/sparcv9, /usr/lib/sparcv9 etc. on Solaris.
41case "$EMULATION_NAME" in
42 *64*)
43 case "$target" in
44 sparc*-linux*)
45 LIBPATH_SUFFIX=64 ;;
46 sparc*-solaris*)
47 LIBPATH_SUFFIX=/sparcv9 ;;
48 esac
49 ;;
50esac
Note: See TracBrowser for help on using the repository browser.