Commit Graph

14241 Commits

Author SHA1 Message Date
Ian Lance Taylor 0f6c885ef0 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
now relative to the section, not absolute.
	* ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
	get the file name when there is a N_SO directory name.  When
	handling stabs, remember that section->vma was added to the
	offset.
PR 8223.
1995-10-18 17:29:38 +00:00
Ken Raeburn dd1a53167c keep testsuite when doing "make distclean" 1995-10-18 17:25:31 +00:00
Ken Raeburn 625f4e4830 * stabs.c (aout_process_stab): Insert debug symbol into symbol chain after
parsing value expression, if any, to avoid separating continued .stabs lines.
1995-10-18 16:26:46 +00:00
Jeff Law 5812b9a12d * hppa-tdep.c (frame_chain): Fix more obscure problems caused
by system calls that core dump processes without saving all
        the register state.
1995-10-18 05:48:23 +00:00
Jeff Law 00c916f4a8 * Many files: When warning about suppressed tests due to a
nonexistant test binary, avoid incrementing the warning count.

Fixes bogus UNRESOLVED test results.
1995-10-18 05:07:51 +00:00
Ian Lance Taylor 5df68a88c4 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
Search trinary.cond rather than searching trinary.lhs twice.  From
	linli@ihp.PHys.ethz.CH.
1995-10-17 22:38:50 +00:00
Ian Lance Taylor 235c6a672f * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
directory searching code into gld${EMULATION_NAME}_search_dir.
	(gld${EMULATION_NAME}_search_dir): New static function, extracted
	from gld${EMULATION_NAME}_find_so.
	(global_needed, global_found): New static variables.
	(gld${EMULATION_NAME}_after_open): New static function.
	(gld${EMULATION_NAME}_search_needed): New static function.
	(gld${EMULATION_NAME}_try_needed): New static function.
	(gld${EMULATION_NAME}_check_needed): New static function.
	(ld_${EMULATION_NAME}_emulation): Use new after_open function.
	* ld.texinfo, ld.1: Mention -rpath-link on SunOS.
1995-10-17 22:36:25 +00:00
Ian Lance Taylor 11fa66365b * sunos.c (struct sunos_link_hash_table): Add needed field.
(sunos_link_hash_table_create): Call bfd_release, not free.
	(sunos_link_hash_table_create): Initialize needed field.
	(sunos_add_dynamic_symbols): Record needed objects.
	(bfd_sunos_get_needed_list): New function.
	* bfd-in.h (bfd_sunos_get_needed_list): Declare.
	* bfd-in2.h: Rebuild.
1995-10-17 22:30:42 +00:00
Jeff Law ecf9ecee3c * config/pa/hppahpux.mt (XDEPFILES): Remove bogus definition.
* config/pa/hppapro.mt (XDEPFILES): Likewise.
1995-10-17 16:41:30 +00:00
Ian Lance Taylor 03165292c0 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
(eelf32lppc.c): Likewise.
	* emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
	(GENERATE_SHLIB_SCRIPT): Define as yes.
1995-10-17 16:23:59 +00:00
Fred Fish cd857a2da0 Fix typo 1995-10-17 15:21:36 +00:00
Ian Lance Taylor b5f076d4aa * configure.tgt (powerpc-*-aix*): New target; use aixppc.
(rs6000-*-aix*): New target; use aixrs6.
	* emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
	* emultempl/aix.em: New file.
	* scripttempl/aix.sc: New file.
	* Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
	(eaixppc.c, eaixrs6.c): New targets.
1995-10-16 23:19:04 +00:00
Ian Lance Taylor 54406786f0 * bfd-in.h (struct bfd_link_needed_list): Rename from
bfd_elf_link_needed_list.
	* bfd-in2.h: Rebuild.
	* elf.c, elflink.h, libelf.h: Corresponding changes.
