* ld-scripts/phdrs.exp: Fix regexp, s390x is 64 bit platform.
authorAndreas Jaeger <aj@suse.de>
Tue, 1 May 2001 08:07:35 +0000 (08:07 +0000)
committerAndreas Jaeger <aj@suse.de>
Tue, 1 May 2001 08:07:35 +0000 (08:07 +0000)
        * ld-scripts/phdrs.t: Use startaddress that's greater than any
        MAXPAGESIZE used.

ld/testsuite/ChangeLog
ld/testsuite/ld-scripts/phdrs.exp
ld/testsuite/ld-scripts/phdrs.t

index f0e15ed1e23feb54c37de3cf2045aaa557243342..665b3cea7f514813af3806f19b425dc25c345290 100644 (file)
@@ -1,3 +1,10 @@
+2001-05-01  Andreas Jaeger  <aj@suse.de>, Andreas Schwab <schwab@suse.de>
+
+       * ld-scripts/phdrs.exp: Fix regexp, s390x is 64 bit platform.
+
+       * ld-scripts/phdrs.t: Use startaddress that's greater than any
+       MAXPAGESIZE used.
+
 2001-04-29  H.J. Lu  <hjl@gnu.org>
 
        * ld-shared/symbolic.dat: New.
index f0bc1ad5489b55db827b8f10fba275fc4f962914..fe06d1418802f9952cbcc97e786fae69e45ca58e 100644 (file)
@@ -7,12 +7,12 @@
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
-# 
+#
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -44,13 +44,14 @@ if ![ld_assemble $as $srcdir/$subdir/phdrs.s tmpdir/phdrs.o] {
 }
 
 set phdrs_regexp \
-".*Program Header:.*PHDR *off *0x00*34 *vaddr *0x00*80034 *paddr *0x00*80034.*filesz *0x0\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* flags r--.*LOAD *off *0x00* *vaddr *0x00*80000 *paddr *0x00*80000.*filesz *0x00*\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* *flags r-x.*LOAD *off *0x0\[0-9a-f\]* *vaddr *0x00*80*\[0-9a-f\]* *paddr *0x00*80*\[0-9a-f\]*.*filesz *0x0\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* *flags *rw-.*"
+".*Program Header:.*PHDR *off *0x00*34 *vaddr *0x00*800034 *paddr *0x00*800034.*filesz *0x0\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* flags r--.*LOAD *off *0x00* *vaddr *0x00*800000 *paddr *0x00*800000.*filesz *0x00*\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* *flags r-x.*LOAD *off *0x0\[0-9a-f\]* *vaddr *0x00*80*\[0-9a-f\]* *paddr *0x00*80*\[0-9a-f\]*.*filesz *0x0\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* *flags *rw-.*"
 
 # On a 64 bit ELF format, we need different numbers.
 if { [istarget alpha*-*-*] || [istarget "ia64*-*-*"]
-    || [istarget "hppa*64*-*-*"] || [istarget "x86_64*-*-*"] } then {
+    || [istarget "hppa*64*-*-*"] || [istarget "x86_64*-*-*"]
+    || [istarget "s390x*-*-*"]} then {
   set phdrs_regexp \
-".*Program Header:.*PHDR *off *0x00*40 *vaddr *0x00*80040 *paddr *0x00*80040.*filesz *0x0\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* flags r--.*LOAD *off *0x00* *vaddr *0x00*80000 *paddr *0x00*80000.*filesz *0x00*\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* *flags r-x.*LOAD *off *0x0\[0-9a-f\]* *vaddr *0x00*80*\[0-9a-f\]* *paddr *0x00*80*\[0-9a-f\]*.*filesz *0x0\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* *flags *rw-.*"
+".*Program Header:.*PHDR *off *0x00*40 *vaddr *0x00*800040 *paddr *0x00*800040.*filesz *0x0\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* flags r--.*LOAD *off *0x00* *vaddr *0x00*800000 *paddr *0x00*800000.*filesz *0x00*\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* *flags r-x.*LOAD *off *0x0\[0-9a-f\]* *vaddr *0x00*80*\[0-9a-f\]* *paddr *0x00*80*\[0-9a-f\]*.*filesz *0x0\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* *flags *rw-.*"
 }
 
 if ![ld_simple_link $ld tmpdir/phdrs "-T $srcdir/$subdir/phdrs.t tmpdir/phdrs.o"] {
index 243dfb10bc3c31991058b74dc585c2c84c1bc3b9..283e30c6799af1cab7b755842419ea5bf959f1eb 100644 (file)
@@ -7,7 +7,9 @@ PHDRS
 
 SECTIONS
 {
-  . = 0x80000 + SIZEOF_HEADERS;
+  /* This test will fail on architectures where the startaddress below
+     is less than the constant MAXPAGESIZE.  */
+  . = 0x800000 + SIZEOF_HEADERS;
   .text : { *(.text) } :text
   .data : { *(.data) } :data
   /DISCARD/ : { *(.*) }
This page took 0.029703 seconds and 4 git commands to generate.