external/binutils.git
30 years agoWed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
Steve Chamberlain [Wed, 14 Sep 1994 20:45:43 +0000 (20:45 +0000)]
Wed Sep 14 12:49:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)

* ldlang.c (lang_do_assignments): Make sure output statement
has an attached bfd_section before trying to dereference it.

30 years agoUpdated for recent NetBSD changes
J.T. Conklin [Wed, 14 Sep 1994 20:26:54 +0000 (20:26 +0000)]
Updated for recent NetBSD changes

30 years agoRebuilt dependencies.
Ian Lance Taylor [Wed, 14 Sep 1994 20:26:40 +0000 (20:26 +0000)]
Rebuilt dependencies.

30 years ago * objdump.c (disassemble_data): Initialize prevline to 0. Make
Ian Lance Taylor [Wed, 14 Sep 1994 20:21:21 +0000 (20:21 +0000)]
* objdump.c (disassemble_data): Initialize prevline to 0.  Make
prev_function non const.  Copy functionname into an malloc buffer
when setting prev_function, instead of assuming that the string
will last forever.

30 years ago * libecoff.h (struct ecoff_tdata): Add field find_buffer.
Ian Lance Taylor [Wed, 14 Sep 1994 20:19:09 +0000 (20:19 +0000)]
* libecoff.h (struct ecoff_tdata): Add field find_buffer.
* ecoff.c: Include aout/stab_gnu.h.
(ecoff_find_nearest_line): Handle stabs debugging information.
PR 3954.

30 years ago * elfcode.h (elf_link_output_extsym): Keep a symbol marked as weak
Ian Lance Taylor [Wed, 14 Sep 1994 19:08:26 +0000 (19:08 +0000)]
* elfcode.h (elf_link_output_extsym): Keep a symbol marked as weak
even if it is referenced by another object.

30 years agoTweak the new handling of function names.
Ian Lance Taylor [Wed, 14 Sep 1994 18:29:06 +0000 (18:29 +0000)]
Tweak the new handling of function names.

30 years ago * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
Ian Lance Taylor [Wed, 14 Sep 1994 17:08:37 +0000 (17:08 +0000)]
* ldmisc.c (vfinfo): Handle %D as %C, but never print the function
name.  For %C, print the function name on a separate line, to keep
the length of error messages under control.
* ldmain.c (multiple_definition): Use %D for ``first defined
here.''
(undefined_symbol): Use %D for ``more undefined references
follow''.
PR 3770.

30 years ago * ldmisc.c (multiple_warn): Remove; no longer used.
Ian Lance Taylor [Wed, 14 Sep 1994 16:50:19 +0000 (16:50 +0000)]
* ldmisc.c (multiple_warn): Remove; no longer used.
* ldmisc.h (multiple_warn): Don't declare.

30 years ago * nm.c: Include libiberty.h.
Ian Lance Taylor [Wed, 14 Sep 1994 16:28:41 +0000 (16:28 +0000)]
* nm.c: Include libiberty.h.
(sort_by_size): New static variable.
(long_options): Add --size-sort.
(usage): Mention --size-sort.
(numeric_forward): Make static.  Change from void * to PTR.
(numeric_reverse): Likewise.
(non_numeric_forward, non_numeric_reverse): Likewise.
(sorters): Change declaration from void * to PTR.
(size_forward, sort_symbol_by_size): New static functions.
(display_rel_file): Handle sort_by_size.
(filter_symbols): If sort_by_size, discard absolute and undefined
symbols.
* binutils.texi (nm): Document --size-sort.
* nm.1: Document --size-sort.
PR 3611.

