AArch64: Add gdbserver MTE support
[deliverable/binutils-gdb.git] / bfd / compress.c
index 2e73c760e757f108821620d4cc39e2eb9680afce..054ea08bb14fc6d4f7f42623fa6a752fca593ba1 100644 (file)
@@ -431,7 +431,7 @@ bfd_is_section_compressed_with_header (bfd *abfd, sec_ptr sec,
       if (compression_header_size == 0)
        /* In this case, it should be "ZLIB" followed by the uncompressed
           section size, 8 bytes in big-endian order.  */
-       compressed = CONST_STRNEQ ((char*) header , "ZLIB");
+       compressed = startswith ((char*) header , "ZLIB");
       else
        compressed = TRUE;
     }
@@ -536,7 +536,7 @@ bfd_init_section_decompress_status (bfd *abfd, sec_ptr sec)
     {
       /* In this case, it should be "ZLIB" followed by the uncompressed
         section size, 8 bytes in big-endian order.  */
-      if (! CONST_STRNEQ ((char*) header, "ZLIB"))
+      if (! startswith ((char*) header, "ZLIB"))
        {
          bfd_set_error (bfd_error_wrong_format);
          return FALSE;
This page took 0.022897 seconds and 4 git commands to generate.