+2017-01-12 Cary Coutant <ccoutant@gmail.com>
+
+ * object.cc (Sized_relobj_file): Fix byte counts for calls to memmem.
+
2017-01-11 Cary Coutant <ccoutant@gmail.com>
PR gold/21040
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.