binutils-gdb.git
30 years ago * remote.c (get_offsets): Reinstate comment which was in
Jim Kingdon [Tue, 22 Mar 1994 23:44:39 +0000 (23:44 +0000)]
* remote.c (get_offsets): Reinstate comment which was in
remote_wait about use of SECT_OFF_TEXT and so on.

30 years ago * config/tc-mips.c (enum mips_pic_level): New enum.
Ian Lance Taylor [Tue, 22 Mar 1994 20:27:58 +0000 (20:27 +0000)]
* config/tc-mips.c (enum mips_pic_level): New enum.
(mips_pic): Change from int to enum mips_pic_level.  Change all
uses (0 becomes NO_PIC, 2 becomes SVR4_PIC).
(load_address): Handle EMBEDDED_PIC.
(macro): Handle EMBEDDED_PIC in all PIC cases.
(md_parse_option): Accept -membedded-pic to use EMBEDDED_PIC.  If
OBJ_ELF, accept -KPIC and -call_shared to use SVR4_PIC and accept
-non_shared to use NO_PIC (this is how the Irix 5 assembler
works).  Do not permit -G with SVR4_PIC.
(s_abicalls): Warn if -G was used, and force -G 0.
(tc_gen_reloc): Set reloc->addend to 0 for a PC relative reloc for
anything but a.out, not just for ELF.  For ECOFF, don't generate a
BFD_RELOC_16_PCREL_S2 reloc unless using EMBEDDED_PIC.

30 years ago * coff-mips.c (mips_howto_table): Add entry for new MIPS_R_PCREL16
Ian Lance Taylor [Tue, 22 Mar 1994 20:13:37 +0000 (20:13 +0000)]
* coff-mips.c (mips_howto_table): Add entry for new MIPS_R_PCREL16
reloc, used in embedded PIC code.
(mips_adjust_reloc_in): Change sanity check to permit new reloc.
(mips_bfd_reloc_type_lookup): Turn BFD_RELOC_16_PCREL_S2 into
MIPS_R_PCREL16.

30 years ago * config/obj-ecoff.h (obj_sec_sym_ok_for_reloc): Define to be 1.
Ian Lance Taylor [Tue, 22 Mar 1994 19:00:08 +0000 (19:00 +0000)]
* config/obj-ecoff.h (obj_sec_sym_ok_for_reloc): Define to be 1.

30 years ago * gprof.c (funcsymbol): Use bfd_get_symbol_info instead of
Jeff Law [Tue, 22 Mar 1994 18:51:41 +0000 (18:51 +0000)]
    * gprof.c (funcsymbol): Use bfd_get_symbol_info instead of
        bfd_decode_symclass.

30 years ago * linker.c (_bfd_generic_final_link): Set reloc_count to 0 before
Ian Lance Taylor [Tue, 22 Mar 1994 18:18:40 +0000 (18:18 +0000)]
* linker.c (_bfd_generic_final_link): Set reloc_count to 0 before
counting relocs.  Set SEC_RELOC flag for any section which has
relocs.

* linker.c (_bfd_default_link_order): Handle bfd_data_link_order.

* linker.c (_bfd_generic_link_add_symbols): Just call
generic_link_add_symbols.
(_bfd_generic_link_add_symbols_collect): New function, like
_bfd_generic_link_add_symbols but also collect constructors and
destructors by name as collect2 does.
(generic_link_add_symbols): New function, like old
_bfd_generic_link_add_symbols but with collect argument.
(generic_link_add_object_symbols): Take collect argument.
(generic_link_check_archive_element_no_collect): New function.
(generic_link_check_archive_element_collect): New function.
(generic_link_check_archive_element): Take collect argument.
(generic_link_add_symbol_list): Take collect argument.
(_bfd_generic_link_add_one_symbol): Rename constructor argument to
collect.
* libbfd-in.h (_bfd_generic_link_add_symbols_collect): Declare.
* libbfd.h: Rebuilt.

30 years ago * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
Ian Lance Taylor [Tue, 22 Mar 1994 18:18:32 +0000 (18:18 +0000)]
* ldwrite.c (build_link_order): Handle lang_data_statement_enum by
building a bfd_data_link_order, rather than by setting the section
contents immediately.

30 years ago * archive.c (bfd_construct_extended_name_table): Use ar_padchar
Jeff Law [Tue, 22 Mar 1994 18:04:59 +0000 (18:04 +0000)]
    * archive.c (bfd_construct_extended_name_table): Use ar_padchar
        for first character in an extended name.
        (_bfd_write_archive_contents): If ar_padchar == '/', then use
        "//" as the name of the special archive member holding the
        extended name table.

30 years ago Support for link_order types which generate relocs in order to
Ian Lance Taylor [Tue, 22 Mar 1994 00:27:05 +0000 (00:27 +0000)]
Support for link_order types which generate relocs in order to
support -Ur in the linker.
* linker.c (generic_link_add_symbol_list): Remove bitsize argument
from call to _bfd_generic_link_add_one_symbol.
(_bfd_generic_link_add_one_symbol): Remove bitsize argument.
Don't pass bitsize to constructor call back.  Pass BFD_RELOC_CTOR
instead of bitsize to add_to_set call back.
(_bfd_generic_final_link): Account for link_order relocs when
allocating space for relocations.  Handle them in link_order loop.
(_bfd_generic_reloc_link_order): New function.
(_bfd_default_link_order): If a reloc_link_order is seen here,
abort.
(_bfd_count_link_order_relocs): New function.
* libbfd-in.h (_bfd_generic_link_add_one_symbol): Remove bitsize
argument from declaration.
(_bfd_generic_reloc_link_order): Declare.
(_bfd_count_link_order_relocs): Declare.
* libbfd.h: Rebuilt.
* aoutx.h (aout_link_add_symbols): Remove bitsize argument from
call to _bfd_generic_link_add_one_symbol.
(NAME(aout,final_link)): Account for link_order relocs when
allocating space for relocations.  Handle them after handling all
input BFDs.
(aout_link_reloc_link_order): New function.
* ecoff.c (ecoff_link_add_externals): Remove bitsize argument from
call to _bfd_generic_link_add_one_symbol.
(ecoff_bfd_final_link): Account for link_order relocs when
allocating space for relocations.  Handle them in link_order loop.
(ecoff_link_write_external): Set the storage class of a defined
linker created symbol based on the section it is in.  Correct
bfd_link_hash_weak case to use .sc rather than .st.
(ecoff_reloc_link_order): New function.
* coff-alpha.c (alpha_bfd_reloc_type_lookup): Handle
BFD_RELOC_CTOR.
* coff-mips.c (mips_bfd_reloc_type_lookup): Likewise.