30 years ago * gdbtk.tcl: Add ref counts to breakpoint tags.
Stu Grossman [Wed, 14 Sep 1994 08:02:51 +0000 (08:02 +0000)]
* gdbtk.tcl:  Add ref counts to breakpoint tags.
* Put quotes around function name in disassemble command to better
handle assembler names containing `.'.
* Make pclist element 0 be filler to avoid off-by-one problem with
line numbers.
* Set names of top-level windows.
* Add register display window.
* Add PC to label of assembly window.

30 years ago * ldlang.c (print_output_section_statement): Print all lines
Steve Chamberlain [Wed, 14 Sep 1994 04:55:00 +0000 (04:55 +0000)]
* ldlang.c (print_output_section_statement): Print all lines
to the map file.

30 years ago * expr.c (expr): Don't reduce the difference of two symbols in the
Jeff Law [Wed, 14 Sep 1994 03:53:14 +0000 (03:53 +0000)]
* expr.c (expr): Don't reduce the difference of two symbols in the
same frag if the symbols are not in normal sections.

30 years ago * objcopy.c (copy_main): Initialize input_filename and
Jeff Law [Wed, 14 Sep 1994 03:08:55 +0000 (03:08 +0000)]
* objcopy.c (copy_main): Initialize input_filename and
output_filename to NULL.

30 years ago * som.c (som_fixup_formats): Case R_ENTRY (0xb3), set both
Jeff Law [Wed, 14 Sep 1994 03:03:15 +0000 (03:03 +0000)]
* som.c (som_fixup_formats): Case R_ENTRY (0xb3), set both
'T' and 'U' to grab all the unwind information.
(som_set_reloc_info): Make 'U' unwind bits persist across
multiple SOM relocations.  Set the addend field of an R_ENTRY
relocation to the value in 'T'; set the addend field on an
R_EXIT relocation to the value in 'U'.

30 years ago * som.h (som_symbol_type): Delete unwind field.
Jeff Law [Wed, 14 Sep 1994 02:28:52 +0000 (02:28 +0000)]
* som.h (som_symbol_type): Delete unwind field.

* som.c (som_write_fixups): For R_ENTRY fixups, get 32bits of
unwind information from the addend field of the R_ENTRY, get the
other 32bits from the addend field of the R_EXIT.
(bfd_som_attach_unwind_info): Delete function and all references.

30 years ago * config/obj-som.h (S_SET_OTHER, S_SET_TYPE): Delete a.out crud.
Jeff Law [Wed, 14 Sep 1994 02:20:24 +0000 (02:20 +0000)]
* config/obj-som.h (S_SET_OTHER, S_SET_TYPE): Delete a.out crud.
(S_SET_DESC, S_GET_OTHER, S_GET_TYPE, S_GET_DESC): Likewise.
(obj_attach_unwind_info): Do not define.  Not needed anymore.
* config/tc-hppa.c: Delete whitespace at EOL.
(struct hppa_fix_struct): Delete fx_unwind field and all references.
(fix_new_hppa): Last arg is now a pointer to an int.  Do not
call obj_attach_unwind_info anymore.  For SOM R_ENTRY and R_EXIT
fixups, store 32bits of unwind information in the fx_addnumber
field of the fixup.
(md_assemble, pa_entry, process_exit, pa_procend): For SOM R_ENTRY
and R_EXIT fixups, pass a NULL pointer to fix_new_hppa, and a
pointer to 32 bits of unwind info.
(tc_gen_reloc): For SOM R_ENTRY and R_EXIT fixups, set the symbol
pointer to the dummy symbol; set the addend field to fx_addnumber.
(pa_comm, pa_equ, pa_type_args, pa_import): Use bfd_XXX_section_ptr
rather than &bfd_XXX_section.

30 years ago386_GOTPC fix from ericy
Ken Raeburn [Wed, 14 Sep 1994 01:43:21 +0000 (01:43 +0000)]
386_GOTPC fix from ericy

30 years agoSome Vax and VMS bug fixes from Pat Rankin.
Ken Raeburn [Wed, 14 Sep 1994 01:30:56 +0000 (01:30 +0000)]
Some Vax and VMS bug fixes from Pat Rankin.

30 years agoDo unlink/delete test properly.
Ken Raeburn [Wed, 14 Sep 1994 00:54:00 +0000 (00:54 +0000)]
Do unlink/delete test properly.

Replace HO_VMS tests with VMS.

30 years ago * som.h (som_symbol_type): Delete unused a.out-related fields.
Jeff Law [Wed, 14 Sep 1994 00:51:33 +0000 (00:51 +0000)]
* som.h (som_symbol_type): Delete unused a.out-related fields.

* som.c (bfd_section_from_som_symbol): Use bfd_abs_section_ptr
instead of &bfd_abs_section.

30 years ago * som.c (som_object_setup): Handle exec_entry and exec_flags being
Jeff Law [Wed, 14 Sep 1994 00:29:11 +0000 (00:29 +0000)]
* som.c (som_object_setup): Handle exec_entry and exec_flags being
switched in executables created by the OSF1 linker.
(som_write_fixups): Handle R_EXIT just like the R_{F,L,R}SEL
fixups.  Support R_ALT_ENTRY (handle just like R_EXIT).

30 years ago * w89k-rom.c op50-rom.c monitor.c config/pa/hppapro.mt: New files
Rob Savoye [Wed, 14 Sep 1994 00:26:51 +0000 (00:26 +0000)]
* w89k-rom.c op50-rom.c monitor.c config/pa/hppapro.mt: New files
to add a generic ROM monitor interface, and support file for the
WinBond W89K and the Oki OP50N PA based target boards.

30 years agoAdd support for the w89k and op50n PA target board code.
Rob Savoye [Wed, 14 Sep 1994 00:21:23 +0000 (00:21 +0000)]
Add support for the w89k and op50n PA target board code.

30 years agoOop, make sure Sanitize doesn't nuke new files.
Rob Savoye [Wed, 14 Sep 1994 00:19:26 +0000 (00:19 +0000)]
Oop, make sure Sanitize doesn't nuke new files.

30 years agoA generic ROM monitor interface abnd support for the WinBond w89k board
Rob Savoye [Wed, 14 Sep 1994 00:14:53 +0000 (00:14 +0000)]
A generic ROM monitor interface abnd support for the WinBond w89k board
and the Oki op59n board.

30 years agoTue Sep 13 16:04:07 1994 Steve Chamberlain (sac@jonny.cygnus.com)
Steve Chamberlain [Wed, 14 Sep 1994 00:10:42 +0000 (00:10 +0000)]
Tue Sep 13 16:04:07 1994  Steve Chamberlain  (sac@jonny.cygnus.com)

* cofflink.c (coff_link_input_bfd): syment_base is unsigned
so can't compare -ve numbers with it.

Mon Sep 12 20:31:17 1994  Steve Chamberlain  (sac@jonny.cygnus.com)

* configure.in (shcoff_vec): Use cofflink.o now.
* coff-sh.c: Rewritten to use new fast coff backend.

30 years agoTue Sep 13 16:45:08 1994 Steve Chamberlain (sac@jonny.cygnus.com)
Steve Chamberlain [Wed, 14 Sep 1994 00:01:45 +0000 (00:01 +0000)]
Tue Sep 13 16:45:08 1994  Steve Chamberlain  (sac@jonny.cygnus.com)

* config/obj-coff.c (do_relocs_for):  If TC_KEEP_FX_OFFSET
is defined, put the tx_offset into the r_offset.
* config/tc-sh.c (line_comment_chars): Add #
(tc_reloc_mangle): Deleted.
* config/tc-sh.h (TC_KEEP_FX_OFFSET): Define.
(TC_RELOC_MANGLE): Delete.

30 years ago * config/obj-coff.c (do_relocs_for): If TC_KEEP_FX_OFFSET
Steve Chamberlain [Tue, 13 Sep 1994 23:53:52 +0000 (23:53 +0000)]
* config/obj-coff.c (do_relocs_for):  If TC_KEEP_FX_OFFSET
is defined, put the tx_offset into the r_offset.
* config/tc-sh.c (line_comment_chars): Add #
(tc_reloc_mangle): Deleted.
* config/tc-sh.h (TC_KEEP_FX_OFFSET): Define.
(TC_RELOC_MANGLE): Delete.

30 years agoUse EXIT_SUCCESS and EXIT_FAILURE in all exit calls.
Ken Raeburn [Tue, 13 Sep 1994 23:07:48 +0000 (23:07 +0000)]
Use EXIT_SUCCESS and EXIT_FAILURE in all exit calls.
Use exit rather than returning from main, for consistency on VMS.
Call as_fatal instead of as_bad or as_warn followed by exit.

30 years ago* Makefile.in (*_FOR_TARGET, INSTALL_XFORM, install, uninstall): Rewrite
Ken Raeburn [Tue, 13 Sep 1994 22:27:20 +0000 (22:27 +0000)]
* Makefile.in (*_FOR_TARGET, INSTALL_XFORM, install, uninstall): Rewrite
handling of program_transform_name.

* configure.in: Test for "unlink" and "delete", define USE_DELETE_FOR_UNLINK if
only the latter is found.  Not expected to be triggered on UNIX/POSIX systems.
* acconfig.h (USE_DELETE_FOR_UNLINK): Undef here, provide comments.

Update for autoconf 1.118:
* gdbinit.in: New file, created from old .gdbinit.
* .gdbinit: Deleted.
* aclocal.m4 (GAS_GDBINIT): Deleted.
* configure.in: Don't use it.  Instead, generate .gdbinit from gdbinit.in.
Don't substitute cpu_type, obj_format, emulation, atof.  Switched order of
AC_LINK_FILES arguments.  Use AC_PREREQ to ensure that older versions of
autoconf aren't used.
* Makefile.in: Added @configure_input@ line.
(configure): Deleted rule.

[regenerated conf.in, configure]

30 years ago * ldlang.c (load_symbols): Check for archive before object. Use
Ian Lance Taylor [Tue, 13 Sep 1994 20:42:47 +0000 (20:42 +0000)]
* ldlang.c (load_symbols): Check for archive before object.  Use
bfd_check_format_matches, and, if ambiguous, print a list of
matching formats.  If file format is not recognized, treat file as
a linker script.
* ldgram.y (yyerror): If assuming an object file is a script,
mention that.  Tweak the format of the error messages.
* ldlex.l (lex_warn_invalid): If assuming an object is a script,
guess that this is not actually a script, and just report that the
file format was not recognized.
* ld.texinfo (Options): Admit that -( may be used more than once.
Add note that unrecognized object files are now treated as linker
scripts.

* ldfile.c (ldfile_input_filename): Make const.
(ldfile_assumed_script): New variable.
(try_open): Change arguments types to const.
(ldfile_find_command_file): Likewise.
(ldfile_open_command_file): Likewise.  Also, set lineno to 1.
* ldfile.h: Update declarations for ldfile.c changes.
* ldlex.l: Include <ctype.h>.
(file_name_stack): Change to be const char *.
(lineno_stack): New static variable.
(<<EOF>>): Set lineno as well as ldfile_input_filename.
(lex_push_file): Make name argument const.  Initialize
lineno_stack entry.
(lex_redirect): Initialize lineno_stack entry.
(lex_warn_invalid): Handle non printable characters nicely.
* ldlex.h (lex_push_file): Declare second argument as const.

* ldgram.y (ifile_p1): Recognize GROUP.
* ldlex.l: Recognize GROUP.
* ld.texinfo (Option Commands): Document GROUP.

30 years ago * aoutx.h (NAME(aout,final_link)): Don't assume that all the input
Ian Lance Taylor [Tue, 13 Sep 1994 20:25:46 +0000 (20:25 +0000)]
* aoutx.h (NAME(aout,final_link)): Don't assume that all the input
        files are a.out.

30 years ago* configure.host (sparc-*-netbsd): use sparcnbsd.
J.T. Conklin [Tue, 13 Sep 1994 18:39:47 +0000 (18:39 +0000)]
* configure.host (sparc-*-netbsd): use sparcnbsd.
  (ns32k-*-netbsd): use ns32knbsd.

* hosts/{nbsd,i386nbsd,ns32knbsd,sparcnbsd}.h: New files, NetBSD
  host support.

* sparcnetbsd.c: New file, adds support for NetBSD/sparc.
* config/sparc-nbsd.mt: Likewise.

* netbsd.h: New file, definitions common to all netbsd ports.
* i386netbsd.c: Use it.
* ns32knetbsd.c: Use it.

* Makefile.in, configure.in, targets.c, config/i386-nbsd.mt,
  config/ns32k-nbsd.mt: canonicalize netbsd targets to conform to
  file/variable naming conventions.
* i386netbsd.c: New file, renamed from netbsd386.c.
* ns32knetbsd.c: New file, renamed from netbsd532.c.

30 years ago * Makefile.in (version.o): Depend upon Makefile, so that version.o
Ian Lance Taylor [Tue, 13 Sep 1994 18:19:24 +0000 (18:19 +0000)]
* Makefile.in (version.o): Depend upon Makefile, so that version.o
gets rebuilt when make variable VERSION is changed.

30 years ago * objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.
Ian Lance Taylor [Tue, 13 Sep 1994 18:18:01 +0000 (18:18 +0000)]
* objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.

30 years ago * config/obj-coff.c (fixup_segment): After handling the difference
Ian Lance Taylor [Tue, 13 Sep 1994 17:06:26 +0000 (17:06 +0000)]
* config/obj-coff.c (fixup_segment): After handling the difference
of two symbols from the same segment, set fx_subsy to NULL, to
satisfy existing TC_COUNT_RELOC macros.

30 years ago * gdbtk.c (gdbtk_flush gdbtk_fputs): Buffer up output to make
Stu Grossman [Tue, 13 Sep 1994 16:24:01 +0000 (16:24 +0000)]
* gdbtk.c (gdbtk_flush gdbtk_fputs):  Buffer up output to make
disassembly more efficient.
* (breakpoint_notify):  Include pc in gdbtk_tcl_breakpoint
callback.
* (gdb_loc):  Include pc in return value.  Also, return function
name if arg was specified.
* (gdb_cmd_stub):  Call gdb_flush to drain internal GDB buffers
after command completes.
* (gdbtk_init):  Improve error handling.

* gdbtk.tcl:  Add lots of comments.  Clean up code.
* (gdbtk_tcl_fputs):  Make output window redirectable.
* Add assembly window, and breapoint support.
* Make button 1 in margin toggle breakpoints.
* Use stippling to indicate breakpoint disabling.

30 years ago gasp.texi: a few edits thanks to crash
Jeffrey Osier [Tue, 13 Sep 1994 09:52:15 +0000 (09:52 +0000)]
gasp.texi:  a few edits thanks to crash

30 years agoGenerate .gdbinit file:
Ken Raeburn [Tue, 13 Sep 1994 05:54:13 +0000 (05:54 +0000)]
Generate .gdbinit file:
* aclocal.m4 (GAS_GDBINIT): New macro.
* configure.in: Use it.
* configure: Regenerated.
(using autoconf-1.117)

30 years ago * gas/hppa/reloc/r_no_relocbug.s: New test.
Jeff Law [Tue, 13 Sep 1994 04:22:49 +0000 (04:22 +0000)]
* gas/hppa/reloc/r_no_relocbug.s: New test.
* gas/hppa/reloc/reloc.exp: Run it.

* gas/hppa/reloc/reloc.exp (do_function_reloc_bug): Update
expected output.

30 years ago * som.c (som_reloc_skip): Correct off-by-one error for 4-byte
Jeff Law [Tue, 13 Sep 1994 04:06:07 +0000 (04:06 +0000)]
* som.c (som_reloc_skip): Correct off-by-one error for 4-byte
R_NO_RELOCATION fixups.
(bfd_section_from_som_symbol): Return the absolute section if the
symbol isn't contained in any section in the output file.
(som_slurp_symbol_table): ST_PRI_PROG and ST_SEC_PROG symbols are
not function symbols (they are magic code labels which *can* be the
targets of cross space branches).  $START$ is not a section symbol.

30 years agoPIC enhancements just checked in (based on work of Paul Kranenburg and Eric
Ken Raeburn [Tue, 13 Sep 1994 02:20:55 +0000 (02:20 +0000)]
PIC enhancements just checked in (based on work of Paul Kranenburg and Eric
Youngdale).

New debugging code for .gdbinit.  "this file generated..." msg in config.h.

30 years ago* tc-i386.c (TC_RELOC): New macro.
Ken Raeburn [Tue, 13 Sep 1994 02:15:23 +0000 (02:15 +0000)]
* tc-i386.c (TC_RELOC): New macro.
(struct _i386_insn): New field disp_reloc.
(GOT_symbol): New variable.
(operand_special_chars): Added square-brackets and at-sign.
(reloc) [BFD_ASSEMBLER]: Added new argument OTHER; if it is not NO_RELOC, just
return it.
(reloc) [! BFD_ASSEMBLER]: Add third argument to dummy macro.
(BFD_RELOC_386_PLT32, _GOT32, _GOTOFF) [! BFD_ASSEMBLER]: More dummy macros.
(tc_i386_fix_adjustable): New function.  Returns zero if symbol in fixup is not
local, to prevent relocations against externals from being dropped.
(md_assemble): Initialize disp_reloc field to NO_RELOC.  Pass disp_reloc field
to reloc() function, and use TC_RELOC to generate value to pass to fix_new_exp.
(md_assemble): Change 32-bit reloc against GOT_symbol into a GOTPC reloc.
(i386_operand): Initialize disp_reloc field to NO_RELOC.  Handle @GOTOFF, @PLT,
@GOT operands.  For GOTOFF relocations with local symbols, force generation of
the section symbol.
(md_estimate_size_before_relax): If GOT_symbol exists, decide we're generating
PIC code, and convert relocations against undefined symbols from PCREL to
PLT32.
(md_apply_fix_1) [OBJ_ELF]: Fix up values for dynamic-linking relocs.
(md_undefined_symbol): Notice GLOBAL_OFFSET_TABLE_NAME and set and return
GOT_symbol if it matches.
(F, MAP): Move macro definitions outside function.
(tc_gen_reloc): Only switch on size and pcrel if code wasn't already supplied
as PLT32. GOT32, GOTOFF, or GOTPC.  Convert BFD_RELOC_32 using GOT_symbol into
GOTPC.

* tc-i386.h (TC_RELOC, tc_fix_adjustable, TC_RELOC_GLOBAL_OFFSET_TABLE,
TC_RELOC_RTSYM_LOC_FIXUP): New macros.
(NEED_FX_R_TYPE): Define.
(LOCAL_LABEL): Accept ".X" prefix too.
(GLOBAL_OFFSET_TABLE_NAME): Default to "_GLOBAL_OFFSET_TABLE_".

30 years ago* write.c (fixup_segment): Test TC_RELOC_RTSYM_LOC_FIXUP on fixup before
Ken Raeburn [Tue, 13 Sep 1994 02:11:25 +0000 (02:11 +0000)]
* write.c (fixup_segment): Test TC_RELOC_RTSYM_LOC_FIXUP on fixup before
processing same-section pcrel relocations.
(TC_RELOC_RTSYM_LOC_FIXUP): Default to 1.

30 years ago* expr.c (make_expr_symbol): If operator is O_symbol and X_add_number is zero,
Ken Raeburn [Tue, 13 Sep 1994 02:10:43 +0000 (02:10 +0000)]
* expr.c (make_expr_symbol): If operator is O_symbol and X_add_number is zero,
just return the symbol.  If operator is O_constant, resolve the symbol's value
before returning.
(operand): Permit use of "[]" for grouping.
(clean_up_expression): For difference of two symbols in the same frag, add the
difference of their offsets into X_add_number.
(expr): Reduce difference of two symbols in same frag to their difference.

30 years ago* Makefile.in (config-stamp): Add a "this file generated by make" message to
Ken Raeburn [Tue, 13 Sep 1994 01:51:26 +0000 (01:51 +0000)]
* Makefile.in (config-stamp): Add a "this file generated by make" message to
config.h.

30 years ago* .gdbinit (pe, ps): Define new commands.
Ken Raeburn [Tue, 13 Sep 1994 01:50:02 +0000 (01:50 +0000)]
* .gdbinit (pe, ps): Define new commands.
* symbols.c (indent_level): New static variable.
(indent, print_expr_1, print_symbol_value_1, print_symbol_value, print_expr):
New functions.

30 years agoMerge supposedly (but not really) GM-specific bits into general MPW config
Stan Shebs [Tue, 13 Sep 1994 00:50:38 +0000 (00:50 +0000)]
Merge supposedly (but not really) GM-specific bits into general MPW config

30 years agoMerge in former supposed GM-specific bits
Stan Shebs [Tue, 13 Sep 1994 00:20:31 +0000 (00:20 +0000)]
Merge in former supposed GM-specific bits

30 years agoRemove supposedly (but not really) GM-specific bits
Stan Shebs [Tue, 13 Sep 1994 00:18:55 +0000 (00:18 +0000)]
Remove supposedly (but not really) GM-specific bits

30 years ago * mpw-make.in (ALL_CFLAGS): Add definition of HAVE_STDARG_H,
Stan Shebs [Tue, 13 Sep 1994 00:14:18 +0000 (00:14 +0000)]
* mpw-make.in (ALL_CFLAGS): Add definition of HAVE_STDARG_H,
include of ::libiberty:.
(config.h): Ifdef contents on GAS_VERSION.
config/ho-mpw.h: Remove redefinitions of true and false.

30 years ago * mpw-make.in (ctor.c): Remove references.
Stan Shebs [Mon, 12 Sep 1994 23:54:12 +0000 (23:54 +0000)]
* mpw-make.in (ctor.c): Remove references.
* hosts/mpw.h [BFD_TRUE_FALSE]: Remove macro redefinitions of true
and false.

30 years ago * mpw-configure (host_canonical): Set.
Stan Shebs [Mon, 12 Sep 1994 23:49:00 +0000 (23:49 +0000)]
* mpw-configure (host_canonical): Set.
(mpw-xconfig.in): No longer use.
(target_cpu): Always add to makefiles.
(ARCHDEFS, EMUL): Add to makefile only if nonempty.
(TM_FILE, XM_FILE, NM_FILE): No longer add to makefile.
(mpw-mh-mpw): Look for in srcdir and srcroot.
Use sed instead of mpw-edit-prefix to edit prefix definitions.

30 years ago * config/obj-elf.c (obj_elf_type): Rewrite to accept syntax
Ian Lance Taylor [Mon, 12 Sep 1994 22:36:08 +0000 (22:36 +0000)]
* config/obj-elf.c (obj_elf_type): Rewrite to accept syntax
reportedly to be used on Irix 6.

30 years ago * elfcode.h (swap_out_syms): Set the type of an undefined symbol
Ian Lance Taylor [Mon, 12 Sep 1994 22:16:27 +0000 (22:16 +0000)]
* elfcode.h (swap_out_syms): Set the type of an undefined symbol
to STT_FUNC if the BSF_FUNCTION flag is set.

30 years ago * config/tc-mips.c (md_pseudo_table): Handle .globl and .global.
Ian Lance Taylor [Mon, 12 Sep 1994 22:11:18 +0000 (22:11 +0000)]
* config/tc-mips.c (md_pseudo_table): Handle .globl and .global.
(s_mips_globl): New static function; needed for Irix 5 support.
* ecoff.c (ecoff_build_symbols): If BSF_FUNCTION is set for an
external symbol with no type, set the type to st_Proc rather than
st_Global.  Don't set the index of an external st_Proc or
st_StaticProc symbol unless it is also a local symbol.

30 years ago * read.c (read_a_source_file): The second argument to as_where is
Ian Lance Taylor [Mon, 12 Sep 1994 21:52:43 +0000 (21:52 +0000)]
* read.c (read_a_source_file): The second argument to as_where is
unsigned int *, not int *.

30 years ago * config/m68klynx.mh: New file.
Ian Lance Taylor [Mon, 12 Sep 1994 21:06:35 +0000 (21:06 +0000)]
* config/m68klynx.mh: New file.

30 years ago * cofflink.c (coff_link_input_bfd): If r_symndx is -1, don't
Ian Lance Taylor [Mon, 12 Sep 1994 21:01:19 +0000 (21:01 +0000)]
* cofflink.c (coff_link_input_bfd): If r_symndx is -1, don't
change it.
(_bfd_coff_generic_relocate_section): If r_symndx is -1, it is an
absolute reloc.  Don't dump core using r_symndx as an array index.
* cf-m68klynx.c (coff_bfd_link_add_symbols): Define.
(lynx_link_add_symbols): New static function (copy of function in
coff-i386.c).
(coff_m68k_lynxrtype_to_howto): sym argument may be NULL.
* coff-i386.c (coff_i386_rtype_to_howto): Likewise.
* coff-a29k.c (coff_a29k_relocate_section): Handle an r_symndx
value of -1, meaning an absolute reloc.

30 years ago * ctor.c: Remove; obsolete.
Ian Lance Taylor [Mon, 12 Sep 1994 15:47:52 +0000 (15:47 +0000)]
* ctor.c: Remove; obsolete.
* Makefile.in: Rebuild dependencies.
(BFD_LIBS): Remove ctor.o.
(CFILES): Remove ctor.c.
* libbfd.h: Rebuild.

30 years ago * elf32-hppa.c (elf32_hppa_relocate_section): If there was a link
Jeff Law [Mon, 12 Sep 1994 08:07:13 +0000 (08:07 +0000)]
* elf32-hppa.c (elf32_hppa_relocate_section): If there was a link
error of some sort (for example, undefined symbols), then do not
apply any relocs, just notify the user of the errors.
(elf32_hppa_backend_begin_write_processing): Do not build a symbol
extension section for an executable (it's useless).
(elf32_hppa_link_output_symbol_hook): Do nothing if there was a
link error of some sort (for example, undefined symbols).
(elf32_hppa_read_symext_info): Kludge.  Turn off SEC_HAS_CONTENTS
for all the input symbol extension sections to keep the generic
BFD code happy.  Temporarily turn it on to read the contents of
the symbol extension section.

30 years ago * emultempl/hppaelf.em: Add newlines to the error messages.
Jeff Law [Mon, 12 Sep 1994 07:51:14 +0000 (07:51 +0000)]
* emultempl/hppaelf.em: Add newlines to the error messages.

30 years ago * config/pa/tm-hppa.h (REGISTER_NAMES): Use r26-r23 for arg0-arg3.
Jeff Law [Mon, 12 Sep 1994 04:36:54 +0000 (04:36 +0000)]
* config/pa/tm-hppa.h (REGISTER_NAMES): Use r26-r23 for arg0-arg3.

30 years ago * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
Jeff Law [Mon, 12 Sep 1994 04:33:24 +0000 (04:33 +0000)]
* hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.

30 years agoRevert last change (never should have been checked in to begin with).
Jeff Law [Mon, 12 Sep 1994 04:06:07 +0000 (04:06 +0000)]
Revert last change (never should have been checked in to begin with).

30 years ago * config/hppaosf.mh (RANLIB): Do not set.
Jeff Law [Mon, 12 Sep 1994 04:04:09 +0000 (04:04 +0000)]
* config/hppaosf.mh (RANLIB): Do not set.
* config/hppabsd.mh (RANLIB): Likewise.

30 years agoGet the new COFF linker code working for i386-lynx.
Ian Lance Taylor [Mon, 12 Sep 1994 02:57:23 +0000 (02:57 +0000)]
Get the new COFF linker code working for i386-lynx.

* cf-i386lynx.c: Remove #if 0 code.
(i386_lynxos_coff_object_p): Remove unused function.
(coff_bfd_link_add_symbols): Define.
(lynx_link_add_symbols): New static function.
* coffcode.h (coff_bfd_link_hash_table_create): If
coff_relocate_section is defined, only define this if not already
defined.
(coff_bfd_link_add_symbols, coff_bfd_final_link): Likewise.

* linker.c (_bfd_generic_final_link): Handle
bfd_indirect_link_order explicitly, rather than via
_bfd_default_link_order.
(set_symbol_from_hash): New static function, broken out of
_bfd_generic_link_write_global_symbol.
(_bfd_generic_link_write_global_symbol): Symbol setting code moved
to set_symbol_from_hash; call it.
(default_indirect_link_order): Add generic_linker argument.
Change all callers.  If false, set the generic symbols based on
the hash table entries.

30 years ago * config/i386lynx.mh: New file.
Ian Lance Taylor [Mon, 12 Sep 1994 02:42:49 +0000 (02:42 +0000)]
* config/i386lynx.mh: New file.
* scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
unless CONSTRUCTING.

30 years ago * irix5-nat.c, osfsolib.c, solib.c (solib_add): Simplify last
Peter Schauer [Sun, 11 Sep 1994 11:43:40 +0000 (11:43 +0000)]
* irix5-nat.c, osfsolib.c, solib.c (solib_add):  Simplify last
change by replacing `symbols_added' with `so_last'.
* mdebugread.c (parse_external, parse_partial_symbols):  Ignore
global common symbols, they will be resolved by the runtime loader.
* mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
Handle scSCommon like scCommon symbols.

