Commit Graph

14419 Commits

Author SHA1 Message Date
Ian Lance Taylor 73246ff837 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
static function.
	* xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
	full_aouthdr flag here...
	(_bfd_xcoff_bfd_final_link): ...not here.
1995-11-01 16:47:14 +00:00
Ian Lance Taylor 2a80ec10a8 * emultempl/aix.em: Include ldgram.h.
(gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
	AIX 4.1.
	* Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
1995-11-01 16:46:19 +00:00
Michael Meissner 4ac24d7673 remove extra #endif 1995-11-01 03:25:04 +00:00
Michael Meissner 5281197d1e fix typo in last change 1995-11-01 03:02:04 +00:00
Jason Molenda 3067858d09 Regenerated. 1995-11-01 02:30:41 +00:00
J.T. Conklin 39772dd8f1 * configure.in (host_makefile_frag): Use m68k-sun-sunos* instead
of m68k-sun-* when selecting mh-sun3 to avoid matching NetBSD/sun3
systems.
1995-11-01 02:02:21 +00:00
Jim Wilson 52b5deb997 Patches to make fixincludes work for cross toolchains. 1995-11-01 01:03:31 +00:00
Fred Fish 76ab264518 * arc-dis.c: Include elf-bfd.h rather than libelf.h. 1995-11-01 00:01:39 +00:00
Ian Lance Taylor b629f62767 * config/tc-ppc.c (ppc_lglobl): Do the right thing. 1995-11-01 00:00:47 +00:00
Fred Fish a99d0ef1ea * elfread.c: Include elf-bfd.h rather than libelf.h. 1995-10-31 23:58:52 +00:00
Fred Fish d033806fda * config/obj-elf.h: Include bfd/elf-bfd.h rather than
bfd/libelf.h.
1995-10-31 23:40:03 +00:00
Ian Lance Taylor 59c80ca243 Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
* ecoff.c (ecoff_frob_symbol): Warn about weak common symbols.
1995-10-31 23:30:21 +00:00
Fred Fish 6ab826bd98 * libelf.h: Rename to elf-bfd.h to avoid conflict with
systems that have a system <libelf.h>.
	* Makefile.in: Globally replace libelf.h with elf-bfd.h.
	* bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
	elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
	elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
	elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
	elfxx-target.h: Include elf-bfd.h rather than libelf.h.
	* elfxx-target.h: Change libelf.h reference to elf-bfd.h.
1995-10-31 23:29:05 +00:00
Ian Lance Taylor 02a5d23525 Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
* configure.host (alpha-*-linux*): New host.
	* configure.tgt (alpha-*-linux*): New target.
1995-10-31 23:23:48 +00:00
Fred Fish c7c26058d8 * gdb.base/return.exp (return_tests): Change xfail for test
"correct value returned double test" to stop xfailing at
	Solaris 2.5.  Apparently the bug has been fixed.
1995-10-31 23:18:28 +00:00
Ian Lance Taylor 7ab1edc8f0 * config/tc-ppc.c (ppc_bb): Call SF_SET_PROCESS.
(ppc_eb): Likewise.  Set the storage class to C_BLOCK, not C_FCN.
	(ppc_frob_symbol): Don't change C_BLOCK symbols to C_HIDEXT.
	* config/obj-coff.c (coff_frob_symbol): Don't call
	SA_SET_SYM_ENDNDX with the current symbol; call it with the next
	one.  If OBJ_XCOFF, try to figure out whether the symbol is going
	to be dropped.
1995-10-31 22:55:22 +00:00
Ian Lance Taylor d7b2038fac Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
* configure.in (alpha-*-linux*): Use ecoff.
	* configure: Rebuild.
	* ecoff.c (ecoff_directive_extern): New function.
	(ecoff_directive_weakext): New function.
	(ecoff_build_symbols): Handle weak symbols.
	(ecoff_setup_ext): Likewise.
	* ecoff.h (ecoff_directive_extern): Declare.
	(ecoff_directive_weakext): Declare.
	* symbols.c (S_IS_WEAK): New function.
	* symbols.h (S_IS_WEAK): Declare.
	* config/obj-ecoff.c (obj_pseudo_table): Add "extern" and
	"weakext".
	* config/tc-mips.c (mips_pseudo_table): Remove "extern".
	(s_extern): Remove.
1995-10-31 21:41:59 +00:00
Michael Meissner 5d0e859038 map , to spaces in --enable-sim-cflags 1995-10-31 20:59:19 +00:00
Ian Lance Taylor 0652d579db Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
* ecoff.c (ecoff_set_symbol_info): Add new parameter weak.  If
	set, set BSF_WEAK in symbol.  Change all callers.
	(ecoff_get_extr): Set weakext based on BSF_WEAK.
	(ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
	_bfd_generic_link_add_one_symbol.
	(ecoff_indirect_link_order): Check that the section tdata relocs
	are not NULL before using them.
1995-10-31 20:50:25 +00:00
Ian Lance Taylor 999cc186c5 Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
* configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
	define TRAD_HEADER as hosts/alphalinux.h.
	* configure: Rebuild.
	* hosts/alphalinux.h: New file.
	* trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
	not int.
1995-10-31 20:32:53 +00:00
Ian Lance Taylor d29120d2ff really make import_file static 1995-10-31 20:28:25 +00:00
Michael Meissner 4b935ed4a4 Add various switches to control how the simulator is built 1995-10-31 20:24:41 +00:00
Ian Lance Taylor 0e3dd9a071 * config/tc-ppc.c (ppc_frob_symbol): Set BSF_NOT_AT_END for
symbols with csect aux entries.
1995-10-31 20:22:04 +00:00
Steve Chamberlain 82dbdc50e7 * Makefile.in, configure.in: Make winsup builds work with
new scheme.
1995-10-31 20:01:18 +00:00
Ian Lance Taylor 2bd0aeb941 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
C_ECOMM storage classes.
1995-10-31 19:20:58 +00:00
Ian Lance Taylor 31751d9d3e * config/tc-ppc.c (md_pseudo_table): Add "bc" and "ec".
(ppc_stab_symbol): New static variable.
	(ppc_change_csect): Check that ppc_toc_csect is not NULL.
	(ppc_stabx): Set ppc_stab_symbol around call to symbol_make.  Set
	sy_tc.real_name to the stab string.
	(ppc_bc, ppc_ec): New static functions.
	(ppc_canonicalize_symbol_name): If ppc_stab_symbol is set, don't
	do anything.
	(ppc_symbol_new_hook): If ppc_stab_symbol is set, don't look for a
	suffix.
1995-10-31 19:16:02 +00:00
Steve Chamberlain 9cbf6c0e3a Tue Oct 31 10:42:42 1995 steve chamberlain <sac@slash.cygnus.com>
* win32-nat.c (xlate_exception): Treat a stack overflow like a SEGV.
1995-10-31 18:50:02 +00:00
Steve Chamberlain b4fdbe09dc Tue Oct 31 10:38:58 1995 steve chamberlain <sac@slash.cygnus.com>
* display.c, parens.c, readline.c, rldefs.h: Change use of
	WIN32 to __WIN32__.
1995-10-31 18:40:29 +00:00
Steve Chamberlain 309dca2a1e * Makefile.in, configure.in: Make winsup builds work with
new scheme.
1995-10-31 18:32:51 +00:00
Ian Lance Taylor cbdf59ad43 * input-scrub.c (input_scrub_push): Reset sb_index. 1995-10-31 18:30:02 +00:00
Michael Meissner 5b4d72dd73 New changes from Andrew 1995-10-31 18:29:37 +00:00
Ian Lance Taylor 5666490bee * emultempl/aix.em (export_files): Remove.
(import_files): Make static.
	(struct export_symbol_list): Define.
	(export_symbols): New static variable.
	(gld${EMULATION_NAME}_parse_args): Handle an initial -b option
	correctly.  Call read_file for an export file.
	(gld${EMULATION_NAME}_before_allocation): Call
	bfd_xcoff_export_symbol for each export symbol, rather than
	calling read_file for each export file.
	(gld${EMULATION_NAME}_read_file): For an export file, make the
	exported symbols undefined, and store them on the export_symbols
	list.
1995-10-31 17:39:55 +00:00
Ian Lance Taylor e608052057 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
of xcoff_mark.
	(xcoff_mark): Call xcoff_mark_symbol.
	(bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
	(bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
	doing it by hand.
	(xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
1995-10-31 17:36:12 +00:00
Ken Raeburn e295a90d12 keep files added by Niklas Hallqvist 1995-10-31 07:43:58 +00:00
Ken Raeburn 3b0fb9c90d Put the "some mentions of sanitize..." check *after* the GM sanitization,
and make it a fatal error.
1995-10-31 02:01:13 +00:00
Ian Lance Taylor 92caaa6a62 * configure.in: Build the linker on AIX. 1995-10-30 23:58:15 +00:00
Ian Lance Taylor f630a0a41a * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
field.
	(xcoff_find_reloc): New static function.
	(xcoff_link_add_symbols): Use it.
	(_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
	(xcoff_link_input_bfd): Handle C_BINCL and C_EINCL.  Don't
	relocate the value of C_DECL.
1995-10-30 23:53:16 +00:00
Ian Lance Taylor 91123dbe02 * listing.c (listing_newline): Don't create a frag in the absolute
section.
1995-10-30 23:30:24 +00:00
Per Bothner e66eb65843 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Add $(TARGET_SUBDIR)
where needed.
1995-10-30 20:57:41 +00:00
David Edelsohn fc3524a9cc * Makefile.in (all-gcc): Fix typo. 1995-10-30 20:47:56 +00:00
Ian Lance Taylor 5fe14a9f51 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
PR 8293.
1995-10-30 19:56:30 +00:00
Ian Lance Taylor c5ba27591a * objdump.c (objdump_print_value): New static function.
(objdump_print_address): Use it.  If we need the right section for
	the symbol, and we can't find it, print an offset from the section
	rather than using a symbol from some other section.
PR 8251.
1995-10-30 19:34:02 +00:00
Fred Fish 7efb4b4c8e * pr-5016.exp: xfail "whatis i" for sparc-sun-sunos4*, same as linux. 1995-10-30 03:15:12 +00:00
Fred Fish 1130734da5 * gdb.stabs/ecoff.sed: Remove comment lines except for first one.
IRIX 4.0 /bin/sed chokes on them, though they work fine elsewhere.
1995-10-29 20:31:03 +00:00
Fred Fish 0ff516fd7d * monitor.c: Include gnu-regex.h rather than system regex.h. 1995-10-29 19:28:08 +00:00
Steve Chamberlain 686941a9cb Sat Oct 28 23:51:48 1995 steve chamberlain <sac@slash.cygnus.com>
* defs.h: Test on name __WIN32__ rather than WIN32.
	* inflow.c (new_tty): Likewise
	* terminal.h: Likewise.
	* utils.c (initialize_utils): Likewise.
	* win32-nat.c (child_create_inferiror): Print error code when failing.
	* config/i386/win32.mh (XM_CLIBS): Need -lkernel32.
1995-10-29 06:58:26 +00:00
Per Bothner 136ca05d3a * Makefile.in ($(CHECK_TARGET_MODULES)): Fix typo. 1995-10-28 17:26:38 +00:00
Peter Schauer b1027aa458 * symtab.h (enum address_class): Add LOC_UNRESOLVED for
a location whose address has to be resolved via the minimal
	symbol table.
	* buildsym.c (finish_block), findvar.c (symbol_read_needs_frame,
	read_var_value), printcmd.c (address_info),
	symmisc.c (print_symbol, print_partial_symbol):  Handle
	LOC_UNRESOLVED.
	* stabsread.c (scan_file_globals):  Change unresolved LOC_STATIC
	symbols to LOC_UNRESOLVED. Remove rt_common_objfile lookup
	kludge, global common symbols are now handled by LOC_UNRESOLVED.
	(scan_file_globals_1):  Move code back to scan_file_globals,
	delete.
1995-10-28 11:57:02 +00:00
Steve Chamberlain 356c68ff62 Thu Oct 26 10:23:14 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (no_idata4, no_idata5): New.
	(arm_jtab): Use correct encoding of jump instruction.
	(usage, main, make_head, make_tail): Act on no_idata4, no_idata5.
1995-10-28 08:35:43 +00:00
Steve Chamberlain dff77ed71f Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
* cofflink.c (_bfd_coff_generic_relocate_section): Make
	callback decide what goes in .relocs.
	* pe[i]-i386.c (TARGET_UNDERSCORE): Define.
	* peicode.h (pe_mkobject_hook): Only copy aouthdr if
	there is one.
1995-10-28 08:30:37 +00:00