30 years ago Changes to make -Ur work again.
Ian Lance Taylor [Tue, 22 Mar 1994 00:24:13 +0000 (00:24 +0000)]
Changes to make -Ur work again.
* ldmain.c (add_to_set): Now takes reloc argument rather than
bitsize.  Check config.build_constructors here.  If an new hash
table entry is created, mark it as undefined.
(constructor_callback): No longer takes bitsize argument.  Pass
BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
BFD backend supports it.
(reloc_overflow): Handle a NULL abfd argument.
(reloc_dangerous, unattached_reloc): Likewise.
* ldctor.c: Include ldmain.h.
(struct set_info): Change bitsize field to reloc.
(ldctor_add_set_entry): Now takes reloc argument rather than
bitsize.  Don't bother to check config.build_constructors here.
(ldctor_build_sets): Get the size from the reloc howto.  If
generating relocateable output, call lang_add_reloc rather than
lang_add_data.
* ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
instead of bitsize.
* ldlang.h (statement_enum): Add lang_reloc_statement_enum.
(lang_reloc_statement_type): New structure.
(lang_statement_union_type): Add reloc_statement field.
(lang_add_reloc): Declare new function.
* ldlang.c (lang_for_each_statement_worker): Handle
lang_reloc_statement_enum.
(map_input_to_output_sections, print_statement): Likewise.
(lang_size_sections, lang_do_assignments): Likewise.
(print_reloc_statement): New function.
(lang_add_reloc): New function.
* ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.

30 years ago * bfdlink.h (struct bfd_link_callbacks): Change bitsize argument
Ian Lance Taylor [Tue, 22 Mar 1994 00:21:38 +0000 (00:21 +0000)]
* bfdlink.h (struct bfd_link_callbacks): Change bitsize argument
to add_to_set to reloc.  Remove bitsize argument from constructor.
Comment that reloc_overflow, reloc_dangerous and unattached_reloc
must handle NULL pointers for reloc location.
(enum bfd_link_order_type): Add bfd_section_reloc_link_order and
bfd_symbol_reloc_link_order.
(struct bfd_link_order): Add reloc field to union.
(struct bfd_link_order_reloc): Define.

30 years ago * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,
Peter Schauer [Mon, 21 Mar 1994 21:16:16 +0000 (21:16 +0000)]
* config/i386/tm-i386aix.h, config/i386/tm-sun386.h,
config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW):  Fix typo.
* config/i386/tm-symmetry.h:  Make comment inside #if 0 a real
comment.
* config/i386/tm-symmetry.h (STORE_STRUCT_RETURN):  Cast argument
to write_memory to avoid warnings from gcc.
* config/i386/xm-symmetry.h:  Add missing #endif.
* config/i386/nm-symmetry.h (NO_PTRACE_H):  Add for Dynix.
* config/i386/symmetry.mt (TDEPFILES):  Add i386-tdep.o.
* config/i386/symmetry.mh (NAT_FILE, NATDEPFILES):  Add.

