mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 23:26:51 +08:00
* objcopy.c (copy_section): Don't copy SEC_GROUP sections.
This commit is contained in:
@ -1,4 +1,8 @@
|
|||||||
2002-06-3 Elias Athanasopoulos <eathan@otenet.gr>
|
2002-06-05 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* objcopy.c (copy_section): Don't copy SEC_GROUP sections.
|
||||||
|
|
||||||
|
2002-06-03 Elias Athanasopoulos <eathan@otenet.gr>
|
||||||
|
|
||||||
* objdump.c: Fix formatting.
|
* objdump.c: Fix formatting.
|
||||||
|
|
||||||
|
@ -1684,13 +1684,15 @@ copy_section (ibfd, isection, obfdarg)
|
|||||||
sec_ptr osection;
|
sec_ptr osection;
|
||||||
bfd_size_type size;
|
bfd_size_type size;
|
||||||
long relsize;
|
long relsize;
|
||||||
|
flagword flags;
|
||||||
|
|
||||||
/* If we have already failed earlier on,
|
/* If we have already failed earlier on,
|
||||||
do not keep on generating complaints now. */
|
do not keep on generating complaints now. */
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
return;
|
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_DEBUG
|
||||||
|| strip_symbols == STRIP_UNNEEDED
|
|| strip_symbols == STRIP_UNNEEDED
|
||||||
|| strip_symbols == STRIP_ALL
|
|| strip_symbols == STRIP_ALL
|
||||||
@ -1698,6 +1700,9 @@ copy_section (ibfd, isection, obfdarg)
|
|||||||
|| convert_debugging))
|
|| convert_debugging))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if ((flags & SEC_GROUP) != 0)
|
||||||
|
return;
|
||||||
|
|
||||||
p = find_section_list (bfd_section_name (ibfd, isection), false);
|
p = find_section_list (bfd_section_name (ibfd, isection), false);
|
||||||
|
|
||||||
if (sections_removed && p != NULL && p->remove)
|
if (sections_removed && p != NULL && p->remove)
|
||||||
|
Reference in New Issue
Block a user