Fix the test for PR 18963 so that it will work on 16-bit targets.
authorStephen Casner <casner@acm.org>
Fri, 17 Apr 2020 13:16:27 +0000 (14:16 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 17 Apr 2020 13:16:27 +0000 (14:16 +0100)
PR 18963
* testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
16-bit address space.
* testsuite/ld-scripts/pr18963.d: Likewise.

ld/ChangeLog
ld/testsuite/ld-scripts/pr18963.d
ld/testsuite/ld-scripts/pr18963.t

index 095748b0d6084d0387ecc07f8b0623c04423448d..5b5ba5229d1d3a0e76c6043a6f46b0014bcf0804 100644 (file)
@@ -1,3 +1,10 @@
+2020-04-16  Stephen Casner  <casner@acm.org>
+
+       PR 18963
+       * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
+       16-bit address space.
+       * testsuite/ld-scripts/pr18963.d: Likewise.
+
 2020-04-17  Juan Manuel Guerrero  <juan.guerrero@gmx.de>
             Jan W. Jagersma  <jwjagersma@gmail.com>
 
index 699db594ac3a5f12239cc2c38ade55c18a85a695..875fe136ad732a865b2d2a21969140d68e619fcc 100644 (file)
@@ -1,15 +1,19 @@
 # source: data.s
 # ld: -T pr18963.t
 # nm: -B -n
+# notarget: *-*-aix* *-*-vms
+# Skip on AIX targets because they require non-empty sections.
+# Plus skip for VMS based targets as the linker automatically adds extra libraries that may not be present in a cross build.
+# 64-bit Cygwin targets always start their sections at 0x200000000 which is why the regexps include a 2.
 
 #...
-0+70000 A D
+0+700 A D
 #...
-0+70000 A E
+0+700 A E
 #...
-0+80000 T A
+[02]+800 T A
 #...
-0+90000 T B
+[02]+900 T B
 #...
-0+a0000 D C
+[02]+a00 D C
 #pass
index 830ded78dd916d6f505e1909f8faaef8ca25b4c0..be0c61de0acd9b7547800e63c44a3b0696b49077 100644 (file)
@@ -1,24 +1,24 @@
 SECTIONS
 {
-  . = 0x80000;
+  . = 0x800;
   A = .;
   .text :
   {
     _start = .;
     *(.text)
-    . = 0x10000;
+    . = 0x100;
   }
   B = .;
   .data :
   {
     *(.data)
-    . = 0x10000;
+    . = 0x100;
   }
   C = .;
   .bss :
   {
     *(.bss)
-    . = 0x10000;
+    . = 0x100;
   }
   D = A - C + B;
   E = A + B - C;
This page took 0.026746 seconds and 4 git commands to generate.