Commit Graph

16299 Commits

Author SHA1 Message Date
Ian Lance Taylor
67c8c90141 * objdump.c (endian): New static variable.
(usage): Mention -EB/-EL/--endian.
	(long_options): Add "endian".
	(disassemble_data): If endianness was specified, replace
	abfd->xvec with a copy of itself with the given endianness.
	(main): Handle -EB/-EL/--endian.
	* binutils.texi, objdump.1: Mention -EB/-EL/--endian.
1996-06-24 20:49:28 +00:00
Ian Lance Taylor
58f8c779f7 * configure.in: Call AC_PROG_CC before running configure.host.
* configure: Rebuild with autoconf 2.10.
1996-06-24 18:21:47 +00:00
Ian Lance Taylor
aac160d2bb * configure.in: Only configure erc32 if using gcc. 1996-06-24 18:20:52 +00:00
Angela Marie Thomas
30b9d933e8 add type for read_cfront_member_functions 1996-06-24 16:58:30 +00:00
Ian Lance Taylor
8530ae8eed * configure.in: On alpha*-*-osf*, link against libbfd.a if not
using shared libraries.
	* configure: Rebuild with autoconf 2.10.
1996-06-24 16:04:19 +00:00
Ian Lance Taylor
b290fd252e * configure.in: On alpha*-*-osf*, link against libbfd.a if not
using shared libraries.
	* configure: Rebuild.
