mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 12:53:17 +08:00
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:
@ -1,3 +1,11 @@
|
|||||||
|
2006-09-05 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
2006-09-01 Nick Clifton <nickc@redhat.com>
|
2006-09-01 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR binutils/3146
|
PR binutils/3146
|
||||||
|
@ -1482,6 +1482,13 @@ i.e., the file pointed to by the @option{--add-gnu-debuglink} can be the
|
|||||||
full executable. It does not have to be a file created by the
|
full executable. It does not have to be a file created by the
|
||||||
@option{--only-keep-debug} switch.
|
@option{--only-keep-debug} switch.
|
||||||
|
|
||||||
|
Note - this switch is only intended for use on fully linked files. It
|
||||||
|
does not make sense to use it on object files where the debugging
|
||||||
|
information may be incomplete. Besides the gnu_debuglink feature
|
||||||
|
currently only supports the presence of one filename containing
|
||||||
|
debugging information, not multiple filenames on a one-per-object-file
|
||||||
|
basis.
|
||||||
|
|
||||||
@item -V
|
@item -V
|
||||||
@itemx --version
|
@itemx --version
|
||||||
Show the version number of @command{objcopy}.
|
Show the version number of @command{objcopy}.
|
||||||
@ -2391,6 +2398,13 @@ ie the file pointed to by the @option{--add-gnu-debuglink} can be the
|
|||||||
full executable. It does not have to be a file created by the
|
full executable. It does not have to be a file created by the
|
||||||
@option{--only-keep-debug} switch.
|
@option{--only-keep-debug} switch.
|
||||||
|
|
||||||
|
Note - this switch is only intended for use on fully linked files. It
|
||||||
|
does not make sense to use it on object files where the debugging
|
||||||
|
information may be incomplete. Besides the gnu_debuglink feature
|
||||||
|
currently only supports the presence of one filename containing
|
||||||
|
debugging information, not multiple filenames on a one-per-object-file
|
||||||
|
basis.
|
||||||
|
|
||||||
@item -V
|
@item -V
|
||||||
@itemx --version
|
@itemx --version
|
||||||
Show the version number for @command{strip}.
|
Show the version number for @command{strip}.
|
||||||
|
@ -815,6 +815,13 @@ is_strip_section (bfd *abfd ATTRIBUTE_UNUSED, asection *sec)
|
|||||||
return FALSE;
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user