platform/upstream/binutils.git
30 years ago * mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
Jim Kingdon [Tue, 1 Mar 1994 00:15:07 +0000 (00:15 +0000)]
* mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
(STEP_SKIPS_DELAY): Added.
* infrun.c (proceed) [STEP_SKIPS_DELAY]: Check for a breakpoint in
the delay slot.

30 years agoModified Files:
Kung Hsu [Tue, 1 Mar 1994 00:00:06 +0000 (00:00 +0000)]
Modified Files:
ChangeLog

30 years agoModified Files:
Kung Hsu [Mon, 28 Feb 1994 23:49:08 +0000 (23:49 +0000)]
Modified Files:
ChangeLog targets.c Makefile.in cache.c
Added Files:
i386os9k.c

        * i386os9k.c : new file to handle os9k format bfd.
        * Makefile.in : Handle new file i386os9k.c
        * bfd-in2.h : Add bfd_target_os9k_flavour.
        * targets.c : Add bfd_target_os9k_flavour and i386os9k_vec.
        * cache.c : Initialize cache_sentinel to 0.

30 years ago * valprint.c (val_print_string): If errcode is set, always print
Jim Kingdon [Mon, 28 Feb 1994 22:44:21 +0000 (22:44 +0000)]
* valprint.c (val_print_string): If errcode is set, always print
an error, regardless of force_ellipsis.  In the non-EIO case,
just print the error message rather than calling error().  Don't
access *(bufptr-1) if bufptr points to the start of the buffer.
When looking for '\0', don't increment bufptr and addr if bufptr
started out already at limit.  If an error happens on fetching the
first character, don't print the string.

30 years ago960-coff, alpha changes
Ken Raeburn [Mon, 28 Feb 1994 21:15:06 +0000 (21:15 +0000)]
960-coff, alpha changes

30 years ago(md_atof): Omit warning about FP values.
Ken Raeburn [Mon, 28 Feb 1994 21:13:23 +0000 (21:13 +0000)]
(md_atof): Omit warning about FP values.
(line_comment_chars): Add ! to list.
(md_apply_fix): Do process 32- and 64-bit relocations.

30 years ago* configure.in (i960-*-coff, i960-*-vxworks5.*): Use coffbfd, and gas_target
Ken Raeburn [Mon, 28 Feb 1994 21:11:17 +0000 (21:11 +0000)]
* configure.in (i960-*-coff, i960-*-vxworks5.*): Use coffbfd, and gas_target
ic960coff.
* config/ic960coff.mt: New file.
* config/obj-coffbfd.h [TC_I960]: Include coff/i960.h.
(TARGET_FORMAT) [TC_I960]: Use coff-Intel-little.
* config/te-ic960.h (CROSS_COMPILE): Don't undef this.  We'll always build
little-endian object files.
* config/tc-i960.c (md_reloc_size): Don't define at all if BFD or
BFD_ASSEMBLER is defined.
(mem_fmt): Since COFF doesn't handle callx relocations yet, treat them like
normal 32-bit relocations.
(md_apply_fix): For callx relocations, store zero.
(tc_bout_fix_to_chars): Store symbol idx for all callx relocations, regardless
of link-relax setting.
(tc_coff_fix2rtype, tc_coff_sizemachdep): New functions.
(i960_handle_align) [! OBJ_BOUT]: If link-relax option is selected, print an
error message and clear it.
* config/tc-i960.h (BFD_ARCH, COFF_FLAGS, COFF_MAGIC, TC_COUNT_RELOC,
TC_COFF_FIX2RTYPE, TC_COFF_SIZEMACHDEP, tc_fix_adjustable): New macros.
(tc_coff_fix2rtype, tc_coff_sizemachdep): Declare.

30 years ago(obj_coff_lcomm): Put "#if 0" around the unused parts (most of the function).
Ken Raeburn [Mon, 28 Feb 1994 21:06:26 +0000 (21:06 +0000)]
(obj_coff_lcomm): Put "#if 0" around the unused parts (most of the function).
(obj_coff_init_stab_section): Cast alloca result.

30 years ago* lib/gas-defs.exp (objdump): New proc.
Ken Raeburn [Mon, 28 Feb 1994 20:00:10 +0000 (20:00 +0000)]
* lib/gas-defs.exp (objdump): New proc.
(objdump_start): Deleted unused proc.
(objdump_start_common): Merged into objdump_start_no_subdir.

* gas/alpha/fp.exp: Use objdump instead of objdump_start_no_subdir, since the
former actually waits for objdump to finish.  Specify .rdata section only.
Make comment indicate Alpha architecture rather than SPARC.
* gas/alpha/fp.d: Omit .reginfo patterns.  Just use "." to match
against ASCII code 0x2a ("*", special in regexp).
* gas/sun4/addend.exp: Use objdump instead of objdump_start_no_subdir.

