Commit Graph

9601 Commits

Author SHA1 Message Date
Ken Raeburn
ff9785703d * aoutx.h (reloc_type_lookup): Handle BFD_RELOC_CTOR on a 64-bit
machine.  Handle BFD_RELOC_SPARC13 and BFD_RELOC_SPARC_BASE13.
1994-03-19 01:39:36 +00:00
Ken Raeburn
1be3cf74ed ic960coff.mt typo fix 1994-03-19 01:29:36 +00:00
Ken Raeburn
a9997275f9 (TDEFINES): Fixed typo (MANY_SECTIONS, not MANY_SEGMENTS). 1994-03-19 01:26:55 +00:00
Ken Raeburn
634233a31b * configure.in: Eliminated all targets using obj-coff but not defining
BFD_ASSEMBLER; I think all such targets that are supported will be matched by
real CPU-OS combinations earlier in the case statement.

(targets *-*-coff*, *-sysv*, *-*-sco*, *-*-sysv32): Deleted.  Made some
comments about the dpx2 configuration, but left it disabled, since it couldn't
be reached before.
(target a29k-amd-ebmonold): Deleted.
1994-03-19 01:24:19 +00:00
Jason Merrill
9dd16b889a Fri Mar 18 16:42:32 1994 Jason Merrill (jason@deneb.cygnus.com)
* Makefile.in (CXXFLAGS): Add -fexternal-templates.

So that libio will be built properly.
1994-03-19 00:43:06 +00:00
Jim Kingdon
ee6d646a4b * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
computing their offset from the start of the old buffer and adding
	to the new buffer, rather than by assuming we can add the
	difference between the old buffer and the new buffer (it might not
	fit in an int).  Merge in cosmetic differences from emacs regex.c
	version of this macro.
1994-03-18 18:34:36 +00:00
Ian Lance Taylor
60e9faebc1 * ar.c (write_archive): Allocate space for the null byte. From
Robert Lipe <robertl@arnet.com>.
1994-03-18 15:55:27 +00:00
Ken Raeburn
5a66538bcb * bfd-in.h (BFD_VERSION): Use @VERSION@.
* Makefile.in (bfd.h): Replace it with contents of VERSION file.
* bfd-in2.h: Regenerated.
1994-03-17 23:47:00 +00:00
Ken Raeburn
6f4aac6cb9 (trad_unix_bfd_is_local_label): Fixed typo where
this was also named trad_unix_bfd_copy_private_bfd_data.
1994-03-17 23:38:36 +00:00
Ian Lance Taylor
7838792b0c * osf-core.c (osf_core_bfd_copy_private_bfd_data): Remove
duplicate definition.
	(osf_core_bfd_is_local_label): Define.
1994-03-17 23:26:03 +00:00
Stan Shebs
8b0f1c2004 Don't need mpw-xconfig.in anymore. 1994-03-17 23:08:36 +00:00
Stan Shebs
68c2f07095 Thu Mar 17 12:55:51 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-configure: Conditionalize more Makefile insertions,
	set MAYBE_TARGET_DEFAULT for gcc, set NATDEPFILES for gdb,
	delete Makefile.tem, compute target_{cpu,vendor,os}.
	* mpw-config.in: Forward-include most .h files in include into
	extra-include.
	(readline): Don't build.
	mpw-build.in (install): Install GDB.
	mpw-README: Update/add helpful comments.
1994-03-17 23:02:58 +00:00
Stan Shebs
f63c8f7b3a Various changes. 1994-03-17 23:01:44 +00:00
Roland Pesch
95cb23dc99 More widely useable INFO-DIR entries. 1994-03-17 22:46:08 +00:00
Roland Pesch
20f774c12e Minor update to list of programs for dir.info entry. 1994-03-17 22:43:04 +00:00
Roland Pesch
5ee3dd17d9 More widely useful INFO-DIR fragment. 1994-03-17 22:34:07 +00:00
Jeff Law
80b849167a * gas/hppa/unsorted/importbug.s: New test.
* gas/hppa/unsorted/unsorted.exp: Run it.
1994-03-17 21:40:06 +00:00
Jeff Law
49ccc55510 * config/tc-hppa.c (pa_import): Correctly handle importing of an
already defined symbol.
1994-03-17 21:37:42 +00:00
Ian Lance Taylor
06459c063e * Makefile.in: Built nm.new and strip.new to avoid problems with
collect when . is in PATH.
	(STRIP_PROG): Change from strip to strip.new.
	(NM_PROG): Change from nm to nm.new.
	(install): Remove the .new when installing.
1994-03-17 21:22:30 +00:00
Jim Kingdon
8eb5d4be69 * aoutx.h, elfcode.h, coff-alpha.c, bout.c, ecoff.c, ecofflink.c,
elf32-hppa.c, elf32-mips.c, linker.c, som.c, sunos.c: If malloc(0)
	returns NULL, it is not an error.  It's possible that some of
	these checks are not necessary (because the size can never be
	zero), but putting in the checks is the conservative thing to do
	in light of the fact that some of these malloc calls replaced
	unchecked alloca calls, in which a zero argument would work fine.
