Commit Graph

15256 Commits

Author SHA1 Message Date
Ian Lance Taylor 66761e5994 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
$(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
	(maintainer-clean): Warn about deleting special files.
	(bfd-in2.h, libbfd.h, libcoff.h): New targets.
1996-01-30 18:49:10 +00:00
Ian Lance Taylor bc60f9240f * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
-bnoentry, since the right thing tends to happen anyhow.
1996-01-30 18:19:28 +00:00
Ian Lance Taylor cf5138e388 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
warning symbols correctly.
	* elf32-i386.c (elf_i386_relocate_section): Likewise.
	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
	* elf32-mips.c (mips_elf_relocate_section): Likewise.
	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
	* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1996-01-30 18:18:17 +00:00
Ken Raeburn 0e6f2f82d2 * config/tc-i960.c (parse_memop): In MRI mode, don't use implicit scaling of
index.

* expr.c (operand): Accept 0x hex constants in MRI mode if not on m68k.

(PR 8836)
1996-01-30 18:12:41 +00:00
Ian Lance Taylor a8763553e4 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
warnings.
1996-01-30 17:09:29 +00:00
Fred Fish 9476906f63 Enclose gdbtk stuff inside gdb sanitization lines. Regenerate configure. 1996-01-30 03:10:17 +00:00
Fred Fish f6ade5ddf3 * Makefile.in (diststuff): Make all-doc; diststuff target does not
exist in doc/Makefile.in.
1996-01-30 03:08:52 +00:00
Stan Shebs cdea3fd3df * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used. 1996-01-30 02:51:56 +00:00
Ian Lance Taylor eb5bc1f397 From Basim Kadhim <kadhim@spock.cs.colorado.edu>:
* ecoff.c (struct extsym_info): Define.
	(_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
	to ecoff_link_write_external.
	(ecoff_link_write_external): Accept a struct extsym_info pointer.
	Strip symbols when appropriate.
1996-01-30 00:01:44 +00:00
Ian Lance Taylor 5da470b2bb Based on patches from H J Lu <hjl@zoom.com>:
* objcopy.c (remove_leading_char): New static variable.
	(OPTION_REMOVE_LEADING_CHAR): Define.
	(copy_usage): Mention --remove-leading-char.
	(filter_symbols): If remove_leading_char, and the first character
	of a global symbol matches the symbol leading char of the BFD,
	remove the first character.
	(copy_object): Filter the symbols if remove_leading_char is set.
	(copy_main): Handle --remove-leading-char.
	* binutils.texi, objcopy.1: Document --remove-leading-char.
1996-01-29 22:39:21 +00:00
Ian Lance Taylor 3e78d07241 * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type
of object.  From Ronald F. Guilmette <rfg@monkeys.com>.
1996-01-29 22:11:12 +00:00
Ian Lance Taylor f104a86e1b update copyright 1996-01-29 22:09:49 +00:00
Ian Lance Taylor 052b35d2e7 Based on patches from Ronald F. Guilmette <rfg@monkeys.com>:
* syms.c (BSF_OBJECT): Define.
	(bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
	* bfd-in2.h: Rebuild.
	* elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
	STT_OBJECT symbol.
	* elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
	is set.
1996-01-29 22:04:32 +00:00
Ian Lance Taylor 53787b2316 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
copying relocs into a shared object, treat a defined global symbol
	as a local symbol.
	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
	* elf32-mips.c (mips_elf_relocate_section): Likewise.
	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1996-01-29 20:01:29 +00:00
Kim Knuttila bdd2e7f179 Fixed exported names, removed a bad define 1996-01-29 19:31:34 +00:00
Ken Raeburn fdb1821eb4 mh-i386win32 is gone 1996-01-29 19:30:16 +00:00
Ian Lance Taylor d2bb6c7900 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
real defined symbol, not to a weak defined symbol.
1996-01-29 18:09:20 +00:00
Ken Raeburn e185ddefd3 * i386.h: Fix waiting forms of finit, fstenv, fsave, fstsw, fstcw, and fclex. 1996-01-29 17:45:18 +00:00
Kim Knuttila 13d1a4dda9 Removed a ppc hack from cofflink, promoted some types to libcoff-in.h 1996-01-29 17:44:41 +00:00
Ian Lance Taylor 4bdd9722a6 * ld.texinfo, ld.1: Document -export-dynamic. 1996-01-29 17:29:51 +00:00
Ian Lance Taylor 8e3ff08126 * ecoff.c (localsym_t): Add addend field.
(add_ecoff_symbol): Add addend argument.  Change all callers.
	(coff_sym_value): Make static.
	(coff_sym_addend): New static variable.
	(ecoff_directive_def): Initialize coff_sym_addend.
	(ecoff_directive_val): Accept symbol + constant.
	(ecoff_directive_endef): Pass coff_sym_addend to add_ecoff_symbol.
	(ecoff_build_symbols): Include the addend in the symbol value.
1996-01-29 17:25:26 +00:00
Wilfried Moser d221b17e83 * ch-valprint.c (calculate_array_length): New function to determine
the length of an array type (see comment).
        (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
        array type is zero, call calculate_array_length.

        * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): They values
        may not be sorted. Scan all entries and set the real lower and
1996-01-29 08:17:22 +00:00
Wilfried Moser d59558827e * builtins.ch, builtins.exp: Enhance test case.
* extstruct.ch, extstruct-grt.ch, extstruct.exp: New test case.
1996-01-29 08:09:04 +00:00
Fred Fish fa9f58403a * config/xm-linux.h: Move include of solib.h and #define of
SVR4_SHARED_LIBS from here ...
	* config/nm-linux.h: ...to here.
1996-01-28 22:52:53 +00:00
David Edelsohn e6b771fcc4 * gas/arc/warn.exp: Delete libs arg in call to dg-runtest. 1996-01-27 21:30:10 +00:00
Michael Meissner eb684d4827 Fix up warning on SunOS 1996-01-27 20:44:54 +00:00
Fred Fish 4708ac6573 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
Also check for gregset_t and fpregset_t types.
	* configure: Regenerate.
	* core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
 	is defined.
	(fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
 	and HAVE_FPREGSET_T are defined.  These changes allow systems
 	like linux that are migrating to /proc support to use a single
 	configuration for both new and old versions.

	* config/i386/linux.mt: Note that this is now for both a.out and
	ELF systems.
	* config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
	i386v4-nat.o
	* config/i386/tm-linux.h (tm-sysv4.h): Include.
	* config/i386/xm-linux.h (solib.h): Include
	(SVR4_SHARED_LIBS): Define.
	* i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
	(supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
	(supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T defined.
1996-01-27 18:51:09 +00:00
Kim Knuttila 79edc8468f Ignore overflow on toc relocs 1996-01-27 00:31:16 +00:00
Ian Lance Taylor ba7db99126 * ld-undefined/undefined.exp: ELF targets should now pass the
undefined line test.
1996-01-26 23:43:29 +00:00
Ian Lance Taylor 86aac8eabe * syms.c: Include "bfdlink.h".
(struct stab_find_info): Define.
	(_bfd_stab_section_find_nearest_line): New function.
	* libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
	* libbfd.h: Rebuild.
	* elf-bfd.h (struct elf_obj_tdata): Add line_info field.
	* elf.c (_bfd_elf_find_nearest_line): Try calling
	_bfd_stab_section_find_nearest_line before searching the ELF
	symbol table.  Find the closest STT_FUNC symbol, not the last one.
	* libcoff-in.h (coff_data_type): Add line_info field.
	* libcoff.h: Rebuild.
	* coffgen.c (coff_find_nearest_line): Try calling
	_bfd_stab_section_find_nearest_line before searching the COFF
	symbol table.
	* Makefile.in: Rebuild dependencies.
1996-01-26 23:42:58 +00:00
Stan Shebs a77bf669dc * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
* config/i386/xm-sun386.h: Ditto.
	* config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
1996-01-26 21:53:03 +00:00
Jeff Law f3de5a89ac * gas/hppa/unsorted/unsorted.exp: Update for objdump changes. 1996-01-26 21:26:28 +00:00
Ian Lance Taylor 392e2505bb tipo 1996-01-26 20:43:50 +00:00
Ian Lance Taylor 85d4b87066 * binutils.texi (nm): Improve documentation on symbol types.
(objdump): Reference the stabs manual from the discussion of the
	--stabs option.
1996-01-26 16:54:35 +00:00
David Edelsohn 6cbc4e35bd * config/tc-sparc.c (default_compatible): New static local.
(md_begin): Initialize it.  Rewrite warn_on_bump handling.
	(sparc_ip): If no architecture or -bump specified, don't mark as
	mismatched those in default_compatible.
1996-01-26 04:37:04 +00:00
Ian Lance Taylor f0a97077c8 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
entry_section fields.  Add sntoc and snentry fields.
	* libcoff.h: Rebuild.
	* coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
	not toc_section and entry_section (the COFF file does not have any
	sections at this point).
	(coff_write_object_contents): Set o_snentry and o_sntoc from
	snentry and sntoc rather than entry_section and toc_section.
	* coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
	snentry, not toc_section and entry_section.
	* xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
	entry_section from hentry.
	(xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
	set snentyr.
	(xcoff_link_input_bfd): Set sntoc, not toc_section.
	(xcoff_write_global_symbol): Get toc_section from sntoc, rather
	than using toc_section directly.
1996-01-25 22:51:06 +00:00
Michael Meissner c1e65e244c Make eabi error messages include symbol name if it is an external symbol 1996-01-25 22:35:51 +00:00
Ian Lance Taylor 00f53835d3 * mh-ncrsvr43 (CFLAGS): Remove -Hnocopyr. 1996-01-25 21:05:56 +00:00
Steve Chamberlain a4b4479a47 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
From Greg McGary  <gkm@gnu.ai.mit.edu>:
	* dcache.c (dcache_peek, dcache_poke): Advance addr for
	multi-byte I/O.
1996-01-25 21:01:17 +00:00
Ian Lance Taylor 92849bae1d * ld-empic/empic.exp: Update for change to MIPS disassembler. 1996-01-25 20:38:08 +00:00
Jeff Law 4133a76e04 * infrun.c (normal_stop): Fix test for shared library event.
From dje.  Fixes minor testsuite problems.
1996-01-25 20:10:42 +00:00
Ian Lance Taylor 9b4598d0a8 * archures.c: Add missing `.' in enum bfd_architecture.
* bfd-in2.h: Rebuild.
1996-01-25 20:05:29 +00:00
Raymond Jou e069197a14 * mpw-make.sed: Add a "stamps" target. 1996-01-25 19:38:14 +00:00
Ian Lance Taylor 980ef031a0 shorten copyright line 1996-01-25 18:55:00 +00:00
Ian Lance Taylor 1efb2ef007 * objdump.c (dump_headers, dump_section_header): Change objdump -h
output to be simpler and to include section file offsets.
1996-01-25 18:52:59 +00:00
Ian Lance Taylor 4fe0fdddfb SCO ELF support from Robert Lipe <robertl@arnet.com>:
* configure.in (i386-*-sco*elf*): Use fmt elf, targ sco5.
	* configure: Rebuild.
	* config/sco5.mt: New file; set TDEFINES to -DSCO_ELF.
	* config/tc-i386.c (sco_id): New function, if SCO_ELF.
	* config/tc-i386.h (tc_init_after_args): Define if SCO_ELF.
	(sco_id): Declare if SCO_ELF.
1996-01-25 17:25:25 +00:00
Ian Lance Taylor 43d36aad03 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
Robert Lipe <robertl@arnet.com>.
1996-01-25 17:18:42 +00:00
Michael Meissner eb82bc605f Add more eabi relocations 1996-01-25 17:15:24 +00:00
Jackie Smith Cashion b209d2a3d9 Thu Jan 25 17:05:26 1996 James G. Smith <jsmith@cygnus.co.uk>
* config.sub: Add recognition for mips64vr4100*-* targets.
1996-01-25 17:08:24 +00:00
Ian Lance Taylor 931c53ab74 * i386-dis.c (print_insn_i386): Only fetch the mod/reg/rm byte
when necessary.  From Ulrich Drepper
	<drepper@myware.rz.uni-karlsruhe.de>.
1996-01-25 16:57:52 +00:00