aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/group9b.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-01-14 21:52:49 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-01-14 21:52:49 +0000
commita33dafc30dd1cbe7b7659b5b15c553804abef185 (patch)
tree350f368cac04ec8894b1592431169c117b16280c /ld/testsuite/ld-elf/group9b.d
parentadb483feb8b53555613d1165a6c6de4bdc1a5160 (diff)
downloadgdb-a33dafc30dd1cbe7b7659b5b15c553804abef185.zip
gdb-a33dafc30dd1cbe7b7659b5b15c553804abef185.tar.gz
gdb-a33dafc30dd1cbe7b7659b5b15c553804abef185.tar.bz2
bfd/
2009-01-14 H.J. Lu <hongjiu.lu@intel.com> PR ld/9727 * elflink.c (elf_gc_sweep): Exclude the group section if the first member of the section group is excluded. ld/testsuite/ 2009-01-14 H.J. Lu <hongjiu.lu@intel.com> PR ld/9727 * ld-elf/group8.s: New. * ld-elf/group8a.d: Likewise. * ld-elf/group8b.d: Likewise. * ld-elf/group9.s: Likewise. * ld-elf/group9a.d: Likewise. * ld-elf/group9b.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf/group9b.d')
-rw-r--r--ld/testsuite/ld-elf/group9b.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/group9b.d b/ld/testsuite/ld-elf/group9b.d
new file mode 100644
index 0000000..82ca062
--- /dev/null
+++ b/ld/testsuite/ld-elf/group9b.d
@@ -0,0 +1,13 @@
+#source: group9.s
+#ld: -r --gc-sections --entry bar
+#readelf: -g --wide
+#notarget: ia64-*-*
+
+COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains 2 sections:
+ \[Index\] Name
+ \[[ 0-9]+\] .text.foo
+ \[[ 0-9]+\] .data.foo
+
+COMDAT group section \[[ 0-9]+\] `.group' \[bar\] contains 1 sections:
+ \[Index\] Name
+ \[[ 0-9]+\] .text.bar