Commit Graph

8222 Commits

Author SHA1 Message Date
Ian Lance Taylor
062189c6ea * elfcode.h (bfd_section_from_shdr): Don't dump core if target
section has no ELF section data.
	(elf_make_sections): Set addralign of reloc section to 4.
	(elf_fake_sections): Likewise.
	(map_program_segments):	Don't consider section 0.
	(assign_file_positions_except_relocs): Don't consider section 0.
	In the main loop, skip the symtab and strtab sections, since their
	positions are set elsewhere.
	(swap_out_syms): Set addralign of symtab section to 4.  Set
	addralign of strtab sections to 1.
	(assign_file_positions_for_relocs): Don't consider section 0.
	(write_object_contents): Don't write out section 0.
	(sym_is_global): Take abfd argument.  Call
	elf_backend_sym_is_global if it is not NULL.
	(elf_map_symbols): Pass abfd to sym_is_global.
	(write_object_contents): Call elf_backend_final_write_processing
	if it is defined.
1993-11-18 17:12:47 +00:00
Ian Lance Taylor
643e9fc768 * libelf.h (struct elf_backend_data): Added fields
elf_backend_sym_is_global and elf_backend_final_write_processing.
	* elf32-target.h (elf32_bed): Added corresponding initializers.
	* elf64-target.h (elf64_bed): Likewise.
1993-11-18 17:10:42 +00:00
Fred Fish
7855533586 Fix for PR 3978:
* valprint.c (val_print_string):  When looking for a null
	terminator compare current bufsize to fetchlimit to determine
	when to stop, instead of computing buffer+fetchlimit which
	may overflow for very large limits (like "unlimited").
1993-11-18 16:34:43 +00:00
Kung Hsu
4f65eece26 Modified Files:
ChangeLog eval.c valarith.c

        * eval.c(evaluate_subexp): to use unified search so type conversion
        operator works in calling method.
        * valarith.c(value_x_binop, value_x_unop): same as above.
1993-11-18 02:30:33 +00:00
Ian Lance Taylor
c9668c588a * libecoff.h: Include coff/ecoff.h.
(struct ecoff_backend_data): Move external debugging information
	fields into a single field pointing to an ecoff_debug_swap
	structure.
	(ecoff_data_type): Move debugging information fields into a single
	field pointing to an ecoff_debug_info structure.
	* coff-alpha.c, coff-mips.c, ecoff.c: Corresponding changes.
1993-11-18 00:07:33 +00:00
Ian Lance Taylor
4f09de58cd * mipsread.c: Change use of ECOFF information to correspond to
changes in bfd/libecoff.h.
	(mipscoff_symfile_offsets): Made static.
1993-11-17 23:58:46 +00:00
Ian Lance Taylor
00f4e65966 * configure.in (mips-*-irix5*): New target. Use elf and mips-big. 1993-11-17 23:26:43 +00:00
Ian Lance Taylor
9cc8106c47 * Makefile.in (REAL_SOURCES): Added ecoff.c.
(REAL_HEADERS): Added ecoff.h.
	(OBJS): Added ecoff.o.
	(ecoff.o): New target.
1993-11-17 23:25:35 +00:00
Stan Shebs
55ff7aef7e Wed Nov 17 13:56:10 1993 Stan Shebs (shebs@rtl.cygnus.com)
* i386lynx.c (swap_std_reloc_in, swap_ext_reloc_in): Ignore
	garbage bits appearing in the upper end of symbolnums.

	* config/sparc-lynx.mt (TDEFINES): Add -DFPRINTF_ALREADY_DECLARED.
1993-11-17 23:25:23 +00:00
Ian Lance Taylor
9faec336f4 New files for ECOFF debugging split out of config/obj-ecoff.c. 1993-11-17 23:23:39 +00:00
Ian Lance Taylor
a58374d72a * write.c (is_dnrange): Do not define if md_relax_frag is defined.
(relax_segment): If md_relax_frag is defined, use it to handle a
	frag of type rs_machine_dependent rather than looking through
	md_relax_table.

	* write.c (relax_and_size_seg): Don't set SEC_HAS_CONTENTS for a
	bss section.  Set SEC_RELOC if there are any relocations, even for
	a zero size section.

	* write.c (write_relocs): In RELOC_EXPANSION_POSSIBLE case, based
	data offset on reloc[0]->address rather than reloc[j]->address, so
	that multiple relocs can affect different memory locations.

	* write.c (chain_frchains_together, relax_and_size_seg,
	adjust_reloc_syms, write_relocs): Make third argument PTR, not
	char *, to match definition of bfd_map_over_sections.
1993-11-17 23:06:12 +00:00
Ian Lance Taylor
46b8119005 * read.c (read_a_source_file): If we find a bad pseudo-op,
do a continue to go on to the next line rather than a break.
	Removed duplicate bad pseudo-op code which was never executed.

	* read.c (s_lcomm): Do not require a comma after the name.

	* read.c (s_lcomm): Set bss flag for .sbss section if used.