1996-06-24 15:59:41 +00:00
David Edelsohn
e88c49c36b * win32-nat.c: #include <unistd.h>.
(unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
	(child_create_inferior): Convert only env var PATH to win32 style.
	(set_pathstyle_dos): Delete.
	(_initialize_inftarg): Delete dos-path-style command.
1996-06-24 07:11:35 +00:00
Geoffrey Noer
482406716a Fixed .Sanitize 1996-06-24 06:06:44 +00:00
Geoffrey Noer
e39c2bd2e2 Enable dosrel for special dos installation (appending of .exe to
installed binaries, etc...) for cygwin32-hosted toolchains.  New
config/mh-cygwin32 which enables this.

Removed diff from list of things not buildable via Canadian Cross
1996-06-24 06:05:21 +00:00
David Edelsohn
c86c94ec31 (struct internal_scnhdr): Add comment regarding s_paddr. 1996-06-24 01:24:35 +00:00
Fred Fish
570a390281 * tests1.exp (test_modes): Remove *-*-* setup_sfail for
"print unnumbered set range mode" and
	"print numbered set range mode".
1996-06-23 17:24:20 +00:00
Jason Merrill
d32baaf065 Sat Jun 22 11:39:01 1996 Jason Merrill <jason@yorick.cygnus.com>
* Makefile.in (TARGET_SUBDIR): Move comment to previous line so we
 	don't get ". ".

Fixes nightly build on rtl.
1996-06-22 18:40:49 +00:00
Jim Wilson
79a2d56d81 * configure.in (mips*-sgi-irix6*): Set noconfigdirs appropriately. 1996-06-22 00:27:07 +00:00
Ian Lance Taylor
817ef33811 Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
* configure.tgt: Add support for *-*-rtems* configurations.
1996-06-21 22:12:01 +00:00
Ian Lance Taylor
644edcedb0 Fri Jun 21 17:40:16 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
* configure.in: Add support for *-*-rtems* configurations.
	* configure: Rebuild.
1996-06-21 22:04:02 +00:00
Ian Lance Taylor
bff4a49602 Fri Jun 21 17:38:15 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
* config.bfd: Add support for *-*-rtems* configurations.
1996-06-21 22:02:36 +00:00
Ian Lance Taylor
df586de217 Fri Jun 21 16:01:18 1996 Richard Henderson <rth@tamu.edu>
* configure.in: Add alpha-*-linuxecoff* target.  Use elf for
	alpha-*-linux* target.  Force bfd_gas for alpha-*.  Require
	opcodes library for alpha.
	* configure: Rebuild with autoconf 2.10.
	* config/tc-alpha.c: Substantial rewrite to add ELF support and
	use new opcode table.
	* config/tc-alpha.h (md_undefined_symbol): Don't define.
	(LOCAL_LABEL): Define differently if OBJ_ELF.
	(FAKE_LABEL_NAME): Define if OBJ_ELF.
	* config/alpha-opcode.h: Remove.
	* config/obj-elf.h: If TC_ALPHA, define ECOFF_DEBUGGING.
	* Makefile.in (TARG_CPU_DEP_alpha): Depend upon
	include/opcode/alpha.h rather than config/alpha-opcode.h.
1996-06-21 20:10:12 +00:00
Ian Lance Taylor
7ae6550fc5 * elf.c (prep_headers): Add bfd_arch_alpha case. 1996-06-21 19:23:36 +00:00
Fred Fish
4149b5f44a * gdbtk.tcl (populate_register_window): Make initial window one
line taller to account for new column header line.
1996-06-21 18:20:12 +00:00
Fred Fish
ab5c0a12f9 * gdbtk.tcl (create_register_windows): Include missing '$'s.
Add global declarations for various reg_format_* variables.
1996-06-21 18:09:27 +00:00
Ian Lance Taylor
96926bf0f6 Fri Jun 21 13:53:36 1996 Richard Henderson <rth@tamu.edu>
* alpha-opc.c: New file.
	* alpha-opc.h: Remove.
	* alpha-dis.c: Complete rewrite to use new opcode table.
	* configure.in: For bfd_alpha_arch, use alpha-opc.o.
	* configure: Rebuild with autoconf 2.10.
	* Makefile.in (ALL_MACHINES): Add alpha-opc.o.
	(alpha-dis.o): Depend upon $(INCDIR)/opcode/alpha.h, not
	alpha-opc.h.
	(alpha-opc.o): New target.
1996-06-21 17:58:07 +00:00
Ian Lance Taylor
3853da56de Fri Jun 21 13:52:17 1996 Richard Henderson <rth@tamu.edu>
* alpha.h: New file.
1996-06-21 17:52:56 +00:00
Ian Lance Taylor
539ae61d9c Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
* configure.tgt (alpha-*-linuxecoff*): New target.
	(alpha-*-linux*): Use elf64alpha.
	* emulparams/elf64alpha.sh: New file.
	* emultempl/elf32.em: If ELFSIZE is not set, set it to 32.  Use
	${ELFSIZE} rather than 32 when calling BFD routines.
	(hold_rodata): New static variable.
	(gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
	readonly section that is not code.
	(gld${EMULATION_NAME}_place_section): Set hold_rodata.  Don't use
	a .rel section unless its bfd_section field is not NULL.
	* Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
	(eelf64alpha.c): New target.
1996-06-21 17:10:14 +00:00
Fred Fish
3d9f68c05e * gdbtk.c (get_register): Support for printing raw formats.
* gdbtk.tcl: Add hint for using debug_interface.
	(center_window, add_breakpoint_frame, delete_breakpoint_frame):
	Enclose arg in braces for consistency.
	(create_registers_window, populate_reg_window, update_registers):
	Major rewrite to support displaying multiple formats in the register window.
	(init_reg_info): New function.
	(recompute_reg_display_list):  Reset reg_display_list, start
	register display lines at line 2.
PR 9457
1996-06-21 17:03:22 +00:00
Ian Lance Taylor
a475297cf1 * ldmisc.c (vfinfo): Correct handling of 0 in %W case. 1996-06-21 16:46:10 +00:00
Ian Lance Taylor
e8f4671749 Fri Jun 21 12:35:27 1996 Richard Henderson <rth@tamu.edu>
* elf64-alpha.c: New file.
	* config.bfd (alpha-*-linuxecoff*): New target.
	(alpha-*-linux*, alpha-*-elf*): New targets.
	* configure.in (bfd_elf64_alpha_vec): New vector.
	* configure: Rebuild.
	* targets.c (bfd_elf64_alpha_vec): Declare.
	(bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64.
	* reloc.c (BFD_RELOC_ALPHA_GPDISP): Define.
	* bfd-in2.h, libbfd.h: Rebuild.
	* Makefile.in: Rebuild dependencies.
 	(BFD64_BACKENDS): Add elf64-alpha.o.
	(BFD64_BACKENDS_CFILES): Add elf64-alpha.c.
1996-06-21 16:40:43 +00:00
Ian Lance Taylor
3309648e5f Fri Jun 21 12:33:24 1996 Richard Henderson <rth@tamu.edu>
* alpha.h: New file.
	* common.h (EM_ALPHA): Define.
start-sanitize-arc
	(EM_CYGNUS_ARC): Change to not conflict with EM_ALPHA.
end-sanitize-arc
1996-06-21 16:34:37 +00:00
David Edelsohn
b9110a3c4f * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE
ifdef to COFF_WITH_PE.
	(coff_compute_section_file_positions): Likewise.
	(coff_write_object_contents): Likewise.  Delete COFF_OBJ_WITH_PE.
	* pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete.
	* peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef
	COFF_IMAGE_WITH_PE, always include.
1996-06-20 23:59:08 +00:00
Ian Lance Taylor
edec3111a2 * config/obj-aout.c (obj_emit_relocations): Give an error if the
relocation symbol was not resolved.
	* config/obj-coff.c (do_relocs_for): Likewise.
1996-06-20 23:42:18 +00:00
Ian Lance Taylor
7ca8e36e61 * expr.c (struct expr_symbol_line): Define.
(expr_symbol_lines): New static variable.
	(make_expr_symbol): Add entry to expr_symbol_lines.
	(expr_symbol_where): New function.
	* expr.h: Use extern on function declarations.
	(expr_symbol_where): Declare.
	* symbols.c (resolve_symbol_value): Try to use expr_symbol_where
	rather than printing the meaningless name of an expression
	symbol.
1996-06-20 23:14:13 +00:00
Ian Lance Taylor
bacecac849 * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
than relying on a right shift of 32.
1996-06-20 22:23:22 +00:00
David Edelsohn
1a7b4b7ced * configure.in: Revise sol-thread.o test.
* configure: Regenerated.

	* source.c (find_source_lines): Reassign size to result of read.
1996-06-20 21:21:27 +00:00
Ken Raeburn
8d190aa344 * Makefile.in (taz): Handle case where tex3patch didn't even get checked out.
Also, if it was found, put the symlink in a new util subdirectory.
1996-06-20 21:01:42 +00:00
Ken Raeburn
214f540d12 * config/tc-i386.c (md_number_to_chars): Deleted.
* config/tc-i386.h (md_number_to_chars): New macro.

* config/tc-alpha.c (build_operate_n, build_mem): Moved earlier in the file.
(load_symbol_address, load_expression): Use build_mem.
(build_operate): New function.
(emit_addq_r): Use it.

Wed Mar 13 22:14:14 1996  Pat Rankin  <rankin@eql.caltech.edu>

* symbols.c (colon):  #if VMS, use S_SET_OTHER to store `const_flag'.

Tue Mar  5 14:31:45 1996  Pat Rankin  <rankin@eql.caltech.edu>

* config/tc-vax.h (NOP_OPCODE): Define.

Sun Feb  4 21:01:03 1996  Pat Rankin  <rankin@eql.caltech.edu>

* config/obj-vms.h (S_IS_COMMON): Define.
(S_IS_LOCAL): Check for \002 as well as \001.
(LONGWORD_ALIGNMENT): New macro.
(SUB_SEGMENT_ALIGN): Use it.

Fri Jan 26 17:44:09 1996  Pat Rankin  <rankin@eql.caltech.edu>

* config/vms-conf.h: Reconcile with conf.in.
1996-06-20 20:06:44 +00:00
David Edelsohn
9ca108cdd0 * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0. 1996-06-20 19:36:35 +00:00
Ian Lance Taylor
180b9a3805 * rs6k.h: Remove obsolete file. 1996-06-20 19:04:10 +00:00
Ian Lance Taylor
55745b34b0 Add enough support to understand the gcc svr3.ifile script:
* ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context.  Add
	BIND keyword.
	* ldgram.y: Add BIND token.
	(section): Recognize GROUP.
	(opt_ext_with_type): Recognize a couple of cases of BIND.
	* ldlang.c (init_os): Don't do anything if section is already
	initialized.  Call exp_init_os on addr_tree field.
	(exp_init_os): New static function.
	(map_input_to_output_sections): Call exp_init_os on assignment
	expression.
	(lang_place_orphans): Check for common sections by name COMMON
	rather than by common_section field.  Don't warn about absence of
	[COMMON] command.
1996-06-20 18:23:24 +00:00
Michael Meissner
c180142240 Add support for Linux on PowerPC 1996-06-20 16:31:16 +00:00
Fred Fish
3f8eefba65 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
avoid backing up over prompt.  At every input, make sure insert
	point is at least after command start, handle control-u to delete
	current input line.
	(tclsh): Handle backspace to avoid backing up over prompt.  Handle
	control-u to delete current input line.
1996-06-20 15:50:37 +00:00
Ian Lance Taylor
793f9558f8 * write.c (is_dnrange): Only define if TC_GENERIC_RELAX_TABLE is
defined.
1996-06-20 01:45:14 +00:00
Ian Lance Taylor
84577ddeeb * doc/as.texinfo: Document that any number of hex digits can
follow \x.
1996-06-20 01:34:19 +00:00
Ian Lance Taylor
4264a46e65 * sparc-dis.c (print_insn_sparc): Remove unused local variable i.
Set imm_added_to_rs1 even if the source and destination register
	are not the same.
1996-06-20 01:18:47 +00:00
Ian Lance Taylor
25eb508ed4 * objdump.c (stabs): Change from struct internal_nlist * to
bfd_byte *.
	(print_section_stabs): Fetch stabs information directly, rather
	than assuming that struct internal_nlist is the right size.
1996-06-20 01:00:26 +00:00
Geoffrey Noer
b613bfbf2c Changes to gdbtk configury so cygwin32 hosts (in addition to go32)
are configured without gdbtk
1996-06-20 00:29:38 +00:00
Ian Lance Taylor
0d6cae1e69 * as.c (struct defsym_list): Define.
(defsyms): New static variable.
	(parse_args): Just put --defsym arguments on defsyms list, rather
	than defining them.
	(main): Define defsyms after output file is created.
1996-06-19 21:08:03 +00:00
Ian Lance Taylor
6e3f7f1bf9 * config/tc-m68k.c (m68k_ip): Reject PRE and POST indexing mode on
cpu32.  From Eric Norum <Eric.Norum@usask.ca>.
1996-06-19 20:33:30 +00:00
Ian Lance Taylor
c635473f30 * sparc-opc.c: Add some two operand forms of the wr instruction. 1996-06-19 19:56:51 +00:00
Ian Lance Taylor
ad8e053482 * i386.h: Correct opcode values for faddp, fsubp, fsubrp, fmulp,
fdivp, and fdivrp.  Add ffreep.
1996-06-19 19:52:04 +00:00
Ian Lance Taylor
11de29d03b * binutils.texi: Document change to binary format: file position
based on load address, not section VMA.
1996-06-19 18:50:41 +00:00
Ian Lance Taylor
8095b665cb * as.c (emulation_name): Remove unused static variable.
(default_emul_bfd_name): Add return NULL to avoid warning.
	* ecoff.c (ecoff_stab): Remove unused variables name and
	name_end.
	* frags.c (frag_new): Remove unused variable tmp.
	* hash.c (hash_grow): Parenthesize + within <<.
	(hash_print_statistics): Use %lu, not %d, to print unsigned
	long variables.
	* messages.c: Include "libiberty.h".
	(fprint_value): Add cast to avoid printf warning.
	(sprint_value): Likewise.
	* read.c: Include "ecoff.h".
	(emit_expr): Add casts to avoid printf warnings.
	* read.h: Use extern for function declarations.
	(pop_insert): Declare.
	* stabs.c: Include "ecoff.h".
	* subsegs.c (subseg_set_rest): Remove unused variables tmp,
	former_last_fragP, and new_fragP.
	* subsegs.h (subsegs_print_statistics): Declare.
	* symbols.c (debug_verify_symchain): Change macro to discard
	arguments.
	* write.c (dump_section_relocs): Likewise.
	* write.h: Use extern for function declarations.
	(write_print_statistics): Declare.
	* config/e-mipsecoff.c (mipsecoff_bfd_name): Return NULL to avoid
	warning.
	* config/e-mipself.c (mipself_bfd_name): Likewise.
	* config/obj-elf.h (elf_ecoff_set_ext): Declare.
1996-06-19 18:42:42 +00:00