* binutils-all/group-4.s: New.
* binutils-all/strip-8.d: Likewise.
* binutils-all/strip-9.d: Likewise.
* binutils-all/objcopy.exp: Test objcopy on group-4.s. Run
strip-8 and strip-9.
+2008-10-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ * binutils-all/group-4.s: New.
+ * binutils-all/strip-8.d: Likewise.
+ * binutils-all/strip-9.d: Likewise.
+
+ * binutils-all/objcopy.exp: Test objcopy on group-4.s. Run
+ strip-8 and strip-9.
+
2008-10-01 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/group-3.s: New.
--- /dev/null
+ .section .text,"axG",%progbits,foo,comdat
+foo:
+ .word 0
+ .section .data,"awG",%progbits,foo,comdat
+bar:
+ .word 0
objcopy_test_readelf "ELF group" group.s
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 "copy-1"
}
run_dump_test "strip-5"
run_dump_test "strip-6"
run_dump_test "strip-7"
+ run_dump_test "strip-8"
+ run_dump_test "strip-9"
if { [istarget "i*86-*"] || [istarget "x86_64-*-*"] } {
# Check to make sure we don't strip a symbol named in relocations.
--- /dev/null
+#PROG: strip
+#source: group-4.s
+#readelf: -Sg --wide
+#name: strip with section group 8
+
+#...
+ \[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AX[ \t]+.*
+#...
+ \[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WA[ \t]+.*
+#...
+There are no section groups in this file.
--- /dev/null
+#PROG: strip
+#source: group-4.s
+#strip: --strip-unneeded
+#readelf: -Sg --wide
+#name: strip with section group 9
+
+#...
+ \[[ 0-9]+\] .group[ \t]+GROUP[ \t]+.*
+#...
+ \[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AXG[ \t]+.*
+#...
+ \[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG[ \t]+.*
+#...
+COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains 2 sections:
+ \[Index\] Name
+ \[[ 0-9]+\] .text.*
+ \[[ 0-9]+\] .data.*
+#pass