30 years agoMon Feb 28 11:09:48 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Mon, 28 Feb 1994 19:15:10 +0000 (19:15 +0000)]
Mon Feb 28 11:09:48 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-xconfig.in (emulname): Define.

30 years agoLose mpw-build.in
Stan Shebs [Mon, 28 Feb 1994 19:14:06 +0000 (19:14 +0000)]
Lose mpw-build.in

30 years agoMon Feb 28 11:07:41 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Mon, 28 Feb 1994 19:13:40 +0000 (19:13 +0000)]
Mon Feb 28 11:07:41 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-build.in: Remove, subsumed in mpw-make.in.
* mpw-make.in (bindir): Fix pathname.
(install): Move here from mpw-build.in.

30 years agoMon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Mon, 28 Feb 1994 19:05:34 +0000 (19:05 +0000)]
Mon Feb 28 10:59:14 1994  Stan Shebs  (shebs@andros.cygnus.com)

* ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.

30 years ago * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
Jim Kingdon [Mon, 28 Feb 1994 06:17:35 +0000 (06:17 +0000)]
* config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
obsolete.

* i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
* sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
* findvar.c: Update comment regarding ieee-float.h.

30 years ago* floatformat.h: New file, intended to replace ieee-float.h.
Jim Kingdon [Mon, 28 Feb 1994 06:08:26 +0000 (06:08 +0000)]
* floatformat.h: New file, intended to replace ieee-float.h.

30 years ago * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
Jim Kingdon [Mon, 28 Feb 1994 06:06:05 +0000 (06:06 +0000)]
* i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
* sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
* findvar.c: Update comment regarding ieee-float.h.

30 years ago * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
Jim Kingdon [Mon, 28 Feb 1994 06:04:23 +0000 (06:04 +0000)]
* config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
obsolete.

* i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
* sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
* findvar.c: Update comment regarding ieee-float.h.

30 years ago * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
Jim Kingdon [Mon, 28 Feb 1994 06:02:11 +0000 (06:02 +0000)]
* i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
* sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
* findvar.c: Update comment regarding ieee-float.h.

30 years ago * elf32-hppa.c (mismatches, retval_mismatches): Fix mismatch
Jeff Law [Mon, 28 Feb 1994 04:25:14 +0000 (04:25 +0000)]
    * elf32-hppa.c (mismatches, retval_mismatches): Fix mismatch
        action in case where caller specified no argument relocation.
        (hppa_elf_build_linker_stub): Try again to get the sym_ptr_ptr
        right in the original relocation and the stub's relocation.

30 years ago * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
Jeff Law [Mon, 28 Feb 1994 04:23:40 +0000 (04:23 +0000)]
    * emultempl/hppaelf.em (hppaelf_finish): Update comments.  This
        works again.  Attach some output symbols to the stub file bfd.

30 years ago * elf32-hppa.h (hppa_look_for_stub_in_section): Fix typo. Delete
Jeff Law [Mon, 28 Feb 1994 00:32:14 +0000 (00:32 +0000)]
    * elf32-hppa.h (hppa_look_for_stub_in_section): Fix typo.  Delete
        unused symbols argument.

        * elf32-hppa.c (hppa_elf_stub_reloc): Accept asymbol ** rather
        than asymbol * for original target symbol.  All callers changed.
        Set reloc->sym_ptr_ptr appropriately.
        (hppa_elf_build_linker_stub): Set reloc->sym_ptr_ptr correctly.
        (hppa_elf_look_for_stubs_in_section): No longer need symbols
        argument.  Use the output symbols when canonicalizing the relocs,
        creating them if necessary.

        * linker.c (_bfd_generic_link_output_symbols): Do not rebuild/clobber
        the output symbols if they already exist.

30 years ago * emultempl/hppaelf.em: Include elf32-hppa.h.
Jeff Law [Mon, 28 Feb 1994 00:30:36 +0000 (00:30 +0000)]
    * emultempl/hppaelf.em: Include elf32-hppa.h.
        (file_chain): Add decl.
        (hppa_look_for_stubs_in_section): Delete decl.
        (hppaelf_finish): Reenable code.  Do not pass symbols
        down to hppa_look_for_stubs_in_section.

30 years agoKeep/lose mpw-README
Stan Shebs [Mon, 28 Feb 1994 00:16:13 +0000 (00:16 +0000)]
Keep/lose mpw-README

30 years agoVarious entries
Stan Shebs [Mon, 28 Feb 1994 00:15:45 +0000 (00:15 +0000)]
Various entries

