* ld-elf/seg.d: New.
* ld-elf/seg.s: New.
+2007-12-19 Nathan Sidwell <nathan@codesourcery.com>
+
+ * ld-elf/seg.t: New.
+ * ld-elf/seg.d: New.
+ * ld-elf/seg.s: New.
+
2007-12-15 Alan Modra <amodra@bigpond.net.au>
* ld-scripts/rgn-over.exp: Add --no-overlays for spu.
--- /dev/null
+#source: seg.s
+#ld: -T seg.t -z max-page-size=0x1000
+#readelf: -l --wide
+
+#...
+Program Headers:
+ Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
+ LOAD .*
+ LOAD 0x0*001000 0xf*fffff000 0xf*fffff000 0x01000 0x01000 .*
+
+ Section to Segment mapping:
+ Segment Sections...
+ 00 .*
+ 01 reset boot
--- /dev/null
+ .section boot,"ax"
+ .4byte 0x76543210
+ .section reset,"ax"
+ .4byte 0xfedcba98
+ .text
+ .4byte 0x12345678
--- /dev/null
+
+SECTIONS
+{
+ reset - 4 :
+ {
+ *(reset)
+ }
+ boot - 0x1000 :
+ {
+ *(boot)
+ } = 0xffff
+ . = + SIZEOF_HEADERS;
+ .text : { *(.text) }
+ .data : { *(.data) }
+ .bss : { *(.bss) }
+}