X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Felfcode.h;h=600abfe836e4bafed2a4d66777835da7257277ba;hb=cb001c0d283dd884efe06770d033a50fb1bc6c7d;hp=b67ea8c7d2e88dd644d2da4b0ed53f4203ddfb32;hpb=2aa90762b71af7f04032d2bebed6470070d3d801;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elfcode.h b/bfd/elfcode.h index b67ea8c7d2..600abfe836 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -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);