30 years agoSun Feb 27 16:05:15 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Mon, 28 Feb 1994 00:15:29 +0000 (00:15 +0000)]
Sun Feb 27 16:05:15 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-configure (prefix, mpw_prefix): Handle it.
(ARCHDEFS): Add to makefile editing.
(TDEPFILES, TM_FILE, XDEPFILES, XM_FILE, NAT_FILE): Add to
makefile if defined.
(mpw-edit-prefix): Use during makefile editing.
* mpw-config.in (mmalloc, readline): Don't configure.
* mpw-build.in (thisscript): Rename to ThisScript.
Use mpw-build instead of BuildProgram everywhere.
(mmalloc, readline): Don't build.
* mpw-README: New file, basic documentation about the MPW port.

30 years agoSun Feb 27 15:41:10 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sun, 27 Feb 1994 23:46:59 +0000 (23:46 +0000)]
Sun Feb 27 15:41:10 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-make.in (DEBUG_BFD_SEND): Define in default compilation
rule.

30 years agoSun Feb 27 15:22:36 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sun, 27 Feb 1994 23:45:18 +0000 (23:45 +0000)]
Sun Feb 27 15:22:36 1994  Stan Shebs  (shebs@andros.cygnus.com)

* targets.c (BFD_SEND, BFD_SEND_FMT): Add debugging versions that
check all the pointer dereferences.  Enabled via DEBUG_BFD_SEND.
* bfd-in2.h: Rebuilt.

30 years agoSun Feb 27 15:22:36 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sun, 27 Feb 1994 23:28:48 +0000 (23:28 +0000)]
Sun Feb 27 15:22:36 1994  Stan Shebs  (shebs@andros.cygnus.com)

* srec.c (hex_value): Always set to a size of 256 bytes.
(srec_init): Cosmetic changes.

30 years ago * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
Peter Schauer [Sun, 27 Feb 1994 21:25:36 +0000 (21:25 +0000)]
* config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
Define to make backtracing through the various sigtramp handlers
work.

30 years ago * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
Peter Schauer [Sun, 27 Feb 1994 21:24:16 +0000 (21:24 +0000)]
* config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
Define to make backtracing through the various sigtramp handlers
work.
* i386-tdep.c (i386v4_sigtramp_saved_pc):  New routine to fetch
the saved pc from ucontext on the stack for SVR4 signal handling.

30 years ago * elf32-hppa.c: Second half of major cleanup. More comments,
Jeff Law [Sun, 27 Feb 1994 19:20:44 +0000 (19:20 +0000)]
* elf32-hppa.c: Second half of major cleanup.  More comments,
PARAMize and staticize rest of functions.  Delete unused
functions.  Delete unused/unnecessary arguments to some functions.
Group static vars together.  Abort for bad errors until we have
error code propogation working.  Work on spacing and indention.
Add FIXMEs for unresolved problems.  Use enums rather than
#defines for lots of things.  Merge two functions which build
linker stubs into a single function (so they can easily share a
ton of common code).

30 years agoForgot to check these changes in yesterday.
Jeff Law [Sun, 27 Feb 1994 19:18:06 +0000 (19:18 +0000)]
Forgot to check these changes in yesterday.

30 years agoSanitization changes to reflect other comings and goings
Stan Shebs [Sat, 26 Feb 1994 21:42:44 +0000 (21:42 +0000)]
Sanitization changes to reflect other comings and goings

30 years agoSet archdefs manually.
Stan Shebs [Sat, 26 Feb 1994 21:42:08 +0000 (21:42 +0000)]
Set archdefs manually.

30 years agoSat Feb 26 13:31:44 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sat, 26 Feb 1994 21:40:20 +0000 (21:40 +0000)]
Sat Feb 26 13:31:44 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-make (install): Replace with MPW-specific actions.
* mpw-build.in: Remove, functionality subsumed in mpw-make.in.

30 years agoSat Feb 26 13:35:26 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sat, 26 Feb 1994 21:38:04 +0000 (21:38 +0000)]
Sat Feb 26 13:35:26 1994  Stan Shebs  (shebs@andros.cygnus.com)

* ar.c (do_quick_append): Pad with a genuine character 10,
rather than whatever '\n' might happen to be.

30 years agoSat Feb 26 13:23:06 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sat, 26 Feb 1994 21:25:10 +0000 (21:25 +0000)]
Sat Feb 26 13:23:06 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-make.in (install): Moved here from mpw-build.in.
* mpw-build.in: Removed, functionality in mpw-make.in

30 years ago * ldmain.c (write_map): Don't define. Removed all references.
Ian Lance Taylor [Sat, 26 Feb 1994 19:01:50 +0000 (19:01 +0000)]
* ldmain.c (write_map): Don't define.  Removed all references.
Just use map_file or map_filename instead.
(add_archive_element): Use minfo to write map information, not
info_msg.
(constructor_callback): Use fprintf to write map information, not
info_msg.
* ldmain.h (write_map): Don't declare.
* ldgram.y (mri_script_command): Removed reference to write_map.
* ldlang.c (lang_one_common): Likewise.
* lexsup.c (parse_args): Likewise.

