binutils-gdb.git
30 years ago * bfd-in.h (BFD_TRADITIONAL_FORMAT): Define new BFD flag to
Ian Lance Taylor [Wed, 15 Jun 1994 05:46:46 +0000 (05:46 +0000)]
* bfd-in.h (BFD_TRADITIONAL_FORMAT): Define new BFD flag to
request BFD to write object in the traditional format, whatever
that means for the particular backend.
* bfd-in2.h: Rebuilt.

30 years ago * ldctor.c (ldctor_add_entry): Add entries to a set in the order
Ian Lance Taylor [Wed, 15 Jun 1994 03:12:42 +0000 (03:12 +0000)]
* ldctor.c (ldctor_add_entry): Add entries to a set in the order
they are encountered.

30 years agoCorrect copyright date and add usual blank lines in header.
Ian Lance Taylor [Wed, 15 Jun 1994 02:47:49 +0000 (02:47 +0000)]
Correct copyright date and add usual blank lines in header.

30 years agoNew features. Less bugs.
Thomas Lord [Wed, 15 Jun 1994 00:28:50 +0000 (00:28 +0000)]
New features. Less bugs.

30 years ago * result.ch, result.exp, Makefile.in: New test case.
Per Bothner [Tue, 14 Jun 1994 23:23:14 +0000 (23:23 +0000)]
* result.ch, result.exp, Makefile.in:  New test case.
* pr-4975.ch, pr-4975-grt.ch, pr-4975.exp, Makefile.in:  Ditto.

30 years agoModified Files:
Kung Hsu [Tue, 14 Jun 1994 23:22:44 +0000 (23:22 +0000)]
Modified Files:
breakpoint.c ChangeLog

        * breakpoint.c: annotate changes lost at merge, put back in.

30 years agoTue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
Ian Lance Taylor [Tue, 14 Jun 1994 22:07:40 +0000 (22:07 +0000)]
Tue Jun 14 18:05:09 1994  Eric Youngdale  (ericy@cais.cais.com)

* emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
(NONPAGED_TEXT_START_ADDR): Define as 0x20.

30 years ago * libaout.h (struct aoutdata): Add q_magic_format to subformat
Ian Lance Taylor [Tue, 14 Jun 1994 22:04:54 +0000 (22:04 +0000)]
* libaout.h (struct aoutdata): Add q_magic_format to subformat
enum.
* aout-target.h (MY_bfd_copy_private_bfd_data): Define as function
if not already defined.  Copy subformat information.
(MY_text_includes_header): Define as 0 if not already defined.
(MY(backend_data)): Use MY_text_includes_header rather than 0.
(MY_final_link_callback): Rename from final_link_callback, and
define only if MY_final_link_callback is not already defined.
(MY_bfd_final_link): Rename use of final_link_callback to
MY_final_link_callback.
* aoutx.h (NAME(aout,some_aout_object_p)): Handle QMAGIC like
ZMAGIC, but set the subformat to q_magic_format.  Abort if the
magic number if not recognized.
(adjust_z_magic): Use QMAGIC if q_magic_format.
* i386linux.c (MY_text_includes_header): Define as 1.
(i386linux_bfd_final_link): New static function.
(MY_bfd_final_link): Define as i386linux_bfd_final_link.

* aoutx.h (translate_to_native_sym_flags): Check both section and
output_section against sections of abfd.

30 years agoFor PR 4865.
Ian Lance Taylor [Tue, 14 Jun 1994 17:06:08 +0000 (17:06 +0000)]
For PR 4865.
* libecoff.h (struct ecoff_link_hash_entry): Change type of
written from boolean to char.  Add new field small.
* ecoff.c (ecoff_link_hash_newfunc): Initialize written to 0
rather than false.  Initialize small to 0.
(ecoff_link_add_externals): If ECOFF type is scSUndefined, set
small.  If small is set, and hash table type is common, force the
symbol into a section named SCOMMON and change the ECOFF type from
scCommon to scSCommon.
(ecoff_link_write_external): Set written to 1 rather than true.
* coff-mips.c (mips_relocate_section): Correct JMPADDR reloc
overflow check to consider section VMA of input file.

30 years agoMon Jun 13 17:28:50 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Tue, 14 Jun 1994 00:47:06 +0000 (00:47 +0000)]
Mon Jun 13 17:28:50 1994  Stan Shebs  (shebs@andros.cygnus.com)

* config/i386/i386sco.mh, i386sco4.mh (XDEPFILES): Remove
i387-tdep.o.

30 years ago * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
Ian Lance Taylor [Mon, 13 Jun 1994 22:34:46 +0000 (22:34 +0000)]
* scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
_FTEXT, _ETEXT and _FDATA.  Dont define _END.

30 years ago * ldfile.c (open_a): If this is not an archive, try to open it in
Ian Lance Taylor [Mon, 13 Jun 1994 21:35:27 +0000 (21:35 +0000)]
* ldfile.c (open_a): If this is not an archive, try to open it in
the current directory before searching for it.

30 years ago * lexsup.c (parse_args): Treat -i as a synonym for -r.
Ian Lance Taylor [Mon, 13 Jun 1994 21:00:20 +0000 (21:00 +0000)]
* lexsup.c (parse_args): Treat -i as a synonym for -r.

