binutils-gdb.git
30 years ago * valops.c (value_assign): Set `type' after coercing toval.
Peter Schauer [Tue, 25 Jan 1994 21:03:56 +0000 (21:03 +0000)]
* valops.c (value_assign):  Set `type' after coercing toval.
* c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
Use extract_unsigned_integer to get the address of a reference.

30 years ago * reloc.c (bfd_get_reloc_size): Size of type -2 is 4 bytes, not 2.
Ian Lance Taylor [Tue, 25 Jan 1994 20:48:48 +0000 (20:48 +0000)]
* reloc.c (bfd_get_reloc_size): Size of type -2 is 4 bytes, not 2.

30 years agoCorrect comment.
Ian Lance Taylor [Tue, 25 Jan 1994 20:26:48 +0000 (20:26 +0000)]
Correct comment.

30 years agoTue Jan 25 10:49:31 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Tue, 25 Jan 1994 18:59:27 +0000 (18:59 +0000)]
Tue Jan 25 10:49:31 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-config.in (varargs.h, sys/*.h): Don't create when
configuring.
(host.h): Create with forward-include.
* mpw-make.in (CFLAGS): Add -w flag.
* mpw-build.in: New file, build script fragment.

30 years agoTue Jan 25 10:52:22 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Tue, 25 Jan 1994 18:57:17 +0000 (18:57 +0000)]
Tue Jan 25 10:52:22 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-xconfig.in: Use forward-include to create include files.

30 years agoUse <= in ecoff_frob_symbol, not <.
Ian Lance Taylor [Tue, 25 Jan 1994 18:52:01 +0000 (18:52 +0000)]
Use <= in ecoff_frob_symbol, not <.

30 years agoImprove ChangeLog entry for HAVE_SIGSETMASK to discuss what ANSI specifies
Jim Kingdon [Tue, 25 Jan 1994 18:51:54 +0000 (18:51 +0000)]
Improve ChangeLog entry for HAVE_SIGSETMASK to discuss what ANSI specifies
(just for kicks).

30 years ago * hp300hpux.c (MY(write_object_contents)): Write out the symbols
Ian Lance Taylor [Tue, 25 Jan 1994 18:38:20 +0000 (18:38 +0000)]
* hp300hpux.c (MY(write_object_contents)): Write out the symbols
before writing out the relocs, so that the right symbol indices
are used.

30 years ago * archive.c (do_slurp_bsd_armap, bfd_slurp_bsd_armap_f2): Do not
Ian Lance Taylor [Tue, 25 Jan 1994 18:20:50 +0000 (18:20 +0000)]
* archive.c (do_slurp_bsd_armap, bfd_slurp_bsd_armap_f2): Do not
try to overlay the internal carsyms on the external symdefs.  That
can not work if the size of a host pointer is larger than 4 bytes.

30 years ago * format.c (bfd_check_format_matches): Cast result of
Ian Lance Taylor [Tue, 25 Jan 1994 18:14:25 +0000 (18:14 +0000)]
* format.c (bfd_check_format_matches): Cast result of
bfd_xmalloc_by_size_t.
* opncls.c (_bfd_new_bfd): Avoid ANSI C prototype.

30 years ago* stabs.texinfo (String Field): Discuss continuing stabs with ?.
Jim Kingdon [Tue, 25 Jan 1994 17:42:20 +0000 (17:42 +0000)]
* stabs.texinfo (String Field): Discuss continuing stabs with ?.

30 years ago * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
Jim Kingdon [Tue, 25 Jan 1994 17:28:05 +0000 (17:28 +0000)]
* stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
AIX can use ? instead of \ for continuation.  Deal with it.

30 years ago * som.c, som.h (bfd_som_set_section_attributes,
Jim Kingdon [Tue, 25 Jan 1994 16:56:24 +0000 (16:56 +0000)]
* som.c, som.h (bfd_som_set_section_attributes,
bfd_som_set_subsection_attributes): Change parameters from char
to int.  Following a prototype with an old-style function definition
in the presence of widened parameters is a GCC-ism not supported
by the HP compiler in ANSI mode.

30 years agoA few more minor formatting cleanups.
Ian Lance Taylor [Tue, 25 Jan 1994 16:53:48 +0000 (16:53 +0000)]
A few more minor formatting cleanups.

30 years ago * archive.c: Reindented to GNU standards.
Ian Lance Taylor [Tue, 25 Jan 1994 16:47:50 +0000 (16:47 +0000)]
* archive.c: Reindented to GNU standards.

30 years ago * paread.c (read_unwind_info): Just assign to objfile->obj_private,
Jim Kingdon [Tue, 25 Jan 1994 16:39:10 +0000 (16:39 +0000)]
* paread.c (read_unwind_info): Just assign to objfile->obj_private,
not OBJ_UNWIND_INFO.  Assigning to a cast is a GCC-ism which
the HP compiler in ANSI mode doesn't like.

* main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
based on USG, rather than defining HAVE_SIGSETMASK to an expression
containing defined.  This is for the HP compiler in ANSI mode.

30 years ago* rldefs.h: Accept __hpux as well as hpux for HP compiler in ANSI mode.
Jim Kingdon [Tue, 25 Jan 1994 16:31:26 +0000 (16:31 +0000)]
* rldefs.h: Accept __hpux as well as hpux for HP compiler in ANSI mode.

30 years ago * objdump.c (display_file): Remove call to list_matching_formats.
David MacKenzie [Tue, 25 Jan 1994 13:27:56 +0000 (13:27 +0000)]
* objdump.c (display_file): Remove call to list_matching_formats.
It would never be called.
(list_matching_formats): Take an arg giving the list of matching
formats.
(display_bfd): Pass the arg, and get it filled in by calling
bfd_check_format_matches instead of bfd_check_format.
(display_info, display_info_table): target_vector was renamed to
bfd_target_vector.

30 years ago * opncls.c (_bfd_new_bfd, _bfd_new_bfd_contained_in): Add
David MacKenzie [Tue, 25 Jan 1994 13:25:26 +0000 (13:25 +0000)]
* opncls.c (_bfd_new_bfd, _bfd_new_bfd_contained_in): Add
"_bfd_" to function names.
* archive.c (_bfd_create_empty_archive_element_shell),
libbfd-in.h: Change callers.

* libbfd.c (bfd_zmalloc): Renamed from zalloc.
* libbfd.c (bfd_add_to_string_table),
trad-core.c (trad_unix_core_file_p),
targets.c (bfd_target_list),
ptrace-core.c (ptrace_unix_core_file_p),
opncls.c (new_bfd), libbfd-in.h,
ieee.c (ieee_make_empty_symbol),
elf32-hppa.c (hppa_elf_stub_branch_reloc),
(hppa_elf_stub_reloc): Change callers.
* libbfd.h: Regenerated.

* archive.c (_bfd_look_for_bfd_in_cache): Add "_bfd_" to name.
(_bfd_get_elt_at_filepos),
coff-rs6000.c (rs6000coff_get_elt_at_filepos), libbfd-in.h:
Change callers.

* format.c (bfd_check_format_matches), libbfd-in.h, targets.c,
elfcode.h (elf_object_p): Rename target_vector to bfd_target_vector
and default_vector to bfd_default_vector.
* libbfd.h: Regenerated.

30 years ago* sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
John Gilmore [Tue, 25 Jan 1994 04:54:05 +0000 (04:54 +0000)]
* sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
Clean up the changes of 11 Jan, as recommended by Peter Schauer.

30 years ago * config.guess: Clean up NeXT support, to allow nextstep
Per Bothner [Tue, 25 Jan 1994 02:42:14 +0000 (02:42 +0000)]
* config.guess:  Clean up NeXT support, to allow nextstep
on Intel machines.  Make OS be nextstep.
* config.guess: Add alternate forms for Convex.

30 years agoChange RUNTESTFLAGS to RUNTEST_FLAGS to be consistant with FLAGS_TO_PASS.
Rob Savoye [Tue, 25 Jan 1994 02:09:26 +0000 (02:09 +0000)]
Change RUNTESTFLAGS to RUNTEST_FLAGS to be consistant with FLAGS_TO_PASS.

30 years ago * coff-alpha.c (alpha_ecoff_object_p): New function. Set size of
Ian Lance Taylor [Tue, 25 Jan 1994 01:52:48 +0000 (01:52 +0000)]
* coff-alpha.c (alpha_ecoff_object_p): New function.  Set size of
.pdata section based on lnnoptr field, not section header.
(alpha_relocate_section): Don't bother to check if r_symndx >= 0,
since it is unsigned.
(ecoffalpha_little_vec): Use alpha_ecoff_object_p rather than
coff_object_p.
* ecoff.c (ecoff_new_section_hook): Set alignment_power field of
.pdata section to 3.
(ecoff_compute_section_file_positions): Save the size of the
.pdata section in the line_filepos field, and actually align the
.pdata section to an alignment power of 4.
(ecoff_compute_reloc_file_positions): Set output_has_begun after
calling ecoff_compute_section_file_positions.
(ecoff_write_object_contents): Set s_lnnoptr for the .pdata
section from the line_filepos field.  Set vstamp for the optional
header from the vstamp of the symbolic header.
(ecoff_bfd_final_link): Set vstamp of the symbolic header to the
vstamp used by the first object file in the link.

30 years ago * ecofflink.c (ecoff_align_debug): Align RFDs to debug_align.
Ian Lance Taylor [Tue, 25 Jan 1994 01:50:46 +0000 (01:50 +0000)]
* ecofflink.c (ecoff_align_debug): Align RFDs to debug_align.

30 years agoVarious entries.
Ian Lance Taylor [Tue, 25 Jan 1994 00:27:25 +0000 (00:27 +0000)]
Various entries.

30 years ago * ecoff.c (ecoff_frob_symbol): New function. Put undefined
Ian Lance Taylor [Tue, 25 Jan 1994 00:26:33 +0000 (00:26 +0000)]
* ecoff.c (ecoff_frob_symbol): New function.  Put undefined
symbols of known size in the undefined section.  Put small common
symbols in a .scommon section.
* ecoff.h (ecoff_frob_symbol): Declare.
* config/obj-ecoff.h (obj_frob_symbol): Define.
* config/obj-elf.c (obj_elf_write_symbol_p, obj_elf_write_symbol,
obj_elf_frob_symbol): Removed unused functions.
* config/obj-elf.h (obj_frob_symbol, obj_write_symbol): Removed
unused macros.
(obj_elf_frob_symbol, obj_elf_write_symbol): Removed declarations
of unused functions.
(obj_frob_symbol): Define if ECOFF_DEBUGGING.

30 years ago * tc-mips.c (g_switch_seen): New static variable.
Ian Lance Taylor [Tue, 25 Jan 1994 00:24:57 +0000 (00:24 +0000)]
* tc-mips.c (g_switch_seen): New static variable.
(md_parse_option): Set g_switch_seen for -G option.
(s_option): If creating PIC code, force the GP size to be 0.  Warn
if -G switch used with a non-zero value.

30 years ago * symbols.c (S_IS_COMMON): Use bfd_is_com_section rather than
Ian Lance Taylor [Tue, 25 Jan 1994 00:20:48 +0000 (00:20 +0000)]
* symbols.c (S_IS_COMMON): Use bfd_is_com_section rather than
comparing against bfd_com_section.

30 years ago * linker.c (generic_link_check_achive_element): Set SEC_ALLOC flag
Ian Lance Taylor [Mon, 24 Jan 1994 23:56:56 +0000 (23:56 +0000)]
* linker.c (generic_link_check_achive_element): Set SEC_ALLOC flag
for a created common section.
(_bfd_generic_link_add_one_symbol): Likewise.

30 years ago * elfcode.h (swap_out_syms): Use elf_section_from_bfd_section to
Ian Lance Taylor [Mon, 24 Jan 1994 23:54:51 +0000 (23:54 +0000)]
* elfcode.h (swap_out_syms): Use elf_section_from_bfd_section to
get the index of a common section, rather than always using
SHN_COMMON (MIPS has multiple common sections).

30 years ago * objdump.c (display_file): Remove call to list_matching_formats.
David MacKenzie [Mon, 24 Jan 1994 23:38:03 +0000 (23:38 +0000)]
* objdump.c (display_file): Remove call to list_matching_formats.
It would never be called.
(list_matching_formats): Take an arg giving the list of matching
formats.
(display_bfd): Pass the arg, and get it filled in by calling
bfd_check_format_matches instead of bfd_check_format.

* binutils.texi (objdump): Note some limitations of -h section
address printing.

30 years ago * format.c (bfd_check_format_matches): New function.
David MacKenzie [Mon, 24 Jan 1994 23:33:23 +0000 (23:33 +0000)]
* format.c (bfd_check_format_matches): New function.
(bfd_check_format): Call it.
(bfd_matching_formats): Function removed.
* targets.c: Replace the vector added on Jan 21 with a count of
entries in default_vector.
* bfd-in2.h: Regenerated.

30 years ago * binutils.texi (objdump): Note some limitations of -h section
David MacKenzie [Mon, 24 Jan 1994 21:31:01 +0000 (21:31 +0000)]
* binutils.texi (objdump): Note some limitations of -h section
address printing.

30 years agoMon Jan 24 12:09:35 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Mon, 24 Jan 1994 20:40:04 +0000 (20:40 +0000)]
Mon Jan 24 12:09:35 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-xconfig.in (opcode/mips.h): Create using forward-include.

30 years agoMon Jan 24 12:07:22 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Mon, 24 Jan 1994 20:39:06 +0000 (20:39 +0000)]
Mon Jan 24 12:07:22 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-config.in (varargs.h): Don't create.
(sysdep.h): Create using forward-include.
* mpw-make.in (CSEARCH): Add include/mpw to search path.

30 years ago * elf32-hppa.c (hppa_elf_gen_reloc_type): Typo (== for =).
Ian Lance Taylor [Mon, 24 Jan 1994 20:26:49 +0000 (20:26 +0000)]
* elf32-hppa.c (hppa_elf_gen_reloc_type): Typo (== for =).

30 years ago * bfd/aoutx.h (aout_link_input_section_std,
Ian Lance Taylor [Mon, 24 Jan 1994 20:23:18 +0000 (20:23 +0000)]
* bfd/aoutx.h (aout_link_input_section_std,
aout_link_input_section_ext): Pass additional arguments to
reloc_overflow callback.
* coff-alpha.c (alpha_ecoff_get_relocated_section_contents,
alpha_relocat_section): Likewise.
* coff-h8300.c (h8300_reloc16_extra_cases): Likewise.
* coff-h8500.c (extra_case): Likewise.
* coff-mips.c (mips_relocate_section): Likewise.
* coff-z8k.c (extra_case): Likewise.
* elf32-hppa.c (hppa_elf_stub_finish): Likewise.
* reloc.c (bfd_generic_get_relocated_section_contents): Likewise.

30 years ago * ldmain.c (reloc_overflow): Added name, reloc_name and addend
Ian Lance Taylor [Mon, 24 Jan 1994 20:22:12 +0000 (20:22 +0000)]
* ldmain.c (reloc_overflow): Added name, reloc_name and addend
arguments.

30 years ago * ldlang.c (lookup_name): Set BFD GP size to -G argument value
Ian Lance Taylor [Mon, 24 Jan 1994 19:55:02 +0000 (19:55 +0000)]
* ldlang.c (lookup_name): Set BFD GP size to -G argument value
after opening BFD.

30 years agoSince gdb distributions must be sanitized, and it is easy to forget to
Fred Fish [Mon, 24 Jan 1994 19:36:12 +0000 (19:36 +0000)]
Since gdb distributions must be sanitized, and it is easy to forget to
run Sanitize during the build process, cause the distribution build process
to emit a appropriate message and quit when run in an unsanitized tree.

30 years agoread.c (s_lcomm): Treat Alpha like MIPS in handling of .sbss section.
Ken Raeburn [Mon, 24 Jan 1994 19:17:03 +0000 (19:17 +0000)]
read.c (s_lcomm): Treat Alpha like MIPS in handling of .sbss section.

30 years ago * bout.c (calljx_callback, callj_callback): Use get_value to get
Ian Lance Taylor [Mon, 24 Jan 1994 18:05:08 +0000 (18:05 +0000)]
* bout.c (calljx_callback, callj_callback): Use get_value to get
the symbol value and check for undefined symbols.
(get_value): If the symbol is undefined, look it up in the linker
hash table.
(b_out_get_relocated_section_contents): For PCREL24 and PCREL13
use get_value to get the symbol value and check for undefined
symbols.
* reloc16.c (bfd_coff_reloc16_get_value): If the symbol is
undefined, look it up in the linker hash table.

30 years ago * ldlang.c (relaxing): Removed global variable.
Ian Lance Taylor [Mon, 24 Jan 1994 17:59:18 +0000 (17:59 +0000)]
* ldlang.c (relaxing): Removed global variable.
(lang_size_sections): If the canonical symbols have not already
been read in, read them in before relaxing.
* ldlang.h (relaxing): Removed declaration.

30 years ago * aoutx.h (translate_symbol_table): The string index 0 has a
Ian Lance Taylor [Mon, 24 Jan 1994 17:41:21 +0000 (17:41 +0000)]
* aoutx.h (translate_symbol_table): The string index 0 has a
special meaning for normal symbols, but not for dynamic symbols.

30 years ago * ch-exp.y (match_string_literal): Allow a zero-length string.
Per Bothner [Sun, 23 Jan 1994 20:42:00 +0000 (20:42 +0000)]
* ch-exp.y (match_string_literal):  Allow a zero-length string.
* ch-lang.c (chill_printstr):  Don't print zero-length string funny.

30 years agoSat Jan 22 16:25:09 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sun, 23 Jan 1994 00:34:31 +0000 (00:34 +0000)]
Sat Jan 22 16:25:09 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-build.in: New file, build script fragment for MPW make.
* mpw-make.in: New file, MPW makefile fragment for binutils.
(Normally automatically generated from Makefile.in.)

30 years agoMinor MPW compatibility tweaks.
Stan Shebs [Sun, 23 Jan 1994 00:31:14 +0000 (00:31 +0000)]
Minor MPW compatibility tweaks.

30 years ago * i386aix-nat.c (i386_float_info): Reverse order of registers before
Jim Kingdon [Sat, 22 Jan 1994 22:14:04 +0000 (22:14 +0000)]
* i386aix-nat.c (i386_float_info): Reverse order of registers before
passing them to print_387_status.
(print_387_status): Don't subtract top from 7 before using it.
* i387-tdep.c: Remove comment about AIX wanting "top" subtracted
from 7; the above explains it.

30 years agoSat Jan 22 13:41:25 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sat, 22 Jan 1994 22:06:27 +0000 (22:06 +0000)]
Sat Jan 22 13:41:25 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-xconfig.in: Added forward-includes for all the files,
and changed to use absolute pathnames.

30 years agoSat Jan 22 13:30:57 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sat, 22 Jan 1994 22:05:42 +0000 (22:05 +0000)]
Sat Jan 22 13:30:57 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-config.in: Create sysdep.h using forward-include.
Remove unneeded synthesis of varargs.h.
* mpw-make.in (CC, CFLAGS): Remove, now in config/mpw-mh-mpw.
(CSEARCH): Added path to extra-include.

30 years agoSat Jan 22 13:23:46 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sat, 22 Jan 1994 21:28:29 +0000 (21:28 +0000)]
Sat Jan 22 13:23:46 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-configure: Add more things to the top of each configured
Makefile, including contents of config/mpw-mh-mpw.
* mpw-config.in (extra-include): Create this directory and fill it
with Posix-like include files when configuring.

30 years agoMPW makefile definitions
Stan Shebs [Sat, 22 Jan 1994 21:22:08 +0000 (21:22 +0000)]
MPW makefile definitions

30 years ago * mips-tdep.c (init_extra_frame_info): Use frame relative stack
Peter Schauer [Sat, 22 Jan 1994 20:45:55 +0000 (20:45 +0000)]
* mips-tdep.c (init_extra_frame_info):  Use frame relative stack
pointer value when fixing up the frame at the start of a function

30 years ago * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
Stu Grossman [Sat, 22 Jan 1994 20:34:37 +0000 (20:34 +0000)]
* lynx-nat.c (fetch_core_registers):  Load the I & L regs for the
Sparc from the stack.

30 years ago * sparclynx.c: Setup appropriate macros to enable core file
Stu Grossman [Sat, 22 Jan 1994 20:27:55 +0000 (20:27 +0000)]
* sparclynx.c:  Setup appropriate macros to enable core file
support.

30 years ago * remote-mips.c (mips_initialize): Clear mips_initializing via
Jim Kingdon [Sat, 22 Jan 1994 19:16:02 +0000 (19:16 +0000)]
* remote-mips.c (mips_initialize): Clear mips_initializing via
cleanup chain, not directly.

* ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
of -1 mean forever, like in the HAVE_SGTTY case.  Warn if we are
munging the timeout due to the limited range of c_cc[VTIME].

30 years ago * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
Jim Kingdon [Sat, 22 Jan 1994 17:36:41 +0000 (17:36 +0000)]
* fork-child.c, inferior.h (fork_inferior): New argument shell_file.
* procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
m3-nat.c (m3_create_inferior): Pass it.
* procfs.c: Remove ptrace function.  It was declared in a way which
conflicted with the prototype in unistd.h on Solaris.

30 years ago * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
Peter Schauer [Sat, 22 Jan 1994 09:41:47 +0000 (09:41 +0000)]
* config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
Define for Solaris2.

30 years ago * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
Peter Schauer [Sat, 22 Jan 1994 09:40:17 +0000 (09:40 +0000)]
* sparc-tdep.c (frame_saved_pc):  Get the pc from the saved pc
in the sigcontext if it is a signal trampoline frame.
* config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
Define for Solaris2.

30 years ago * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
Stu Grossman [Sat, 22 Jan 1994 08:42:14 +0000 (08:42 +0000)]
* sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
config/sparc/tm-sparclynx.h:  Move defs of FRAME_SAVED_I0/L0 to
tm-sparc.h so they can be overridden if necessary.

30 years ago * objdump.c (list_matching_formats): If the file format is ambiguous,
David MacKenzie [Sat, 22 Jan 1994 05:11:40 +0000 (05:11 +0000)]
* objdump.c (list_matching_formats): If the file format is ambiguous,
print the matching names so the user can choose one.
(display_bfd): Call it.
(display_file): Call it.

30 years ago * targets.c: Add a vector of matching format names.
David MacKenzie [Sat, 22 Jan 1994 04:28:17 +0000 (04:28 +0000)]
* targets.c: Add a vector of matching format names.
* format.c (bfd_matching_formats): New function to return it.
(bfd_check_format): Set it.
* bfd-in2.h: Regenerated.

30 years ago * bfd-in.h: Remove decls of bfd_ec type and error printing functions.
David MacKenzie [Sat, 22 Jan 1994 02:18:02 +0000 (02:18 +0000)]
* bfd-in.h: Remove decls of bfd_ec type and error printing functions.
Remove decl of type symclass; wasn't used.
* bfd.c: Document error handling, including code fragments
containing the error decls that were in bfd-in.h.
Remove DEFUNs.
* bfd-in2.h: Regenerated.

30 years ago * chardefs.h, tilde.c: Just declare strrchr rather than trying to
Jim Kingdon [Sat, 22 Jan 1994 02:06:58 +0000 (02:06 +0000)]
* chardefs.h, tilde.c: Just declare strrchr rather than trying to
include a system header.

30 years ago * lynx-nat.c: Add Sparc support.
Stu Grossman [Sat, 22 Jan 1994 01:58:55 +0000 (01:58 +0000)]
* lynx-nat.c:  Add Sparc support.
* sparcly-nat.c:  Remove.  It's useless.
* config/sparc/nm-sparclynx.h:  Rewrite.
* config/sparc/sparclynx.mh (NATDEPFILES):  Replace sparcly-nat.o
with lynx-nat.o
* config/sparc/tm-sparclynx.h:  Rewrite.

30 years ago * configure: Completely rewrite option processing. Take
Stu Grossman [Sat, 22 Jan 1994 01:41:21 +0000 (01:41 +0000)]
* configure:  Completely rewrite option processing.  Take
advantage of pattern-matching to avoid invoking test frequently.
Also clean up host and target defaulting logic.

30 years ago * objdump.c (disassemble_data): Support bfd_arch_rs6000.
Ian Lance Taylor [Sat, 22 Jan 1994 00:19:02 +0000 (00:19 +0000)]
* objdump.c (disassemble_data): Support bfd_arch_rs6000.

30 years ago * rs6000-pinsn.c: Use the new disassembler in the opcodes
Ian Lance Taylor [Sat, 22 Jan 1994 00:16:18 +0000 (00:16 +0000)]
* rs6000-pinsn.c: Use the new disassembler in the opcodes
directory.  Old code was discarded, since the new opcode table has
a different format.

30 years ago * ppc.h: New file. Header file for PowerPC opcode table.
Ian Lance Taylor [Sat, 22 Jan 1994 00:15:29 +0000 (00:15 +0000)]
* ppc.h: New file.  Header file for PowerPC opcode table.

30 years ago * dis-asm.h (print_insn_big_powerpc, print_insn_little_powerpc,
Ian Lance Taylor [Sat, 22 Jan 1994 00:15:04 +0000 (00:15 +0000)]
* dis-asm.h (print_insn_big_powerpc, print_insn_little_powerpc,
print_insn_rs6000): Declare.

30 years agoNew header file for PowerPC opcode table.
Ian Lance Taylor [Sat, 22 Jan 1994 00:13:02 +0000 (00:13 +0000)]
New header file for PowerPC opcode table.

30 years agoAdded ppc-opc.c and ppc-dis.c.
Ian Lance Taylor [Sat, 22 Jan 1994 00:11:37 +0000 (00:11 +0000)]
Added ppc-opc.c and ppc-dis.c.

30 years ago * ppc-opc.c: New file. Opcode table for PowerPC, including
Ian Lance Taylor [Sat, 22 Jan 1994 00:04:49 +0000 (00:04 +0000)]
* ppc-opc.c: New file.  Opcode table for PowerPC, including
opcodes for POWER (RS/6000).
* ppc-dis.c: New file.  PowerPC and Power (RS/6000) disassembler.
* Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
(CFILES): Add ppc-dis.c.
(ppc-dis.o, ppc-opc.o): New targets.
* configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.

30 years agoPowerPC opcode table and disassembler.
Ian Lance Taylor [Sat, 22 Jan 1994 00:01:27 +0000 (00:01 +0000)]
PowerPC opcode table and disassembler.

30 years agoFix accidental deletion of attribution for kingdon change.
Jim Kingdon [Fri, 21 Jan 1994 23:59:26 +0000 (23:59 +0000)]
Fix accidental deletion of attribution for kingdon change.

30 years agoRestore Jim's last change entry header.
David MacKenzie [Fri, 21 Jan 1994 23:56:44 +0000 (23:56 +0000)]
Restore Jim's last change entry header.

30 years ago * bfd.c: Remove error strings for errors removed below.
David MacKenzie [Fri, 21 Jan 1994 23:48:55 +0000 (23:48 +0000)]
* bfd.c: Remove error strings for errors removed below.

30 years ago * Makefile.in (distclean, realclean): Expand local-distclean
Fred Fish [Fri, 21 Jan 1994 22:53:18 +0000 (22:53 +0000)]
* Makefile.in (distclean, realclean):  Expand local-distclean
inline after doing recursion.  You can't recurse after removing
Makefile.  Make them depend on local-clean.
* Makefile.in (local-distclean):  Remove now superfluous target.

30 years agoAdd ChangeLog entry for sef change.
Jim Kingdon [Fri, 21 Jan 1994 22:52:45 +0000 (22:52 +0000)]
Add ChangeLog entry for sef change.

30 years ago * Makefile.in (realclean): Remove info files per make-stds.texi.
Fred Fish [Fri, 21 Jan 1994 22:31:50 +0000 (22:31 +0000)]
* Makefile.in (realclean):  Remove info files per make-stds.texi.

30 years agoThe sparc (and possibly other?) NLM format requires a different way to
Sean Eric Fagan [Fri, 21 Jan 1994 19:52:10 +0000 (19:52 +0000)]
The sparc (and possibly other?) NLM format requires a different way to
write exports, so add a write_export field to the backend data (and set it
to NULL for everything but the sparc).

30 years ago * sunos.c (MY(read_dynamic_relocs)): Compare info->dynrel with NULL,
Jim Kingdon [Fri, 21 Jan 1994 19:14:33 +0000 (19:14 +0000)]
* sunos.c (MY(read_dynamic_relocs)): Compare info->dynrel with NULL,
not (struct external_nlist *) NULL.  info->dynrel is a PTR, not
a struct external_nlist *.

30 years ago * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
Jim Kingdon [Fri, 21 Jan 1994 17:53:57 +0000 (17:53 +0000)]
* dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
if N_SO_ADDRESS_MAYBE_MISSING is defined.
* config/sparc/tm-sun4sol2.h: Define it.

30 years ago * aoutx.h (translate_to_native_sym_flags), bfd-in.h (bfd_ec),
David MacKenzie [Fri, 21 Jan 1994 17:50:37 +0000 (17:50 +0000)]
* aoutx.h (translate_to_native_sym_flags), bfd-in.h (bfd_ec),
oasys.c (oasys_write_sections): Rename
bfd_error_nonrepresentable_section to nonrepresentable_section.
None of the other bfd error names start with "bfd_error".
Remove errors symbol_not_found and no_relocation_info, which seem
to be unused.
* bfd-in2.h: Regenerated.

30 years agoThu Jan 20 15:04:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
Jim Kingdon [Fri, 21 Jan 1994 17:43:32 +0000 (17:43 +0000)]
Thu Jan 20 15:04:24 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)

* printcmd.c (print_address_symbolic):  Unconditionally use msymbol
if we did not find a symbol.

30 years ago * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
Jeff Law [Fri, 21 Jan 1994 16:23:36 +0000 (16:23 +0000)]
* infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
is not defined.

* hppab-nat.c (call_ptrace): Delete redundant function.
(kill_inferior, attach, detach, child_resume): Likewise.
(child_xfer_memory): Likewise.

* hppah-nat.c (call_ptrace): Delete redundant function.
(kill_inferior, attach, detach, child_resume): Likewise.

* config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.

* config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.

* config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.

* config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): define.
(CHILD_XFER_MEMORY): Define.
(PT_*): Define so that generic infptrace.c code can be used.

30 years ago * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
Jeff Law [Fri, 21 Jan 1994 16:22:51 +0000 (16:22 +0000)]
* infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
is not defined.

* hppab-nat.c (call_ptrace): Delete redundant function.
(kill_inferior, attach, detach, child_resume): Likewise.
(child_xfer_memory): Likewise.

* hppah-nat.c (call_ptrace): Delete redundant function.
(kill_inferior, attach, detach, child_resume): Likewise.

* config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.

* config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.

* config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.

* config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): Define.
(CHILD_XFER_MEMORY): Define.
(PT_*): Define so that generic infptrace.c code can be used.

30 years ago * xcoffread.c (xcoff_symfile_read): Make second parameter a
Jim Kingdon [Fri, 21 Jan 1994 14:44:29 +0000 (14:44 +0000)]
* xcoffread.c (xcoff_symfile_read): Make second parameter a
struct section_offsets *, not a (nonexistent) struct section_offset *.

30 years ago * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
Jim Kingdon [Fri, 21 Jan 1994 14:38:58 +0000 (14:38 +0000)]
* xcoffread.c (read_xcoff_symtab): Make main_aux just a union
internal_xcoff_symtab, not an array of one of them.  Change lots of
"main_aux" to "&main_aux" and so on.

30 years ago * coffread.c, xcoffread.c: Include <coff/internal.h>
Jim Kingdon [Fri, 21 Jan 1994 14:26:20 +0000 (14:26 +0000)]
* coffread.c, xcoffread.c: Include <coff/internal.h>
before "symfile.h".

30 years ago * bfd.c (bfd_get_gp_size): Added support for ELF.
Ian Lance Taylor [Fri, 21 Jan 1994 06:30:40 +0000 (06:30 +0000)]
* bfd.c (bfd_get_gp_size): Added support for ELF.

30 years ago * syms.c (BSF_DYNAMIC): New symbol flag.
Ian Lance Taylor [Fri, 21 Jan 1994 06:29:21 +0000 (06:29 +0000)]
* syms.c (BSF_DYNAMIC): New symbol flag.
(bfd_print_symbol_vandf): Print it.
* bfd-in2.h: Rebuilt.
* libaout.h (struct aout_backend_data): New read_dynamic_symbols
and read_dynamic_relocs fields.
(struct aoutdata): New dynamic_info field.
(obj_aout_dynamic_info): New accessor macro.
* sunos.c (struct sunos_dynamic_info): New structure.
(sunos_read_dynamic_info, MY(read_dynamic_symbols),
MY(read_dynamic_relocs)): New functions to read dynamic symbols
and relocs.
* aoutx.h (NAME(aout,some_aout_object_p)): If the object is
dynamically linked, set SEC_RELOC for both the .text and .data
sections.
(translate_from_native_sym_flags): Don't set BSF_LOCAL for an
undefined symbol.
(translate_symbol_table): New function, split out of
slurp_symbol_table; set the BSF_DYNAMIC flag appropriately.
(NAME(aout,slurp_symbol_table)): Read dynamic symbols, if any.
(NAME(aout,slurp_reloc_table)): Read dynamic relocs, if any.
(NAME(aout,get_reloc_upper_bound)): Include dynamic reloc count in
return value.
* aoutf1.h (NAME(aout,sunos4_write_object_contents)): Don't write
out dynamic symbols or relocs against reloc symbols, since they
are already in the .text section and we wouldn't know where to
write them anyhow.
(sunos4_aout_backend): Initialize read_dynamic_symbols and
read_dynamic_relocs fields.
* aout-target.h (MY(backend_data)): Initialize
read_dynamic_symbols and read_dynamic_relocs fields.

30 years ago * ldlang.c (new_afile): Initialize loaded field to false.
Ian Lance Taylor [Fri, 21 Jan 1994 05:47:18 +0000 (05:47 +0000)]
* ldlang.c (new_afile): Initialize loaded field to false.
(lookup_name): If file was already loaded, don't call the
add_symbols entry point again.

30 years ago* hosts/alphaosf.h (uint64e_type, uint64_type, int64_type): Delete typedefs,
Ken Raeburn [Fri, 21 Jan 1994 02:00:05 +0000 (02:00 +0000)]
* hosts/alphaosf.h (uint64e_type, uint64_type, int64_type): Delete typedefs,
since HOST_64_BIT will take care of defining them in bfd.h.

30 years agoFix gas_version.
Rob Savoye [Fri, 21 Jan 1994 00:35:57 +0000 (00:35 +0000)]
Fix gas_version.

30 years ago* coffread.c (coff_getfilename): Make it not static.
Jim Kingdon [Fri, 21 Jan 1994 00:34:07 +0000 (00:34 +0000)]
* coffread.c (coff_getfilename): Make it not static.

30 years ago * gas/all/gas.exp, lib/gas-defs.exp, sun4/addend.exp,
Rob Savoye [Thu, 20 Jan 1994 23:47:09 +0000 (23:47 +0000)]
* gas/all/gas.exp, lib/gas-defs.exp, sun4/addend.exp,
sparc-solaris/addend.exp: Tweaked to fix a few bugs and to run
well under either version of expect

30 years agoTweak to run under either version of expect. Add a hack-around for a
Rob Savoye [Thu, 20 Jan 1994 23:44:10 +0000 (23:44 +0000)]
Tweak to run under either version of expect. Add a hack-around for a
dejagnu 1.1.1 (only) bug.

30 years agoTweak to work with either version of expect. Use the verbose function, fix
Rob Savoye [Thu, 20 Jan 1994 23:30:51 +0000 (23:30 +0000)]
Tweak to work with either version of expect. Use the verbose function, fix
gas_version.

30 years agoTweaked to run under either version of expect.
Rob Savoye [Thu, 20 Jan 1994 23:10:41 +0000 (23:10 +0000)]
Tweaked to run under either version of expect.