1995-10-16 23:10:56 +00:00
Ian Lance Taylor dd98464413 Add start at AIX linker support; no shared libraries yet.
* xcofflink.c: New file.
	* configure.in (rs600coff_vec): Use xcofflink.o.
	* configure: Rebuild.
	* libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
	fields.
	(struct xcoff_section_tdata): Define.
	(xcoff_section_data): Define macro.
	(_bfd_xcoff_bfd_link_hash_table_create): Declare.
	(_bfd_xcoff_bfd_link_add_symbols): Declare.
	(_bfd_xcoff_bfd_final_link): Declare.
	(_bfd_ppc_xcoff_relocate_section): Declare.
	* libcoff.h: Rebuild.
	* coff-rs6000.c: Clean up a bit.
	(xcoff_mkobject): Default modtype to 1L, not RE.  Initialize
	cputype, csects, and debug_indices.
	(xcoff_copy_private_bfd_data): Copy cputype.
	(xcoff_howto_table): Rename from rs6000coff_howto_table.
	(xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
	(xcoff_reloc_type_lookup): Rename from
	rs6000coff_reloc_type_lookup.
	(coff_relocate_section): Define.
	(_bfd_xcoff_sizeof_headers): Define.
	(_bfd_xcoff_bfd_get_relocated_section_contents): Define.
	(_bfd_xcoff_bfd_relax_section): Define.
	(_bfd_xcoff_bfd_link_split_section): Define.
	(rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
	coff.
	* coffcode.h (coff_compute_section_file_positions): If AIX,
	increment sofar by SMALL_AOUTSZ if not executable.
	(coff_write_object_contents): If AIX, always output an a.out
	header; if not executable, header size of SMALL_AOUTSZ.
	* hash.c (struct bfd_strtab_hash): Add xcoff field.
	(_bfd_stringtab_init): Initialize xcoff field.
	(_bfd_xcoff_stringtab_init): New function.
	(_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
	(_bfd_stringtab_emit): In XCOFF mode, write out length.
	* libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
	* libbfd.h: Rebuild.
	* Makefile.in: Rebuild dependencies.
	(BFD32_BACKENDS): Add xcofflink.o.
	(CFILES): Add xcofflink.c.
ld -r works on hello, world.
1995-10-16 21:54:48 +00:00
Steve Chamberlain c974e19ef4 * libcoff-in.h (pe_data_type.in_reloc_p): New. 1995-10-16 21:46:48 +00:00
Michael Meissner 5b0d3b1490 Move counting of instructions into the semantic routines. 1995-10-16 21:36:01 +00:00
Ian Lance Taylor 54e3c94698 * rs6000.h (SMALL_AOUTSZ): Define. 1995-10-16 21:24:29 +00:00
Michael Meissner 9aa8a78839 Speedups from Andrew 1995-10-16 20:17:35 +00:00
Stu Grossman 4704fd9cab * remote-mips.c: Add support for speedy (about 10x faster)
downloads.
1995-10-16 19:02:41 +00:00
Stu Grossman 59227c078d * remote-array.c: Move baud_rate initialization from
_initialize_array to array_open.  It was forcing the baud rate of
	all targets to be 4800 baud!  Seems like I've fixed this before...
	* config/mips/idt.mt (TDEPFILES):  Remove remote-array.o.  This
	has *nothing* to do with IDT!!!
1995-10-16 18:59:54 +00:00
Stu Grossman d807bd8772 * gdbtk.c (gdb_disassemble): Use fprintf_unfiltered instead of
fprintf_filtered.
1995-10-16 18:54:29 +00:00
Stu Grossman 1480482acb * Makefile.in sh3-rom.c config/sh/sh.mt config/sh/tm-sh.h: Add
sh3 monitor support.
	* monitor.c:  Cleanup regexp compilation stuff to make it easier
	to use several regexps.
	* monitor.h:  Get rid of struct rom_cmd_data.  It's no longer used.
	* config/m68k/tm-monitor.h:  Don't redefine NUM_REGS here.  It just
	causes GDB to crash.
1995-10-16 18:51:15 +00:00
Stu Grossman 934ec87c6b * sparcl-tdep.c: Cleanup serial error handling. 1995-10-16 18:41:17 +00:00
Stu Grossman 4930f0a7f4 * dcache.c: Change default value of remotecache to off. It just
screws up too many targets.
	* sparcl-stub.c:  Add prototypes to many forward decls.
	* Create private copies of strlen, strcpy, and memcpy to prevent
	chaos when user steps into them.
	* (trap_low handle_exception):  Clean up DSU support code
	(hardware breakpoints).  Move lots of stuff from asm-land to
	C-land (make it much easier to #ifdef if necessary).  Also, use
	trap 255 to get into break mode instead of doing a DSU register
	write, which may trash the register.
	* (putpacket):  Don't check return value of putDebugChar.  It
	returns void...
1995-10-16 18:25:19 +00:00
Michael Meissner d75c2e0f5e Add flags for common/any support 1995-10-16 17:00:16 +00:00
Jeff Law 5cee13532b * config.guess: Recognize HP model 819 machines has having
a PA 1.1 processor.
Already in the official version at the FSF.
1995-10-16 15:49:13 +00:00
Ian Lance Taylor 0852080ffa * internal.h (XMC_TD): Define. 1995-10-16 15:12:53 +00:00
Ian Lance Taylor 33a8c1b6cf * config/tc-mips.c (mips_elf_pseudo_table): Remove.
(mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table.
1995-10-16 14:57:35 +00:00
Ian Lance Taylor 22a35f0b05 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
SEC_NO_FLAGS, for .acommon section.  From Peter Schauer
	<Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
1995-10-16 14:54:17 +00:00
Ian Lance Taylor e7876e46ee * configure: Fix sed loop which substitutes for CC and CXX to
avoid bug found in various sed implementations.
1995-10-16 14:50:53 +00:00
Michael Meissner 42b5ed2dfc Fix last fixes #3 1995-10-16 11:44:45 +00:00
Michael Meissner 653b59c8a6 Fix last fixes #2 1995-10-16 11:35:05 +00:00
Michael Meissner 17e2f77408 Fix last fixes 1995-10-16 11:23:34 +00:00
Michael Meissner 9f2c8daa27 Change error message 1995-10-16 11:18:23 +00:00
Michael Meissner b6b8f91187 Allow duplicate cmp instructions for -mcom 1995-10-16 11:10:22 +00:00
Michael Meissner 27ec941d72 spelling typo 1995-10-16 10:34:21 +00:00
Michael Meissner 958e09079d For -mcom, do not allow only POWER|PPC instructions. 1995-10-16 10:27:49 +00:00
Michael Meissner 4c2935f4c0 Add -mcom support. 1995-10-16 02:09:01 +00:00
Stan Shebs cd8a3d845b * rs6000-tdep.c: Don't include a.out.h, improve some formatting. 1995-10-15 23:23:01 +00:00
Michael Meissner fb417a2138 Add in_reloc_p, cloned from coff-i386.c 1995-10-15 01:37:23 +00:00
Steve Chamberlain a325a02e36 Add sim_set_callbacks. 1995-10-13 22:06:30 +00:00
Ken Raeburn 106773f836 Use system page size for obstack chunk size instead of 128, permitting override
by application.

Include missing patch from Andreas Schwab's changes.

Fix up minor configuration problems.
1995-10-13 22:03:11 +00:00
Steve Chamberlain 4a29aa8458 * srcwin.cpp (CSrcScroll1::OnDraw): Don't show disabled
splats unless a breakpoint is possible.
	* gui.mak: Include mips config.
	* prebuilt/mips/elf32-target.h: Regenerated.
1995-10-13 21:15:18 +00:00
Michael Meissner 4444ae6e3d Do not give error message if dlltool was not built 1995-10-13 20:11:35 +00:00
Steve Chamberlain b1e463692c Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
* coff-arm.c (in_reloc_p): New.
	* coff-i386.c (in_reloc_p): New.
	* coffcode.h: Allways include peicode.h if COFF_WITH_PE.
	(coff_write_object_contents): Only set has_reloc_section
	if PE_IMAGE.
	* cofflink.c (_bfd_coff_generic_relocate_section): Call
	in_reloc_p to decide if reloc should be emitted.
	* libcoff.h (pe_data_type.in_reloc_p): New.
	* peicode.h (pe_mkobject): Initialize in_reloc_p.
1995-10-13 18:28:31 +00:00
Steve Chamberlain 87b1a0733b Fri Oct 13 11:04:37 1995 steve chamberlain <sac@slash.cygnus.com>
* deflex.l: Allow quoting of IDs.
	* defparse.y (%union): string deleted.
	(command): DESCRIPTION takes ID.
	* dlltool.c (gen_def_file): Quote outgoing name if
	necessary.  Preserve NONAME.
	(gen_lib_file): Run ranlib.
	(workout_prefix): Deleted.
	(main, usage, long_options): Add --as, --ranlib, --ar options.
1995-10-13 18:08:46 +00:00
Jeff Law 95037710ca * somsolib.c (som_solib_add): Just give a warning if a file
mentioned in the dld_list can't be found.
Warning seems more reasonable than croaking.

        * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP): Dig out
        the PC from the PC queues rather than %r31.
Fixes net bug.  Might also fix one of the hpux10 corefile.exp failures,
not sure (will test when I get back monday morning).
1995-10-13 17:05:53 +00:00
Michael Meissner a1fe883fd0 Rename trace to ppc_trace; Remove extra static. 1995-10-13 14:01:32 +00:00
Michael Meissner 9f5912cb98 Format #instructions with commas 1995-10-13 01:10:06 +00:00
Jeff Law 148070cca4 * corelow.c (core_open): Don't update the to_sections and
to_sections_end fields in core_ops here.  It's too late.
        * irix5-nat.c (solib_add): Update the to_sections and
        to_sections_end fields in core_ops here if needed.
        * osfsolib.c (solib_add): Likewise.
        * rs6000-nat.c (xcoff_reload_core): Likewise.
        * solib.c (solib_add): Likewise.
        * somsolib.c (solib_add): Likewise.
1995-10-12 23:26:06 +00:00