30 years ago * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
Ian Lance Taylor [Mon, 13 Jun 1994 20:25:28 +0000 (20:25 +0000)]
* ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
BLOCK works in a section address as documented.

30 years ago * ldgram.y (YYDEBUG): Don't define.
Ian Lance Taylor [Mon, 13 Jun 1994 19:47:50 +0000 (19:47 +0000)]
* ldgram.y (YYDEBUG): Don't define.

30 years agoModified Files:
Kung Hsu [Mon, 13 Jun 1994 19:31:01 +0000 (19:31 +0000)]
Modified Files:
.Sanitize ChangeLog

        * .Sanitize: change name from sparclite-*.c to sparcl-*.c.

30 years ago * aoutf1.h (aout_32_sunos4_write_object_contents): Handle a
Ian Lance Taylor [Mon, 13 Jun 1994 18:25:12 +0000 (18:25 +0000)]
* aoutf1.h (aout_32_sunos4_write_object_contents): Handle a
machine type of 68000.
* aoutx.h (NAME(aout,machine_type)): Add new argument unknown.
Set *unknown to true if machine type is really unknown, as opposed
to M_UNKNOWN for the 68000.
(NAME(aout,set_arch_mach)): Change NAME(aout,machine_type) call
accordingly.
* libaout.h (NAME(aout,machine_type)): Add new argument to
prototype.

30 years ago * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
Ian Lance Taylor [Mon, 13 Jun 1994 16:13:10 +0000 (16:13 +0000)]
* config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
to put a common symbol in a set.

30 years ago * som.c (EXEC_AUX_ID): Define based on availablity of HPUX_AUX_ID
Jeff Law [Mon, 13 Jun 1994 02:31:43 +0000 (02:31 +0000)]
* som.c (EXEC_AUX_ID): Define based on availablity of HPUX_AUX_ID
or HIUX_AUX_ID.
(som_begin_writing): Use EXEC_AUX_ID instead of HPUX_AUX_ID.
(som_write_armap): Use CPU_PA_RISC1_0 as the magic number.  Note
som.c is careful to always define CPU_PA_RISC1_0.

30 years agoConditionalize on mips-idt-ecoff.
Stan Shebs [Sun, 12 Jun 1994 23:59:15 +0000 (23:59 +0000)]
Conditionalize on mips-idt-ecoff.

30 years agoSun Jun 12 16:38:42 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sun, 12 Jun 1994 23:41:37 +0000 (23:41 +0000)]
Sun Jun 12 16:38:42 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-make.in (C, CFLAGS): Removed definitions.
(ALL_CFLAGS): Define.
Set default rule to use {CC} instead of {C}.

30 years agoSun Jun 12 16:30:34 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sun, 12 Jun 1994 23:37:35 +0000 (23:37 +0000)]
Sun Jun 12 16:30:34 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-mh-mpw (CC): Define ALMOST_STDC.
(CFLAGS): Remove ALMOST_STDC, -mc68881.
(LDFLAGS): add -w.

30 years agoSun Jun 12 16:25:36 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sun, 12 Jun 1994 23:29:43 +0000 (23:29 +0000)]
Sun Jun 12 16:25:36 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-configure (config.status): Write only if changed.
* mpw-config.in (readline): Configure it (not built, just used for
definitions).
* mpw-README: Add/update information.

30 years ago * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
Peter Schauer [Sun, 12 Jun 1994 11:11:39 +0000 (11:11 +0000)]
* config/m68k/dpx2.mh (NATDEPFILES):  Remove duplicate inclusion
of inftarg.o.
* config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER):  Define to inhibit
writing of floating registers, the dpx2 kernel disallows it.

30 years ago * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
Peter Schauer [Sun, 12 Jun 1994 11:10:13 +0000 (11:10 +0000)]
* config/m68k/dpx2.mh (NATDEPFILES):  Remove duplicate inclusion
of inftarg.o.
* config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER):  Define to inhibit
writing of floating registers, the dpx2 kernel disallows it.
* irix5-nat.c (LM_ADDR):  The loaded address of the shared library
is contained in o_praw.
* irix5-nat.c (solib_map_sections):  Adjust sections by the
difference between the loaded address and the prelinked address.
* irix5-nat.c (solib_address):  Use LM_ADDR for the loaded start
address.
* mdebugread.c (parse_symbol):  Do not relocate stEnd/scText
symbols, their value is absolute.
* mdebugread.c (parse_partial_symbols):  Handle Irix 5.2 shared
libraries fh->adr fields of zero. Relocate minimal symbol values
upon readin. Relocate non-stabs symbols upon readin.
* mdebugread.c (psymtab_to_symtab_1):  Use pst->textlow for the
start address of the outermost block.
* mdebugread.c (parse_lines, parse_procedure):  Pass in pst
instead of section_offsets and use relocated pst->textlow for
line number and procedure address relocations.

From gmo@MicroUnity.com (Guillermo A. Loyola):
* mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
Handle SGI Irix5 stIndirect symbol type.

30 years ago * symconst.h: Pick up SGI define for stIndirect.
Peter Schauer [Sun, 12 Jun 1994 10:56:35 +0000 (10:56 +0000)]
* symconst.h:  Pick up SGI define for stIndirect.

