PR ld/10744
* ld-scripts/phdrs3.exp: Run phdrs3a.
* ld-scripts/phdrs3a.d: New.
* ld-scripts/phdrs3a.t: Likewise.
+2009-10-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/10744
+ * ld-scripts/phdrs3.exp: Run phdrs3a.
+
+ * ld-scripts/phdrs3a.d: New.
+ * ld-scripts/phdrs3a.t: Likewise.
+
2009-10-08 Alan Modra <amodra@bigpond.net.au>
PR ld/10744
}
run_dump_test "phdrs3"
+run_dump_test "phdrs3a"
set LDFLAGS $old_ldflags
--- /dev/null
+#name: PHDRS headers 3a
+#source: phdrs.s
+#ld: -T phdrs3a.t
+#readelf: -l --wide
+
+#...
+[ \t]+LOAD[ x0-9a-f]+ R [ x0-9a-f]+
+[ \t]+LOAD[ x0-9a-f]+ E [ x0-9a-f]+
+#pass
--- /dev/null
+PHDRS
+{
+ data PT_LOAD FILEHDR PHDRS FLAGS(4);
+ text PT_LOAD FILEHDR PHDRS FLAGS(1);
+}
+
+SECTIONS
+{
+ /* 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/ : { *(.*) }
+}