x86: Silence -fsanitize=undefined
[deliverable/binutils-gdb.git] / bfd / binary.c
index 0683e414d6eb1c8008a7171f59d2396a87a03439..999de0d8c41a4e7d8e5072de86983c1717ab900d 100644 (file)
@@ -53,7 +53,7 @@ binary_mkobject (bfd *abfd ATTRIBUTE_UNUSED)
    was not defaulted.  That is, it must be explicitly specified as
    being binary.  */
 
-static const bfd_target *
+static bfd_cleanup
 binary_object_p (bfd *abfd)
 {
   struct stat statbuf;
@@ -86,7 +86,7 @@ binary_object_p (bfd *abfd)
 
   abfd->tdata.any = (void *) sec;
 
-  return abfd->xvec;
+  return _bfd_no_cleanup;
 }
 
 #define binary_close_and_cleanup     _bfd_generic_close_and_cleanup
This page took 0.027799 seconds and 4 git commands to generate.