30 years ago * history.c: Swap inclusion of rldefs.h and chardefs.h to avoid
Peter Schauer [Sun, 12 Jun 1994 10:54:41 +0000 (10:54 +0000)]
* history.c:  Swap inclusion of rldefs.h and chardefs.h to avoid
CTRL macro redefinition.

30 years ago Add weak symbols as an extension to a.out.
Ian Lance Taylor [Sat, 11 Jun 1994 20:45:49 +0000 (20:45 +0000)]
Add weak symbols as an extension to a.out.
* read.c (pseudo_set): Only preserve external bit for OBJ_AOUT and
OBJ_BOUT if not BFD_ASSEMBLER.
* config/aout_gnu.h (N_WEAKU, N_WEAKA, N_WEAKT, N_WEAKD, N_WEAKB):
Define as in ../include/aout/aout64.h.
* config/obj-aout.h (OBJ_SYMFIELD_TYPE): If not BFD_ASSEMBLER,
define as char.
(S_GET_WEAK, S_SET_WEAK): Define if not BFD_ASSEMBLER.
* config/obj-aout.c (obj_pseudo_table): Add "weak".
(obj_emit_symbols): Adjust type of weak symbols.
(obj_aout_weak): New static function.

30 years ago Add weak symbols as an extension to a.out.
Ian Lance Taylor [Sat, 11 Jun 1994 20:40:59 +0000 (20:40 +0000)]
Add weak symbols as an extension to a.out.
* aoutx.h (sym_in_text_section): Don't define.
(sym_in_data_section, sym_in_bss_section): Likewise.
(sym_is_undefined, sym_is_global_defn): Likewise.
(sym_is_debugger_info, sym_is_fortrancommon): Likewise.
(sym_is_absolute, sym_is_indirect): Likewise.
(translate_from_native_sym_flags): Rewrite for clarity.  Rearrange
arguments and change caller.  Handle weak symbols.
(translate_to_native_sym_flags): Likewise.
(aout_link_check_ar_symbols): Don't ignore weak symbols.  Pull
object in from archive if a weak defintion is found for an
existing undefined symbol.
(aout_link_add_symbols): Put all cases in switch.  Set flags of an
undefined symbol to 0.  Handle weak symbols.
(aout_link_write_symbols): Handle weak symbols.
(aout_link_write_other_symbol): Likewise.
(aout_link_input_section_std): Likewise.
(aout_link_input_section_ext): Likewise.
* sunos.c (sunos_write_dynamic_symbol): Likewise.

30 years ago Add weak symbols as an extension to a.out.
Ian Lance Taylor [Sat, 11 Jun 1994 20:39:54 +0000 (20:39 +0000)]
Add weak symbols as an extension to a.out.
* aout64.h (N_WEAKU, N_WEAKA, N_WEAKT, N_WEAKD, N_WEAKB): Define.
* stab.def: Update symbol value table.

30 years agoModified Files:
Kung Hsu [Sat, 11 Jun 1994 01:09:25 +0000 (01:09 +0000)]
Modified Files:
breakpoint.c ChangeLog

        * breakpoint.c: fix a syntax error native cc does not like.

30 years agoModified Files:
Kung Hsu [Sat, 11 Jun 1994 00:03:28 +0000 (00:03 +0000)]
Modified Files:
sparclite.mt

* change sparclite-tdep.o to sparcl-tdep.o.

30 years agoModified Files:
Kung Hsu [Fri, 10 Jun 1994 23:55:12 +0000 (23:55 +0000)]
Modified Files:
Makefile.in ChangeLog

        * Makefile.in: change sparclite-tdep.c to sparcl-tdep.c.

30 years agoAdded Files:
Kung Hsu [Fri, 10 Jun 1994 23:26:59 +0000 (23:26 +0000)]
Added Files:
  sparcl-tdep.c sparcl-stub.c
Removed Files:
sparclite-tdep.c sparclite-stub.c

* change file name because fisrt 8 chars has to be unique.

30 years agoModified Files:
Kung Hsu [Fri, 10 Jun 1994 22:37:48 +0000 (22:37 +0000)]
Modified Files:
.Sanitize

        * .Sanitize: add sparclite-stub.c sparclite-tdep.c to keep.

30 years agoModified Files:
Kung Hsu [Fri, 10 Jun 1994 21:58:48 +0000 (21:58 +0000)]
Modified Files:
ChangeLog

        * sparclite/Makefile.in: fix INCLUDE_CFLAGS to have {srcdir}/../config.

30 years ago * config/obj-elf.c (obj_elf_section): Don't set any flags based on
Ian Lance Taylor [Fri, 10 Jun 1994 21:42:30 +0000 (21:42 +0000)]
* config/obj-elf.c (obj_elf_section): Don't set any flags based on
the type of a special section.

30 years agoDon't sanitize out SPARC v9 stuff.
Ian Lance Taylor [Fri, 10 Jun 1994 21:22:31 +0000 (21:22 +0000)]
Don't sanitize out SPARC v9 stuff.

30 years agoRestore sparc64 targets clobbered in 1994/04/07 checkin.
Ian Lance Taylor [Fri, 10 Jun 1994 21:19:49 +0000 (21:19 +0000)]
Restore sparc64 targets clobbered in 1994/04/07 checkin.

30 years ago * nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.
Ian Lance Taylor [Fri, 10 Jun 1994 21:14:49 +0000 (21:14 +0000)]
* nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.

