aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>2016-09-23 11:26:05 +0200
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2016-09-23 11:26:05 +0200
commit7c4236c3505d8dca3c6d9c2bc61145fa759bf4ce (patch)
tree13a3ad74cc2a16e6a64ab6807e80940364c3ab3a /ld
parent27b5c3d96d45b0010d1bf4ef9f47b6d4ec0363c0 (diff)
downloadfsf-binutils-gdb-7c4236c3505d8dca3c6d9c2bc61145fa759bf4ce.zip
fsf-binutils-gdb-7c4236c3505d8dca3c6d9c2bc61145fa759bf4ce.tar.gz
fsf-binutils-gdb-7c4236c3505d8dca3c6d9c2bc61145fa759bf4ce.tar.bz2
S/390: Move start of 64 bit binaries from 2GB to 256MB.
ld/ChangeLog: 2016-09-23 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * emulparams/elf64_s390.sh: Change TEXT_START_ADDR to 256MB. * testsuite/ld-s390/tlsbin_64.dd: Adjust testcase accordingly. * testsuite/ld-s390/tlsbin_64.rd: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/emulparams/elf64_s390.sh2
-rw-r--r--ld/testsuite/ld-s390/tlsbin_64.dd3
-rw-r--r--ld/testsuite/ld-s390/tlsbin_64.rd4
4 files changed, 11 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0966116..ee43d40 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2016-09-23 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+
+ * emulparams/elf64_s390.sh: Change TEXT_START_ADDR to 256MB.
+ * testsuite/ld-s390/tlsbin_64.dd: Adjust testcase accordingly.
+ * testsuite/ld-s390/tlsbin_64.rd: Likewise.
+
2016-09-22 Nick Clifton <nickc@redhat.com>
* emultempl/elf32.em (_try_needed): In verbose mode, report failed
diff --git a/ld/emulparams/elf64_s390.sh b/ld/emulparams/elf64_s390.sh
index 98db3d3..3fcbbca 100644
--- a/ld/emulparams/elf64_s390.sh
+++ b/ld/emulparams/elf64_s390.sh
@@ -2,7 +2,7 @@ SCRIPT_NAME=elf
ELFSIZE=64
OUTPUT_FORMAT="elf64-s390"
NO_REL_RELOCS=yes
-TEXT_START_ADDR=0x80000000
+TEXT_START_ADDR=0x10000000
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ARCH="s390:64-bit"
diff --git a/ld/testsuite/ld-s390/tlsbin_64.dd b/ld/testsuite/ld-s390/tlsbin_64.dd
index c5c3ba0..66e4d11 100644
--- a/ld/testsuite/ld-s390/tlsbin_64.dd
+++ b/ld/testsuite/ld-s390/tlsbin_64.dd
@@ -177,7 +177,8 @@ Disassembly of section .text:
+[0-9a-f]+: a7 d5 00 16 bras %r13,[0-9a-f]+ <_start\+0x30>
# sG6@indntpoff
+[0-9a-f]+: 00 00 00 00 .long 0x00000000
- +[0-9a-f]+: 80 00 [0-9a-f ]+ ssm [0-9]+\(%r1\)
+ +[0-9a-f]+: 10 00 lpr %r0,%r0
+ +[0-9a-f]+: [0-9a-f ]+ lr %r9,%r8
# bg6@indntpoff
+[0-9a-f]+: ff ff ff ff .long 0xffffffff
+[0-9a-f]+: ff ff ff d4 .long 0xffffffd4
diff --git a/ld/testsuite/ld-s390/tlsbin_64.rd b/ld/testsuite/ld-s390/tlsbin_64.rd
index f7caa16..4aee7ec 100644
--- a/ld/testsuite/ld-s390/tlsbin_64.rd
+++ b/ld/testsuite/ld-s390/tlsbin_64.rd
@@ -34,8 +34,8 @@ There are [0-9]+ program headers, starting at offset [0-9]+
Program Headers:
+Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align
- +PHDR +0x0+40 0x0+80000040 0x0+80000040 0x0+150 0x0+150 R E 0x8
- +INTERP +0x0+190 0x0+80000190 0x0+80000190 0x0+f 0x0+f R +0x1
+ +PHDR +0x0+40 0x0+10000040 0x0+10000040 0x0+150 0x0+150 R E 0x8
+ +INTERP +0x0+190 0x0+10000190 0x0+10000190 0x0+f 0x0+f R +0x1
.*Requesting program interpreter.*
+LOAD .* R E 0x1000
+LOAD .* RW +0x1000