30 years ago * symmisc.c (maintenance_check_symtabs): New function to check
Peter Schauer [Mon, 21 Mar 1994 21:14:27 +0000 (21:14 +0000)]
* symmisc.c (maintenance_check_symtabs):  New function to check
consistency of psymtabs and symtabs.
* symtab.h (maintenance_check_symtabs):  Add prototype.
* maint.c:  Add new `maint check-symtabs' command.

30 years agoMon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)
Stu Grossman [Mon, 21 Mar 1994 19:57:38 +0000 (19:57 +0000)]
Mon Mar 21 11:02:51 1994  Stu Grossman  (grossman at cygnus.com)

* alpha-tdep.c:  Gobs of changes (many imported from mips-tdep) to
improve remote debugging efficiency.  Also fixed problems with
doing function calls for programs with no entry points.
* infcmd.c (run_stack_dummy):  Use CALL_DUMMY_ADDRESS instead of
entry_point_address.
* inferior.h (PC_IN_CALL_DUMMY):  ditto.
* mdebugread.c (parse_symbol, parse_procedure, parse_external,
parse_lines):  Pass section_offsets info to these routines so that
we can relocate symbol table entries upon readin.
* (psymtab_to_symtab_1):  Set symtab->primary to tell
objfile_relocate to do relocations for our symbols.
* (ecoff_relocate_efi):  New routine to relocate adr field of PDRs
(which hang off of the symbol table).
* Use prim_record_minimal_symbols_and_info instead of
prim_record_minimal_symbols to supply section info to make minimal
symbol relocations work.
* minsyms.c (prim_record_minimal_symbols_and_info):  If section is
-1, try to deduce it from ms_type.
* objfiles.c (objfile_relocate):  Use ALL_OBJFILE_SYMTABS where
appropriate.  Handle relocation of MIPS_EFI symbols special. Also,
add code to relocate objfile->sections data structure.
* remote.c (get_offsets):  Use new protocol message to acquire
section offsets from the target.
* (remote_wait):  Get rid of relocation stuff.  That's all handled
by objfile_relocate now.
* config/alpha/alpha-nw.mt (TM_FILE):  Use tm-alphanw.h.
* config/alpha/tm-alpha.h:  Define CALL_DUMMY_ADDRESS, and
VM_MIN_ADDRESS.
* config/alpha/tm-alphanw.h:  DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.

30 years ago * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
Jeff Law [Mon, 21 Mar 1994 19:53:36 +0000 (19:53 +0000)]
    * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
        (hppa_push_arguments): Likewise.

30 years ago * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to
Stu Grossman [Mon, 21 Mar 1994 19:52:50 +0000 (19:52 +0000)]
* alpha-tdep.c:  Gobs of changes (many imported from mips-tdep) to
improve remote debugging efficiency.  Also fixed problems with
doing function calls for programs with no entry points.
* infcmd.c (run_stack_dummy):  Use CALL_DUMMY_ADDRESS instead of
entry_point_address.
* inferior.h (PC_IN_CALL_DUMMY):  ditto.
* mdebugread.c (parse_symbol, parse_procedure, parse_external,
parse_lines):  Pass section_offsets info to these routines so that
we can relocate symbol table entries upon readin.
* (psymtab_to_symtab_1):  Set symtab->primary to tell
objfile_relocate to do relocations for our symbols.
* (ecoff_relocate_efi):  New routine to relocate adr field of PDRs
(which hang off of the symbol table).
* Use prim_record_minimal_symbols_and_info instead of
prim_record_minimal_symbols to supply section info to make minimal
symbol relocations work.
* minsyms.c (prim_record_minimal_symbols_and_info):  If section is
-1, try to deduce it from ms_type.
* objfiles.c (objfile_relocate):  Use ALL_OBJFILE_SYMTABS where
appropriate.  Handle relocation of MIPS_EFI symbols special. Also,
add code to relocate objfile->sections data structure.
* remote.c (get_offsets):  Use new protocol message to acquire
section offsets from the target.
* (remote_wait):  Get rid of relocation stuff.  That's all handled
by objfile_relocate now.
* config/alpha/alpha-nw.mt (TM_FILE):  Use tm-alphanw.h.
* config/alpha/tm-alpha.h:  Define CALL_DUMMY_ADDRESS, and
VM_MIN_ADDRESS.
* config/alpha/tm-alphanw.h:  DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.

30 years ago * objdump.c (objdump_print_address): Make static. Declare with
Ian Lance Taylor [Mon, 21 Mar 1994 17:58:39 +0000 (17:58 +0000)]
* objdump.c (objdump_print_address): Make static.  Declare with
prototype.  Change vardiff from int to bfd_signed_vma.  Correct
binary search termination condition.  When looking for same
section symbol in relocatable file, handle final symbol correctly.

30 years ago * bfd/som.c (som_begin_writing): Fix thinko (off by one error).
Jeff Law [Mon, 21 Mar 1994 03:42:06 +0000 (03:42 +0000)]
    * bfd/som.c (som_begin_writing): Fix thinko (off by one error).

30 years ago * som.c (bfd_section_from_som_symbol): Only to do the value
Jeff Law [Mon, 21 Mar 1994 02:08:37 +0000 (02:08 +0000)]
    * som.c (bfd_section_from_som_symbol): Only to do the value
        comparison for function symbols within executables.

30 years ago* config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
David Edelsohn [Sun, 20 Mar 1994 23:45:33 +0000 (23:45 +0000)]
* config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
(TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
* config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so
sparc-tdep.c compiles).
(TARGET_PTR_BIT): Must be a constant now, fix at 64.

30 years ago * Makefile.in: Avoid bug in hpux sed.
Jeff Law [Sun, 20 Mar 1994 23:40:41 +0000 (23:40 +0000)]
    * Makefile.in: Avoid bug in hpux sed.

30 years ago(FPS_REGNUM, CPS_REGNUM): Define (so sparc-tdep.c compiles).
David Edelsohn [Sun, 20 Mar 1994 23:36:50 +0000 (23:36 +0000)]
(FPS_REGNUM, CPS_REGNUM): Define (so sparc-tdep.c compiles).
(TARGET_PTR_BIT): Must be a constant now, fix at 64.

30 years ago(SIMFILES): Use remote-sim.o instead of remote-sp64sim.o.
David Edelsohn [Sun, 20 Mar 1994 23:31:15 +0000 (23:31 +0000)]
(SIMFILES): Use remote-sim.o instead of remote-sp64sim.o.
(TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.

30 years ago * som.c (bfd_section_from_som_symbol): Renamed from
Jeff Law [Sun, 20 Mar 1994 23:27:37 +0000 (23:27 +0000)]
    * som.c (bfd_section_from_som_symbol): Renamed from
        som_section_from_subspace_index.  Pass in a native SOM symbol.
        For executables, iterate through the sections to find out
        which contains the symbol's address rather than using the
        symbol_info field.  (symbol_info has a different meaning for
        dynamicly linked executables.)

30 years agosparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE instead of 4.
David Edelsohn [Sun, 20 Mar 1994 23:25:16 +0000 (23:25 +0000)]
sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE instead of 4.

30 years agosp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted, can no longer set
David Edelsohn [Sun, 20 Mar 1994 23:17:18 +0000 (23:17 +0000)]
sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted, can no longer set
this at run time.

30 years ago(target_ptr_bit, set_target_ptr_bit): Deleted, can no longer set this
David Edelsohn [Sun, 20 Mar 1994 23:11:16 +0000 (23:11 +0000)]
(target_ptr_bit, set_target_ptr_bit): Deleted, can no longer set this
at run time.

30 years ago * trad-core.c (trad_unix_core_file_p): Don't pass abfd to
Jeff Law [Sun, 20 Mar 1994 21:39:35 +0000 (21:39 +0000)]
    * trad-core.c (trad_unix_core_file_p): Don't pass abfd to
        bfd_zmalloc.

30 years ago* Makefile.in (config-stamp): If `defs' is defined, emit a preprocessor
Ken Raeburn [Sun, 20 Mar 1994 21:13:59 +0000 (21:13 +0000)]
* Makefile.in (config-stamp): If `defs' is defined, emit a preprocessor
directive to create a macro named by this value into config.new; don't
explicitly go for BFD_ASSEMBLER.
* configure.in: Define `defs', not `BFDDEF'.  Set it to MANY_SEGMENTS for any
obj-coffbfd target.
* config/obj-coffbfd.h (BFD_HEADERS, BFD): Define.
* config/i386coff.mt (TDEFINES): Don't define BFD, MANY_SEGMENTS, BFD_HEADERS.
(LOCAL_LOADLIBES): Deleted.
* config/m68kcoff.mt (TDEFINES): Don't define those macros.
* config/m88kcoff.mt (TDEFINES): Ditto.
* config/ebmon29k.mt: Deleted.
* config/h8300hds.mt: Deleted.
* config/ic960coff.mt: Deleted.
* config/sparc.mt: Deleted.
* config/h8300.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
* config/h8500.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
* config/sh.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
* config/z8k.mt (LOCAL_LOADLIBES): Deleted.
(TDEFINES): Don't define the coffbfd macros.