30 years ago * emultempl/gld960.em: Pass false for new argument to
Ian Lance Taylor [Fri, 10 Jun 1994 20:48:41 +0000 (20:48 +0000)]
* emultempl/gld960.em: Pass false for new argument to
ldfile_add_library_path.
* emultempl/gld960c.em, emultempl/lnk960.em: Likewise.

30 years ago * emultempl/sunos.em: Only look for .so files if doing a dynamic
Ian Lance Taylor [Fri, 10 Jun 1994 20:46:42 +0000 (20:46 +0000)]
* emultempl/sunos.em: Only look for .so files if doing a dynamic
link.

30 years ago * objcopy.c (copy_archive): Make the temporary directory in the
Ian Lance Taylor [Fri, 10 Jun 1994 19:43:49 +0000 (19:43 +0000)]
* objcopy.c (copy_archive): Make the temporary directory in the
same directory as the output BFD, since we may not have write
permission on the current directory.  Set the permissions of the
new directory to 0700, not 0777.

30 years ago * aoutx.h (NAME(aout,canonicalize_reloc)): Handle .bss section.
Ian Lance Taylor [Fri, 10 Jun 1994 19:00:28 +0000 (19:00 +0000)]
* aoutx.h (NAME(aout,canonicalize_reloc)): Handle .bss section.
(NAME(aout,get_reloc_upper_bound)): Likewise.

30 years ago * config/ho-sunos.h: Include <stdlib.h>. Don't declare malloc,
Ian Lance Taylor [Fri, 10 Jun 1994 17:55:45 +0000 (17:55 +0000)]
* config/ho-sunos.h: Include <stdlib.h>.  Don't declare malloc,
realloc, free, or atol.

30 years ago * coff-i960.c (coff_i960_reloc_type_lookup): Add BFD_RELOC_CTOR.
Ian Lance Taylor [Fri, 10 Jun 1994 17:27:22 +0000 (17:27 +0000)]
* coff-i960.c (coff_i960_reloc_type_lookup): Add BFD_RELOC_CTOR.
* linker.c (_bfd_generic_link_write_global_symbol): Don't assume
the section of a common symbol is not NULL.

30 years ago * gdb.base/recurse.exp: Misc changes to get tests running again
Jeff Law [Fri, 10 Jun 1994 17:10:08 +0000 (17:10 +0000)]
* gdb.base/recurse.exp: Misc changes to get tests running again
after Kung's changes to the watchpoint code.
* gdb.base/watchpoint.exp: Likewise.