30 years ago * ecoff.h: Add casts to avoid warnings from SVR4 cc.
Ian Lance Taylor [Sat, 26 Feb 1994 18:27:13 +0000 (18:27 +0000)]
* ecoff.h: Add casts to avoid warnings from SVR4 cc.

30 years ago * aout64.h: Add casts to avoid warnings from SVR4 cc.
Ian Lance Taylor [Sat, 26 Feb 1994 18:26:25 +0000 (18:26 +0000)]
* aout64.h: Add casts to avoid warnings from SVR4 cc.

30 years ago * aoutx.h, archive.c: Add casts to avoid warnings from SVR4 cc.
Ian Lance Taylor [Sat, 26 Feb 1994 18:25:23 +0000 (18:25 +0000)]
* aoutx.h, archive.c: Add casts to avoid warnings from SVR4 cc.
* ecoff.c, ecofflink.c, ecoffswap.h, srec.c: Likewise.
* elf32-i386.c: Likewise.
* elfcode.h (bfd_section_from_shdr): Make i unsigned; remove old
#if 0 code.
(elf_write_phdrs): Make i unsigned.
(map_program_segments): Make i and n_left unsigned.
(assign_file_positions_except_relocs): Make i unsigned.
(write_shdrs_and_ehdr): Make count unsigned.
(assign_file_positions_for_relocs): Make i unsigned.
(NAME(bfd,elf_write_object_contents)): Make count unsigned.
(section_from_elf_index): Make index argument unsigned.

30 years ago * reloc.c (_bfd_relocate_contents): Adjust handling of overflow to
Ian Lance Taylor [Sat, 26 Feb 1994 18:24:10 +0000 (18:24 +0000)]
* reloc.c (_bfd_relocate_contents): Adjust handling of overflow to
avoid depending upon right shifts of signed numbers, and to
correct handling of src_mask with lower bits zero.

30 years agoFix typo in last change, print_filtered -> printf_filtered
Peter Schauer [Sat, 26 Feb 1994 10:01:45 +0000 (10:01 +0000)]
Fix typo in last change, print_filtered -> printf_filtered

30 years agoVarious entries.
Ian Lance Taylor [Sat, 26 Feb 1994 05:38:11 +0000 (05:38 +0000)]
Various entries.

30 years ago * linker.c (_bfd_generic_link_write_global_symbol): Add missing
Ian Lance Taylor [Sat, 26 Feb 1994 05:37:41 +0000 (05:37 +0000)]
* linker.c (_bfd_generic_link_write_global_symbol): Add missing
break in switch.

30 years ago * elfcode.h: Don't include assert.h.
Ian Lance Taylor [Sat, 26 Feb 1994 05:37:24 +0000 (05:37 +0000)]
* elfcode.h: Don't include assert.h.
(swap_out_syms): Use BFD_ASSERT rather than assert.

30 years ago * hosts/i386v4.h (qsort, strtol): Remove incorrect and useless
Ian Lance Taylor [Sat, 26 Feb 1994 05:35:43 +0000 (05:35 +0000)]
* hosts/i386v4.h (qsort, strtol): Remove incorrect and useless
declarations.

30 years ago * scripttempl/elf.sc: Force all sections to be aligned.
Ian Lance Taylor [Sat, 26 Feb 1994 05:34:52 +0000 (05:34 +0000)]
* scripttempl/elf.sc: Force all sections to be aligned.

30 years ago * ldgram.y (section): Reverse the order of memspec_opt and
Ian Lance Taylor [Sat, 26 Feb 1994 05:32:29 +0000 (05:32 +0000)]
* ldgram.y (section): Reverse the order of memspec_opt and
fill_opt to avoid an ambiguity when both are used.
* ld.texinfo: Changed accordingly.