* Makefile.in: Insert makefile fragments before OBJS definition.
(OBJS): Add $(TE_OBJS).

30 years ago* config/obj-coff.c (obj_pseudo_table): Supply "section" unconditionally.
Ken Raeburn [Sun, 20 Mar 1994 21:07:43 +0000 (21:07 +0000)]
* config/obj-coff.c (obj_pseudo_table): Supply "section" unconditionally.

30 years ago * write.c (set_symtab): Define only if BFD_ASSEMBLER.
Ken Raeburn [Sun, 20 Mar 1994 21:01:31 +0000 (21:01 +0000)]
* write.c (set_symtab): Define only if BFD_ASSEMBLER.

30 years agoRemove v9 sanitization.
David Edelsohn [Sun, 20 Mar 1994 20:44:34 +0000 (20:44 +0000)]
Remove v9 sanitization.

30 years ago * Makefile.in (STAGESTUFF): Add gasp.new.
Jeff Law [Sun, 20 Mar 1994 20:06:53 +0000 (20:06 +0000)]
    * Makefile.in (STAGESTUFF): Add gasp.new.

30 years ago * configure.in (hppa*-*-*): Enable binutils.
Jeff Law [Sun, 20 Mar 1994 19:29:05 +0000 (19:29 +0000)]
    * configure.in (hppa*-*-*): Enable binutils.

30 years ago * objcopy.c: Changes to keep it from stripping symbols used
Jeff Law [Sun, 20 Mar 1994 19:27:40 +0000 (19:27 +0000)]
    * objcopy.c: Changes to keep it from stripping symbols used
        in output relocations.
        (mark_symbols_used_in_relocations): New function.  Mark symbols
        used in output relocations with BSF_KEEP.
        (filter_symbols): Do not strip symbols marked with BSF_KEEP.
        (copy_object): Reorder actions.  First setup sections, then
        build the output symbol table, then copy the section contents.