30 years ago * hppa-tdep.c (target_read_pc, target_write_pc): Accept (and
Jeff Law [Fri, 10 Jun 1994 16:43:52 +0000 (16:43 +0000)]
* hppa-tdep.c (target_read_pc, target_write_pc): Accept (and
ignore) a PID argument.
(hppa_pop_frame): Pass a PID to target_write_pc.
* config/pa/tm-hppa.h (TARGET_READ_PC, TARGET_WRITE_PC): Accept
and pass through a PID argument.
(target_read_pc, target_write_pc): Update prototypes.

30 years ago * gas/hppa/reloc/reloc.exp (roundmode test): Tweak expected output
Jeff Law [Fri, 10 Jun 1994 16:24:54 +0000 (16:24 +0000)]
    * gas/hppa/reloc/reloc.exp (roundmode test): Tweak expected output
        for SOM to match current testcase.

30 years ago * pr-5022.ch, pr-5022.exp: New testcase.
Per Bothner [Fri, 10 Jun 1994 02:17:06 +0000 (02:17 +0000)]
* pr-5022.ch, pr-5022.exp:  New testcase.
* chillvars.exp:  Remove spurious newline.

30 years agoModified Files:
Kung Hsu [Fri, 10 Jun 1994 01:30:06 +0000 (01:30 +0000)]
Modified Files:
breakpoint.c breakpoint.h ChangeLog
Added Files:
sparclite-tdep.c sparclite-stub.c

        * sparclite-tdep.c: new file, contains hardware breakpoint support
        code.
        * sparclite-stub.c: new file, stub code that add support hardware
        breakpoint support.
        * breakpoint.c: add hardware breakpoint support.
        * breakpoint.h: add new breakpoint type to support hardware
        breakpoint.

30 years agoModified Files:
Kung Hsu [Fri, 10 Jun 1994 01:24:22 +0000 (01:24 +0000)]
Modified Files:
sparclite.mt tm-sparclite.h

        * config/sparc/sparclite.mt: add sparclite-tdep.o.
        * config/sparc/tm-sparclite.h: add hardware breakpoints support
        defiines and code.

30 years agoModified Files:
Kung Hsu [Fri, 10 Jun 1994 01:23:20 +0000 (01:23 +0000)]
Modified Files:
nm-hppab.h

        * config/pa/nm-hppab.h: change interface for target dependent
        code supporting watch point.

30 years agoModified Files:
Kung Hsu [Fri, 10 Jun 1994 01:22:38 +0000 (01:22 +0000)]
Modified Files:
nm-irix4.h

         * config/mips/nm-irix4.h: change interface for target dependent
        code supporting watch point.

30 years agoModified Files:
Kung Hsu [Thu, 9 Jun 1994 23:22:56 +0000 (23:22 +0000)]
Modified Files:
ChangeLog

        * remote-os9k.c (rombuf_command): fix a bug accepting rombug
        output.
        * stabsread.c (read_struct_fields): os9k nested structure does not
        have terminating ';', instead it just get to ',' and bit position
        and length.

30 years ago * Makefile.in: Bunch of fixes so it actually works in this
Per Bothner [Thu, 9 Jun 1994 23:13:54 +0000 (23:13 +0000)]
* Makefile.in:  Bunch of fixes so it actually works in this
directory.  (E.g. add extra ../ where needed.)
Also, add .exe to executables, so we can use suffix rules.
* chexp.exp (test_print_reject):  Update syntax error message.
* chillvars.ch (module PR_5020):  Moved from here ...
* pr-5022.ch: ... to this new file.
* chillvars.exp, pr-5020.exp (binfile):  Add .exe extension.
* chillvars.exp, pr-5020.exp: Don't check all_flag.
* pr-5020.exp:  Add more tests; fix "print y pretty" output.

30 years agocvs server works fine on the RS/6000 these days. Only turned on for real
Mark Eichin [Thu, 9 Jun 1994 22:37:13 +0000 (22:37 +0000)]
cvs server works fine on the RS/6000 these days. Only turned on for real
rs6000, though, rather than power and lynx.

30 years agoModified Files:
Kung Hsu [Thu, 9 Jun 1994 22:03:41 +0000 (22:03 +0000)]
Modified Files:
remote-os9k.c stabsread.c

        * remote-os9k.c (rombuf_command): fix a bug accepting rombug
        output.
        * stabsread.c (read_struct_fields): os9k nested structure does not
        have terminating ';', instead it just get to ',' and bit position
        and length.

30 years ago * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
Ian Lance Taylor [Thu, 9 Jun 1994 15:39:33 +0000 (15:39 +0000)]
* scripttempl/i960.sc: Add CONSTRUCTORS to .data.

30 years ago(nlm_symfile_read): Use SYMBOL_CLASS to access symbol class.
Stu Grossman [Thu, 9 Jun 1994 15:32:46 +0000 (15:32 +0000)]
(nlm_symfile_read):  Use SYMBOL_CLASS to access symbol class.

30 years ago * Makefile.in (check): Delete ld.new dependency so that a regression
Bill Cox [Thu, 9 Jun 1994 13:54:28 +0000 (13:54 +0000)]
* Makefile.in (check): Delete ld.new dependency so that a regression
  test doesn't trigger a rebuild of the linker.

30 years ago * nlmread.c (nlm_symtab_read): Clean up a bit.
Stu Grossman [Thu, 9 Jun 1994 06:30:38 +0000 (06:30 +0000)]
* nlmread.c (nlm_symtab_read):  Clean up a bit.
* (nlm_symfile_read):  Record bounds of main() so that backtrace
command will know where to stop.
* objfiles.c (objfile_relocate):  Relocate entry point/func info
for backtrace as well.
* objfiles.h:  Define values for invalid PCs for entry point info.
* symfile.c (init_entry_point_info):  Initialize invalid values
with aforementioned macros.
* config/alpha/tm-alphanw.h:  Turn on FRAME_CHAIN_VALID_ALTERNATE
to cause backtrace to stop when it gets back to main().
* config/i386/tm-i386nw.h:  Ditto.

30 years ago * configure: Remove temporary files on receipt of a signal.
Ian Lance Taylor [Thu, 9 Jun 1994 04:28:50 +0000 (04:28 +0000)]
* configure: Remove temporary files on receipt of a signal.

30 years ago * ldlang.c (map_input_to_output_sections): For lang_address, call
Ian Lance Taylor [Thu, 9 Jun 1994 04:18:39 +0000 (04:18 +0000)]
* ldlang.c (map_input_to_output_sections): For lang_address, call
init_os if it hasn't already been called.

30 years ago * aoutx.h (aout_get_external_symbols): Don't try to read the
Ian Lance Taylor [Thu, 9 Jun 1994 03:59:22 +0000 (03:59 +0000)]
* aoutx.h (aout_get_external_symbols): Don't try to read the
strings if there are no symbols.
(aout_link_write_other_symbol): Use the output section when
working out the type.

30 years agoWed Jun 8 12:12:17 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 8 Jun 1994 19:25:43 +0000 (19:25 +0000)]
Wed Jun  8 12:12:17 1994  Stan Shebs  (shebs@andros.cygnus.com)

* config/udi-gdb.exp, config/unix-gdb.exp: Call default_gdb_start.
* lib/gdb.exp (default_gdb_start): Define.

30 years ago * Makefile.in (check): Delete as.new dependency, so that
Bill Cox [Wed, 8 Jun 1994 13:30:30 +0000 (13:30 +0000)]
* Makefile.in (check): Delete as.new dependency, so that
regression test doesn't trigger an assembler build.

30 years agors6k lynx changes
David Henkel-Wallace [Wed, 8 Jun 1994 05:05:21 +0000 (05:05 +0000)]
rs6k lynx changes

30 years agoTue Jun 7 18:45:39 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 8 Jun 1994 01:53:20 +0000 (01:53 +0000)]
Tue Jun  7 18:45:39 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-config.in (target_arch): Compute from canonical target.
(m68k, mips, powerpc, sparc): Add architectures.
* mpw-make.in (disassemble.c.o): Add.
(ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).