30 years ago * libhppa.h (hppa_rebuild_insn): Moved here from elf32-hppa.c.
Jeff Law [Sat, 26 Feb 1994 04:58:57 +0000 (04:58 +0000)]
    * libhppa.h (hppa_rebuild_insn): Moved here from elf32-hppa.c.

        * elf32-hppa.h (elf_hppa_tc_symbol): Add new arguments.
        (elf_hppa_tc_make_sections): Likewise.
        (elf_hppa_final_processing): Add extern decl.

        * elf32-hppa.c: First half of major cleanup.  Add/cleanup lots of
        comments.  PARAMize some static functions.  Delete unused functions.
        Delete unused/unnecessary arguments to many functions.  Group
        static vars together.  Collapse common case statements together
        in many places.  Use default case when possible instead of listing
        each case separately.  Abort for bad errors until we get error
        code propogation working.  Work on spacing and indention problems.
        Add FIXMEs for some unresolved problems.  Delete hopelessly broken
        COMPLEX relocation support (it's never used anyway).
        (hppa_elf_rebuild_insn): Delete.  Moved into libhppa.h.
        (elf_hppa_tc_symbol): Accept and use new arguments (symext chains).
        (elf_hppa_tc_make_sections): Likewise.

30 years ago * config/tc-hppa.c (hppa_tc_symbol): Call PA ELF BFD version.
Jeff Law [Sat, 26 Feb 1994 04:57:57 +0000 (04:57 +0000)]
    * config/tc-hppa.c (hppa_tc_symbol): Call PA ELF BFD version.
        (hppa_tc_make_sections): Likewise.
        (pa_build_symextn_section): Delete unused function.
        (hppa_tc_make_symextn_section): Likewise.
        (pa_export): Delete call to pa_build_symextn_section.

        * config/tc-hppa.h (hppa_tc_symbol): Add extern decl.
        (elf_hppa_final_processing): Delete extern decl.
        (hppa_tc_symbol): Delete extern decl.

30 years ago * format.c (bfd_check_format_matches): Initialize matching_vector
Jeff Law [Sat, 26 Feb 1994 03:41:36 +0000 (03:41 +0000)]
    * format.c (bfd_check_format_matches): Initialize matching_vector
        to keep gcc -Wall quiet.

        * elfcode.h (elf_slurp_reloca_table): Fix typo.

30 years ago * ldgram.y: Move include of ldlex.h back with other includes.
Ian Lance Taylor [Sat, 26 Feb 1994 03:22:26 +0000 (03:22 +0000)]
* ldgram.y: Move include of ldlex.h back with other includes.
* ldlex.h (input_type): Don't initialize enum constants to
particular values.
* ldlex.l: Use a switch to return the right token based on
input_type, rather than knowing that input_type has a value based
on a token type.

30 years ago * ldgram.y (dirlist_ptr): Removed; not used.
Ian Lance Taylor [Sat, 26 Feb 1994 03:17:02 +0000 (03:17 +0000)]
* ldgram.y (dirlist_ptr): Removed; not used.
* lexsup.c: Include ldver.h.
* Makefile.in: Rebuilt dependencies.

30 years agoFri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
Ian Lance Taylor [Sat, 26 Feb 1994 03:11:21 +0000 (03:11 +0000)]
Fri Feb 25 18:55:54 1994  Ted Lemon  (mellon@pepper.ncd.com)

* ldlang.c (lookup_name): don't call bfd_set_gp_size.
(ldlang_add_file): call it here instead.

30 years ago * ldgram.y: Include ldlex.h after %token decls, for byacc.
David MacKenzie [Sat, 26 Feb 1994 02:14:30 +0000 (02:14 +0000)]
* ldgram.y: Include ldlex.h after %token decls, for byacc.

30 years ago * remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
Jim Kingdon [Sat, 26 Feb 1994 01:52:39 +0000 (01:52 +0000)]
* remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
baud_rate is -1.  Remove sr_get_baud_rate and sr_set_baud_rate;
just use the global variable itself.  When printing baud rate,
don't print a baud rate if baud_rate is -1.

30 years ago * som.c (som_get_symtab_upper_bound): Use "sizeof (asymbol *)"
Jeff Law [Sat, 26 Feb 1994 00:39:03 +0000 (00:39 +0000)]
    * som.c (som_get_symtab_upper_bound): Use "sizeof (asymbol *)"
        not "sizeof (som_symbol_type *)".

        * elfcode.h (elf_get_symtab_upper_bound): Use "sizeof (asymbol *)"
        not "sizeof (asymbol").  Opps.

30 years ago * emultempl/hppaelf.em: First attempt to clean this file up.
Jeff Law [Sat, 26 Feb 1994 00:33:30 +0000 (00:33 +0000)]
    * emultempl/hppaelf.em: First attempt to clean this file up.
        Add comments in several functions as to their purpose and
        how they function (or my current best guess).  Clean up horrible
        spacing and indention that never should have been accepted in the
        first place.  Add FIXMEs for issues which need to be resolved.
        Disable linker-stub generation until it gets fixed.  This allows
        the linker to at least work on simple code for testing purposes.

30 years ago * bfd.c (bfd_get_gp_size): Can't return gp value on an archive.
Ian Lance Taylor [Fri, 25 Feb 1994 21:20:18 +0000 (21:20 +0000)]
* bfd.c (bfd_get_gp_size): Can't return gp value on an archive.
(bfd_set_gp_size):  Can't set gp value on an archive.

30 years ago * config/obj-coffbfd.c (fill_section): Correct test for whether to
Ian Lance Taylor [Fri, 25 Feb 1994 21:16:56 +0000 (21:16 +0000)]
* config/obj-coffbfd.c (fill_section): Correct test for whether to
fill a section (from Minh Tran-Le <TRANLE@intellicorp.com>).

