aboutsummaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2017-01-12 11:51:18 -0800
committerCary Coutant <ccoutant@gmail.com>2017-01-12 11:51:40 -0800
commitaca5eec611b4e30c745b9c9e7283d57255505471 (patch)
tree54f01c8eb9f9fed335e302aeb11deb66bf9f9fba /gold/object.cc
parent8361ed4d6b7049264153434e8dc15e6dc2200ebf (diff)
downloadgdb-aca5eec611b4e30c745b9c9e7283d57255505471.zip
gdb-aca5eec611b4e30c745b9c9e7283d57255505471.tar.gz
gdb-aca5eec611b4e30c745b9c9e7283d57255505471.tar.bz2
Fix incorrect byte counts.
gold/ * object.cc (Sized_relobj_file): Fix byte counts for calls to memmem.
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/object.cc b/gold/object.cc
index e900864..4110686 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -816,9 +816,9 @@ Sized_relobj_file<size, big_endian>::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.