30 years agoMove "@" so it's actually on the first line of the shell script in the
Rob Savoye [Wed, 8 Jun 1994 01:03:08 +0000 (01:03 +0000)]
Move "@" so it's actually on the first line of the shell script in the
makefile target.

30 years ago * elfcode.h (assign_section_numbers): Put shstrtab, symtab and
Ian Lance Taylor [Tue, 7 Jun 1994 20:20:05 +0000 (20:20 +0000)]
* elfcode.h (assign_section_numbers): Put shstrtab, symtab and
strtab sections at end of file.  Avoids bug in some versions of
SVR4 strip.  From Eric Youngdale <eric@tantalus.nrl.navy.mil>.

30 years ago * configure: If there is a package_makefile_frag, remove
Ian Lance Taylor [Tue, 7 Jun 1994 19:07:34 +0000 (19:07 +0000)]
* configure: If there is a package_makefile_frag, remove
${subdir}/Makefile.tem after copying it in.

30 years ago * coffcode.h (styp_to_sec_flags): If COFF_PAGE_SIZE is defined,
Ian Lance Taylor [Tue, 7 Jun 1994 17:48:00 +0000 (17:48 +0000)]
* coffcode.h (styp_to_sec_flags): If COFF_PAGE_SIZE is defined,
set SEC_DEBUGGING for STYP_INFO sections.
(coff_compute_section_file_positions): If COFF_PAGE_SIZE is
defined, and D_PAGED is set, set the file position equal to the
section VMA modulo COFF_PAGE_SIZE.
* coffgen.c (coff_real_object_p): If F_EXEC is set, set D_PAGED.
* coff-i386.c: Set D_PAGED in BFD target.
(COFF_PAGE_SIZE): Define.
* coff-m68k.c, coff-sparc.c: Likewise.

30 years ago * Makefile.in (mostlyclean, realclean): New targets.
Ian Lance Taylor [Tue, 7 Jun 1994 17:37:52 +0000 (17:37 +0000)]
* Makefile.in (mostlyclean, realclean): New targets.
* doc/Makefile.in, testsuite/Makefile.in: Likewise.

30 years ago * gdb.c++/demangle.exp: Use gdb_test_exact, rather than demangle
Jim Kingdon [Tue, 7 Jun 1994 16:40:10 +0000 (16:40 +0000)]
* gdb.c++/demangle.exp: Use gdb_test_exact, rather than demangle
(which was basically just a local version of the same thing).  In
addition to avoiding duplication, gdb_test_exact is faster.
* lib/gdb.exp (gdb_test_exact): Fix typo.

30 years ago * lib/gdb.exp (delete_breakpoints): If there were no breakpoints,
Jim Kingdon [Tue, 7 Jun 1994 16:04:40 +0000 (16:04 +0000)]
* lib/gdb.exp (delete_breakpoints): If there were no breakpoints,
don't give an error.
* gdb.base/term.exp: Call delete_breakpoints before starting.

30 years ago * gdb.base/Makefile.in (EXECUTABLES): Remove t10.
Jim Kingdon [Tue, 7 Jun 1994 15:43:59 +0000 (15:43 +0000)]
* gdb.base/Makefile.in (EXECUTABLES): Remove t10.
(t10): Add comment.

30 years agoReorganized GDB tests - Chill
Stan Shebs [Tue, 7 Jun 1994 02:01:27 +0000 (02:01 +0000)]
Reorganized GDB tests - Chill

30 years agoReorganized GDB tests - base
Stan Shebs [Tue, 7 Jun 1994 01:57:15 +0000 (01:57 +0000)]
Reorganized GDB tests - base

30 years agoMon Jun 6 18:26:50 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Tue, 7 Jun 1994 01:50:58 +0000 (01:50 +0000)]
Mon Jun  6 18:26:50 1994  Stan Shebs  (shebs@andros.cygnus.com)

Reorganization of the GDB Test Suite.

* gdb.base: New directory, contains all the basic tests.
* gdb.c++: New directory, tests specific to C++.
* gdb.chill: New directory, tests specific to Chill.
* gdb.t00, gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06,
gdb.t07, gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13,
gdb.t15, gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23,
gdb.t24, gdb.t30, gdb.t31: Removed directories, contents moved
into appropriate new directories (t00-t17 to base, t20-t23 to c++,
t30-31 to chill).
* */gdbme.*: Rename to match appropriate expect scripts.
* gdb.base/bitfields.c, gdb.base/break.c, gdb.base/callfuncs.c,
gdb.base/coremaker.c, gdb.base/exprs.c, gdb.base/funcargs.c,
gdb.base/interrupt.c, gdb.base/list0.c, gdb.base/list0.h,
gdb.base/list1.c, gdb.base/mips_pro.c, gdb.base/nodebug.c,
gdb.base/opaque-info.c, gdb.base/opaque0.c, gdb.base/opaque1.c,
gdb.base/printcmds.c, gdb.base/ptype.c, gdb.base/recurse.c,
gdb.base/return.c, gdb.base/run.c, gdb.base/scope0.c,
gdb.base/scope1.c, gdb.base/setvar.c, gdb.base/signals.c,
gdb.base/types.c, gdb.base/twice.c, gdb.base/watchpoint.c,
gdb.base/whatis-info.c, gdb.base/whatis.c: New names of C files.
* gdb.c++/cplusfuncs.cc, gdb.c++/templates.cc, gdb.c++/misc.cc,
gdb.c++/virtfunc.cc: New names of C++ files.
* gdb.chill/chillvars.ch: New name of Chill file.
* gdb.base/configure.in, gdb.c++/configure.in,
gdb.chill/configure.in: Merge in contents of gdb.t*/configure.in.
* gdb.base/Makefile.in, gdb.c++/Makefile.in,
gdb.chill/Makefile.in: Merge in contents of gdb.t*/Makefile.in.
* configure.in (configdirs): Update to reflect directory changes.
(target_abbrev): No longer define for any configuration.
* Makefile.in: Cosmetic improvements to header comments.

