From: Cary Coutant Date: Thu, 12 Jan 2017 19:51:18 +0000 (-0800) Subject: Fix incorrect byte counts. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aca5eec611b4e30c745b9c9e7283d57255505471;p=binutils-gdb.git Fix incorrect byte counts. gold/ * object.cc (Sized_relobj_file): Fix byte counts for calls to memmem. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 6cc97528a85..991d7b8b8c8 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,7 @@ +2017-01-12 Cary Coutant + + * object.cc (Sized_relobj_file): Fix byte counts for calls to memmem. + 2017-01-11 Cary Coutant PR gold/21040 diff --git a/gold/object.cc b/gold/object.cc index e9008647712..4110686ff31 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -816,9 +816,9 @@ Sized_relobj_file::do_find_special_sections( return (this->has_eh_frame_ || (!parameters->options().relocatable() && parameters->options().gdb_index() - && (memmem(names, sd->section_names_size, "debug_info", 12) == 0 - || memmem(names, sd->section_names_size, "debug_types", - 13) == 0))); + && (memmem(names, sd->section_names_size, "debug_info", 11) == 0 + || memmem(names, sd->section_names_size, + "debug_types", 12) == 0))); } // Read the sections and symbols from an object file.