* binutils-all/objcopy.exp: Run it.
+2010-02-18 Alan Modra <amodra@gmail.com>
+
+ * binutils-all/group-5.s, * binutils-all/group-5.d: New test.
+ * binutils-all/objcopy.exp: Run it.
+
2010-02-01 Nathan Sidwell <nathan@codesourcery.com>
* binutils-all/note-1.d: New.
--- /dev/null
+#PROG: objcopy
+#readelf: -Sg --wide
+#objcopy: --remove-section .dropme
+#name: copy removing group member
+
+#readelf: -Sg --wide
+
+#...
+ \[[ 0-9]+\] foo_group[ \t]+GROUP[ \t]+.*
+#...
+ \[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AXG.*
+#...
+ \[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG.*
+#...
+COMDAT group section \[[ 0-9]+\] `foo_group' \[foo_group\] contains 2 sections:
+ \[Index\] Name
+ \[[ 0-9]+\] .text.*
+ \[[ 0-9]+\] .data.*
+#pass
--- /dev/null
+ .section .text.foo,"axG",%progbits,foo_group,comdat
+ .global foo
+foo:
+ .word 0
+
+ .section .data.foo,"awG",%progbits,foo_group,comdat
+ .global bar
+bar:
+ .word 1
+
+ .section .dropme,"G",%progbits,foo_group,comdat
+ .word 2
objcopy_test_readelf "ELF group" group-2.s
objcopy_test_readelf "ELF group" group-3.s
objcopy_test_readelf "ELF group" group-4.s
+ run_dump_test "group-5"
run_dump_test "copy-1"
run_dump_test "note-1"
}