* objcopy.c (copy_section): Don't copy SEC_GROUP sections.
This commit is contained in:
parent
9dce4196b4
commit
dc156bc0bb
2 changed files with 11 additions and 2 deletions
|
@ -1684,13 +1684,15 @@ copy_section (ibfd, isection, obfdarg)
|
|||
sec_ptr osection;
|
||||
bfd_size_type size;
|
||||
long relsize;
|
||||
flagword flags;
|
||||
|
||||
/* If we have already failed earlier on,
|
||||
do not keep on generating complaints now. */
|
||||
if (status != 0)
|
||||
return;
|
||||
|
||||
if ((bfd_get_section_flags (ibfd, isection) & SEC_DEBUGGING) != 0
|
||||
flags = bfd_get_section_flags (ibfd, isection);
|
||||
if ((flags & SEC_DEBUGGING) != 0
|
||||
&& (strip_symbols == STRIP_DEBUG
|
||||
|| strip_symbols == STRIP_UNNEEDED
|
||||
|| strip_symbols == STRIP_ALL
|
||||
|
@ -1698,6 +1700,9 @@ copy_section (ibfd, isection, obfdarg)
|
|||
|| convert_debugging))
|
||||
return;
|
||||
|
||||
if ((flags & SEC_GROUP) != 0)
|
||||
return;
|
||||
|
||||
p = find_section_list (bfd_section_name (ibfd, isection), false);
|
||||
|
||||
if (sections_removed && p != NULL && p->remove)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue