aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.c
AgeCommit message (Collapse)AuthorFilesLines
1993-04-19 * libbfd.c: bfd_put*: Remove casts to bfd_vma.Jim Kingdon1-3/+11
1993-04-17 * libbfd.c: Add signed versions of bfd_{h_,}{get,put}_signed_<size>.Jim Kingdon1-10/+121
libbfd.c, libbfd-in.h: Add _do*signed*. targets.c, all targets: Add bfd*signed*. bfd-in.h: Add bfd_signed_vma. Add comments.
1993-04-15Cleanup in preparation for better 64-bit host support.John Gilmore1-4/+35
* bfd-in.h (bfd_64_type): Remove. * libbfd.c (_do_getb64, _do_putb64): Use bfd_vma, not bfd_64_type. * bfd-in.h (bfd_size): Remove. * bfd-in.h (bfd_offset): Remove, after fixing ld/ldlang.[ch]. * bfd-in.h (bfd_word): Remove. * reloc.c (reloc_howto_type): Replace bfd_word with bfd_vma. * bfd-in.h (rawdata_offset): Remove. * reloc.c (arelent): Replace rawdata_offset with bfd_size_type. (bfd_perform_relocation): Lint. (enum bfd_reloc_status): Comment cleanup.
1993-03-24fix some (not all) bugs in previous changesKen Raeburn1-8/+17
1993-03-23Eek, a bug!Ken Raeburn1-1/+1
Position 0 means no-movement for SEEK_CUR ... not for SEEK_SET.
1993-03-23oops, left some debug code inKen Raeburn1-1/+1
1993-03-23libbfd.c: Maintain `where' field of BFD with current position while BFD isKen Raeburn1-33/+54
in use. If FILE_OFFSET_IS_CHAR_INDEX, assume arithmetic can be done on it, and ignore SEEK_SET requests that move to the current position. hosts/sparc.h: Define FILE_OFFSET_IS_CHAR_INDEX.
1992-10-15* aout-adobe.c, aoutf1.h, archive.c, bout.c, coff-rs6000.c,John Gilmore1-74/+109
coffcode.h, elf.c, ieee.c, libaout.h, libbfd.c, oasys.c, sco-core.c: Lint: Second argument of bfd_seek is always file_ptr. Third argument is SEEK_SET or SEEK_CUR. Result is always 0 or -1.
1991-11-22LintJohn Gilmore1-2/+31
1991-10-21 * targets.c (proto write_armap). Changed orl_count to unsigned.Steve Chamberlain1-33/+61
* opncls.c (bfd_close_all_done). Added so that generative programs like gas can close a bfd without causing bfd confusion. * libbfd.h (changed becuase of protos) * amdcoff.c: messed with the way that jmp displacements are calcualated. This may not yet be totally correct. * archive.c (coff_write_armap): rewrote the way that ranlibs are written out. * coffcode.h (fixup_symbol_value): now doesn't core dump if a non abs symbol has no section (like a register symbol). (coff_write_symbol) now zeros auxent before filling it up to help with sensitive applications. * libbfd.c (bfd_write_bigendian_4byte_int): added.
1991-07-04Now full of documentation. Yum Yum.Steve Chamberlain1-69/+147
1991-05-22Not only compiles, but spells _do_getl64 right tooSteve Chamberlain1-3/+3
1991-05-22* libbfd.c: Now compilesSteve Chamberlain1-2/+2
* coffcode.h: removed all put_x_<sizes>
1991-05-22Changed #ifdef __GNUC__ to #ifdef HOST_64_BITSteve Chamberlain1-82/+84
Added DEFUNS
1991-05-21*** empty log message ***Steve Chamberlain1-39/+133
1991-05-09Add bfd_generic_get_section_contents.John Gilmore1-6/+18
1991-05-08Various portability lints.Steve Chamberlain1-2/+2
Fixed reloc bug in ieee and oasys.
1991-05-03Make arg to zalloc a bfd_size_type not a size_tJim Kingdon1-1/+1
1991-05-02Merge Per Bothner's MIPS changes from 31 March 1991 (bfd-0.5.2-patch1a)John Gilmore1-6/+6
and make the result compile and run on the DEC 3100. It still has trouble running but it can handle opening exec and symbol files in ecoff format.
1991-05-02Merge devo/bfd with GDB's bfd.John Gilmore1-0/+2
Remove obstack.h to ../include and obstack.c to ../libiberty. Move COFF symbol swapping code to coffswap.c where GDB can call it but it won't be duplicated if we have N different COFF targets. Add support for traditional Unix core files (with a upage). This support is from an Ultrix port, but is probably slightly broken now. Improve bfd_release's of obstack'd items on error returns. gcc -Wall fixes. Handle section alignment slightly better in coff, and comment where it needs more work (on page-aligning virtual vs file addresses for DPAGED). Use set_tdata everywhere that tdata is set, to avoid "cast to the left of assignment" problems with some compilers. Move bfd_alloc, bfd_zalloc, bfd_realloc, and bfd_release into libbfd.h (from bfd.h) since they are internal routines. Remove the redundant suffix "_struct" from struct tags. Set symbol count early in file reading, before slurping in the syms, for GDB's use.
1991-04-17StuffSteve Chamberlain1-1/+1
1991-04-15Merged in some changes from Intel,Steve Chamberlain1-7/+7
Added some more prototypes.
1991-03-21Initial revisionDavid Henkel-Wallace1-0/+332