From c6f90868f62fd8872d2b2052092214d8d59a70d6 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 19 May 2006 06:10:03 +0000 Subject: [PATCH] * ld-scripts/empty-orphan.t: Discard .reginfo. * ld-scripts/empty-orphan.d: Update. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-scripts/empty-orphan.d | 9 ++++++++- ld/testsuite/ld-scripts/empty-orphan.t | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 8952691470c..336ef39da07 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-05-19 Alan Modra + + * ld-scripts/empty-orphan.t: Discard .reginfo. + * ld-scripts/empty-orphan.d: Update. + 2006-05-17 Thiemo Seufer * ld-elfweak/size2.d, ld-elfweak/size2a.s, ld-elfweak/size2b.s: diff --git a/ld/testsuite/ld-scripts/empty-orphan.d b/ld/testsuite/ld-scripts/empty-orphan.d index 1a48cac447d..7d0507d74f4 100644 --- a/ld/testsuite/ld-scripts/empty-orphan.d +++ b/ld/testsuite/ld-scripts/empty-orphan.d @@ -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 diff --git a/ld/testsuite/ld-scripts/empty-orphan.t b/ld/testsuite/ld-scripts/empty-orphan.t index efed7617df0..0f717a3f331 100644 --- a/ld/testsuite/ld-scripts/empty-orphan.t +++ b/ld/testsuite/ld-scripts/empty-orphan.t @@ -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 */ } -- 2.30.2