30 years ago * elfcode.h (bfd_section_from_shdr): Don't turn a reloc section
Ian Lance Taylor [Mon, 6 Jun 1994 23:59:27 +0000 (23:59 +0000)]
* elfcode.h (bfd_section_from_shdr): Don't turn a reloc section
into a BFD section just because SHF_ALLOC is set; require that it
not use the normal symbol table.
(elf_section_from_bfd_section): Corresponding change.

30 years agoAdd lynx targets and hppa flag info
Karen Christiansen [Mon, 6 Jun 1994 23:11:42 +0000 (23:11 +0000)]
Add lynx targets and hppa flag info

30 years agoComment change.
Ian Lance Taylor [Mon, 6 Jun 1994 22:31:58 +0000 (22:31 +0000)]
Comment change.

30 years ago Better indirect and warning symbol handling inspired by Stuart
Ian Lance Taylor [Mon, 6 Jun 1994 21:54:54 +0000 (21:54 +0000)]
Better indirect and warning symbol handling inspired by Stuart
Quick <stuck@cs.man.ac.uk>.
* linker.c (enum link_action): Add REF, MIND, CWARN, REFC.
(link_action): Change UNDEF_ROW/def and UNDEFW_ROW/def from NOACT
to REF.  Change UNDEF_ROW/indr and UNDEFW_ROW/indr from CYCLE to
REFC.  Change DEF_ROW/indr and COMMON_ROW/indr from CYCLE to MDEF.
Change DEFW_ROW/indr from CYCLE to NOACT.  Change INDR_ROW/indr
from MDEF to MIND.  Change INDR_ROW/warn from WARNC to CYCLE.
Change WARN_ROW/def and WARN_ROW/indr from MWARN to CWARN.  Change
WARN_ROW/com from MWARN to WARN.  Change WARN_ROW/warn from NOACT
to CYCLE.  Change SET_ROW/warn from WARNC to CYCLE>
(_bfd_generic_link_add_one_symbol): Handle REF, MIND, CWARN and
REFC.  If a new indirect symbol has been referenced, push the
reference down to the symbol it points to.  FIx handling of WARN.
* aoutx.h (translate_from_native_sym_flags): If N_WARNING, don't
clobber e_type of next symbol.
(translate_to_native_sym_flags): Likewise.
(aout_link_write_symbols): Loop on bfd_link_hash_warning as well
as bfd_link_hash_indirect.

30 years ago * bfdlink.h (struct bfd_link_hash_entry): Remove written field:
Ian Lance Taylor [Mon, 6 Jun 1994 18:43:21 +0000 (18:43 +0000)]
* bfdlink.h (struct bfd_link_hash_entry): Remove written field:
not needed for all backends.

30 years ago * libaout.h (struct aout_link_hash_entry): New field written.
Ian Lance Taylor [Mon, 6 Jun 1994 18:42:38 +0000 (18:42 +0000)]
* libaout.h (struct aout_link_hash_entry): New field written.
* aoutx.h (NAME(aout,link_hash_newfunc)): Initialize written.
(aout_link_write_symbols): Use written, not root.written.
(aout_link_write_other_symbol): Likewise.
* sunos.c (sunos_scan_dynamic_symbol): Likewise.
* libecoff.h (struct ecoff_link_hash_entry): New field written.
* ecoff.c (ecoff_link_hash_newfunc): Initialize written.
(ecoff_link_write_external): use written, not root.written.
* genlink.h (struct generic_link_hash_entry): New field written.
* linker.c (_bfd_link_hash_newfunc): Don't initialize written.
(generic_link_hash_newfunc): Initialize written.
(_bfd_generic_link_output_symbols): Use written, not root.written.
(_bfd_generic_link_write_global_symbol): Likewise.
(_bfd_generic_reloc_link_order): Likewise.

30 years ago * libecoff.h (ecoff_data_type): Add linker field.
Ian Lance Taylor [Mon, 6 Jun 1994 17:44:34 +0000 (17:44 +0000)]
* libecoff.h (ecoff_data_type): Add linker field.
* ecoff.c (ecoff_write_object_contents): Check new tdata linker
field, rather than outsymbols being non-NULL, to decide whether to
output the symbols and relocs.
(ecoff_bfd_final_link): Set new tdata linker field to true.