30 years ago * som.c (som_begin_writing): Fix braino (one call to align
Jeff Law [Sun, 20 Mar 1994 19:22:04 +0000 (19:22 +0000)]
    * som.c (som_begin_writing): Fix braino (one call to align
        space/subspace data was done unconditionally rather than
        just for executables.)

30 years ago * som.c (som_begin_writing): Align text in all executables to
Jeff Law [Sun, 20 Mar 1994 17:27:51 +0000 (17:27 +0000)]
    * som.c (som_begin_writing): Align text in all executables to
        make HPUX kernel happy.  Fixes strip/objcopy for shared
        executables.

30 years ago * bfd.c (struct _bfd): Add cisco_core_struct to tdata union.
Jim Kingdon [Sat, 19 Mar 1994 21:13:58 +0000 (21:13 +0000)]
* bfd.c (struct _bfd): Add cisco_core_struct to tdata union.
* libbfd.c (bfd_read, bfd_seek): Add comments regarding errors.
* cisco-core.c: New file.
* Makefile.in: Change accordingly.
* configure.in: Recognize cisco_core_vec.
* config/m68k-aout.mt (SELECT_VECS): Add cisco_core_vec.
* targets.c: Add cisco_core_vec.
* bfd-in2.h: Rebuilt.

30 years ago* config/m68k/{cisco.mt,tm-cisco.h}: New files.
Jim Kingdon [Sat, 19 Mar 1994 20:02:54 +0000 (20:02 +0000)]
* config/m68k/{cisco.mt,tm-cisco.h}: New files.

30 years ago * config/m68k/{cisco.mt,tm-cisco.h}: New files.
Jim Kingdon [Sat, 19 Mar 1994 19:53:31 +0000 (19:53 +0000)]
* config/m68k/{cisco.mt,tm-cisco.h}: New files.
* Makefile.in (ALLPARAM, ALLCONFIG): Add them.
* configure.in: Recognize m68*-cisco*-*.

30 years ago* config.sub: Recognize cisco.
Jim Kingdon [Sat, 19 Mar 1994 19:50:57 +0000 (19:50 +0000)]
* config.sub: Recognize cisco.

30 years agoNew for cisco
Jim Kingdon [Sat, 19 Mar 1994 19:32:51 +0000 (19:32 +0000)]
New for cisco

30 years ago * Makefile.in (TAGS): Use variables directly, rather than using
Jim Kingdon [Sat, 19 Mar 1994 18:49:50 +0000 (18:49 +0000)]
* Makefile.in (TAGS): Use variables directly, rather than using
find, to locate TM_FILE, XM_FILE, and NAT_FILE.  This is faster
and means that these filenames no longer need be unique across all
the config/* directories.
* configure.in: Put the config/*/ into TM_FILE, etc.

* m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
and trapv exceptions.

* target.h (struct section_table), objfiles.h (struct obj_section):
Change name of field sec_ptr to the_bfd_section.  More mnemonic
and avoids the (sort of, for the ptx compiler) name clash with
the name of the typedef.
* exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.

* utils.c: Include readline.h.
* Makefile.in (utils.o): Add dependency.

* remote.c (getpkt): Add support for run-length encoding.

30 years ago* cisco-core.c: New file.
Jim Kingdon [Sat, 19 Mar 1994 17:51:39 +0000 (17:51 +0000)]
* cisco-core.c: New file.

30 years ago * som.c (som_begin_writing): Account for alignment needs of
Jeff Law [Sat, 19 Mar 1994 15:08:12 +0000 (15:08 +0000)]
    * som.c (som_begin_writing): Account for alignment needs of
        subspaces too when writing executables.  Never request a negative
        bss size.  Fixes some problems with demand paged executables,
        still having problems with pure executables and shared executables.

30 years ago * som.h (som_copyable_section_data_struct): New structure
Jeff Law [Sat, 19 Mar 1994 06:41:54 +0000 (06:41 +0000)]
* som.h (som_copyable_section_data_struct): New structure
containing all the private section information which needs
to be copied from input section to output section during
objcopy or strip.
(som_section_data_struct): Remove several fields now in
som_copyable_section_data_struct.  Make the space and
subspace dictionaries be pointers (to save space when
only reading objects).

* som.c (bfd_som_set_section_attributes): Now returns a boolean;
some references changed.  Allocate a copyable data stucture if
none exists.  Store info into the copyable data structure.
(bfd_som_set_subsection_attributes): Likewise.
(som_is_space, som_is_subspace, som_is_container): New functions.
Use these instead of directly accessing private data.
(som_prep_headers): Allocate space and subspace headers here.
Fill in some fields in the space/subspace headers from the
copyable data.
(som_bfd_copy_private_section_data): Only copy the stuff
that we really need to make objcopy and strip work.  Allocate
the copy_data structure for the output bfd before copying.

30 years ago * bfd.c (struct _bfd): Add cisco_core_struct to tdata union.
Jim Kingdon [Sat, 19 Mar 1994 06:36:47 +0000 (06:36 +0000)]
* bfd.c (struct _bfd): Add cisco_core_struct to tdata union.
* libbfd.c (bfd_read, bfd_seek): Add comments regarding errors.
* cisco-core.c: New file.
* Makfile.in: Change accordingly.
* bfd-in2.h: Rebuilt.

30 years ago* utils.c (prompt_for_continue): Call readline, not gdb_readline.
Jim Kingdon [Sat, 19 Mar 1994 06:36:18 +0000 (06:36 +0000)]
* utils.c (prompt_for_continue): Call readline, not gdb_readline.

30 years ago * trad-core.c (trad_unix_core_file_p): Call bfd_zmalloc not
Jim Kingdon [Sat, 19 Mar 1994 06:17:08 +0000 (06:17 +0000)]
* trad-core.c (trad_unix_core_file_p): Call bfd_zmalloc not
bfd_zalloc for rawptr, because later on we may call free, not
bfd_release, on it.

* bfd.c (struct _bfd): Add cisco_core_struct to tdata union.
* libbfd.c (bfd_read, bfd_seek): Add comments regarding errors.
* cisco-core.c: New file.
* Makfile.in: Change accordingly.
* bfd-in2.h: Rebuilt.

30 years ago * som.h (struct som_exec_data): New structure to hold exec
Jeff Law [Sat, 19 Mar 1994 05:06:54 +0000 (05:06 +0000)]
* som.h (struct som_exec_data): New structure to hold exec
info that must be preserved when running objcopy/strip.
(struct somdata): Add new "exec_data" field and accessor
macro.  Add some comments on how the various fields are used.
(som_section_data_struct): Make is_space and is_subspace bitfields.
Delete unused subspace_index.  All references now use the
target_index field within the section structure itself.

* som.c (make_unique_section): Delete unused declaration.
(som_bfd_copy_private_bfd_data): New function.
(som_object_setup): Allocate space for and save exec information
that needs to be copied during objcopy/strip.
(som_mkobject): Do not allocate space for a file header here.
It is not used when only reading SOM objects.
(som_prep_headers): Allocate space for and attach a file header
to the output bfd.  For executables, use the saved system_id
value rather than trying to guess the right value.  Do not abort
wwhen setting file_hdr->entry* for executables.
(som_begin_writing): For executables, set the exec_entry and
exec_flags fields.
(som_copy_private_backend_section_data): Always return a value.

30 years ago * libhppa.h (PA_PAGESIZE): Define.
Jeff Law [Sat, 19 Mar 1994 03:54:49 +0000 (03:54 +0000)]
    * libhppa.h (PA_PAGESIZE): Define.

        * som.c (SOM_ALIGN): Define.
        (som_begin_writing): If writing an executable, initialize all
        fields in the exec header to zero.  Update fields in the exec
        header as sizes of loadable subspaces are computed.  Carefully
        preserve alignments when building executables.  Actually write the
        exec after all the fields are filled in.

30 years ago * utils.c (prompt_for_continue): Call readline, not gdb_readline.
Steve Chamberlain [Sat, 19 Mar 1994 03:16:10 +0000 (03:16 +0000)]
* utils.c (prompt_for_continue): Call readline, not gdb_readline.

30 years ago* write.c (symbol_table_frozen): New variable, to be set after bfd_set_symtab
Ken Raeburn [Sat, 19 Mar 1994 02:36:09 +0000 (02:36 +0000)]
* write.c (symbol_table_frozen): New variable, to be set after bfd_set_symtab
is called.
(dump_section_relocs): Note whether a symbol is a section symbol or not.
(adjust_reloc_syms): For now, always supply an absolute symbol for fixups
without symbols but not yet `done'.  Use section_symbol to get the symbol,
instead of going directly for abs_symbol.
(write_relocs) [DEBUG4]: Abort if any symbol referred to by a reloc is not a
section symbol and is not in the symbol table.
(set_symtab): New function, broken out from write_object_file.  Counts symbol
table instead of relying on an earlier count.
(write_object_file): Call set_symtab, but do it after potentially invoking the
*_frob_file macros.  Don't bother counting symbols.  Call symbol_remove,
instead of expanding it in place.  Moved the conditionalized `object_file_size'
declaration down to conditionalized block where it's used.  When using the
absolute symbol for a fixup without a symbol, set sy_used_in_reloc.
(write_object_file) [BFD_ASSEMBLER]: Call section_symbol to get the correct
symbol for the absolute section.

30 years ago * Better long-filename handling. Reads SOM ABI compliant extended
Jeff Law [Sat, 19 Mar 1994 02:17:15 +0000 (02:17 +0000)]
    * Better long-filename handling.  Reads SOM ABI compliant extended
        names, but doesn't quite write compliant extended names yet.
        * som.c (som_slurp_extended_name_table): Delete function.  The
        generic code will handle things correctly.
        (som_slurp_armap): Seek to the beginning of the next member.
        (normalize): New function.
        (som_bfd_ar_write_symbol_stuff): Take the size of the extended
        name table into account when computing the file offsets in the
        SOM dictionary.  Make sure to align to an even boundary.
        (som_write_armap): Initialize the checksum to zero.
        (ar_maxchars): Fix.  Opps.

30 years agonew for cisco crash dumps
Jim Kingdon [Sat, 19 Mar 1994 02:12:30 +0000 (02:12 +0000)]
new for cisco crash dumps

30 years agosparc *13 relocs, obj_sec_sym_ok_for_reloc stuff
Ken Raeburn [Sat, 19 Mar 1994 02:02:23 +0000 (02:02 +0000)]
sparc *13 relocs, obj_sec_sym_ok_for_reloc stuff

30 years ago * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
Jim Kingdon [Sat, 19 Mar 1994 01:41:51 +0000 (01:41 +0000)]
* dstread.c (record_minimal_symbol): New arg objfile.  Pass it to
prim_record_minimal_symbol.
Callers: Pass it.

30 years ago* aoutx.h (reloc_type_lookup): Handle BFD_RELOC_CTOR on a 64-bit
Ken Raeburn [Sat, 19 Mar 1994 01:39:36 +0000 (01:39 +0000)]
* aoutx.h (reloc_type_lookup): Handle BFD_RELOC_CTOR on a 64-bit
machine.  Handle BFD_RELOC_SPARC13 and BFD_RELOC_SPARC_BASE13.

30 years agoic960coff.mt typo fix
Ken Raeburn [Sat, 19 Mar 1994 01:29:36 +0000 (01:29 +0000)]
ic960coff.mt typo fix

30 years ago(TDEFINES): Fixed typo (MANY_SECTIONS, not MANY_SEGMENTS).
Ken Raeburn [Sat, 19 Mar 1994 01:26:55 +0000 (01:26 +0000)]
(TDEFINES): Fixed typo (MANY_SECTIONS, not MANY_SEGMENTS).

30 years ago* configure.in: Eliminated all targets using obj-coff but not defining
Ken Raeburn [Sat, 19 Mar 1994 01:24:19 +0000 (01:24 +0000)]
* configure.in: Eliminated all targets using obj-coff but not defining
BFD_ASSEMBLER; I think all such targets that are supported will be matched by
real CPU-OS combinations earlier in the case statement.

(targets *-*-coff*, *-sysv*, *-*-sco*, *-*-sysv32): Deleted.  Made some
comments about the dpx2 configuration, but left it disabled, since it couldn't
be reached before.
(target a29k-amd-ebmonold): Deleted.

30 years agoFri Mar 18 16:42:32 1994 Jason Merrill (jason@deneb.cygnus.com)
Jason Merrill [Sat, 19 Mar 1994 00:43:06 +0000 (00:43 +0000)]
Fri Mar 18 16:42:32 1994  Jason Merrill  (jason@deneb.cygnus.com)

* Makefile.in (CXXFLAGS): Add -fexternal-templates.

So that libio will be built properly.

30 years ago * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
Jim Kingdon [Fri, 18 Mar 1994 18:34:36 +0000 (18:34 +0000)]
* regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
computing their offset from the start of the old buffer and adding
to the new buffer, rather than by assuming we can add the
difference between the old buffer and the new buffer (it might not
fit in an int).  Merge in cosmetic differences from emacs regex.c
version of this macro.

30 years ago * ar.c (write_archive): Allocate space for the null byte. From
Ian Lance Taylor [Fri, 18 Mar 1994 15:55:27 +0000 (15:55 +0000)]
* ar.c (write_archive): Allocate space for the null byte.  From
Robert Lipe <robertl@arnet.com>.

30 years ago* bfd-in.h (BFD_VERSION): Use @VERSION@.
Ken Raeburn [Thu, 17 Mar 1994 23:47:00 +0000 (23:47 +0000)]
* bfd-in.h (BFD_VERSION): Use @VERSION@.
* Makefile.in (bfd.h): Replace it with contents of VERSION file.
* bfd-in2.h: Regenerated.

30 years ago(trad_unix_bfd_is_local_label): Fixed typo where
Ken Raeburn [Thu, 17 Mar 1994 23:38:36 +0000 (23:38 +0000)]
(trad_unix_bfd_is_local_label): Fixed typo where
this was also named trad_unix_bfd_copy_private_bfd_data.

30 years ago * osf-core.c (osf_core_bfd_copy_private_bfd_data): Remove
Ian Lance Taylor [Thu, 17 Mar 1994 23:26:03 +0000 (23:26 +0000)]
* osf-core.c (osf_core_bfd_copy_private_bfd_data): Remove
duplicate definition.
(osf_core_bfd_is_local_label): Define.

30 years agoDon't need mpw-xconfig.in anymore.
Stan Shebs [Thu, 17 Mar 1994 23:08:36 +0000 (23:08 +0000)]
Don't need mpw-xconfig.in anymore.

30 years agoThu Mar 17 12:55:51 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Thu, 17 Mar 1994 23:02:58 +0000 (23:02 +0000)]
Thu Mar 17 12:55:51 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-configure: Conditionalize more Makefile insertions,
set MAYBE_TARGET_DEFAULT for gcc, set NATDEPFILES for gdb,
delete Makefile.tem, compute target_{cpu,vendor,os}.
* mpw-config.in: Forward-include most .h files in include into
extra-include.
(readline): Don't build.
mpw-build.in (install): Install GDB.
mpw-README: Update/add helpful comments.

