J.T. Conklin [Fri, 23 Sep 1994 22:30:31 +0000 (22:30 +0000)]
* solib.c: *BSD systems need <a.out.h> to be included before
<link.h>.
* i386b-nat.c: Add i386_float_info(), etc.
* config/i386/nm-nbsd.h: #define FLOAT_INFO.
* config/nm-nbsd.h: New file, for generic NetBSD native support.
* config/i386/nm-nbsd.h: Use it.
* config/sparc/nm-nbsd.h: Use it.
* config/ns32k/nm-nbsd.h: Use it.
* configure.in (i386-*-netbsd): Use config/i386/nbsd.m[ht].
(ns32k-*-netbsd): Use config/ns32k/nbsd.m[ht].
* config/i386/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
New files, support for NetBSD/i386.
* config/ns32k/{nbsd.mh,nbsd.mh,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
New files, support for NetBSD/ns32k.
Ken Raeburn [Fri, 23 Sep 1994 19:44:17 +0000 (19:44 +0000)]
some news
Ian Lance Taylor [Fri, 23 Sep 1994 19:19:41 +0000 (19:19 +0000)]
* elfcode.h (map_program_segments): Don't abort if we allocated
too much space for the program header, only if we allocated too
little.
Ken Raeburn [Fri, 23 Sep 1994 19:12:14 +0000 (19:12 +0000)]
cfree -> free
Ian Lance Taylor [Fri, 23 Sep 1994 19:10:21 +0000 (19:10 +0000)]
* gas/mips: New directory with MIPS specific test cases.
Ian Lance Taylor [Fri, 23 Sep 1994 18:54:40 +0000 (18:54 +0000)]
* symbols.h (copy_symbol_attributes): Declare.
Ian Lance Taylor [Fri, 23 Sep 1994 16:31:32 +0000 (16:31 +0000)]
* lexsup.c (parse_args): Add support for -a for HP/UX
compatibility.
David Edelsohn [Fri, 23 Sep 1994 02:09:13 +0000 (02:09 +0000)]
* COPYING.NEWLIB: New file.
Ken Raeburn [Fri, 23 Sep 1994 02:06:14 +0000 (02:06 +0000)]
delete -> remove
Kung Hsu [Thu, 22 Sep 1994 20:43:39 +0000 (20:43 +0000)]
Modified Files:
ChangeLog ecoff.c read.c
* ecoff.c (ecoff_generate_asm_lineno): check if
current_stabs_filename is NULL before strcmp.
* read.c (read_a_source_file): fxi a bug in generate_asm_lineno
checking.
Ken Raeburn [Wed, 21 Sep 1994 22:23:30 +0000 (22:23 +0000)]
vms, ho-*.h, sym attr changes just checked in
Ken Raeburn [Wed, 21 Sep 1994 22:21:25 +0000 (22:21 +0000)]
Combine two existing mechanisms for copying symbol attributes, and fix a bug:
* symbols.c (copy_symbol_attributes): New function. Copies BFD symbol flags
and calls OBJ_COPY_SYMBOL_ATTRIBUTES.
(resolve_symbol_value, case O_symbol): Call it, if X_add_number is zero. Don't
call obj_frob_forward_symbol.
* read.c (pseudo_set): Call copy_symbol_attributes, but only if X_add_number is
zero.
* config/obj-elf.h (obj_frob_forward_symbol): Deleted.
Ken Raeburn [Wed, 21 Sep 1994 22:18:06 +0000 (22:18 +0000)]
host file changes
Ken Raeburn [Wed, 21 Sep 1994 22:17:23 +0000 (22:17 +0000)]
vms changes from pat rankin
Ken Raeburn [Wed, 21 Sep 1994 22:16:42 +0000 (22:16 +0000)]
delete old host-specific files
Ian Lance Taylor [Wed, 21 Sep 1994 17:43:17 +0000 (17:43 +0000)]
* config/tc-ppc.c (ppc_current_block): New static variable.
(ppc_stabx): Set sy_tc.within of a C_STSYM symbol to
ppc_current_block. Don't move around any stab symbol, just those
for common symbols.
(ppc_bs): Set ppc_current_block.
(ppc_es): Clear ppc_current_block.
(ppc_frob_symbol): Set the value of a C_STSYM symbol to the offset
from the csect of the enclosing block.
PR 5658.
Ian Lance Taylor [Wed, 21 Sep 1994 17:03:04 +0000 (17:03 +0000)]
* config/tc-mips.c (insns_since_cache_access): Remove.
(append_insn): Remove setting of insns_since_cache_access, and
special 4600 handling; it turns out not to be required.
PR 5664.
Jim Kingdon [Wed, 21 Sep 1994 03:23:28 +0000 (03:23 +0000)]
* .gdbinit: Add list-objfiles command.
Jim Kingdon [Wed, 21 Sep 1994 03:23:01 +0000 (03:23 +0000)]
* TODO: Reword item regarding NO_STD_REGS.
Jim Kingdon [Wed, 21 Sep 1994 03:02:48 +0000 (03:02 +0000)]
* coffread.c (record_minimal_symbol, coff_read_enum_type,
coff_read_struct_type): Allocate on symbol_obstack, not directly
via malloc/savestring.
Stan Shebs [Wed, 21 Sep 1994 00:45:25 +0000 (00:45 +0000)]
* mpw-config.in: Don't create host.h.
* mpw-make.in (config.h): Add in contents of ho-mpw.h.
* config/ho-mpw.h (TRUE_FALSE_ALREADY_DEFINED, WANT_FOPEN_BIN,
HAVE_ERRNO_H): Define.
Stan Shebs [Tue, 20 Sep 1994 23:00:47 +0000 (23:00 +0000)]
* TODO: Add more items.
* tests: Remove the directory and all of its (obsolete) contents.
... config/rs6000/rs6000lynx.mh ...
(REGEX, REGEX1, SYSV_DEFINE): No longer
define.
Ian Lance Taylor [Tue, 20 Sep 1994 21:16:11 +0000 (21:16 +0000)]
* ld.h (args_type): Add new field endian.
* lexsup.c (parse_args): Handle -EB and -EL by setting
command_line.endian.
* ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
* ldlang.c (lang_add_output_format): Add arguments big and little.
If command_line.endian is set, use it to select big or little
rather than the default. Changed all callers.
* ldlang.h (lang_add_output_format): Update declaration.
* emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
LITTLE_OUTPUT_FORMAT.
* emulparams/elf32mipl.sh: Likewise.
* emulparams/mipsbig.sh: Likewise.
* emulparams/mipsbsd.sh: Likewise.
* emulparams/mipsidt.sh: Likewise.
* emulparams/mipsidtl.sh: Likewise.
* emulparams/mipslit.sh: Likewise.
* scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
OUTPUT_FORMAT.
* scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
* scripttempl/mipsbsd.sc: Likewise.
J.T. Conklin [Tue, 20 Sep 1994 20:20:12 +0000 (20:20 +0000)]
* libaout.h: Fix comment.
* ns32knbsd.h: Changed M_NS32K_NETBSD to M_532_NETBSD to match
libaout.h.
Ian Lance Taylor [Tue, 20 Sep 1994 20:16:24 +0000 (20:16 +0000)]
* config/tc-mips.c (md_shortopts): Remove E.
(md_longopts): Add EB and EL.
(md_parse_option): Handle -EB and -EL as separate options, rather
than as a single -E option with an argument.
Ian Lance Taylor [Tue, 20 Sep 1994 19:24:50 +0000 (19:24 +0000)]
* coff-sh.c (rtype2howto): Remove; unused.
(coff_sh_relocate_section): Remove unused local variable rstat.
(reloc_processing): Comment out; unused.
Ian Lance Taylor [Tue, 20 Sep 1994 19:07:36 +0000 (19:07 +0000)]
* Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
(eelf32mipl.c): New target.
Ian Lance Taylor [Tue, 20 Sep 1994 18:41:27 +0000 (18:41 +0000)]
* configure.in (mips*el-elf*): New target.
* config/mipsl-elf32.mt: New file.
* emulparams/elf32mipl.sh: New file.
Jim Kingdon [Tue, 20 Sep 1994 18:39:25 +0000 (18:39 +0000)]
* coffread.c (init_stringtab): When copying length to stringtab,
use target format, not host format, since that is what the rest of
the code assumes.
Per Bothner [Tue, 20 Sep 1994 01:30:19 +0000 (01:30 +0000)]
* config.guess (HP-UX): Patch from Harlan Stenn
<harlan@landmark.com> to also emit release level.
* config.guess (sun4*:SunOS:*:*): Change '-JL' to '_JL'.
J.T. Conklin [Mon, 19 Sep 1994 23:00:48 +0000 (23:00 +0000)]
* Makefile.in: Removed prelude.o, i386-nlmstub.o, nlmstub.o,
nlmstub.nlm, and nlmstub targets. Removed NWSOURCE and
NWINCLUDES definitions.
* i386-nlmstub.c: Removed.
Jeff Law [Mon, 19 Sep 1994 18:47:37 +0000 (18:47 +0000)]
* config/tc-hppa.c (hppa_fix_adjustable): Reject reductions
involving global symbols too.
Ken Raeburn [Mon, 19 Sep 1994 16:49:38 +0000 (16:49 +0000)]
keep gdbinit.in, not .gdbinit
Ken Raeburn [Mon, 19 Sep 1994 16:40:54 +0000 (16:40 +0000)]
vms work, pseudo_set fixes
Ken Raeburn [Mon, 19 Sep 1994 16:40:00 +0000 (16:40 +0000)]
* read.c (pseudo_set, case O_symbol): If OBJ_COPY_SYMBOL_ATTRIBUTES is defined,
invoke it.
[BFD_ASSEMBLER]: Copy BSF_FUNCTION setting too.
* config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define.
Also minor VMS support from Pat Rankin.
Ken Raeburn [Mon, 19 Sep 1994 16:37:32 +0000 (16:37 +0000)]
* read.c (pseudo_set, case O_symbol): If OBJ_COPY_SYMBOL_ATTRIBUTES is defined,
invoke it.
[BFD_ASSEMBLER]: Copy BSF_FUNCTION setting too.
* config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define.
Ken Raeburn [Mon, 19 Sep 1994 16:36:31 +0000 (16:36 +0000)]
more vms work from Pat Rankin
Ken Raeburn [Mon, 19 Sep 1994 16:17:53 +0000 (16:17 +0000)]
* as.h: Test NEED_DECLARATION_*, not NEED_*_DECLARATION.
* configure.in: Test for remove, not delete. Fix cross-assembler test.
* as.h: Test HAVE_REMOVE, not HAVE_DELETE; define unlink to remove, not delete.
Ian Lance Taylor [Mon, 19 Sep 1994 16:06:43 +0000 (16:06 +0000)]
* config/obj-coff.c (c_dot_file_symbol): Use bfd_abs_section_ptr,
not &bfd_abs_section.
Jim Kingdon [Mon, 19 Sep 1994 15:00:03 +0000 (15:00 +0000)]
Mon Sep 19 07:48:36 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* dbxread.c (read_dbx_dynamic_symtab): Cast bfd_asymbol_name to
char * (from const char *) before assigning. Don't save string we
pass to record_minimal_symbol (it already saves it).
Stu Grossman [Sun, 18 Sep 1994 00:07:56 +0000 (00:07 +0000)]
* gdbtk.tcl: Let ^U delete lines in the command window.
Peter Schauer [Sat, 17 Sep 1994 11:35:51 +0000 (11:35 +0000)]
* cp-valprint.c (static_field_print): New variable, controls
printing of static members.
(_initialize_cp_valprint): New print set subcommand
"static-members". Turn on printing of static members by default.
(cp_print_value_fields): Print static members if necessary.
* solib.c: Remove inclusion of libelf.h and elf/mips.h.
(elf_locate_base): Use only standard BFD functions to collect
information about the .dynamic section. Check for DT_MIPS_RLD_MAP
tag only if it got defined via the inclusion of <link.h>.
* f-exp.y: Write block for OP_VAR_VALUE.
* f-valprint.c (info_common_command): Handle `info common'
without an argument correctly.
* c-typeprint.c (c_type_print_base): Handle template constructors.
* symtab.c (gdb_mangle_name): Handle template method mangling,
get rid of GCC_MANGLE_BUG code, which only applied to gcc-2.2.2.
Ken Raeburn [Sat, 17 Sep 1994 05:28:13 +0000 (05:28 +0000)]
vax test
Ken Raeburn [Sat, 17 Sep 1994 05:08:01 +0000 (05:08 +0000)]
new test for vax
Ken Raeburn [Sat, 17 Sep 1994 05:03:44 +0000 (05:03 +0000)]
keep vax dir
Per Bothner [Sat, 17 Sep 1994 01:00:09 +0000 (01:00 +0000)]
Add missing file; adjust Makefile etc.
Per Bothner [Sat, 17 Sep 1994 00:38:23 +0000 (00:38 +0000)]
* gdbtypes.h (TYPE_INDEX_TYPE): New macro.
* ch-typeprint.c, ch-valprint.c: Use TYPE_INDEX_TYPE.
* ch-valprint.c (chill_val_print): Pass index type directly
(instead of its TYPE_TARGET_TYPE) to print_type_scalar.
* stabsread.c (read_type): Don't set TYPE_FLAG_TARGET_STUB
if the index type is a stub.
Stan Shebs [Sat, 17 Sep 1994 00:32:25 +0000 (00:32 +0000)]
* config/i386/{i386aix.mh, i386bsd.mh, i386lynx.mh, i386sco.mh,
i386sco4.mh, i386sol2.mh, i386v.mh, i386v32.mh, i386v4.mh,
ncr3000.mh, ptx.mh, ptx4.mh}, config/m68k/{altos.mh, apollo68v.mh,
delta68.mh, dpx2.mh, hp300bsd.mh, hp300hpux.mh, m68klynx.mh,
m68kv4.mh}, config/m88k/{delta88.mh, delta88v4.mh},
config/mips/riscos.mh, config/pa/hppahpux.mh,
config/sparc/{sparclynx.mh, sun4sol2.mh}, config/tahoe/tahoe.mh,
config/vax/{vaxbsd.mh, vaxult.mh, vaxult2.mh} (REGEX, REGEX1,
SYSV_DEFINE): No longer define.
* config/i386/i386sco4.mh (MUNCH_DEFINE): No longer define.
Per Bothner [Fri, 16 Sep 1994 23:55:01 +0000 (23:55 +0000)]
* pr-5646.ch, pr-5646.exp, Makefile.in: New testcase.
Stu Grossman [Fri, 16 Sep 1994 22:57:37 +0000 (22:57 +0000)]
* defs.h (QUIT): Call interactive_hook to allow GUI to interrupt.
Also, add decl for symtab_to_filename.
* gdbtk.c: Replace calls to full_filename with symtab_to_filename.
* gdbtk.tcl: New routine pc_to_line replaces in line code. New
routine decr replaces in line code.
* (create_file_win): Use catch to handle open failures more
elegantly. Also, create special window to display file open
failure message. Move opening of file prior to creation of text
widget.
* (create_asm_win): Add PC as argument. We now base disassembly
on PC instead of function name, since function names can be
ambiguous (usually seen with shared libs). Also, use catch to
simplify code where we don't care about failures.
* source.c (symtab_to_filename): New. Returns the file
associated with a symtab.
* top.c: Define interactive_hook. Called during QUIT to animate
the GUI.
Ian Lance Taylor [Fri, 16 Sep 1994 16:33:18 +0000 (16:33 +0000)]
* objdump.c (objdump_print_address): If we can't find a smaller
symbol in the right section, look for a larger one.
Ian Lance Taylor [Fri, 16 Sep 1994 16:17:26 +0000 (16:17 +0000)]
* ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
ld -r -S -x.
PR 5596.
Ian Lance Taylor [Fri, 16 Sep 1994 16:14:51 +0000 (16:14 +0000)]
* aoutx.h (aout_link_write_other_symbol): If h->indx is -2, then
always write it out even if it would normally be stripped.
(aout_link_input_section_std): If we find a reloc against a
stripped global symbol, force it to be written out rather than
merely calling unattached_reloc.
(aout_link_input_section_ext): Likewise.
(aout_link_reloc_link_order): Likewise.
Ian Lance Taylor [Fri, 16 Sep 1994 15:30:38 +0000 (15:30 +0000)]
* objdump.c (struct objdump_disasm_info): Add field require_sec.
(objdump_print_address): If aux->require_sec, require that the
symbol be in aux->sec even if HAS_RELOC is not set.
(disassemble_data): Set aux.require_sec around the
objdump_print_address call for the instruction address.
PR 3441.
Jeffrey Osier [Fri, 16 Sep 1994 07:53:09 +0000 (07:53 +0000)]
remote.texi: asynctsr must run before mode (Hitachi stuff)
Per Bothner [Fri, 16 Sep 1994 07:35:27 +0000 (07:35 +0000)]
* parser-defs.h: Add comment about unary postfix operators.
Per Bothner [Fri, 16 Sep 1994 07:29:44 +0000 (07:29 +0000)]
* stabsread.c (read_type): Handle stub types for bitstrings.
* stabsread.c (read_array_type): Check for stub domain type
using TYPE_FLAG_STUB, not its length.
* gdbtypes.c (create_set_type): Handle a stub domain type.
Per Bothner [Fri, 16 Sep 1994 07:28:22 +0000 (07:28 +0000)]
* ch-exp.y: Get rid of some extra non-terminals, and move
their rules into primitive_value.
* ch-lang.c (chill_op_print_tab): Add '->'.
* expprint.c (print_subexp): Recognize unary postfix operator.
Ian Lance Taylor [Fri, 16 Sep 1994 04:03:23 +0000 (04:03 +0000)]
* ar.c: Call xexit rather than exit.
(output_filename, output_file, output_bfd): New static variables.
(remove_output): New static function.
(main): Call xatexit (remove_output). Call xexit rather than
returning.
(extract_file): Set output_filename and output_file while output
file is open.
(write_archive): Likewise, but use output_bfd, not output_file.
* arsup.c: Include libiberty.h. Call xexit rather than exit.
* bucomm.c: Likewise.
PR 2474.
Ian Lance Taylor [Fri, 16 Sep 1994 01:59:30 +0000 (01:59 +0000)]
* objdump.c (disassemble_all): New global variable.
(usage): Document --disassemble-all.
(long_options): Add disassemble-all as a synonym for -D.
(compare_symbols): Make pointers const.
(compare_relocs): New static function.
(disassemble_data): Rename disassemble to disassemble_fn to avoid
shadowing. If dump_reloc_info, print relocs along with
disassembly. Skip sections which are not SEC_CODE unless
disassemble_all or only is set.
(display_bfd): Don't call dump_relocs if disassemble is set.
(main): Accept and handle -D.
* binutils.texi: Document -D/--disassemble-all.
* objdump.1: Likewise.
PR 5059.
Ian Lance Taylor [Thu, 15 Sep 1994 22:50:44 +0000 (22:50 +0000)]
* expr.c (clean_up_expression): Use addressT, not bfd_vma.
Ian Lance Taylor [Thu, 15 Sep 1994 20:46:46 +0000 (20:46 +0000)]
* a29k-dis.c (print_insn): Print the opcode.
PR 4779.
Ian Lance Taylor [Thu, 15 Sep 1994 17:07:02 +0000 (17:07 +0000)]
* ldmisc.c (vfinfo): Print BFD file name as well as file name
returned by find_nearest_line, in case the file name is something
unhelpful such as a .h file. Handle %u.
Ian Lance Taylor [Thu, 15 Sep 1994 17:05:24 +0000 (17:05 +0000)]
Add some news.
Jason Molenda [Thu, 15 Sep 1994 01:51:58 +0000 (01:51 +0000)]
Wed Sep 14 18:27:42 1994 Jason Molenda (crash@phydeaux.cygnus.com)
* remote-hms.c: use remote_debug instead of hms_silent toggle.
Add warnings about depreciation of `snoop' cmd.
Steve Chamberlain [Thu, 15 Sep 1994 01:29:07 +0000 (01:29 +0000)]
Wed Sep 14 18:18:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
* remote-hms.c (hms_read_inferior_memory): Cope when
target sends both \r and \n.
Stan Shebs [Thu, 15 Sep 1994 00:22:11 +0000 (00:22 +0000)]
* remote-mips.c (mips_error): Place NORETURN macro correctly.
* TODO: Add item about START_INFERIOR_TRAPS_EXPECTED.
Ian Lance Taylor [Wed, 14 Sep 1994 23:28:25 +0000 (23:28 +0000)]
* aoutx.h (aout_link_write_symbols): Rename skip_indirect to
skip_next. If we find an N_WARNING symbol which has already been
written out, set skip_next.
PR 5634.
Jim Kingdon [Wed, 14 Sep 1994 22:45:49 +0000 (22:45 +0000)]
* xcoffread.c (read_xcoff_symtab): Fix obsolete comment about
mst_solib_trampoline.
* f-valprint.c (f_val_print): Change cast of valaddr from
CORE_ADDR * to char **, since that is how it is used.
* dbxread.c (read_dbx_dynamic_symtab): Save copy of symbol names
using obsavestring, and pass that to prim_record_minimal_symbol.
Having the objfile point to bfd_asymbol_name directly doesn't work
if we save and restore a mapped symbol file.
Ian Lance Taylor [Wed, 14 Sep 1994 22:27:16 +0000 (22:27 +0000)]
* ld.h (ld_config_type): Add new field warn_once.
* ldmain.c (undefined_symbol): Handle -warn-once.
* lexsup.c (parse_args): Recognize -warn-once.
* ld.texinfo (Options): Document -warn-once.
* ld.1: Likewise.
PR 4456.
Jeff Law [Wed, 14 Sep 1994 22:24:56 +0000 (22:24 +0000)]
* som.h (struct somdata): New field sorted_syms.
(obj_som_sorted_syms): Accessor macro.
* som.c (som_object_setup): Initialize sorted_syms to NULL.
(som_prep_for_fixups): Sort a copy of the BFD's symbol table;
store the sorted symbol table in sorted_syms.
(som_write_fixups): Initalize tmp_reloc to NULL to make GCC happy.
(som_begin_writing): Similarly for exec_header. Pass the sorted
symbol table to som_write_symbol_strings.
(som_build_and_write_symbol_table): Use the sorted symbols rather
than the canonical symbol table.
Ian Lance Taylor [Wed, 14 Sep 1994 21:53:14 +0000 (21:53 +0000)]
* mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
PR 5632
Jeff Law [Wed, 14 Sep 1994 21:44:35 +0000 (21:44 +0000)]
* som.h (som_symbol_type): Add "stringtab_offset" field.
* som.c (som_write_symbol_strings): Use "stringtab_offset"
rather than destroying the "name" field in the BFD symbol.
(som_build_and_write_symbol_table): Likewise.
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.
J.T. Conklin [Wed, 14 Sep 1994 20:26:54 +0000 (20:26 +0000)]
Updated for recent NetBSD changes
Ian Lance Taylor [Wed, 14 Sep 1994 20:26:40 +0000 (20:26 +0000)]
Rebuilt dependencies.
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.
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.
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.
Ian Lance Taylor [Wed, 14 Sep 1994 18:29:06 +0000 (18:29 +0000)]
Tweak the new handling of function names.
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.
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.
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.
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.
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.
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.
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.
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'.
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.
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.
Ken Raeburn [Wed, 14 Sep 1994 01:43:21 +0000 (01:43 +0000)]
386_GOTPC fix from ericy
Ken Raeburn [Wed, 14 Sep 1994 01:30:56 +0000 (01:30 +0000)]
Some Vax and VMS bug fixes from Pat Rankin.
Ken Raeburn [Wed, 14 Sep 1994 00:54:00 +0000 (00:54 +0000)]
Do unlink/delete test properly.
Replace HO_VMS tests with VMS.
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.
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).
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.
Rob Savoye [Wed, 14 Sep 1994 00:21:23 +0000 (00:21 +0000)]
Add support for the w89k and op50n PA target board code.
Rob Savoye [Wed, 14 Sep 1994 00:19:26 +0000 (00:19 +0000)]
Oop, make sure Sanitize doesn't nuke new files.
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.
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.