PR ld/10569
authorAlan Modra <amodra@gmail.com>
Sun, 30 Aug 2009 05:48:56 +0000 (05:48 +0000)
committerAlan Modra <amodra@gmail.com>
Sun, 30 Aug 2009 05:48:56 +0000 (05:48 +0000)
* ld-elf/commonpage2.d: New.
* ld-elf/maxpage4.d: Likewise.
* ld-elf/maxpage4.t: Likewise.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/commonpage2.d [new file with mode: 0644]
ld/testsuite/ld-elf/maxpage4.d [new file with mode: 0644]
ld/testsuite/ld-elf/maxpage4.t [new file with mode: 0644]

index aafb869f9022dc27c0f10c294244a14c8a479e9b..98268e80c5265e3f6258f61b94687d80810cd9ce 100644 (file)
@@ -1,3 +1,10 @@
+2009-08-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/10569
+       * ld-elf/commonpage2.d: New.
+       * ld-elf/maxpage4.d: Likewise.
+       * ld-elf/maxpage4.t: Likewise.
+
 2009-08-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
 
        * ld-m68k/tls-def-1.s: New file.
diff --git a/ld/testsuite/ld-elf/commonpage2.d b/ld/testsuite/ld-elf/commonpage2.d
new file mode 100644 (file)
index 0000000..e4d582b
--- /dev/null
@@ -0,0 +1,9 @@
+#source: maxpage1.s
+#as: --32
+#ld: -z max-page-size=0x200000 -z common-page-size=0x100000 -T maxpage4.t
+#readelf: -l --wide
+#target: x86_64-*-linux*
+
+#...
+  LOAD+.*0x200000
+#pass
diff --git a/ld/testsuite/ld-elf/maxpage4.d b/ld/testsuite/ld-elf/maxpage4.d
new file mode 100644 (file)
index 0000000..a7cc17b
--- /dev/null
@@ -0,0 +1,9 @@
+#source: maxpage1.s
+#as: --32
+#ld: -z max-page-size=0x200000 -T maxpage4.t
+#readelf: -l --wide
+#target: x86_64-*-linux*
+
+#...
+  LOAD+.*0x200000
+#pass
diff --git a/ld/testsuite/ld-elf/maxpage4.t b/ld/testsuite/ld-elf/maxpage4.t
new file mode 100644 (file)
index 0000000..42089e3
--- /dev/null
@@ -0,0 +1,9 @@
+OUTPUT_FORMAT("elf32-i386")
+OUTPUT_ARCH(i386)
+ENTRY(_start)
+SECTIONS
+{
+  .text : {*(.text)}
+  .data : {*(.data)}
+  /DISCARD/ : {*(*)}
+}