30 years ago * srec.c (pass_over): Don't skip too many characters when
Steve Chamberlain [Fri, 25 Feb 1994 21:09:09 +0000 (21:09 +0000)]
* srec.c (pass_over): Don't skip too many characters when
end of line seen.

30 years agoFix last patch.
Ian Lance Taylor [Fri, 25 Feb 1994 21:05:49 +0000 (21:05 +0000)]
Fix last patch.

30 years ago * ecoff.c (ecoff_sizeof_headers): Align result to 16 byte
Ian Lance Taylor [Fri, 25 Feb 1994 19:42:43 +0000 (19:42 +0000)]
* ecoff.c (ecoff_sizeof_headers): Align result to 16 byte
boundary.

30 years ago * ldlang.c (lang_size_sections): No longer static (PA ELF calls
Jeff Law [Fri, 25 Feb 1994 18:51:35 +0000 (18:51 +0000)]
    * ldlang.c (lang_size_sections): No longer static (PA ELF calls
        it via hppaelf_finish).  Prototype moved into ldlang.h.
        (lang_process): Move problematic extra call to lang_size_sections
        into the PA ELF specific code.
        * emultempl/hppaelf.em (hppaelf_finish): Extra call to
        lang_size_sections moved here.

30 years ago * coffread.c (read_coff_symtab): Pass mst_file_* to
Jim Kingdon [Fri, 25 Feb 1994 17:45:38 +0000 (17:45 +0000)]
* coffread.c (read_coff_symtab): Pass mst_file_* to
record_minimal_symbol for C_STAT symbols.  Put C_EXT and C_STAT
symbols in the minimal symbols regardless of SDB_TYPE.

30 years ago * gdb.t06/break.exp (test_next_with_recursion): Remove xfail for
Jim Kingdon [Fri, 25 Feb 1994 09:13:10 +0000 (09:13 +0000)]
* gdb.t06/break.exp (test_next_with_recursion): Remove xfail for
next over recursive call.  Revise the tests from that point on
(which had been skipped) to match GDB's actual (correct) output.

* gdb.t07/watchpoint.exp (test_stepping): Remove xfail for bug
with next over a breakpoint whose condition is false.

30 years ago * breakpoint.h (enum bptype): New type bp_through_sigtramp.
Jim Kingdon [Fri, 25 Feb 1994 09:12:29 +0000 (09:12 +0000)]
* breakpoint.h (enum bptype): New type bp_through_sigtramp.
(bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP.
* breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP
if we hit a bp_through_sigtramp breakpoint.  Remove kludge which
ignored bs->stop for a bp_step_resume breakpoint.
* infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint
which performs one (the check_sigtramp2 one) of the functions
which had been handled by the step_resume_breakpoint.  For each
use of the step_resume_breakpoint, make it still use the
step_resume_breakpoint, use the through_sigtramp_breakpoint, or
operate on both.
Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what.
When setting the frame address of the step resume breakpoint, set
it to the address for frame *before* the call instruction is
executed, not after.

30 years ago * mips-tdep.c (mips_print_register): Print integers using
Jim Kingdon [Fri, 25 Feb 1994 04:23:19 +0000 (04:23 +0000)]
* mips-tdep.c (mips_print_register): Print integers using
print_scalar_formatted rather than duplicating all the
CC_HAS_LONG_LONG and so on.
(mips_push_dummy_frame): Use read_register_gen rather than using
read_register and then putting it back in target format with
store_unsigned_integer.  If registers are more than 4 bytes, give
an error rather than have some registers overwrite other
registers.
#if 0 unused include of opcode/mips.h.

30 years agoAdd missing newline in einfo message.
David MacKenzie [Fri, 25 Feb 1994 04:12:50 +0000 (04:12 +0000)]
Add missing newline in einfo message.

30 years ago * lexsup.c (parse_args): Use symbolic numbers for long options.
David MacKenzie [Fri, 25 Feb 1994 04:08:55 +0000 (04:08 +0000)]
* lexsup.c (parse_args): Use symbolic numbers for long options.
Fix misunderstanding in -Y and -call_shared et al.

30 years agoFor some reason this directory was missing a .Sanitize file.
Ian Lance Taylor [Fri, 25 Feb 1994 03:59:10 +0000 (03:59 +0000)]
For some reason this directory was missing a .Sanitize file.

30 years agoMake correspond to djm's last change.
Ian Lance Taylor [Fri, 25 Feb 1994 03:39:17 +0000 (03:39 +0000)]
Make correspond to djm's last change.

30 years ago * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
Ian Lance Taylor [Fri, 25 Feb 1994 03:32:08 +0000 (03:32 +0000)]
* configure.in (powerpc-*-elf*): New target; use ppc-elf32.
* config/ppc-elf32.mt: New file.
* emulparams/elf32ppc.sh: New file.
* emultempl/ppc.em: New file.
* Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
(em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
(EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.

30 years ago Use getopt instead of lex and yacc to parse the command line.
David MacKenzie [Fri, 25 Feb 1994 03:26:25 +0000 (03:26 +0000)]
Use getopt instead of lex and yacc to parse the command line.

* ld.texinfo (Options): Document changes to option syntax.
* Makefile.in: Update dependencies.
* ldver.c (help): Tweak dashes in usage message.
* ldgram.y (%union): Remove unused members.
Remove %tokens for command line options; add ones for input types.
(command_line): Rules removed.
(file): Instead of command line, recognize an
input type indicator, then use the nonterminal for that type.
(defsym_expr): New nonterminal from code formerly in command_line.
* ldlex.h: Declare parser input type enum and variable.
Don't declare parse_line.
* ldlex.l: Remove unused variables.  Make some used ones static
and comment them.
(COMMAND): Start state and its rules removed.
At start of yylex, return input state token if at start of input.
(lex_redirect): Don't need to set yyout.
(ldlex_command): Function removed.
* ldmain.c (main): Instead of calling parse_line, set up the
redirections and call yyparse directly.
* ldmisc.c (vfinfo): If there's no input filename, print nothing, not
"command line".
* lexsup.c: Remove #if 0'd code.
(parse_line): Function removed.
(parse_args): Rewrite to use getopt_long_only.
(set_default_dirlist): New function from code formerly in
ldgram.y:command_line.
(set_section_start): New function.
* emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
compiled-in link scripts in "{" and "}", as the grammar no longer
wants them to be.

30 years ago * gdb.t00/help.exp: Comment out "help set print" tests just like
Jim Kingdon [Fri, 25 Feb 1994 03:03:29 +0000 (03:03 +0000)]
* gdb.t00/help.exp: Comment out "help set print" tests just like
(and for same reason as) "help set" test.

30 years agoH8/500 bits.
Steve Chamberlain [Thu, 24 Feb 1994 17:15:46 +0000 (17:15 +0000)]
H8/500 bits.

30 years agoVarious H8/500 bits.
Steve Chamberlain [Thu, 24 Feb 1994 17:14:06 +0000 (17:14 +0000)]
Various H8/500 bits.

30 years ago* defs.h: Revert Kung change regarding FORCE_LONG_LONG.
Jim Kingdon [Thu, 24 Feb 1994 16:54:03 +0000 (16:54 +0000)]
* defs.h: Revert Kung change regarding FORCE_LONG_LONG.

30 years agokeep coff_sparc.sh
Ken Raeburn [Thu, 24 Feb 1994 16:50:12 +0000 (16:50 +0000)]
keep coff_sparc.sh

30 years agokeep coff-sparc.mt
Ken Raeburn [Thu, 24 Feb 1994 16:49:21 +0000 (16:49 +0000)]
keep coff-sparc.mt

30 years ago* read.c (potable): Added ".this_GCC_requires_the_GNU_assembler", which is
Ken Raeburn [Thu, 24 Feb 1994 16:38:42 +0000 (16:38 +0000)]
* read.c (potable): Added ".this_GCC_requires_the_GNU_assembler", which is
ignored by gas, but will cause other assemblers to choke.  Intended for use by
gcc ports that require gas instead of native assemblers.

30 years ago * confiugre.in (hppa*-*-osf*): New configuration.
Jeff Law [Thu, 24 Feb 1994 16:10:15 +0000 (16:10 +0000)]
    * confiugre.in (hppa*-*-osf*): New configuration.
        * config/pa/hppaosf.mt: New target makefile fragment.
        * config/pa/tm-hppao.h: New target include file.

30 years ago * gas/hppa/more.parse/parse.exp (no subspace test): Only expect
Jeff Law [Thu, 24 Feb 1994 15:12:50 +0000 (15:12 +0000)]
    * gas/hppa/more.parse/parse.exp (no subspace test): Only expect
        a failure if gas is not producing an ELF object.

30 years ago * config/ho-hppaosf.h: Fix braino in test for ANSI-C.
Jeff Law [Thu, 24 Feb 1994 15:11:19 +0000 (15:11 +0000)]
    * config/ho-hppaosf.h: Fix braino in test for ANSI-C.

30 years ago * rldefs.h: Define S_ISREG if necessary.
Peter Schauer [Thu, 24 Feb 1994 14:19:43 +0000 (14:19 +0000)]
* rldefs.h:  Define S_ISREG if necessary.

30 years ago * dwarfread.c: Remove second inclusion of <sys/types.h>, which
Peter Schauer [Thu, 24 Feb 1994 13:33:45 +0000 (13:33 +0000)]
* dwarfread.c:  Remove second inclusion of <sys/types.h>, which
causes problems if <sys/types.h> has no multiple inclusion protection.

30 years ago * exec.c (print_section_info): Print entry point for exec_bfd only.
Peter Schauer [Thu, 24 Feb 1994 12:40:39 +0000 (12:40 +0000)]
* exec.c (print_section_info):  Print entry point for exec_bfd only.
* ser-unix.c (wait_for):  Fix typo in HAVE_TERMIO case.

30 years ago * elfcode.h (elf_core_file_p): Check for core file e_machine match
Peter Schauer [Thu, 24 Feb 1994 12:37:43 +0000 (12:37 +0000)]
* elfcode.h (elf_core_file_p):  Check for core file e_machine match
like in elf_object_p.

30 years ago * Merge in changes from bash-1.13.5. Merge changes from glob/tilde.c
Peter Schauer [Thu, 24 Feb 1994 12:18:54 +0000 (12:18 +0000)]
* Merge in changes from bash-1.13.5. Merge changes from glob/tilde.c
into tilde.c and use it. Add system function declarations where
necessary. Check for __GO32__, not _GO32_ consistently.
* Makefile.in:  Update dependencies.
* rltty.c:  Include <sys/file.h> to match include file setup
in readline.c for rldefs.h. Otherwise we get inconsistent
TTY_DRIVER definitions in readline.c and rltty.c.
* bind.c, complete.c:  Do not include <sys/types.h>, it is already
included via sysdep.h, which causes problems if <sys/types.h> has
no multiple inclusion protection.
* readline.c (_rl_set_screen_size):  Reestablish test for
TIOCGWINSZ_BROKEN.

30 years ago * elfcode.h (alloca): Delete declaration.
Jeff Law [Thu, 24 Feb 1994 04:00:30 +0000 (04:00 +0000)]
    * elfcode.h (alloca): Delete declaration.

30 years ago * som.c (som_prep_headers): Use CPU_PA_RISC1_0 for magic
Jeff Law [Thu, 24 Feb 1994 02:31:01 +0000 (02:31 +0000)]
    * som.c (som_prep_headers): Use CPU_PA_RISC1_0 for magic
        number rather than HP9000S800_ID.  Note som.c is careful
        to make sure CPU_PA_RISC1_0 is always defined.

30 years ago * sparc-stub.c (trap_low): Make trap handler work for arbitrary
Stu Grossman [Thu, 24 Feb 1994 01:49:15 +0000 (01:49 +0000)]
* sparc-stub.c (trap_low):  Make trap handler work for arbitrary
numbers of register windows.

30 years agoWed Feb 23 16:52:51 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Thu, 24 Feb 1994 00:56:32 +0000 (00:56 +0000)]
Wed Feb 23 16:52:51 1994  Stan Shebs  (shebs@andros.cygnus.com)

* hosts/mpw.h (fstat): Declare.
(mpw_fstat): Eliminate mentions.

30 years ago * write.c (write_contents): Give the user a reasonable error
Jeff Law [Thu, 24 Feb 1994 00:53:24 +0000 (00:53 +0000)]
    * write.c (write_contents): Give the user a reasonable error
        message rather than "assertion failed" if bfd_set_section_contents
        fails.

30 years ago * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
Jeff Law [Thu, 24 Feb 1994 00:31:46 +0000 (00:31 +0000)]
    * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
        the call dummy to avoid kernel bugs in HPUX, BSD, and OSF1.
        (CALL_DUMMY_LENGTH): Changed accordingly.

30 years ago * sparclite/hello.c: Add factorial function for testing.
Stu Grossman [Thu, 24 Feb 1994 00:25:58 +0000 (00:25 +0000)]
* sparclite/hello.c:  Add factorial function for testing.
* salib.c:  Use macros instead of constants for I/O addresses to
make 931 support easier.
* sparclite.h:  Change constraint for LOC to "rJ" to force use of
register in sta/lda instructions.

30 years ago * stabs.texinfo: Document N_RBRAC as function relative for COFF as
Jim Kingdon [Wed, 23 Feb 1994 19:20:07 +0000 (19:20 +0000)]
* stabs.texinfo: Document N_RBRAC as function relative for COFF as
well as for ELF and SOM.  Unify the descriptions of ELF and SOM
as "stabs in sections" rather than just saying "ELF and SOM".
Also make that stuff apply to COFF.

30 years ago * dbxread.c (process_one_symbol): Set
Jim Kingdon [Wed, 23 Feb 1994 18:42:05 +0000 (18:42 +0000)]
* dbxread.c (process_one_symbol): Set
block_address_function_relative for COFF like we do for ELF and SOM.

30 years agoRemove trash left from Makefile cut & paste.
Rob Savoye [Tue, 22 Feb 1994 22:55:24 +0000 (22:55 +0000)]
Remove trash left from Makefile cut & paste.