aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1994-09-13* Makefile.in (*_FOR_TARGET, INSTALL_XFORM, install, uninstall): RewriteKen Raeburn7-212/+287
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]
1994-09-13 * ldlang.c (load_symbols): Check for archive before object. UseIan Lance Taylor4-66/+163
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.
1994-09-13 * aoutx.h (NAME(aout,final_link)): Don't assume that all the inputIan Lance Taylor2-18/+30
files are a.out.
1994-09-13* configure.host (sparc-*-netbsd): use sparcnbsd.J.T. Conklin13-421/+276
(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.
1994-09-13 * Makefile.in (version.o): Depend upon Makefile, so that version.oIan Lance Taylor1-0/+16
gets rebuilt when make variable VERSION is changed.
1994-09-13 * objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.Ian Lance Taylor1-15/+16
1994-09-13 * config/obj-coff.c (fixup_segment): After handling the differenceIan Lance Taylor2-0/+7
of two symbols from the same segment, set fx_subsy to NULL, to satisfy existing TC_COUNT_RELOC macros.
1994-09-13 * gdbtk.c (gdbtk_flush gdbtk_fputs): Buffer up output to makeStu Grossman3-98/+882
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.
1994-09-13 gasp.texi: a few edits thanks to crashJeffrey Osier1-5/+3
1994-09-13Generate .gdbinit file:Ken Raeburn4-55/+95
* aclocal.m4 (GAS_GDBINIT): New macro. * configure.in: Use it. * configure: Regenerated. (using autoconf-1.117)
1994-09-13 * gas/hppa/reloc/r_no_relocbug.s: New test.Jeff Law4-0/+99
* gas/hppa/reloc/reloc.exp: Run it. * gas/hppa/reloc/reloc.exp (do_function_reloc_bug): Update expected output.
1994-09-13 * som.c (som_reloc_skip): Correct off-by-one error for 4-byteJeff Law2-10/+26
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.
1994-09-13PIC enhancements just checked in (based on work of Paul Kranenburg and EricKen Raeburn1-0/+64
Youngdale). New debugging code for .gdbinit. "this file generated..." msg in config.h.
1994-09-13* tc-i386.c (TC_RELOC): New macro.Ken Raeburn1-24/+232
(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_".
1994-09-13* write.c (fixup_segment): Test TC_RELOC_RTSYM_LOC_FIXUP on fixup beforeKen Raeburn1-12/+76
processing same-section pcrel relocations. (TC_RELOC_RTSYM_LOC_FIXUP): Default to 1.
1994-09-13* expr.c (make_expr_symbol): If operator is O_symbol and X_add_number is zero,Ken Raeburn1-27/+113
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.
1994-09-13* Makefile.in (config-stamp): Add a "this file generated by make" message toKen Raeburn1-1/+2
config.h.
1994-09-13* .gdbinit (pe, ps): Define new commands.Ken Raeburn2-44/+253
* symbols.c (indent_level): New static variable. (indent, print_expr_1, print_symbol_value_1, print_symbol_value, print_expr): New functions.
1994-09-13Merge supposedly (but not really) GM-specific bits into general MPW configStan Shebs6-45/+57
1994-09-13Merge in former supposed GM-specific bitsStan Shebs2-2/+2
1994-09-13Remove supposedly (but not really) GM-specific bitsStan Shebs3-32/+1
1994-09-13 * mpw-make.in (ALL_CFLAGS): Add definition of HAVE_STDARG_H,Stan Shebs3-11/+10
include of ::libiberty:. (config.h): Ifdef contents on GAS_VERSION. config/ho-mpw.h: Remove redefinitions of true and false.
1994-09-12 * mpw-make.in (ctor.c): Remove references.Stan Shebs3-14/+8
* hosts/mpw.h [BFD_TRUE_FALSE]: Remove macro redefinitions of true and false.
1994-09-12 * mpw-configure (host_canonical): Set.Stan Shebs1-0/+10
(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.
1994-09-12 * config/obj-elf.c (obj_elf_type): Rewrite to accept syntaxIan Lance Taylor1-0/+3
reportedly to be used on Irix 6.
1994-09-12 * elfcode.h (swap_out_syms): Set the type of an undefined symbolIan Lance Taylor2-6/+15
to STT_FUNC if the BSF_FUNCTION flag is set.
1994-09-12 * config/tc-mips.c (md_pseudo_table): Handle .globl and .global.Ian Lance Taylor3-7/+59
(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.
1994-09-12 * read.c (read_a_source_file): The second argument to as_where isIan Lance Taylor2-2/+8
unsigned int *, not int *.
1994-09-12 * config/m68klynx.mh: New file.Ian Lance Taylor3-0/+7
1994-09-12 * cofflink.c (coff_link_input_bfd): If r_symndx is -1, don'tIan Lance Taylor4-16/+223
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.
1994-09-12 * ctor.c: Remove; obsolete.Ian Lance Taylor4-176/+37
* Makefile.in: Rebuild dependencies. (BFD_LIBS): Remove ctor.o. (CFILES): Remove ctor.c. * libbfd.h: Rebuild.
1994-09-12 * elf32-hppa.c (elf32_hppa_relocate_section): If there was a linkJeff Law1-0/+14
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.
1994-09-12 * emultempl/hppaelf.em: Add newlines to the error messages.Jeff Law1-0/+4
1994-09-12 * config/pa/tm-hppa.h (REGISTER_NAMES): Use r26-r23 for arg0-arg3.Jeff Law1-0/+4
1994-09-12 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.Jeff Law1-0/+4
1994-09-12Revert last change (never should have been checked in to begin with).Jeff Law1-2/+1
1994-09-12 * config/hppaosf.mh (RANLIB): Do not set.Jeff Law2-6/+24
* config/hppabsd.mh (RANLIB): Likewise.
1994-09-12Get the new COFF linker code working for i386-lynx.Ian Lance Taylor1-0/+22
* 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.
1994-09-12 * config/i386lynx.mh: New file.Ian Lance Taylor3-2/+10
* scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text unless CONSTRUCTING.
1994-09-11 * irix5-nat.c, osfsolib.c, solib.c (solib_add): Simplify lastPeter Schauer5-24/+234
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.
1994-09-10 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.Ian Lance Taylor3-17/+34
(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.
1994-09-10 * Update copyright message to include 1993, 1994.Peter Schauer1-1/+2
1994-09-10 * corelow.c (add_solib_stub): Copy to_sections changes fromPeter Schauer6-36/+41
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.
1994-09-09* nlm/Makefile.in: remove MMALLOC, READLINE, TERMCAP, and other cruft.J.T. Conklin2-38/+8
1994-09-09Add XDEPFILE = ser-tcp.oRob Savoye1-0/+1
1994-09-09* config/i386/gdbserve.mt: New file, defs for i386 nlm stub.J.T. Conklin3-0/+8
1994-09-09GDB support for HP-PRO.Rob Savoye2-1/+11
1994-09-09 * coffgen.c (coff_get_symtab): Reindented. Removed commented outIan Lance Taylor1-0/+3
call to bfd_constructor_entry.
1994-09-09keep arm filesKen Raeburn2-0/+41
1994-09-09keep arm filesKen Raeburn2-0/+4