30 years ago * config/tc-mips.c (RDATA_SECTION_NAME): Define.
Ian Lance Taylor [Mon, 6 Jun 1994 17:16:16 +0000 (17:16 +0000)]
* config/tc-mips.c (RDATA_SECTION_NAME): Define.
(macro): Correct M_LI_SS SVR4_PIC/EMBEDDED_PIC case.  After M_LI_D
or M_L_DOB or label dob, force a new frag to avoid getting
confused in tc_gen_reloc.
(mips_ip): Use RDATA_SECTION_NAME, not .rdata.
(s_change_sec): Likewise.

30 years ago * ecoff.c (ecoff_bfd_copy_private_bfd_data): Don't try to copy
Ian Lance Taylor [Mon, 6 Jun 1994 16:49:09 +0000 (16:49 +0000)]
* ecoff.c (ecoff_bfd_copy_private_bfd_data): Don't try to copy
data to a non-ECOFF file.

30 years ago * libbfd-in.h: Add warning that libbfd.h is a generated file.
Ian Lance Taylor [Mon, 6 Jun 1994 14:59:20 +0000 (14:59 +0000)]
* libbfd-in.h: Add warning that libbfd.h is a generated file.
* libbfd.h: Rebuilt.

30 years ago Changes to support ELF strip and objcopy on dynamically linked
Ian Lance Taylor [Sun, 5 Jun 1994 20:00:42 +0000 (20:00 +0000)]
Changes to support ELF strip and objcopy on dynamically linked
files.
* elfcode.h (elf_fake_sections): Add prototype.
(bfd_section_from_shdr): Make a BFD section from an SHT_HASH
section, and from an SHT_DYNSYM section, and from the dynamic
string table section.
(elf_object_p): Set D_PAGED if there is a program header.
(elf_make_sections): Remove.
(fix_up_strtabs): Remove.
(elf_fake_sections): Rewrite.  Now sets sh_entsize.
(assign_section_numbers): Rewrite.  Now sets sh_link and sh_info
for all sections.
(elf_compute_section_file_positions):  Don't call obsolete
functions elf_make_sections or fix_up_strtabs.
(swap_out_syms): Set sh_addralign to FILE_ALIGN rather than 4.
(NAME(bfd_elf,write_object_contents)): Permit writing DYNAMIC
objects.
(elf_section_from_bfd_section): Treat SHT_DYNSYM like other normal
sections.  If an SHT_REL or SHT_RELA section is allocated or uses
an unusual symbol table, permit a BFD section to map to it.
Permit most SHT_STRTAB sections to have a BFD section mapped to
them.
(elf_bfd_final_link): Don't set sh_link, sh_info or sh_entsize
fields of dynamic sections here; do it in assign_section_numbers.
* elf32-target.h, elf64-target.h: Add D_PAGED to permitted object
flags.

30 years ago * elf.c (_bfd_elf_make_section_from_shdr): Only set SEC_DATA if
Ian Lance Taylor [Sun, 5 Jun 1994 19:04:50 +0000 (19:04 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): Only set SEC_DATA if
SEC_LOAD is set, rather than checking SEC_ALLOC.

30 years ago * libbfd-in.h (bfd_realloc): Change last arg to "size_t size".
Ian Lance Taylor [Sun, 5 Jun 1994 19:03:08 +0000 (19:03 +0000)]
* libbfd-in.h (bfd_realloc): Change last arg to "size_t size".
(Move libbfd.h change over to source file).

30 years agoRemove a couple of myteriously duplicated entries.
Ian Lance Taylor [Sun, 5 Jun 1994 18:43:42 +0000 (18:43 +0000)]
Remove a couple of myteriously duplicated entries.

30 years agokeep configure.bat
Ken Raeburn [Sun, 5 Jun 1994 16:49:49 +0000 (16:49 +0000)]
keep configure.bat

30 years agokeep files for pushw test
Ken Raeburn [Sun, 5 Jun 1994 16:47:36 +0000 (16:47 +0000)]
keep files for pushw test

30 years ago Fix value_print, which used to be ostensibly langauge-indepentdent,
Per Bothner [Sun, 5 Jun 1994 01:43:40 +0000 (01:43 +0000)]
Fix value_print, which used to be ostensibly langauge-indepentdent,
but would print pointers and arrays in C syntax.  Instead, call
a language-specific function.  See ChangeLog for details.

30 years ago * configure.in: Use mh-ncrsvr43. Patch from
Per Bothner [Sun, 5 Jun 1994 00:25:32 +0000 (00:25 +0000)]
* configure.in:  Use mh-ncrsvr43.  Patch from
Tom McConnell <tmcconne@sedona.intel.com>.

30 years ago* mh-ncrsvr43: New file from Tom McConnell <tmcconne@sedona.intel.com>.
Per Bothner [Sun, 5 Jun 1994 00:23:26 +0000 (00:23 +0000)]
* mh-ncrsvr43:  New file from Tom McConnell <tmcconne@sedona.intel.com>.

30 years ago * read.c (emit_expr): Use memset to zero out memory, rather than
Ian Lance Taylor [Sat, 4 Jun 1994 03:38:01 +0000 (03:38 +0000)]
* read.c (emit_expr): Use memset to zero out memory, rather than
going through md_number_to_chars.  This permits handling symbolic
arguments when the size is larger than sizeof (valueT), if
TC_CONS_FIX_NEW is prepared to handle the case (as it is on MIPS).