* ld-scripts/empty-orphan.t: Discard .reginfo.
authorAlan Modra <amodra@gmail.com>
Fri, 19 May 2006 06:10:03 +0000 (06:10 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 19 May 2006 06:10:03 +0000 (06:10 +0000)
* ld-scripts/empty-orphan.d: Update.

ld/testsuite/ChangeLog
ld/testsuite/ld-scripts/empty-orphan.d
ld/testsuite/ld-scripts/empty-orphan.t

index 8952691470c202bb98f6368837203f461a211532..336ef39da07bb9ebd798ef5c643e16b8c9b485a8 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-19  Alan Modra  <amodra@bigpond.net.au>
+
+       * ld-scripts/empty-orphan.t: Discard .reginfo.
+       * ld-scripts/empty-orphan.d: Update.
+
 2006-05-17  Thiemo Seufer  <ths@mips.com>
 
        * ld-elfweak/size2.d, ld-elfweak/size2a.s, ld-elfweak/size2b.s:
index 1a48cac447d097ac7301ffcde752da7054980a58..7d0507d74f429223629eb8f43e4b53abdbdf982f 100644 (file)
@@ -1,3 +1,10 @@
 #source: empty-orphan.s
 #ld: -T empty-orphan.t
-#error: no memory region specified for loadable section
+#readelf: -l --wide
+#...
+Program Headers:
+ +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg +Align
+ +LOAD +[x0-9a-f]+ 0x0+ 0x0+ 0x0+ 0x0+ .*
+ +LOAD +[x0-9a-f]+ 0x0+ 0x0+ 0x0+ 0x0+ .*
+ +LOAD +[x0-9a-f]+ [x0]+70000000 [x0]+70000000 [x0]+(2|4|8|10|20|40|80) .*
+#pass
index efed7617df0faf11f56ed610462a4eaf325cf3e6..0f717a3f3312e4f73efeaa66359c59dadb3869f7 100644 (file)
@@ -17,5 +17,6 @@ SECTIONS
    .text : { *(.text) } > text_mem : text_phdr
    .data : { *(.data) } > data_mem : data_phdr
    .bss : { *(.bss) } > data_mem : data_phdr
+   /DISCARD/ : { *(.reginfo) }
    /* .orphan_data is an orphan */
 }