1993-11-17 23:03:42 +00:00
Jeffrey Osier
3883531f52 * nlmconv.1: new man page
* objcopy.1:  fixed format errors
1993-11-17 22:51:16 +00:00
Ian Lance Taylor
2dbe3409d7 * mips.h: (M_J_A): Added.
(M_LA): Removed.
1993-11-17 22:22:07 +00:00
Sean Eric Fagan
b4a79a1600 Use sun4sol2 for a target of sparc-netware. 1993-11-17 22:20:44 +00:00
Ian Lance Taylor
777bb8e2e4 * mips.h (struct ecoff_debug_info): Define. 1993-11-17 22:19:49 +00:00
Sean Eric Fagan
c96451db27 Need to declare nlm32_sparc_vec; oopsie. 1993-11-17 20:31:32 +00:00
Sean Eric Fagan
bf323de1a3 New files and changed files for NetWare/SPARC. 1993-11-17 19:56:30 +00:00
Sean Eric Fagan
38f422db00 Don't want the new files to disappear unexpectedly! 1993-11-17 19:54:51 +00:00
Sean Eric Fagan
4a703e0610 Two more files in BFD updated for NetWARE/SPARC. 1993-11-17 19:54:02 +00:00
Sean Eric Fagan
cecbf7ed45 NetWare/SPARC changes; required changes to the interface as well as
adding files.
1993-11-17 19:52:09 +00:00
Kung Hsu
4062025808 Modified Files:
ChangeLog eval.c valops.c

        * valops.c (typecmp): improve prototype matching when calling
        a method. Make 'p (*(ostream *) &cout) << "lll" ' to work.
        * eval.c(evalute_subexp): fix operator search problem when call
        like  p x.'operator+'(i).
1993-11-17 18:07:58 +00:00
Stu Grossman
38ee1de094 Please CVS, let me kill this file! 1993-11-17 17:40:24 +00:00
Stu Grossman
4451055367 Please CVS, let me kill these files... 1993-11-17 17:39:00 +00:00
Ian Lance Taylor
94333f2739 * Makefile.in: Use CFLAGS as well as LDFLAGS when linking. 1993-11-17 17:05:33 +00:00
David MacKenzie
80f31fbb6a fix typo 1993-11-17 12:52:07 +00:00
Stu Grossman
92d47a66ec * i386ly-nat.c, i386lynx-nat.c, m68kly-nat.c: Remove. Move
common code into lynx-nat.c.
	* lynx-nat.c:  New module.  Contains portable code for Lynx native
	stuff (mostly ptrace related).
	* config/i386/i386lynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o
	* config/m68k/m68klynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o

	* config/nm-lynx.h, config/tm-lynx.h:  New files to contain
	non-architecture specific native and target defs.
	* config/i386/nm-i386lynx.h, config/i386/tm-i386lynx.h,
	config/m68k/nm-m68klynx.h, config/m68k/tm-m68klynx.h:  Move all
	(arch) portable stuff into ../{tm nm}-lynx.h.
1993-11-17 07:56:28 +00:00
Stu Grossman
d3225ea0ac * i386ly-nat.c, i386lynx-nat.c, m68kly-nat.c: Remove. Move
common code into lynx-nat.c.
	* lynx-nat.c:  New module.  Contains portable code for Lynx native
	stuff (mostly ptrace related).
	* config/i386/i386lynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o
	* config/m68k/m68klynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o

	* config/nm-lynx.h, config/tm-lynx.h:  New files to contain
	non-architecture specific native and target defs.
	* config/i386/nm-i386lynx.h, config/i386/tm-i386lynx.h,
	config/m68k/nm-m68klynx.h, config/m68k/tm-m68klynx.h:  Move all
	(arch) portable stuff into ../{tm nm}-lynx.h.
1993-11-17 07:17:45 +00:00
Jim Kingdon
e63e7f9f22 * mh-a68bsd: Define CC to gcc. 1993-11-17 04:57:03 +00:00
Jeff Law
c5e9ccd030 * config/tc-hppa.c (pa_ip): Fix thinko in 21bit range check. 1993-11-17 04:40:15 +00:00
Jim Kingdon
8a48c3936b * COPYING.LIB: New file (standard version 2 LGPL, as already cited
by the source files).
1993-11-17 04:35:46 +00:00
Jim Kingdon
d47a7f52cf * symtab.c (gdb_mangle_name): Only assume that the physname is
the entire mangled name if it looks like the mangled name of a
	constructor.  Needed for testsuite to work with GCC 2.4.5.