1994-03-17 18:54:48 +00:00
Kung Hsu
f09d749f4c Modified Files:
.Sanitize

	* i386os9k.mt: add to things to keep.
	* tm-i386os9k.h: add to things to keep.
1994-03-17 17:42:23 +00:00
Ian Lance Taylor
4bbf7a4924 * reloc.c (bfd_generic_get_relocated_section_contents): Don't fail
if malloc (0) fails.  bfd_canonicalize_reloc returning 0 is not a
	failure indication, it merely means there are no relocs.
1994-03-17 17:29:15 +00:00
Ian Lance Taylor
1c6042ee10 * elfcode.h (NAME(bfd_elf,write_object_contents)): Don't use space
after NAME, since SunOS /bin/cc can't handle it.
1994-03-17 16:47:01 +00:00
Jim Kingdon
478d38114b Fix typo. 1994-03-17 04:09:23 +00:00
Jeff Law
067654f143 * gas/hppa/more.parse/regpopbug.s: Add trivial .equ test. 1994-03-17 00:50:41 +00:00
Jeff Law
c38c91dadb * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly. 1994-03-17 00:49:30 +00:00
David MacKenzie
ae6710bc98 * netbsd386.c (N_SET_FLAGS): Don't nuke the machine id field.
From sukes@glue.umd.edu (Tasuki Hirata).
1994-03-17 00:45:26 +00:00
Ian Lance Taylor
614a3211d4 * config/tc-mips.c (mips_ip): Only accept overly large values for
the 'j' operand if there are no further alternatives for this
	instruction.
1994-03-16 23:49:55 +00:00
Jeff Law
f04a9a1ea1 * gas/hppa/unsorted/globalbug.s: New test (expected to fail).
* gas/hppa/unsorted/unsorted.exp: Run it.
1994-03-16 23:24:53 +00:00
Jeff Law
7f8b9d66f5 * gas/hppa/more.parse/callinfobug.s: New test.
* gas/hppa/omre.parse/parse.exp: Run it.
1994-03-16 22:44:14 +00:00
Jeff Law
f2ada9106d * config/tc-hppa.c (pa_callinfo): Accept "millicode" as an
argument to a .callinfo directive.  Don't loop forever on errors.
1994-03-16 22:42:51 +00:00
Ian Lance Taylor
d6e6bc1c52 * config/obj-coffbfd.c (adjust_stab_section): Initialize
stabstrseg to SEG_UNKNOWN, not -1.  After loop, check whether it
	is not SEG_UNKNOWN rather than checking whether it is >= 0.
1994-03-16 22:22:17 +00:00
Ian Lance Taylor
23dc1ae33d * config/tc-mips.c (mips_align): Take new argument, label, and use
it instead of global insn_label.
	(s_align, s_cons, s_float_cons, s_gpword): Save insn_label before
	call to mips_emit_delay and pass it to mips_align.
1994-03-16 22:16:02 +00:00
Jim Kingdon
f8715549af * printcmd.c: Remove "set print fast-symbolic-addr off" command.
The which it worked around was fixed on 25 Feb 94 in coffread.c,
	so I'm nuking the command.
	* symtab.c (find_addr_symbol): Comment out, no longer used.
1994-03-16 20:09:55 +00:00
Jim Kingdon
ec35141c8c * gdb.texinfo (Print Settings): Don't document "set print
fast-symbolic-addr off".  The bug which it worked around was fixed
	on 25 Feb 94 in coffread.c, so I'm nuking the command.
1994-03-16 20:04:14 +00:00
Jeff Law
2573e71c0e * gas/hppa/more.parse/regpopbug.s: New test.
* gas/hppa/more.parse/parse.exp: Run it.
1994-03-16 19:58:31 +00:00
Jim Kingdon
6d244da7a1 * stabs.texinfo (Alternate Entry Points): New node, rewritten from
N_ENTRY node.

	* stabs.texinfo (Type Descriptors): Add 'Y' type descriptor.
1994-03-16 18:52:45 +00:00
Jim Kingdon
a645ccc926 * main.c (main): Don't init_source_path for the -cd argument. Now
that source_path doesn't contain the current_directory from when
	GDB started up, init_source_path is no longer useful (and is
	harmful because it clobbers a source_path set in $HOME/.gdbinit).
1994-03-16 18:05:57 +00:00
Jim Kingdon
3006c5ac36 * lib/gdb.exp: Set prompt to (gdb) if it isn't already set.
(default_gdb_exit): Replace all the hair with sending "quit" to
	the process with a simple close.
