]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/elfread.c
New common function "startswith"
[thirdparty/binutils-gdb.git] / gdb / elfread.c
index 4a6576f80261317478077416b675e7988ca94694..4b97b0427aa53145a9921d926037a231347fa609 100644 (file)
@@ -322,7 +322,7 @@ elf_symtab_read (struct objfile *objfile, int type,
             for that section is ".plt".  So, if there is a ".plt"
             section, and yet the section name of our symbol does not
             start with ".plt", we ignore that symbol.  */
-         if (strncmp (sect->name, ".plt", 4) != 0
+         if (!startswith (sect->name, ".plt")
              && bfd_get_section_by_name (abfd, ".plt") != NULL)
            continue;