~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/ld/emulparams/elf64_s390.sh

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

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
NO_REL_RELOCS=yes
 
5
TEXT_START_ADDR=0x80000000
 
6
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 
7
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 
8
ARCH="s390:64-bit"
 
9
MACHINE=
 
10
NOP=0x07070707
 
11
TEMPLATE_NAME=elf32
 
12
GENERATE_SHLIB_SCRIPT=yes
 
13
GENERATE_PIE_SCRIPT=yes
 
14
NO_SMALL_DATA=yes
 
15
IREL_IN_PLT=
 
16
 
 
17
# Treat a host that matches the target with the possible exception of "x"
 
18
# in the name as if it were native.
 
19
if test `echo "$host" | sed -e s/390x/390/` \
 
20
   = `echo "$target" | sed -e s/390x/390/`; then
 
21
  case " $EMULATION_LIBPATH " in
 
22
    *" ${EMULATION_NAME} "*)
 
23
      NATIVE=yes
 
24
  esac
 
25
fi
 
26
 
 
27
# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
 
28
# on Linux.
 
29
case "$target" in
 
30
  s390*-linux*)
 
31
    case "$EMULATION_NAME" in
 
32
      *64*)
 
33
        LIBPATH_SUFFIX=64 ;;
 
34
    esac
 
35
    ;;
 
36
esac