]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elfcode.h
* libbfd.c (bfd_read): Set bfd_error as appropriate for a short
authorJeff Law <law@redhat.com>
Sat, 26 Mar 1994 18:28:29 +0000 (18:28 +0000)
committerJeff Law <law@redhat.com>
Sat, 26 Mar 1994 18:28:29 +0000 (18:28 +0000)
commit250578363e45567f5168e913f58959dd10575ba8
treeca1f77735e1ecb4169a578509949bffbe1499ebf
parent649694ea87ae0cbd4355ac0d68f27e6052fc10e4
    * libbfd.c (bfd_read): Set bfd_error as appropriate for a short
        read. (bfd_error_system_call or bfd_error_file_truncated).

        * som.c: Do not blindly set bfd_error_system_call after a
        failing bfd_read, bfd_write, or bfd_seek.  In a few places
        (like som_object_p) override the error status set by bfd_read.

        * aix386-core.c, aout-encap,c archive.c, bout.c: Likewise.
        * coff-rs6000.c, coffgen.c ecoff.c, elf.c: Likewise.
        * elf32-hppa.c, elfcode.h, hp300hpux.c, i386lynx.c: Likewise.
        * nlm32-alpha.c, nlm32-i386.c, nlm32-sparc.c: Likewise.

        * som.c: Check return values from several bfd_{seek,read,write}
        calls that we just assumed were not failing.
16 files changed:
bfd/ChangeLog
bfd/aix386-core.c
bfd/aout-encap.c
bfd/archive.c
bfd/bout.c
bfd/coff-rs6000.c
bfd/coffgen.c
bfd/ecoff.c
bfd/elf32-hppa.c
bfd/elfcode.h
bfd/hp300hpux.c
bfd/i386lynx.c
bfd/nlm32-alpha.c
bfd/nlm32-i386.c
bfd/nlm32-sparc.c
bfd/som.c