bfd_cleanup for object_p
[deliverable/binutils-gdb.git] / bfd / elfcode.h
index b67ea8c7d2e88dd644d2da4b0ed53f4203ddfb32..600abfe836e4bafed2a4d66777835da7257277ba 100644 (file)
@@ -497,7 +497,7 @@ elf_file_p (Elf_External_Ehdr *x_ehdrp)
    any side effects in ABFD, or any data it points to (like tdata), if the
    file does not match the target vector.  */
 
-const bfd_target *
+bfd_cleanup
 elf_object_p (bfd *abfd)
 {
   Elf_External_Ehdr x_ehdr;    /* Elf file header, external form */
@@ -853,7 +853,7 @@ elf_object_p (bfd *abfd)
            s->flags |= SEC_DEBUGGING;
        }
     }
-  return target;
+  return _bfd_no_cleanup;
 
  got_wrong_format_error:
   bfd_set_error (bfd_error_wrong_format);
This page took 0.02433 seconds and 4 git commands to generate.