]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elfnn-riscv.c
Use startswith more for strncmp function calls.
[thirdparty/binutils-gdb.git] / bfd / elfnn-riscv.c
index 51f9d756cd183ce5831d196f67f353564302e97c..b5be929ad1d387d40d43cba8699b18428625e8e5 100644 (file)
@@ -1515,7 +1515,7 @@ riscv_elf_size_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
          /* Strip this section if we don't need it; see the
             comment below.  */
        }
-      else if (strncmp (s->name, ".rela", 5) == 0)
+      else if (startswith (s->name, ".rela"))
        {
          if (s->size != 0)
            {