30 years agoVarious changes.
Stan Shebs [Thu, 17 Mar 1994 23:01:44 +0000 (23:01 +0000)]
Various changes.

30 years agoMore widely useable INFO-DIR entries.
Roland Pesch [Thu, 17 Mar 1994 22:46:08 +0000 (22:46 +0000)]
More widely useable INFO-DIR entries.

30 years agoMinor update to list of programs for dir.info entry.
Roland Pesch [Thu, 17 Mar 1994 22:43:04 +0000 (22:43 +0000)]
Minor update to list of programs for dir.info entry.

30 years agoMore widely useful INFO-DIR fragment.
Roland Pesch [Thu, 17 Mar 1994 22:34:07 +0000 (22:34 +0000)]
More widely useful INFO-DIR fragment.

30 years ago * gas/hppa/unsorted/importbug.s: New test.
Jeff Law [Thu, 17 Mar 1994 21:40:06 +0000 (21:40 +0000)]
    * gas/hppa/unsorted/importbug.s: New test.
        * gas/hppa/unsorted/unsorted.exp: Run it.

30 years ago * config/tc-hppa.c (pa_import): Correctly handle importing of an
Jeff Law [Thu, 17 Mar 1994 21:37:42 +0000 (21:37 +0000)]
    * config/tc-hppa.c (pa_import): Correctly handle importing of an
        already defined symbol.