30 years ago * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
Ian Lance Taylor [Sat, 10 Sep 1994 20:04:17 +0000 (20:04 +0000)]
* emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
(GENERATE_SHLIB_SCRIPT): Define as yes.
(DYNAMIC_LINK): Define as false.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
(gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
* Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
generic.em.

30 years ago * Update copyright message to include 1993, 1994.
Peter Schauer [Sat, 10 Sep 1994 10:10:05 +0000 (10:10 +0000)]
* Update copyright message to include 1993, 1994.

30 years ago * corelow.c (add_solib_stub): Copy to_sections changes from
Peter Schauer [Sat, 10 Sep 1994 08:50:10 +0000 (08:50 +0000)]
* corelow.c (add_solib_stub):  Copy to_sections changes from
core_ops to current_target after adding the shared libraries.
* partial-stab.h (N_EXCL), dbxread.c (add_old_header_file,
find_corresponding_bincl_psymtab):  Change `repeated header not seen'
error to a complaint, simplify complaint.
* procfs.c (signalname, errnoname):  Make `name' const.
* symfile.c (reread_symbols):  Use filename from old BFD to
reopen the objfile.
* values.c (record_latest_value):  Don't record value in the
history chain until we are sure there won't be an error.

30 years ago* nlm/Makefile.in: remove MMALLOC, READLINE, TERMCAP, and other cruft.
J.T. Conklin [Fri, 9 Sep 1994 23:22:41 +0000 (23:22 +0000)]
* nlm/Makefile.in: remove MMALLOC, READLINE, TERMCAP, and other cruft.

30 years agoAdd XDEPFILE = ser-tcp.o
Rob Savoye [Fri, 9 Sep 1994 23:00:02 +0000 (23:00 +0000)]
Add XDEPFILE = ser-tcp.o

30 years ago* config/i386/gdbserve.mt: New file, defs for i386 nlm stub.
J.T. Conklin [Fri, 9 Sep 1994 22:55:36 +0000 (22:55 +0000)]
* config/i386/gdbserve.mt: New file, defs for i386 nlm stub.

30 years agoGDB support for HP-PRO.
Rob Savoye [Fri, 9 Sep 1994 22:44:13 +0000 (22:44 +0000)]
GDB support for HP-PRO.

30 years ago * coffgen.c (coff_get_symtab): Reindented. Removed commented out
Ian Lance Taylor [Fri, 9 Sep 1994 20:38:37 +0000 (20:38 +0000)]
* coffgen.c (coff_get_symtab): Reindented.  Removed commented out
call to bfd_constructor_entry.

30 years agokeep arm files
Ken Raeburn [Fri, 9 Sep 1994 18:51:10 +0000 (18:51 +0000)]
keep arm files

30 years agokeep arm files
Ken Raeburn [Fri, 9 Sep 1994 18:35:11 +0000 (18:35 +0000)]
keep arm files

30 years agoforgot an entry for makefile dependency changes
Ken Raeburn [Fri, 9 Sep 1994 18:34:25 +0000 (18:34 +0000)]
forgot an entry for makefile dependency changes

30 years agokeep arm dir
Ken Raeburn [Fri, 9 Sep 1994 18:34:24 +0000 (18:34 +0000)]
keep arm dir

30 years ago Convert m68k COFF to use new COFF backend linker.
Ian Lance Taylor [Fri, 9 Sep 1994 15:54:45 +0000 (15:54 +0000)]
Convert m68k COFF to use new COFF backend linker.
* coff-m68k.c (coff_relocate_section): Define.
* cf-m68klynx.c (coff_rtype_to_howto): Define.
(coff_m68k_lynx_rtype_to_howto): New static function.
* configure.in (m68kcoff_vec): Build cofflink.o.
(m68kcoffun_vec, m68klynx_coff_vec): Likewise.

30 years agoModified Files:
Kung Hsu [Fri, 9 Sep 1994 01:05:28 +0000 (01:05 +0000)]
Modified Files:
ChangeLog read.h read.c ecoff.h ecoff.c

        * read.h : ditto.
        * read.c (read_a_source_file): if no file when inst is read, set
        generate_asm_lineno to true.
        * ecoff.h : change name to generate_asm_lineno and add function
        ecoff_no_current_file.
        * ecoff.c : change name to generate_asm_lineno.
        * ecoff.c (ecoff_generate_asm_lineno) : new function, to generate
        ecoff style line for asm file.

30 years agoModified Files:
Kung Hsu [Fri, 9 Sep 1994 01:02:48 +0000 (01:02 +0000)]
Modified Files:
obj-ecoff.h obj-elf.h

        * config/obj-ecoff.h : Change names to  OBJ_GENERATE_ASM_LINENO,
        and generate_asm_lineno.
        * config/obj-elf.h : ditto.

30 years ago * config/i386/xm-go32.h (GDBINIT_FILENAME): Set to gdb.ini.
Steve Chamberlain [Fri, 9 Sep 1994 00:44:01 +0000 (00:44 +0000)]
* config/i386/xm-go32.h (GDBINIT_FILENAME): Set to gdb.ini.
(more work here to come)

30 years ago * config/sh/tm-sh.h (EXTRA_FRAME_INFO): Add f_offset and leaf_function
Steve Chamberlain [Fri, 9 Sep 1994 00:43:50 +0000 (00:43 +0000)]
* config/sh/tm-sh.h (EXTRA_FRAME_INFO): Add f_offset and leaf_function
fields.

30 years ago * config/h8500/tm-h8500.h (target_write_pc, TARGET_WRITE_PC):
Steve Chamberlain [Fri, 9 Sep 1994 00:43:30 +0000 (00:43 +0000)]
* config/h8500/tm-h8500.h (target_write_pc, TARGET_WRITE_PC):
Handle extra arg.

30 years agoThu Sep 8 17:14:43 1994 Steve Chamberlain (sac@jonny.cygnus.com)
Steve Chamberlain [Fri, 9 Sep 1994 00:35:09 +0000 (00:35 +0000)]
Thu Sep  8 17:14:43 1994  Steve Chamberlain  (sac@jonny.cygnus.com)

* remote.c (fromhex): Make error more explicit.
(read_frame): Don't print bad checksum information unless
remote_debugging.  Don't use repeat count unless it's > 0.
* remote-e7000.c (expect): When echoing, ignore multiple newlines.
(e7000_insert_breakpoint, e7000_remove_breakpoint, target_ops): Optionally
cope with BC style breakpoints.
(e7000_command):  After command send directly to the E7000 mark
registers as changed.
(why_stop, e7000_wait: Understand BC style stop condition.
* sh-tdep.c (sh_skip_prologue):  Understand more complicated
sequences.  (frame_find_saved_regs): Likewise.
* config/h8500/tm-h8500.h (target_write_pc, TARGET_WRITE_PC):
Handle extra arg.
* config/i386/xm-go32.h (GDBINIT_FILENAME): Set to gdb.ini.
(more work here to come)
* config/sh/tm-sh.h (EXTRA_FRAME_INFO): Add f_offset and leaf_function
fields.

30 years ago * config/obj-coff.c (size_section): Do an fprintf to stderr rather
Ian Lance Taylor [Thu, 8 Sep 1994 23:46:00 +0000 (23:46 +0000)]
* config/obj-coff.c (size_section): Do an fprintf to stderr rather
than a printf.
(fixup_segment): Use as_bad_where rather than as_bad.

30 years ago * scripttempl/h8500b.sc: Put rdata stuff into own segment.
Steve Chamberlain [Thu, 8 Sep 1994 23:36:17 +0000 (23:36 +0000)]
    * scripttempl/h8500b.sc: Put rdata stuff into own segment.

30 years ago * coff-h8300.c (h8300_reloc16_extra_cases, case RELBYTE): Flag overflows
Steve Chamberlain [Thu, 8 Sep 1994 23:27:56 +0000 (23:27 +0000)]
* coff-h8300.c (h8300_reloc16_extra_cases, case RELBYTE):  Flag overflows
correctly.

30 years ago* sparclite/Makefile.in: Assorted stuff needed for eload.
J.T. Conklin [Thu, 8 Sep 1994 23:19:02 +0000 (23:19 +0000)]
* sparclite/Makefile.in: Assorted stuff needed for eload.
* sparclite/eload.c: Merge in command line argument parsing and
  error message handling improvements orignally made to aload.c.

30 years ago * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
Ian Lance Taylor [Thu, 8 Sep 1994 17:26:27 +0000 (17:26 +0000)]
* emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
.got section is now explicitly handled in elf.sc.

30 years ago * gdb.base/commands.exp: New tests for if/while commands.
Jeff Law [Thu, 8 Sep 1994 06:02:58 +0000 (06:02 +0000)]
    * gdb.base/commands.exp: New tests for if/while commands.

30 years ago * defs.h (enum misc_command_type, command_control_type): Enums
Jeff Law [Thu, 8 Sep 1994 05:32:34 +0000 (05:32 +0000)]
* defs.h (enum misc_command_type, command_control_type): Enums
for describing the command and control types.
(struct command_line): Add new fields to keep track of the command
type and body associated with the command.
* top.c: Include value.h.  Delete whitespace at the end of lines.
(build_command_line, get_command_line): New functions.
(execute_control_command, while_command, if_command): Likewise.
(realloc_body_list, read_next_line): Likewise.
(recurse_read_control_structure): Likewise.
(execute_user_command): Call execute_control_command.
(read_command_lines): Simplify by calling read_next_line, call
read_control_structure for "if" and "while" commands.
(free_command_lines): Free new fields in the command structure.
(define_command): Reset control_level to zero.
(init_main): Install command handlers for "if" and "while" commands.

30 years ago * config/tc-{h8300,sh}.[ch] (tc_coff_symbol_emit): Function doing nothing
Steve Chamberlain [Thu, 8 Sep 1994 00:52:23 +0000 (00:52 +0000)]
* config/tc-{h8300,sh}.[ch] (tc_coff_symbol_emit): Function doing nothing
becomes macro doing nothing.

30 years agoWed Sep 7 17:21:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
Steve Chamberlain [Thu, 8 Sep 1994 00:38:17 +0000 (00:38 +0000)]
Wed Sep  7 17:21:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)

* config/tc-{h8300,sh}.[ch] (tc_coff_symbol_emit): Function doing nothing
becomes macro doing nothing.

30 years agofix config.status, Makefile dependencies
Ken Raeburn [Thu, 8 Sep 1994 00:15:49 +0000 (00:15 +0000)]
fix config.status, Makefile dependencies

30 years agotc_gen_reloc, i386-linux, brokensed changes
Ken Raeburn [Thu, 8 Sep 1994 00:00:08 +0000 (00:00 +0000)]
tc_gen_reloc, i386-linux, brokensed changes