mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-08 00:32:05 +08:00
Apply:
2017-11-08 Kyle Butt <iteratee@google.com> * object.cc (do_find_special_sections): Fix a thinko with memmem return values and check for != NULL rather than == 0.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2017-11-08 Kyle Butt <iteratee@google.com>
|
||||||
|
|
||||||
|
* object.cc (do_find_special_sections): Fix a thinko with memmem return
|
||||||
|
values and check for != NULL rather than == 0.
|
||||||
|
|
||||||
2017-11-07 Alan Modra <amodra@gmail.com>
|
2017-11-07 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* system.h (textdomain, bindtextdomain): Use safer "do nothing".
|
* system.h (textdomain, bindtextdomain): Use safer "do nothing".
|
||||||
|
@ -816,9 +816,9 @@ Sized_relobj_file<size, big_endian>::do_find_special_sections(
|
|||||||
return (this->has_eh_frame_
|
return (this->has_eh_frame_
|
||||||
|| (!parameters->options().relocatable()
|
|| (!parameters->options().relocatable()
|
||||||
&& parameters->options().gdb_index()
|
&& parameters->options().gdb_index()
|
||||||
&& (memmem(names, sd->section_names_size, "debug_info", 11) == 0
|
&& (memmem(names, sd->section_names_size, "debug_info", 11) != NULL
|
||||||
|| memmem(names, sd->section_names_size,
|
|| memmem(names, sd->section_names_size,
|
||||||
"debug_types", 12) == 0)));
|
"debug_types", 12) != NULL)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read the sections and symbols from an object file.
|
// Read the sections and symbols from an object file.
|
||||||
|
Reference in New Issue
Block a user