30 years ago * Makefile.in: Built nm.new and strip.new to avoid problems with
Ian Lance Taylor [Thu, 17 Mar 1994 21:22:30 +0000 (21:22 +0000)]
* Makefile.in: Built nm.new and strip.new to avoid problems with
collect when . is in PATH.
(STRIP_PROG): Change from strip to strip.new.
(NM_PROG): Change from nm to nm.new.
(install): Remove the .new when installing.

30 years ago * aoutx.h, elfcode.h, coff-alpha.c, bout.c, ecoff.c, ecofflink.c,
Jim Kingdon [Thu, 17 Mar 1994 18:54:48 +0000 (18:54 +0000)]
* aoutx.h, elfcode.h, coff-alpha.c, bout.c, ecoff.c, ecofflink.c,
elf32-hppa.c, elf32-mips.c, linker.c, som.c, sunos.c: If malloc(0)
returns NULL, it is not an error.  It's possible that some of
these checks are not necessary (because the size can never be
zero), but putting in the checks is the conservative thing to do
in light of the fact that some of these malloc calls replaced
unchecked alloca calls, in which a zero argument would work fine.

30 years agoModified Files:
Kung Hsu [Thu, 17 Mar 1994 17:42:23 +0000 (17:42 +0000)]
Modified Files:
.Sanitize

* i386os9k.mt: add to things to keep.
* tm-i386os9k.h: add to things to keep.

30 years ago * reloc.c (bfd_generic_get_relocated_section_contents): Don't fail
Ian Lance Taylor [Thu, 17 Mar 1994 17:29:15 +0000 (17:29 +0000)]
* reloc.c (bfd_generic_get_relocated_section_contents): Don't fail
if malloc (0) fails.  bfd_canonicalize_reloc returning 0 is not a
failure indication, it merely means there are no relocs.

30 years ago * elfcode.h (NAME(bfd_elf,write_object_contents)): Don't use space
Ian Lance Taylor [Thu, 17 Mar 1994 16:47:01 +0000 (16:47 +0000)]
* elfcode.h (NAME(bfd_elf,write_object_contents)): Don't use space
after NAME, since SunOS /bin/cc can't handle it.

30 years agoFix typo.
Jim Kingdon [Thu, 17 Mar 1994 04:09:23 +0000 (04:09 +0000)]
Fix typo.

30 years ago * gas/hppa/more.parse/regpopbug.s: Add trivial .equ test.
Jeff Law [Thu, 17 Mar 1994 00:50:41 +0000 (00:50 +0000)]
    * gas/hppa/more.parse/regpopbug.s: Add trivial .equ test.

30 years ago * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly.
Jeff Law [Thu, 17 Mar 1994 00:49:30 +0000 (00:49 +0000)]
    * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly.

30 years ago * netbsd386.c (N_SET_FLAGS): Don't nuke the machine id field.
David MacKenzie [Thu, 17 Mar 1994 00:45:26 +0000 (00:45 +0000)]
* netbsd386.c (N_SET_FLAGS): Don't nuke the machine id field.
From sukes@glue.umd.edu (Tasuki Hirata).

30 years ago * config/tc-mips.c (mips_ip): Only accept overly large values for
Ian Lance Taylor [Wed, 16 Mar 1994 23:49:55 +0000 (23:49 +0000)]
* config/tc-mips.c (mips_ip): Only accept overly large values for
the 'j' operand if there are no further alternatives for this
instruction.