1994-03-16 16:57:39 +00:00
Jim Kingdon
ac83d595de * stabs.texinfo (Type Descriptors): Add 'Y' type descriptor. 1994-03-16 16:21:17 +00:00
Jim Kingdon
c42b8af8f7 * TODO: Remove item about line numbers being off. It is useless
and confusing without a reproducible test case (it mentions
	proceed(), but I was able to step through proceed without trouble).
1994-03-16 15:30:12 +00:00
Jeff Law
35ac8aacf9 * som.c (som_prep_for_fixups): Detect section symbols based
on either the lack of private data or the symbol flags.  Do not
        munge section symbol names anymore -- they no longer confuse GDB.
        (som_begin_writing): Leave space for an exec header if writing
        an executable.
        (som_slurp_symbol_table): Recognize both forms of section symbol
        names "L$0\002" and "$<FOO>$".  Change the name of "L$0\002"
        section symbols to be the name of the section they represent.
        Debugging  symbols begin with "L$0\001", not just "L$".
1994-03-16 08:03:46 +00:00
Jeff Law
1d483829ad * objcopy.c (filter_symbols): Use bfd_is_local_label to determine
if a symbol represents a compiler-generated local label.
	(copy_object): Give the BFD backends a chance to copy any private
	bfd data from the input BFD to the output BFD.
	(setup_section): Give the BFD backends a chance to copy any private
	section data from the input section to the output section.
1994-03-16 07:04:42 +00:00
Jeff Law
5b3577cb7a * bfd-in2.h, libbfd.h, libcoff.h: Rebuilt.
* bfd-in.h (JUMP_TABLE): Add new entries to the jump table
	for bfd_copy_private_section_data, bfd_copy_private_bfd_data,
	and bfd_is_local_label.

	* targets.c: Add new entries to the bfd_target structure.

	* bfd.c (bfd_copy_private_bfd_data): New definition.

	* section.c (bfd_copy_private_section_data): New definition.

	* syms.c (bfd_is_local_label): New definition.

	* libbfd-in.h (bfd_generic_is_local_label): Declare.

	* libbfd.c (bfd_generic_is_local_label): New function.

	* *-core.c: Provide default definitions for new functions in
	the target vector which all point to bfd_false.

	* aout-target.h, coffcode.h, elf32-target.h elf64-target.h, ieee.c
	libaout.h, libecoff.h, nlm-target.h, oasys.c, srec.c, tekhex.c
	Default new vectors for copying private backend data to bfd_true.
	Default new vector for determining if a symbol is a local label
	to bfd_generic_is_local_label.

	* som.c (som_bfd_copy_private_section_data): New function.
	(som_bfd_is_local_label): New function.
	(som_bfd_copy_private_bfd_data): For now default to bfd_true.

	* elf32-hppa.c (hppa_elf_is_local_label): New function.
1994-03-16 07:02:05 +00:00
Ian Lance Taylor
0069bd06b3 * cf-m68klynx.c (CALC_ADDEND): Use _bfd_m68klynx_howto_table. 1994-03-16 04:57:11 +00:00
Peter Schauer
5bfc8dd536 * config/i386/tm-i386bsd.h: Give just macro name, not args, to #undef. 1994-03-15 21:47:34 +00:00
Peter Schauer
ae6d035d28 For Sunos 4.x targets, enable gdb to set breakpoints in shared
library functions before the executable is run. Retrieve dynamic
	symbols from stripped executables.
	* symtab.h (minimal_symbol_type):  Add mst_solib_trampoline type.
	* parse.c (write_exp_msymbol), symmisc.c (dump_msymbols),
	symtab.c (list_symbols):  Handle mst_solib_trampoline.
	* minsyms.c (lookup_minimal_symbol):  Handle mst_solib_trampoline
	for all targets, remove IBM6000_TARGET dependencies.
	* dbxread.c (read_dbx_dynamic_symtab):  New function.
	* dbxread.c (dbx_symfile_read):  Use it.
	* dbxread.c (SET_NAMESTRING):  Set namestring to
	"<bad string table index>" instead of "foo" if the string index is
	corrupt.
	* xcoffread.c (read_xcoff_symtab):  Use mst_solib_trampoline instead
	of mst_unknown.
	* symtab.c (list_symbols):  Take from_tty as parameter and pass it
	to break_command. Handle mst_file_* minimal symbol types.
1994-03-15 21:46:32 +00:00
Ken Raeburn
f1b4e13156 version 2.0 -> 2.2.1 1994-03-15 20:39:26 +00:00
Kung Hsu
b427690aac Modified Files:
ChangeLog c-exp.y

        * c-exp.y(yylex): fix potential memory overflow.
1994-03-15 19:45:04 +00:00
Per Bothner
e7b02f0e49 * config.guess: about target *-hitachi-hiuxwe2, fixed
machine guessing order.  [Hitachi's CPU_IS_HP_MC68K
	macro is incorrect.]
1994-03-15 18:56:22 +00:00