mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
PR25637, objcopy : SIGSEGV in copy_object
PR 25637 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2020-03-06 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 25637
|
||||||
|
* objcopy.c (filter_symbols): Correct rem_leading_char logic.
|
||||||
|
|
||||||
2020-03-05 Alan Modra <amodra@gmail.com>
|
2020-03-05 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 25629
|
PR 25629
|
||||||
|
@ -1549,12 +1549,13 @@ filter_symbols (bfd *abfd, bfd *obfd, asymbol **osyms,
|
|||||||
|
|
||||||
/* Check if we will remove the current leading character. */
|
/* Check if we will remove the current leading character. */
|
||||||
rem_leading_char =
|
rem_leading_char =
|
||||||
(name[0] == bfd_get_symbol_leading_char (abfd))
|
(name[0] != '\0'
|
||||||
&& (change_leading_char
|
&& name[0] == bfd_get_symbol_leading_char (abfd)
|
||||||
|| (remove_leading_char
|
&& (change_leading_char
|
||||||
&& ((flags & (BSF_GLOBAL | BSF_WEAK)) != 0
|
|| (remove_leading_char
|
||||||
|| undefined
|
&& ((flags & (BSF_GLOBAL | BSF_WEAK)) != 0
|
||||||
|| bfd_is_com_section (bfd_asymbol_section (sym)))));
|
|| undefined
|
||||||
|
|| bfd_is_com_section (bfd_asymbol_section (sym))))));
|
||||||
|
|
||||||
/* Check if we will add a new leading character. */
|
/* Check if we will add a new leading character. */
|
||||||
add_leading_char =
|
add_leading_char =
|
||||||
|
Reference in New Issue
Block a user