30 years ago * gas/hppa/unsorted/globalbug.s: New test (expected to fail).
Jeff Law [Wed, 16 Mar 1994 23:24:53 +0000 (23:24 +0000)]
    * gas/hppa/unsorted/globalbug.s: New test (expected to fail).
        * gas/hppa/unsorted/unsorted.exp: Run it.

30 years ago * gas/hppa/more.parse/callinfobug.s: New test.
Jeff Law [Wed, 16 Mar 1994 22:44:14 +0000 (22:44 +0000)]
    * gas/hppa/more.parse/callinfobug.s: New test.
        * gas/hppa/omre.parse/parse.exp: Run it.

30 years ago * config/tc-hppa.c (pa_callinfo): Accept "millicode" as an
Jeff Law [Wed, 16 Mar 1994 22:42:51 +0000 (22:42 +0000)]
    * config/tc-hppa.c (pa_callinfo): Accept "millicode" as an
        argument to a .callinfo directive.  Don't loop forever on errors.

30 years ago * config/obj-coffbfd.c (adjust_stab_section): Initialize
Ian Lance Taylor [Wed, 16 Mar 1994 22:22:17 +0000 (22:22 +0000)]
* config/obj-coffbfd.c (adjust_stab_section): Initialize
stabstrseg to SEG_UNKNOWN, not -1.  After loop, check whether it
is not SEG_UNKNOWN rather than checking whether it is >= 0.

30 years ago * config/tc-mips.c (mips_align): Take new argument, label, and use
Ian Lance Taylor [Wed, 16 Mar 1994 22:16:02 +0000 (22:16 +0000)]
* config/tc-mips.c (mips_align): Take new argument, label, and use
it instead of global insn_label.
(s_align, s_cons, s_float_cons, s_gpword): Save insn_label before
call to mips_emit_delay and pass it to mips_align.

30 years ago * printcmd.c: Remove "set print fast-symbolic-addr off" command.
Jim Kingdon [Wed, 16 Mar 1994 20:09:55 +0000 (20:09 +0000)]
* printcmd.c: Remove "set print fast-symbolic-addr off" command.
The which it worked around was fixed on 25 Feb 94 in coffread.c,
so I'm nuking the command.
* symtab.c (find_addr_symbol): Comment out, no longer used.

30 years ago * gdb.texinfo (Print Settings): Don't document "set print
Jim Kingdon [Wed, 16 Mar 1994 20:04:14 +0000 (20:04 +0000)]
* gdb.texinfo (Print Settings): Don't document "set print
fast-symbolic-addr off".  The bug which it worked around was fixed
on 25 Feb 94 in coffread.c, so I'm nuking the command.

30 years ago * gas/hppa/more.parse/regpopbug.s: New test.
Jeff Law [Wed, 16 Mar 1994 19:58:31 +0000 (19:58 +0000)]
    * gas/hppa/more.parse/regpopbug.s: New test.
        * gas/hppa/more.parse/parse.exp: Run it.

30 years ago * stabs.texinfo (Alternate Entry Points): New node, rewritten from
Jim Kingdon [Wed, 16 Mar 1994 18:52:45 +0000 (18:52 +0000)]
* stabs.texinfo (Alternate Entry Points): New node, rewritten from
N_ENTRY node.

* stabs.texinfo (Type Descriptors): Add 'Y' type descriptor.

30 years ago * main.c (main): Don't init_source_path for the -cd argument. Now
Jim Kingdon [Wed, 16 Mar 1994 18:05:57 +0000 (18:05 +0000)]
* main.c (main): Don't init_source_path for the -cd argument.  Now
that source_path doesn't contain the current_directory from when
GDB started up, init_source_path is no longer useful (and is
harmful because it clobbers a source_path set in $HOME/.gdbinit).

30 years ago * lib/gdb.exp: Set prompt to (gdb) if it isn't already set.
Jim Kingdon [Wed, 16 Mar 1994 16:57:39 +0000 (16:57 +0000)]
* lib/gdb.exp: Set prompt to (gdb) if it isn't already set.
(default_gdb_exit): Replace all the hair with sending "quit" to
the process with a simple close.

30 years ago* stabs.texinfo (Type Descriptors): Add 'Y' type descriptor.
Jim Kingdon [Wed, 16 Mar 1994 16:21:17 +0000 (16:21 +0000)]
* stabs.texinfo (Type Descriptors): Add 'Y' type descriptor.

30 years ago * TODO: Remove item about line numbers being off. It is useless
Jim Kingdon [Wed, 16 Mar 1994 15:30:12 +0000 (15:30 +0000)]
* TODO: Remove item about line numbers being off.  It is useless
and confusing without a reproducible test case (it mentions
proceed(), but I was able to step through proceed without trouble).

30 years ago * som.c (som_prep_for_fixups): Detect section symbols based
Jeff Law [Wed, 16 Mar 1994 08:03:46 +0000 (08:03 +0000)]
    * som.c (som_prep_for_fixups): Detect section symbols based
        on either the lack of private data or the symbol flags.  Do not
        munge section symbol names anymore -- they no longer confuse GDB.
        (som_begin_writing): Leave space for an exec header if writing
        an executable.
        (som_slurp_symbol_table): Recognize both forms of section symbol
        names "L$0\002" and "$<FOO>$".  Change the name of "L$0\002"
        section symbols to be the name of the section they represent.
        Debugging  symbols begin with "L$0\001", not just "L$".

30 years ago * objcopy.c (filter_symbols): Use bfd_is_local_label to determine
Jeff Law [Wed, 16 Mar 1994 07:04:42 +0000 (07:04 +0000)]
* objcopy.c (filter_symbols): Use bfd_is_local_label to determine
if a symbol represents a compiler-generated local label.
(copy_object): Give the BFD backends a chance to copy any private
bfd data from the input BFD to the output BFD.
(setup_section): Give the BFD backends a chance to copy any private
section data from the input section to the output section.