]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-microblaze.c
Use startswith more for strncmp function calls.
[thirdparty/binutils-gdb.git] / bfd / elf32-microblaze.c
index b5868580967483fee78d1157f0159d5a4e2085ac..d9c0d93a01a60e2c462a50e1269966760c989360 100644 (file)
@@ -3050,7 +3050,7 @@ microblaze_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
         of the dynobj section names depend upon the input files.  */
       name = bfd_section_name (s);
 
-      if (strncmp (name, ".rela", 5) == 0)
+      if (startswith (name, ".rela"))
        {
          if (s->size == 0)
            {