Remove the group section if all members are removed.
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Sep 2011 04:23:19 +0000 (04:23 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Sep 2011 04:23:19 +0000 (04:23 +0000)
commit4c8e8a7ee091749d21a6f1ef57f75faa190860fd
tree22b9ab5bc37bf9103758642f6f389576b6d3d1a3
parent1a766c6843ce0005fee23633b3b30c98e81a7b07
Remove the group section if all members are removed.

binutils/

2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/13180
* objcopy.c (is_strip_section_1): New.
(is_strip_section): Use it.  Remove the group section if all
members are removed.

binutils/testsuite/

2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/13180
* binutils-all/group-6.d: New.
* binutils-all/group-6.s: Likewise.

* binutils-all/objcopy.exp: Run group-6 for ELF targrts.
binutils/ChangeLog
binutils/objcopy.c
binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/group-6.d [new file with mode: 0644]
binutils/testsuite/binutils-all/group-6.s [new file with mode: 0644]
binutils/testsuite/binutils-all/objcopy.exp