New tests.
authorAlan Modra <amodra@gmail.com>
Tue, 29 Aug 2006 01:24:17 +0000 (01:24 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 29 Aug 2006 01:24:17 +0000 (01:24 +0000)
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/loadaddr3.t [new file with mode: 0644]
ld/testsuite/ld-elf/loadaddr3a.d [new file with mode: 0644]
ld/testsuite/ld-elf/loadaddr3b.d [new file with mode: 0644]

index d3cd2d2e0eefe3b3de1c6a56fc957f562b519342..0f948f02a8e0050d223f3496c871c55f4baff593 100644 (file)
@@ -1,3 +1,15 @@
+2006-08-29  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * ld-elf/loadaddr3.t: New.
+       * ld-elf/loadaddr3a.d: New.
+       * ld-elf/loadaddr3b.d: New.
+
+2006-08-23  Alan Modra  <amodra@bigpond.net.au>
+
+       * ld-powerpc/plt1.s: New.
+       * ld-powerpc/plt1.d: New.
+       * ld-powerpc/powerpc.exp: Run it.
+
 2006-08-23  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/3052
diff --git a/ld/testsuite/ld-elf/loadaddr3.t b/ld/testsuite/ld-elf/loadaddr3.t
new file mode 100644 (file)
index 0000000..789f61e
--- /dev/null
@@ -0,0 +1,16 @@
+
+MEMORY
+{
+  rom (rx) : ORIGIN = 0x100, LENGTH = 0x100
+  ram (rwx) : ORIGIN = 0x200, LENGTH = 0x100
+
+}
+
+SECTIONS
+{
+  .text : {*(.text .text.*)} >rom
+  .data : {data_load = LOADADDR (.data);
+          data_start = ADDR (.data);
+          *(.data .data.*)} >ram AT>rom
+  /DISCARD/ : { *(.*) }
+}
diff --git a/ld/testsuite/ld-elf/loadaddr3a.d b/ld/testsuite/ld-elf/loadaddr3a.d
new file mode 100644 (file)
index 0000000..395f286
--- /dev/null
@@ -0,0 +1,9 @@
+#source: loadaddr.s
+#ld: -T loadaddr3.t -z max-page-size=0x200000
+#readelf: -l --wide
+#target: *-*-elf*
+
+#...
+  LOAD +0x000000 0x0*00000000 0x0*00000000 0x0*0101 0x0*0101 R E 0x.*
+  LOAD +0x000200 0x0*00000200 0x0*00000101 0x0*0001 0x0*0001 RW  0x.*
+#pass
diff --git a/ld/testsuite/ld-elf/loadaddr3b.d b/ld/testsuite/ld-elf/loadaddr3b.d
new file mode 100644 (file)
index 0000000..9096721
--- /dev/null
@@ -0,0 +1,13 @@
+#source: loadaddr.s
+#ld: -T loadaddr3.t -z max-page-size=0x200000
+#objdump: -t
+#target: *-*-elf*
+
+#...
+0+0000100 l    d  .text        0+0000000 .text
+0+0000200 l    d  .data        0+0000000 .data
+#...
+0+0000101 g       \*ABS\*      0+0000000 data_load
+#...
+0+0000200 g       .data        0+0000000 data_start
+#pass