1993-11-17 04:24:34 +00:00
Jim Kingdon
dfbaacfa1f * gdb.t06/signals.exp: Add kludge to force re-sync. 1993-11-17 03:59:25 +00:00
Jim Kingdon
641436212f * gdb.t00/teststrategy.exp: If we accidently send the "maint dump-me"
to xgdb instead of gdb, get out of gdb.
1993-11-17 03:11:30 +00:00
Stu Grossman
069e056621 * i386ly-nat.c, i386lynx-nat.c, m68kly-nat.c: Remove. Move
common code into lynx-nat.c.
	* lynx-nat.c:  New module.  Contains portable code for Lynx native
	stuff (mostly ptrace related).
	* config/i386/i386lynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o
	* config/m68k/m68klynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o

	* config/nm-lynx.h, config/tm-lynx.h:  New files to contain
	non-architecture specific native and target defs.
	* config/i386/nm-i386lynx.h, config/i386/tm-i386lynx.h,
	config/m68k/nm-m68klynx.h, config/m68k/tm-m68klynx.h:  Move all
	(arch) portable stuff into ../{tm nm}-lynx.h.
1993-11-17 01:38:11 +00:00
Stu Grossman
343c1a9641 * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc.
* m68klynx.c:  Define core file macros.
	* hosts/i386lynx.h, hosts/m68klynx.h, hosts/lynx.h:  Move all
	non-architecture specific stuff into lynx.h.
1993-11-17 01:11:30 +00:00
Jim Kingdon
794057a7c0 * i386linux.c: Define new macro ZMAGIC_DISK_BLOCK_SIZE to 1024, and
change PAGE_SIZE to 4096.
1993-11-16 23:07:40 +00:00
David D. Zuhn
20572f5f4e don't build ld on i386-sysv4 platforms 1993-11-16 23:06:48 +00:00
Jim Kingdon
becf2d8abc * config.guess: Recognize Apollos (using environment variables).
* configure.in: Don't configure ld, binutils, or gprof for Apollo.
1993-11-16 20:43:36 +00:00
Jim Kingdon
6e03b2b87e * a68v-nat.c: Replace with new version from Troy Rollo. The
version	I am replacing appears to be an old copy of sun3-nat.c.
	* dstread.c (dst_symfile_read): Replace sort_all_symtab_syms call
	with loop.
1993-11-16 20:29:03 +00:00
Jim Kingdon
f0c8468387 * Makefile.in (TAGS): Depend on TAGFILES_{NO,WITH}_SRCDIR.
* Makefile.in: (HFILES,TAGFILES): Split into _WITH_SRCDIR and
	_NO_SRCDIR versions.
	(TAGS): Only add srcdir to TAGFILES_NO_SRCDIR.
	(This is part of a long saga involving me putting srcdir on
	everything (perhaps for now-obsolete reasons, I forget), Rich
	removing the srcdir from everything, Stu putting it back some
	places for Sun make, and me just now getting around to fixing
	`make TAGS' again).
1993-11-16 19:51:59 +00:00
Jim Kingdon
92a6c3cc31 Add ChangeLog entry for change by Rob 1993-11-16 16:27:54 +00:00
Jim Kingdon
2ede707a97 Correct typos in sac ChangeLog entry 1993-11-16 16:25:21 +00:00
Kung Hsu
9ed1a1d9ca Modified Files:
ChangeLog stack.c

        * stack.c(print_frame_info): print demangled function name
        ansi style.
1993-11-16 02:58:42 +00:00
Steve Chamberlain
1b68cb4fb3 How many times do I have to do this... 1993-11-15 23:49:21 +00:00
Steve Chamberlain
2f5e17369c Use remote-e7000.c 1993-11-15 23:29:56 +00:00
Jim Kingdon
5a356fb84f * config/i386/linux.mh: Remove XM_CLIBS, TERMLIB, SYSV_DEFINE, and
REGEX.
	* config/i386/xm-linux.h: Don't include xm-i386v.h.  Define
	HOST_BYTE_ORDER ourselves.  Define HAVE_TERMIOS not HAVE_TERMIO.
	Define NEED_POSIX_SETPGID.  Include unistd.h.
1993-11-15 23:29:10 +00:00
Steve Chamberlain
863099f41e * remote-e7000.c: New file to cope with the Hitachi E7000 ICE.
* remote-utils.c, remote-utils.h (gr_load_image): New function to
	download to target.
	* h8300-tdep.c, h8500-tdep.c, remote-z8k.c, sh-tdep.c z8k-tdep.c
	(sim_load): delete.
	* remote-sim.c (sim_load): Use gr_load_image.
	* config/sh/sh.mt: Add remote-e7000
1993-11-15 23:26:56 +00:00
Steve Chamberlain
cdf73c5c3b Initial revision 1993-11-15 23:25:03 +00:00
Steve Chamberlain
ef419d261c Why does cvs keep core dumping? 1993-11-15 23:22:31 +00:00