* section.c (bfd_set_section_contents): whitespacs
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 4cbcdce82f09a0994a864d4b3f67d844866b80f0..22c57f52a978444be27225fc66ffdb34186a7357 100644 (file)
@@ -1,3 +1,479 @@
+Fri Mar 12 08:32:11 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
+
+       * section.c (bfd_set_section_contents): whitespace
+       * seclet.c (seclet_dump_seclet): Don't try and fill sections with
+       no contents.
+
+Thu Mar 11 19:26:15 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
+
+       * hosts/go32.h: don't define POSIX_UTIME
+
+Tue Mar  9 10:52:01 1993  Fred Fish  (fnf@cygnus.com)
+
+       * elf32.c (elf_object_p):  Use ELF_ARCH stored in xvec to match
+       against machine architecture stored in the ELF header, to resolve
+       ambiguities.
+       * elf32.c (bfd_section_from_shdr):  Bfd_make_section can return
+       NULL, so only use results when non-NULL.
+       * targets.c (elf32_m68k_vec, elf32_i860_vec):  Add extern decls
+       and add to vector of targets.
+
+Mon Mar  8 15:13:44 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * coff-mips.c (ecoff_set_symbol_info): Encapsulated STABS symbols
+       are always just debugging symbols.
+
+       * coff-mips.c (ecoff_[gs]et_sym_index): Moved macros from here...
+       libecoff.h (ecoff_[gs]et_sym_index): ...to here.
+
+Mon Mar  8 14:55:13 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
+
+       * hppa.c (_PA_RISC_ID): Defined if not already defined (e.g., for
+       hpux 7).  Patch from friedman@gnu.ai.mit.edu.
+       (hppa_object_p): Only check for DL_MAGIC and SHL_MAGIC if they're
+       defined, which they aren't in hpux 7.0.
+
+       * aix386-core.c: Include uinfo.h and coredump.h.  Patch from Minh
+       Tran-Le, tranle@intellicorp.com.
+
+Fri Mar  5 14:54:21 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * coff-mips.c (ecoff_generic_reloc): If the addend is non-zero, go
+       ahead and do the relocation.
+       (ecoff_refhi_reloc): Don't to the relocation here, just remember
+       what needs to be done.
+       (ecoff_reflo_reloc): Do the REFHI relocation here.
+
+Thu Mar  4 14:44:01 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * coff-mips.c (ecoff_bfd_reloc_type_lookup): New function.
+       (ecoff_write_object_contents): Added BFD_ASSERT calls to ensure
+       relocs are reasonable.
+       * coff-msym.c: Eliminated uses of DEFUN.
+       (ecoff_swap_tir_out): New function.     
+
+Tue Mar  2 17:52:58 1993  Fred Fish  (fnf@cygnus.com)
+
+       (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
+       * configure.host (vax-*-ultrix2*):  Add triplet.
+       * hosts/vaxult2.h:  New file.
+       * config/vaxult2.mh:  New file.
+
+       * aoutx.h (string.h):  Include for strchr and friends.
+       * archive.c (string.h):  Include for memchr and friends.
+       * elf32.c (string.h):  Include for strrchr and friends.
+
+Sat Feb 27 00:44:24 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
+
+       * aoutf1.c (sunos4_reloc_type_lookup): Unused; deleted.
+       (MY_set_sizes): Use sunos4_set_sizes.
+
+       * elf32.c: Renamed from elf.c.  Several CPU-specific functions
+       deleted, as well as elf-big and elf-little targets.
+       * libelf.h: New file.
+       * elf32-sparc.c, elf32-i386.c, elf32-i860.c, elf32-m68k.c: New
+       files, new targets.
+       * Makefile.in, config/*-elf.mt, targets.c: Adjusted.
+
+       * i386linux.c (TARGETNAME): Use hyphens instead of parentheses.
+
+       * coffcode.h (coff_compute_section_file_positions): Don't need
+       variable "old_sofar" if compiling for i960.
+
+       * reloc.c (bfd_default_reloc_type_lookup): First argument is now a
+       bfd pointer.
+       * libbfd.h: Updated.
+
+       * ieee.c (exten, envi): "static" belongs first in declaration.
+
+Fri Feb 26 17:37:34 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
+
+       * srec.c: add support for symbolsrec, srecords with symbols in
+       them.
+
+Thu Feb 25 11:43:30 1993  John Gilmore  (gnu@cacophony.cygnus.com)
+
+       * ieee.c:  cast all arguments of ieee_write_byte to bfd_byte
+       to avoid lint complaints.
+
+Thu Feb 25 02:15:52 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
+
+       * elf.c (elf_write_object_contents): Section ".shstrtab" should be
+       type SHT_STRTAB.  Don't alter file offset for section 0.
+       (reloc_type_names): Now an array instead of a macro.  Still inside
+       "#if 0", since it's used only in debugging code also in "#if 0".
+       (struct elf_reloc_map_elt, struct elf_reloc_map): New types.
+       (sort_reloc_map): New function.
+       (sparc_reloc_map): New variable.
+       (elf_bfd_reloc_type_lookup): New function.
+
+Tue Feb 23 12:17:16 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * bfd-in.h (JUMP_TABLE): Added bfd_reloc_type_lookup and
+       bfd_make_debug_symbol; they were already in the target structure.
+       * Adjusted all uses of JUMP_TABLE.
+       * coffgen.c, libcoff-in.h (coff_bfd_make_debug_symbol): Renamed
+       from coff_make_debug_symbol.
+       * libcoff.h: Updated accordingly.
+
+       * Minor cleanups provoked by gcc warnings:
+       * aoutx.h (NAME(aout, reloc_type_lookup)),
+       cpu-h8300.c (local_bfd_reloc_type_lookup),
+       cpu-z8k.c (local_bfd_reloc_type_lookup): Added default case to
+       switches.
+       * archive.c (do_slurp_bsd_armap, do_slurp_coff_armap),
+       ieee.c (ieee_slurp_section_data),
+       elf.c (elf_make_sections, elf_fake_sections,
+       elf_compute_section_file_positions, elf_write_object_contents):
+       Removed unused variables.
+       * archures.c: Removed /* from within comment.
+       * bout.c (b_out_squirt_out_relocs): Initialize r_extern.
+       * oasys.c (oasys_write_data): Initialize i.
+
+Mon Feb 22 18:40:06 1993  Per Bothner  (bothner@rtl.cygnus.com)
+
+       * libcoff.h (obj_raw_syment_coun):  New macro.
+       * coffgen.c (coff_get_normalized_symtab):  Initialize
+       raw_syment_count.
+       * coffgen.c (coff_find_nearest_line):  Numerous little fixes.
+
+Mon Feb 22 15:03:07 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * coff-mips.c (ecoff_set_symbol_info): stBlock symbols are always
+       debugging symbols.
+       (ecoff_get_debug): Offset the fdr adr by the adr of the first pdr,
+       for compatibility with tools from MIPS.
+
+       * config/bigmips.mt: New file; default vector is ecoff_big_vec.
+       * config/irix3.mt, config/irix4.mt: Removed.
+       * configure.in (mips-*-ecoff): New target; uses bigmips.mt.
+       (mips-sgi-*, mips-big-*): Use bigmips rather than irix3.
+
+Wed Feb 17 23:40:41 1993  John Gilmore  (gnu@cygnus.com)
+
+       * hosts/hp300bsd.h:  Add gross hack to determine whether we
+       are running on BSD 4.3 or BSD 4.4, and use appropriate include
+       files (and set other parameters) to match.
+
+Wed Feb 17 12:28:13 1993  K. Richard Pixley  (rich@cygnus.com)
+
+       * trad-core.c (trad_unix_make_empty_symbol): wrap PARAMS around an
+         ansi definition which otherwise confuses non-ansi compilers.
+
+       * aout-adobe.c (aout_adobe_object_p): eliminate a warning from vax
+         ultrix cc by forward declaring getenv as is done in
+         bfd_find_target.
+
+Tue Feb 16 17:56:58 1993  K. Richard Pixley  (rich@cygnus.com)
+
+       * elf.c (elf_info_to_howto): cast an enum into unsigned char
+         avoiding a fatal error in vax ultrix 4.2 cc.
+
+Tue Feb 16 00:44:54 1993  John Gilmore  (gnu@cygnus.com)
+
+       * bfd-in.h, VERSION:  Roll to version 2.1.
+
+Mon Feb 15 20:43:51 1993  John Gilmore  (gnu@cygnus.com)
+
+       * oasys.c (oasys_write_object_contents):  Lint.
+       * srec.c:  Whitespace cleanup.
+
+Fri Feb 12 14:23:07 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * coffgen.c (coff_print_symbol): Print correct tagndx value;
+       cleaned up output formatting a bit.
+
+Fri Feb 12 08:28:56 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
+
+       * coffcode.h (coff_set_arch_mach_hook): *FIXME* the H8/300 is always
+       relaxable.  Should be moved somewhere else.
+
+Thu Feb 11 14:09:42 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
+
+       * aout-mipsbsd.c: Eliminated uses of DEFUN.
+       (aout_mips_*_vec): Added seclet_link element.
+
+       * Makefile.in (BFD_BACKENDS, CFILES, aout-mipsbsd.o): Added
+       support for aout-mipsbsd target.
+
+       * bout.c (get_value): Don't truncate 32-bit addend to 16 bits.
+
+Fri Feb  5 08:08:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
+
+       * cpu-h8500.c (scan_mach): return false if it's not an H8/500
+
+Thu Feb  4 12:52:40 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
+
+       Add support for the H8/500
+
+       * coff-h8500.c, cpu-h8500.c, archures.c, coffcode.h, targets.c
+
+Thu Feb  4 12:35:02 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * libecoff.h: New file.  Defines ECOFF backend data for gdb.
+       * coff-mips.c: Now includes libecoff.h.
+       (ecoff_data_type): Moved to libecoff.h.
+       (ecoff_slurp_symbolic_info): Made globally visible so that gdb can
+       call it.  If there is ever another ECOFF target, this and the
+       swapping functions should be accessed via an ECOFF specific target
+       vector.
+       * Makefile.in (coff-mips.o): Depends on libecoff.h.
+
+Wed Feb  3 09:14:36 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * coffcode.h: Removed MIPS specific information, since coff-mips.c
+       no longer includes this file.
+
+       * coff-msym.c (ecoff_swap_fdr_in, ecoff_swap_ext_in): Set reserved
+       bits to 0 to make comparison test useful.
+
+       * config/irix3.mh, config/irix4.mh (HDEFINES): Set to -G 4 to
+       avoid overflowing GP accessible sections in binutils/objdump.
+
+Tue Feb  2 15:36:55 1993  Per Bothner  (bothner@cygnus.com)
+
+       * aoutx.h (NAME(aout,slurp_symbol_table)):  Made symbol
+       reading more robust:  Fail if string index is out of string
+       table range.
+
+Tue Feb  2 11:43:25 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
+
+       * bout.c (b_out_get_relocated_section_contents, cases PCREL24 and
+       PCREL13): Don't take dst_address into account; the input file has
+       already taken care of that.
+
+Tue Feb  2 11:41:06 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * coff-mips.c: Completed support for linker and binutils.
+
+Mon Feb  1 14:45:38 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
+
+       * bout.c (b_out_get_relocated_section_contents, case ABS32): Keep
+       original addend from section contents.
+
+Thu Jan 28 21:01:37 1993  John Gilmore  (gnu@cygnus.com)
+
+       Fix minor bugs reported by Carl Greco, <cgreco@parrot.creighton.edu>:
+       * hosts/delta88.h (strtol):  Fix prototype.
+       * config/m88k-coff.mt (SELECT_ARCHITECTURES):  Fix name.
+
+Wed Jan 27 17:16:51 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
+
+       * elf.c: Get rid of "#ifdef sparc".
+       (RELOC_TYPE_NAMES): Never used (currently), so don't include it.
+       (elf_sparc_howto_table): Renamed from elf_howto_table, and always
+       used.
+       (elf_info_to_howto): Use runtime conditionals on CPU type, not
+       compile type conditionals on host CPU.
+       (elf_little_vec, elf_big_vec): Use bfd_default_reloc_type_lookup,
+       not null pointer.
+       (reloc_type, RELOC_TYPE_NAMES): Include i386 values.
+
+Tue Jan 26 11:43:14 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * section.c (SEC_IS_COMMON): New section flag, needed for MIPS
+       ECOFF which has two common sections.
+       (bfd_com_section): Set SEC_IS_COMMON flag.
+       * bfd-in.h (bfd_is_com_section): New macro to test SEC_IS_COMMON.
+       * aoutx.h, archive.c, bout.c, coff-a29k.c, coff-m88k.c,
+       coff-mips.c, coffgen.c, ieee.c, oasys.c, reloc.c, syms.: Use
+       bfd_is_com_section macro rather than checking for equality to
+       bfd_com_section.
+
+Mon Jan 25 15:27:36 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * coffcode.h (_bfd_coff_mkobject_hook): Pass aouthdr argument.
+       (coff_mkobject_hook): Accept aouthdr argument.
+       * coffgen.c (coff_real_object_p): Pass aouthdr to mkobject_hook.
+       Handle NULL aouthdr argument.
+       (coff_object_p): If there is no aouthdr, pass it as NULL to
+       coff_real_object_p.
+       * libcoff.h: Rebuilt for mkobject_hook changes.
+
+       * coffswap.h (coff_swap_aouthdr_in, coff_swap_aouthdr_in): Swap
+       additional MIPS ECOFF fields.
+
+Sat Jan 23 18:36:20 PST 1993  Ralph Campbell  (ralphc@pyramid.com)
+
+       * configure.host: added mips-dec-bsd*
+       * configure.in: added mips-dec-bsd*
+       * aout-mipsbsd.c: new file for mips-dec-bsd*
+       * aout-target.h: don't define '' if 'MY_BFD_TARGET' is defined.
+       * aoutx.h: added mips support.
+       * archures.c: added mips support to bfd_default_scan().
+       * cpu-mips.c: added support for R4000 (untested).
+       * libaout.h: added MIPS1 & MIPS2 magic numbers.
+       * reloc.c: fix typo's in comments. Added BFD_RELOC entries which I
+               hope will make it into include/bfd.h.
+       * targets.c: added aout_mips_*_vec.
+
+Wed Jan 20 17:15:52 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * config/decstation.mt: Set DEFAULT_VECTOR to ecoff_little_vec.
+
+Tue Jan 19 09:06:14 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * bfd-in.h (bfd_asymbol_value): Add needed parentheses.
+
+       * libcoff-in.h: Update prototype for coff_count_linenumbers.
+
+Fri Jan 15 18:13:17 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * coff-msym.c (ecoff_swap_hdr_out, ecoff_swap_fdr_out,
+       ecoff_swap_pdr_out, ecoff_swap_sym_out, ecoff_swap_ext_out,
+       ecoff_swap_rndx_out, ecoff_swap_rfd_out, ecoff_swap_opt_in,
+       ecoff_swap_opt_out, ecoff_swap_dnr_in, ecoff_swap_dnr_out): New
+       functions.
+       * coffswap.h: If NO_COFF_RELOCS is defined, don't define
+       bfd_swap_reloc_in or coff_swap_reloc_out.
+       * coff-mips.c: Added code to link and write out symbolic debugging
+       information, and to swap relocs in and out.
+
+Thu Jan 14 15:51:58 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
+
+       * libcoff.h, coffgen.c (coff_count_linenumbers), coffcode.h
+       (coff_write_object_contents): coff_count_linenumbers returns the
+       number of line number records it found.
+
+       * coffgen.c (coff_write_linenumbers): only write out line numbers
+       in the section they belong to.
+
+Mon Jan 11 18:32:22 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * targets.c (bfd_target): Added relocateable argument to
+       _bfd_get_relocated_section_contents.  Added _bfd_seclet_link
+       target vector for linker use.
+       * bfd.c (bfd_seclet_link): New macro.
+       * bfd-in.h (JUMP_TABLE): Added _bfd_seclet_link.
+       * seclet.c (rel, seclet_dump_seclet): Added relocateable argument
+       and boolean return value.  Made static.
+       (bfd_generic_seclet_link): Renamed from seclet_dump.  Added
+       relocateable argument.
+       * reloc.c (bfd_generic_get_relocated_section_contents): Added
+       relocateable argument (if relocateable, saves relocs).
+       * bout.c (b_out_get_relocated_section_contents),
+       reloc16.c (bfd_coff_reloc16_get_relocated_section_contents): Added
+       relocateable argument (if relocateable, just calls
+       bfd_generic_get_relocated_section_contents).
+       * libcoff-in.h (bfd_coff_reloc16_get_value): Added relocateable
+       argument to prototype.
+       * All targets: Set new _bfd_seclet_link vector to
+       bfd_generic_seclet_link.
+
+Sat Jan  9 21:29:32 1993  Stu Grossman  (grossman at cygnus.com)
+
+       * coffgen.c:  #include seclet.h.
+
+Sat Jan  9 19:48:14 1993  Stu Grossman  (grossman at cygnus.com)
+
+       * hppa.c (hppa_object_setup):  Get rid of all knowledge of stabs
+       debug info.  Setup info about linker symbols only, and use
+       standard bfd fields to hold the info.
+       * (hppa_object_p):  Remove unneeded decls.
+       * (hppa_new_section_hook):  Get rid of most of this.
+       * libhppa.h (struct hppadata):  Remove ten pounds of useless ugly
+       fat.  Remove all knowledge of stabs, remove redundant knowledge of
+       linker symbols.
+       * Remove macros for accessing fields which are now gone.
+
+Fri Jan  8 15:20:00 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
+
+       * coffcode.h (sec_to_styp_flags): allow SEC_NEVER_LOAD to turn on
+       STYP_NOLOAD bit.
+       * coff-z8k.c: delete unused reloc functions
+
+Fri Jan  8 15:47:53 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * bfd.c (struct _bfd): Added ecoff_tdata to tdata union.
+       * targets.c (enum target_flavour): Added bfd_target_ecoff_flavour.
+       * coff-msym.c: Use DEFUN for function definitons.
+       * coff-mips.c: Added code to read and print symbols, and to find
+       line numbers.
+
+       * coffcode.h: Moved many generic functions into coffgen.c.  Moved
+       swapping functions into coffswap.h for ECOFF use.  Moved
+       relocation functions, only used by h8300 and z8k, into reloc16.c.
+       Added hooks for coffgen.c functions to backend data structure, and
+       added hook functions.  Still more could be done.
+       * coffswap.h: New file to hold COFF swapping routines.
+       * coffgen.c: New file to hold generic COFF functions.
+       * reloc16.c: New file to hold h8300 and z8k specific relocation
+       functions.
+       * libcoff-in.h: Added declarations for functions in coffgen.c.
+       * libcoff.h: Rebuilt to incorporate changes.
+       * coff-h8300.c: Function name changes.
+       * coff-z8k.c: Function name changes.  Use coff_reloc16_extra_cases
+       hook rather than defining EXTRA_CASES.
+       * Makefile.in: Build new files coffgen and reloc16.  Added
+       dependencies of coff-*.o on coffswap.h and seclet.h.
+
+Thu Jan  7 16:16:26 1993  Per Bothner  (bothner@cygnus.com)
+
+       * ieee.c (ieee_slurp_sections):  Add cast to avoid warning
+       about discarding const.
+
+Wed Jan  6 00:16:49 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
+
+       * archive.c, seclet.c, elf.c use bfd_xmalloc instead of malloc
+
+Tue Jan  5 09:35:57 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
+
+       * configure.in (post-target): If --with-minimal-bfd is specified,
+       set MINIMIZE=1.
+
+Mon Jan  4 07:20:01 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
+
+       * srec.c (srec_write_records): one of my boards wants a CR between
+       records.
+
+Wed Dec 30 12:46:30 1992  Ian Lance Taylor  (ian@cygnus.com)
+
+       * archive.c (do_slurp_coff_armap): set symdef_count correctly
+       (it broke a couple of weeks ago).
+
+Tue Dec 29 21:41:05 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
+
+       * elf.c (bfd_elf_find_section): Switch back to "struct ..." for
+       return type, so libbfd.h doesn't reference undefined typedefnames.
+
+Tue Dec 29 13:54:35 1992  Ian Lance Taylor  (ian@cygnus.com)
+
+       * coffcode.h (coff_real_object_p): use name I386AIXMAGIC rather
+       than I386SVMAGIC.
+       (coff_pointerize_aux): don't pointerize a negative tagndx
+       (sometimes generated by SCO 3.2v4 cc).
+
+       * bout.c (calljx_callback, callj_callback,
+       b_out_get_relocated_section_contents): warn if relocating against
+       an undefined symbol.
+
+Mon Dec 28 14:30:55 1992  Stu Grossman  (grossman at cygnus.com)
+
+       * hppa.c:  Get rid of DEFUN, use more conventional prolog stuff.
+       Make a bunch more routines be static.
+       * hppa.c (fill_spaces):  Get rid of this, replace with much better
+       written setup_sections().
+       * (setup_sections):  New routine to create BFD sections for each
+       space and subspace in SOM files.
+       * (hppa_object_setup):  Use BFD sections created by
+       setup_sections() to locate GDB symbol table info.
+       * (make_unique_section):  New routine to create a BFD section.  It
+       ensures that the given name is unique, and will generate a unique
+       one if necessary.
+       * (hppa_object_p):  Become much more paranoid about file header.
+       * (make_bfd_asection):  Call bfd_make_section to do the dirty
+       work.  Simplify code somewhat.
+       * (hppa_core_file_p):  Use proper name for stack section.
+       * libhppa.h:  Remove millicode_start, millicode_end decls.
+
+Mon Dec 28 11:03:22 1992  Ken Raeburn  (raeburn@cygnus.com)
+
+       * Makefile.in (coff-we32k.o, coff-z8k.o): Note dependencies.
+
+       * reloc.c (bfd_perform_relocation): For normal 2- or 4-byte
+       relocs, don't bother doing the adjustment if the value to add is
+       zero.
+
 Sun Dec 27 17:45:05 1992  Fred Fish  (fnf@cygnus.com)
 
        * bfd.c (bfd_get_size):  New function that gets an upper bound
This page took 0.053042 seconds and 4 git commands to generate.