aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1992-11-05* bfd-in.h, bfd.c, libbfd.h, reloc.c, seclet.h, section.c,John Gilmore4-12/+26
targets.c: Rename struct bfd_seclet_struct to struct bfd_seclet.
1992-11-05Cleanup: Replace all uses of EXFUN in the BFD sources, with PARAMS.John Gilmore5-103/+193
* archures.c, reloc.c, section.c, tekhex.c: Use PARAMS in declaring pointers to functions. * cache.c, elf.c: Move static function decls to top, use PARAMS. * seclet.h: Declare external function with PARAMS. * libbfd.h: Update, based on changes in source code and chew.
1992-11-05* bfd-in.h: Improve comments to make it clear that bfd.h isJohn Gilmore2-6/+23
the wrong place to edit this file. * Makefile.in (install): Install ansidecl.h and obstack.h in the same places where we install bfd.h. * libieee.h: Add FIXME about removing limit on number of sections.
1992-11-04(Duplicate change from p3.)Sean Eric Fagan2-6/+17
Only change coff auxent header fields when the circumstances require it. or at least warrant.
1992-11-04aoutx.h (some_aout_object_p): Section list should be set up properly already;Ken Raeburn1-0/+5
don't need to tweak "next" pointers.
1992-11-02I'm eliminating the use of USG from binutils/ar.c, and nothing else inIan Lance Taylor5-2/+16
binutils, bfd or opcodes uses it. Mon Nov 2 12:36:14 1992 Ian Lance Taylor (ian@cygnus.com) * config/delta88.mh, config/hp300.mh, config/hppahpux.mh, config/i386v.mh: removed -DUSG from HDEFINES. hosts/delta88.h, hosts/hp300.h, hosts/hppahpux.h, hosts/i386v.h: defined USE_UTIME. hosts/i386v.h: don't define POSIX_UTIME.
1992-10-31 * ieee.c (ieee_slurp_sections): make a private copy of theSteve Chamberlain1-0/+5
section's name before truncating it.
1992-10-29 * hppa.c: add symbol_leading_char entry in transfer vecSteve Chamberlain2-0/+10
1992-10-29,Wed Oct 28 16:11:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain2-31/+58
* ieee.c (get_symbol): can now cope when two symbols of a different class, but the same index number occur consecutively. (get_section_entry): nicer name for sections being forward referenced. (ieee_archive_p): don't free the filename string, since it was never malloced.
1992-10-28(coff_write_object_contents): Zero timestamp field.John Gilmore2-11/+5
1992-10-27Moved in from p3:Ian Lance Taylor2-9/+13
Tue Oct 27 12:24:34 1992 Ian Lance Taylor (ian@cygnus.com) * coffcode.h (coff_swap_aux_out): set the fcnary info before optionally setting the dimen info, since they are in the same memory locations. Also zero out external auxent. (coff_write_symbol): don't zero external auxent; now done in coff_swap_aux_out.
1992-10-23If fclose fails, set bfd_error to system_call_error.Ian Lance Taylor1-3/+6
1992-10-23Fri Oct 23 13:55:35 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor3-13/+35
* Check fclose return value for errors. libbfd.h: bfd_cache_close now returns a boolean. cache.c (bfd_cache_delete): return fclose success value. (bfd_cache_close): return bfd_cache_delete return value. opncls.c (bfd_close, bfd_close_all_done): return result of bfd_cache_close.
1992-10-23Fri Oct 23 10:32:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain4-20/+75
* seclet.c (rel): don't load sections without the SEC_LOAD bit. Thu Oct 15 10:16:35 1992 Steve Chamberlain (sac@thepub.cygnus.com) * coff-m68k.c (m68k_howto2type, SELECT_RELOC): new function to work out a coff relocation type from a howto's attributes rather than using the input r_type field. This fixes PR1677 and allows conversion of a.out relocs to coff relocs. * coffcode.h (coff_write_relocs): if supplied a relocation relative to an absolute symbol, use the right symbol index. * reloc.c (bfd_perform_relocation): do a partial link for coff relocs right.
1992-10-23Fri Oct 23 08:15:56 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor3-8/+81
* changes to support i386-sysv with shared libraries: * coffcode.h (sec_to_styp_flags): if TWO_DATA_SECS is defined, check for .data2; if _LIB is defined, check for it; map SEC_NEVER_LOAD to STYP_NOLOAD. (styp_to_sec_flags): map STYP_NOLOAD to SEC_NEVER_LOAD. (make_a_section_from_file): if TWO_DATA_SECS, accept .data2. (coff_write_object_contents): force vaddr of .lib to 0; set scnptr if section has contents, not just if it is loadable; if TWO_DATA_SECS, check for .data2 (coff_set_section_contents): set vma of .lib section to number of .lib sections. * coff-i386.c: define TWO_DATA_SECS; use a special CALC_ADDEND; don't define coff_write_armap to bsd_write_armap. * hosts/i386v.h: don't include <utime.h>, since it is not provided by SVR3.2.
1992-10-23* solaris2.h: Get the definition of alloca from alloca.h if weStu Grossman1-0/+3
aren't using gcc.
1992-10-22* configure.in (i960-*-{aout,bout}): Support these.John Gilmore1-0/+2
1992-10-21* config/a29k-aout.mt (DEFAULT_TARGET): Set to one that exists.John Gilmore1-0/+4
1992-10-15Document changes to hosts directory.Per Bothner1-0/+6
1992-10-15 * apollo68.h, apollov68.h, hp300.h, i386v.h, irix3.h: RemovePer Bothner5-59/+0
no-longer-used definitions of L_SET and L_INCR. * i386linux.h: Tweaks to smooth Linux build.
1992-10-15Now update it in the *right* place...John Gilmore1-1/+1
1992-10-15Insert copyright notices in all BFD files that need them.John Gilmore7-9/+51
Update copyrights on recently changed files to 1992. Regularize first-line comments somewhat.
1992-10-15* bfd-in.h (file_ptr): Update comments, make FIXME re off_t.John Gilmore1-0/+2
1992-10-15* aout-adobe.c, aoutf1.h, aoutx.h, bout.c coff-m68k.c, coff-z8k.c,John Gilmore9-55/+37
coffcode.h, elf.c, libaout.h, libbfd.h, srec.c: Lint.
1992-10-15* aout-adobe.c, aoutf1.h, archive.c, bout.c, coff-rs6000.c,John Gilmore13-140/+162
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.
1992-10-09* configure.host: New file, contains mapping of host configsJohn Gilmore3-63/+11
to host support file names for bfd, binutils, opcodes. * configure.in: Use it. * i386aout.c: Cleanup, dump TARGET_IS_LITTLE_ENDIAN_P. * i386bsd.c: Cleanup, reformat. * config/i386-bsd.mt: Comment changes. * config/i386bsd.mh: New file for core file support. * hosts/i386bsd.h: Merge changes from Peter Schauer. * bout.c (ALIGN): Rename to ALIGNER, since system header files on BSD 4.4 define ALIGN (sigh!).
1992-10-09* bout.c (ALIGN): Rename to ALIGNER, since system header filesJohn Gilmore2-6/+11
on BSD 4.4 define ALIGN (sigh!).
1992-10-09* configure.in: Reformat the target section, test many configs.John Gilmore2-72/+54
1992-10-09Linker now works for go32; other changes keep it from breaking the otherMark Eichin5-130/+68
platforms (new backend_data "exec_header_not_counted") (from p3.)
1992-10-09* aout-target.h (callback): Don't define this function if it won't be used.Ken Raeburn8-137/+260
* aoutx.h (some_aout_object_p): Restore old aout_data value if this type doesn't match. Don't lose if file sections have already been created. (set_arch_mach): Set reloc_entry_size. (slurp_symbol_table): Use bfd_h_get_{16,8} for reaeding symbol data. * hosts/i386bsd.h: New file. * configure.in: Recognize i[34]86-*-bsd host. * aout-target.h (callback, write_object_contents): Delete unused variables. * aoutx.h (reloc_type_lookup): New function. * aout-target.h (MY_reloc_howto_type_lookup): Use it as default. * aoutf1.h (sunos4_reloc_type_lookup): Deleted. (MY_reloc_howto_type_lookup): Don't define it. * aoutx.h (adjust_sizes_and_vmas): Don't bother with padding for OMAGIC files. (slurp_symbol_table): Use header byte order, not target byte order, for reading symbol data.
1992-10-09 * configure.in: Undo some brain damage in the host section.John Gilmore3-43/+72
* Makefile.in (make): Remove obsolete `make make'. * aoutx.h (some_aout_object_p): Make defines line up.
1992-10-08Save i386bsd.c since it is now required to build bfd.Fred Fish1-0/+1
(Am I the *only* one that regularly builds sanitized trees and thus gets to clean up these things?)
1992-10-08Some of these are guesses, if you know different, just yell.Steve Chamberlain18-539/+965
Thu Oct 8 08:52:48 1992 Steve Chamberlain (sac@thepub.cygnus.com) Now a bfd knows whether underscores are normally prepended to symbols in its file format. Helps with error messages. * aout-adobe.c, aout-target.h, bout.c, coff-a29k.c, coff-h8300.c, coff-z8k.c: targets set so they have leading underscore * coff-i386.c, coff-i960.c, coff-m68k.c, coff-mips.c, coff-m88k.c, coff-rs6000.c, coff-we32k.c, elf.c, ieee.c, srec.c: targets set without leading underscore flag * targets.c: add symbol leading char to xvec description * bfd-in.h (bfd_get_symbol_leading_char): new macro.
1992-10-08renamed hp9000 to hp300David D. Zuhn1-1/+1
1992-10-05Tweak previous change (only assume malformed_archive if errno == 0).Per Bothner2-5/+10
1992-10-05 * archive.c (_bfd_write_archive_contents): If read fails,Per Bothner2-91/+171
set bfd_error to malformed_archive (since this probably indicates a truncated archive), rather than system_call_error. (Handles PRMS 1624.)
1992-10-05added i386-*-bsd, from p3Mark Eichin3-224/+136
1992-10-05support for 386bsd a.out filesMark Eichin1-0/+58
1992-10-02renamed hp9000.h to hp300.hDavid D. Zuhn1-0/+70
1992-10-02avoid compiler warningsDavid D. Zuhn2-1/+6
1992-09-29bout.c: Removed some unused variablesKen Raeburn1-0/+2
1992-09-29coffcode.h (coff_section_symbol): Create section if it doesn't exist.Ken Raeburn1-0/+5
1992-09-29Tue Sep 29 08:30:21 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor4-13/+18
* Portability fixes from p3: coffcode.h (coff_write_relocs): removed sanity check until it works on all targets (per advice from sac). config/hp9000.mh: new file to define USG. hppa.c: #undef hppa before the JUMP_TABLE. hosts/hppahpux.h: #define NATIVE_HPPAHPUX_COMPILER if not __STDC__. targets.c (bfd_target_list): if NATIVE_HPPAHPUX_COMPILER, make local variable target volatile to avoid mysterious bug in HP9000/700 cc.
1992-09-27Keep aout-adobe.c, need to compile sanitized versions.Fred Fish1-0/+1
1992-09-26* config/hppabsd.mh, config.hppahpux.mh: Remove various bogosity.John Gilmore2-31/+6
* hosts/hppahpux.h: Remove bcopy and index circumventions.
1992-09-26Lint; remove bcopy/bzero.John Gilmore2-3/+10
1992-09-26Add Adobe a.out support.John Gilmore3-17/+43
* aout-adobe.c: New file. So far, only reads a.out.adobe. FIXME. * config/adobe.mt: Add. * configure.in (*-adobe-* target): Add. * targets.c (a_out_adobe_vec): Add. * Makefile.in: add aout-adobe.c. * configure.in: Put two dashes in all entries to be matched. Add comments to remind people to do this. Reorder all entries that match manufacturer names, to occur last, so they will only be matched if no more specific match occurs. Remove manufacturers `aout', `bout', `coff', and `elf'.
1992-09-25 * elf.c (section_from_elf_index): Return bfd_abs_section, not 0,Brendan Kehoe2-4/+10
since we should never have a NULL section. (elf_slurp_symbol_table): If st_shndx doesn't match any of our tests, set the section to bfd_abs_section.
1992-09-25Fri Sep 25 11:11:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain4-3/+241
* coff-z8k.c: getting closer * coffcode.h (coff_get_relocated_section_contents): allow EXTRA_CASES hooks for different arches to provide different reloc types. * seclet.h: #ifndef around it to allow multiple inclusion * srec.c: minor doc fix
1992-09-21Patches from WRS:Ian Lance Taylor2-0/+11
Mon Sep 21 14:33:58 1992 Ian Lance Taylor (ian@cygnus.com) * hosts/hp9000.h, hosts/irix3.h: changes from WRS.