PR binutils/3166

* objcopy.c (is_strip_section): Do not treat group sections as debugging sections.
* doc/binutils.texi (--only-keep-debug): Document that this switch is only intended for use on fully linked files.
This commit is contained in:
Nick Clifton
2006-09-05 08:22:27 +00:00
parent a0d64f3a09
commit 91bb255c67
3 changed files with 29 additions and 0 deletions

View File

@ -815,6 +815,13 @@ is_strip_section (bfd *abfd ATTRIBUTE_UNUSED, asection *sec)
return FALSE;
}
/* PR binutils/3166
Group sections look like debugging sections but they are not.
(They have a non-zero size but they are not ALLOCated). */
if ((bfd_get_section_flags (abfd, sec) & SEC_GROUP) != 0
&& strip_symbols == STRIP_NONDEBUG)
return TRUE;
return FALSE;
}