~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to ld/emulparams/elf64_s390.sh

  • Committer: Bazaar Package Importer
  • Author(s): James Troup
  • Date: 2004-05-19 10:35:44 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040519103544-17h3o6e8pwndydrg
Tags: 2.14.90.0.7-8
debian/rules: don't use gcc-2.95 on m68k.  Thanks to Adam Conrad for
pointing this out.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SCRIPT_NAME=elf
 
2
ELFSIZE=64
 
3
OUTPUT_FORMAT="elf64-s390"
 
4
TEXT_START_ADDR=0x80000000
 
5
MAXPAGESIZE=0x1000
 
6
NONPAGED_TEXT_START_ADDR=0x80000000
 
7
ARCH="s390:64-bit"
 
8
MACHINE=
 
9
NOP=0x07070707
 
10
TEMPLATE_NAME=elf32
 
11
GENERATE_SHLIB_SCRIPT=yes 
 
12
GENERATE_PIE_SCRIPT=yes
 
13
 
 
14
# Treat a host that matches the target with the possible exception of "x"
 
15
# in the name as if it were native.
 
16
if test `echo "$host" | sed -e s/390x/390/` \
 
17
   = `echo "$target" | sed -e s/390x/390/`; then
 
18
  case " $EMULATION_LIBPATH " in
 
19
    *" ${EMULATION_NAME} "*)
 
20
      NATIVE=yes
 
21
  esac
 
22
fi
 
23
 
 
24
# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
 
25
# on Linux.
 
26
case "$target" in
 
27
  s390*-linux*)
 
28
    case "$EMULATION_NAME" in
 
29
      *64*)
 
30
        LIBPATH_SUFFIX=64 ;;
 
31
    esac
 
32
    ;;
 
33
esac