Commit graph

24049 commits

Author SHA1 Message Date
Nick Clifton
38c01dc96e Enable relocs for ldi:20 insn 1998-12-02 15:53:48 +00:00
Ian Lance Taylor
3ac83be0c7 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
link against a dynamic symbol with no type or size.
1998-12-02 05:59:07 +00:00
Stan Shebs
156eb5bc46 * gdbint.texinfo: Add some info about symbol readers.
(CHILL_PRODUCER, etc): Comment out descriptions, not useful.
	(IN_SOLIB_CALL_TRAMPOLINE): Rename info from IN_SOLIB_TRAMPOLINE.
	(IN_SOLIB_RETURN_TRAMPOLINE): Describe.
	(KERNEL_DEBUGGING, MIPSEL): No info about these, remove.
1998-12-02 01:55:32 +00:00
Ulrich Drepper
27f7e91adf Update. 1998-12-01 20:50:27 +00:00
Jim Wilson
16636918e8 patch for PR 18243.
* coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
	reloc_count and i long instead of unsigned long.  Handle error
	return from bfd_canonicalize_reloc.
1998-12-01 20:17:18 +00:00
Frank Ch. Eigler
3d7075f5f5 * A few more improvements to gx jit prototype.
[common/ChangeLog]
1998-12-01  Frank Ch. Eigler  <fche@elastic.org>
	* sim-gx-run.c (sim_engine_run): Use new tgx_info struct to
	collect run-time arguments to gx block.
	* sim-gx.h (sim_gx_function): Corresponding signature change.
	* sim-gx.c (sim_gx_compiled_block_f): Remove nonfunctional code to
	again compile a gx block source file.
	(sim_gx_compiled_block_dispose): Uninstall obsoleted gx block
	shared libraries.
	(sim_gx_block_translate): Always emit new "gx_label_NNNN" labels,
	for basic block entry points, even if !__GNUC__.
[m32r-gx/ChangeLog]
1998-12-01  Frank Ch. Eigler  <fche@elastic.org>
	* Makefile.in (SIM_OBJS): Don't build sim-core.o.
	* configure.in:	Added --enable-sim-inline support.
	Look for "getenv()" function.
	* configure: Rebuilt.
	* config.in: Rebuilt.
	* gx-translate.c: Include "sim-inline.c" for sim-core inlining.
	(m32r_gx_{load,store}*): Update signature.
	(tgx_emit_pre_function): Emit new "tgx_info" struct, update
	callback function signatures.
	(m32r_emit_*_insn): Use new callback signatures.  For all short
	branches in optimized mode, emit direct "goto gx_label_NNNN".
	(tgx_optimize_test): If the GX_OPTIMIZE environment variable is
	set, allow its integer value to override the optimization heuristic.
	* m32r-sim.h: New empty placeholder file.
	* sim-main.c: New empty placeholder file.
	* sim-if.c (sim_create_inferior): Use NULL instead of &abort
	for unimplemented register fondling functions.
	* sim-main.h: Add multiple inclusion guard.  Update callback
	function signatures.
	(tgx_info): New struct for collecting gx block invocation
	arguments.
1998-12-01 13:28:53 +00:00
Nick Clifton
1ab49c8481 Detect the absence of a symbol hash table. 1998-12-01 09:58:28 +00:00
Andrew Cagney
5f084e47d4 Cleanup open comments. 1998-12-01 01:18:18 +00:00
Doug Evans
3f235519e6 * config/fr30/tm-fr30.h (INNER_THAN): Add parameters. 1998-12-01 00:05:18 +00:00
Doug Evans
3c034beb5b * cgen-utils.c (cgen_virtual_opcode_table): Update. 1998-11-30 23:43:58 +00:00
Doug Evans
86dc452e25 * cgen-dis.c (hash_insn_array): CGEN_INSN_VALUE ->
CGEN_INSN_BASE_VALUE.
	* cgen-asm.in (insert_normal): Change start,length to unsigned int.
	New args word_offset, word_length.  Rewrite.
	(FLD): Define.
	(insert_1): Fix lsb0 case.
	* cgen-dis.in (extract_normal): Change start,length to unsigned int.
	New args word_offset, word_length.  Rewrite.
	(FLD): Define.
	(extract_1): Fix lsb0 case.
	* cgen-opc.in (FLD): Define.
	* m32r-opc.c,m32r-opc.h,m32r-asm.c,m32r-dis.c: Regenerate.
	* fr30-opc.c,fr30-opc.h,fr30-asm.c,fr30-dis.c: Regenerate.
1998-11-30 23:41:55 +00:00
Doug Evans
60babd1a36 * Makefile.am (CGENFILES): Add rtx-funcs.scm.
* Makefile.in: Rebuild.
1998-11-30 19:53:57 +00:00
Gavin Romig-Koch
01b7cec600 missing stuff for vr4xxx 1998-11-30 19:28:22 +00:00
Joern Rennecke
c2d4e43129 * elf32-sh.c (elf/sh.h): Include.
sh_reloc_type: Delete.  Changed all references to elf_sh_reloc_type.
        (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
        (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
        (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
        * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
1998-11-30 15:29:45 +00:00
Andrew Cagney
b696009406 CARP:
Cleanup FRAME_CHAIN_VALID. Replace all macro's with functions.
1998-11-30 10:56:16 +00:00
Andrew Cagney
8743fc885f CARP:
Convert ADDR_BITS_REMOVE to a function.
1998-11-29 07:41:36 +00:00
Andrew Cagney
3a0c96a996 CARP:
Rewrite INNER_THAN so that it takes parameters.
1998-11-28 22:53:04 +00:00
Andrew Cagney
0233186932 CARP:
STEP_SKIPS_DELAY - add STEP_SKIPS_DELAY_P and rewrite use removing
  #ifdef's.
NO_SINGLE_STEP - replace with SOFTWARE_SINGLE_STEP_P +
  SOFTWARE_SINGLE_STEP.  Replace global variable one_stepped with static
  singlestep_breakpoints_inserted_p.  Cleanup infrun.c (scary!).
1998-11-27 23:35:08 +00:00
Richard Henderson
5825dfc525 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
causes division by zero later on.
1998-11-27 17:03:39 +00:00
Dave Brolley
e1aa8a6373 Thu Nov 26 11:26:32 1998 Dave Brolley <brolley@cygnus.com>
* fr30-dis.c: Regenerated.
1998-11-26 16:50:44 +00:00
Dave Brolley
b42d437552 Thu Nov 26 11:26:32 1998 Dave Brolley <brolley@cygnus.com>
* fr30-asm.c,fr30-dis.c,fr30-opc.c: Regenerated.
1998-11-26 16:28:02 +00:00
Dave Brolley
12f2784d7f Thu Nov 26 11:23:48 1998 Dave Brolley <brolley@cygnus.com>
* config/tc-fr30.c (md_pcrel_from_section): Restore previous calculation
	of pcrel point.
1998-11-26 16:25:57 +00:00
Dave Brolley
46530d767a Thu Nov 26 11:23:48 1998 Dave Brolley <brolley@cygnus.com>
* config/tc-fr30.c (md_pcrel_from_section): Restore previous calculation
	of pcrel point.

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
1998-11-26 16:25:34 +00:00
Dave Brolley
3f298868ce Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
* elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
	needed.
1998-11-26 16:22:08 +00:00
Andrew Cagney
679ce73102 CARP: Delete ABOUT_TO_RETURN across all targets. 1998-11-26 11:13:01 +00:00
Andrew Cagney
07137a112d * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
and little_breakpoint to char[] from char*.
* remote-array.c (array_insert_breakpoint): Change bp_addr to
CORE_ADDR type.
1998-11-26 10:36:45 +00:00
DJ Delorie
f1b2a4d619 * ldemul.h (ld_emulation_xfer_struct): new hook "recognized_file"
* ldemul.c (ldemul_recognized_file): new function, new hook
* ldint.texinfo: document new hook.
* ldlang.c (load_symbols): call recognized_hook for all objects we
do recognize, in case the emulation needs to handle them
specially.  PE DLLs use this.
* pe-dll.c (pe_dll_generate_def_file): take out hack and debug
printfs
* emultempl/pe.em (gld_i386_recognized_file): new function
(gld_i486_unrecognized_file): take out hack
1998-11-25 23:03:47 +00:00
DJ Delorie
8cde3351e4 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
hook now.
1998-11-25 22:59:34 +00:00
Andrew Cagney
c8623080cb CARP: --enable-build-warnings=-Werror: Fix problems stopping GDB being
canadian-crossed to host i386-cygwin.
1998-11-25 22:13:53 +00:00
Andrew Cagney
a6a5d34927 Fix --enable-build-warnings=-Werror failures.
v850/simops.c, d10v/simops.c, v850/Makefile.in, d10v/Makefile.in:
Include targ-vals.h instead of syscall.h. Replace SYS_* with
TARGET_SYS_*.  Add dependency.
z8k/support.c: Include <errno.h>
v850/simops.c: Replace long with portable signed32.
mips/interp.c: Make sim_monitor global - needed by sky.
1998-11-25 09:58:04 +00:00
Andrew Cagney
9ff152f7f5 mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint): Pass
address of bplen.
1998-11-25 09:44:57 +00:00
Andrew Cagney
baa1a48801 Explicitly tag vr41/mips16 instructions.
Update configure.in/configure.
1998-11-25 06:50:48 +00:00
Felix Lee
c48c0c1413 remove some accidentally committed (harmless) code. 1998-11-25 04:22:28 +00:00
Nick Clifton
ff95478c14 Fix calculation of address for pc rel operations. 1998-11-25 01:22:54 +00:00
Nick Clifton
226c1993e9 Add support for 9_PCREL and 12_PCREL relocs. 1998-11-25 01:21:53 +00:00
Gavin Romig-Koch
f8c41900fc For top level:
* config.sub (mips64vr4xxx,mips64vr4xxxel): New.


For gcc:
	* config.sub (mips64vr4xxx,mips64vr4xxxel): New.
	* configure.in (mips64vr4xxx,mips64vr4xxxel): New.
	* config/mips/t-vr4xxx: New.
	* config/mips/elfb4xxx.h: New.
	* config/mips/elfl4xxx.h: New.
	* configure: Rebuilt.

For gas:
	* config/tc-mips.c (md_begin): Added mip64vr4xxx as a
	possible CPU_TARGET.

For gdb:
	* configure.tgt: Handle mips64*vr4xxx.

For ld:
	* configure.tgt: Handle mips64*vr4xxx.
1998-11-25 01:10:52 +00:00
Nick Clifton
cb4ec68697 Fix handling of I32 and I20 relocs. 1998-11-25 00:54:31 +00:00
Michael Snyder
4183a62a97 Tue Nov 24 15:46:33 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER):
        new target macro.
        * mn10300-tdep.c (mn10300_virtual_frame_pointer): new function.
        * tracepoint.c (encode_actions): Use the new target macro to
        determine the virtual frame pointer, for collecting locals/args.
        (add_local_symbols, collect_symbol): add a register/offset pair of
        arguments so that the virtual frame pointer can be passed in.
1998-11-24 23:50:20 +00:00
Felix Lee
15af627cc0 * procfs.c (procfs_wait): handle syscall events first.
* procfs.c (GDB_GREGSET_TYPE, GDB_FPREGSET_TYPE): new macros.
        * config/sparc/xm-sun4sol2.h: use them.
        * core-sol2.c: don't #undef gregset_t and fpregset_t.
        * sol-thread.c: ditto.
        * sparc-tdep.c: ditto.
1998-11-24 14:51:13 +00:00
Andrew Cagney
afcad54a90 CARP: *BREAKPOINT*
Convert mn10300, MIPS and powerpc/rs6000 targets to use
BREAKPOINT_FROM_PC
Delete global variable memory_breakpoint_size.  Use BREAKPOINT_FROM_PC
instead.
1998-11-24 13:49:00 +00:00
Andrew Cagney
fbf1f3f1f6 Add d10v and v850 to gennltvals.sh and regenerate.
Add a howto.
1998-11-24 07:59:01 +00:00
DJ Delorie
c59356d3b4 * pe-dll.c (make_head): name object files sequentially to ensure
they link in the right order.
	(make_tail): same here
	(pe_process_import_defs): use sequential names for bfds to ensure
	proper link order.
	(pe_implied_import_dll): new function; handles linking directly
	against DLLs by simulating IMPORTS directives.  * emultempl/pe.em
	(gld_i386pe_before_parse): hack bfd to not recognize .dll files
	via bfd_pe_dll_not_recognized_hack
1998-11-24 04:33:33 +00:00
DJ Delorie
11dddceff5 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
to see .DLL files as unrecognized.
	(i3coff_object_p): Sorry, had to hack it to not recognize these
	files (pei-i386) on request.
1998-11-24 04:25:41 +00:00
DJ Delorie
6952c60277 * emultempl/pe.em (gld_i386pe_parse_args): Conditionalize call to
pe_dll_add_excludes
1998-11-24 00:24:06 +00:00
Dave Brolley
988fcc4b5e Mon Nov 23 18:28:48 1998 Dave Brolley <brolley@cygnus.com>
* fr30-asm.c,fr30-dis.c,fr30-opc.c,fr30-opc.h: Regenerated.
1998-11-23 23:30:08 +00:00
Dave Brolley
7259fc9491 Mon Nov 23 17:02:47 1998 Dave Brolley <brolley@cygnus.com>
* Directory created.
1998-11-23 23:25:28 +00:00
Nick Clifton
715e7aadec fix for arm-pe linker testsuite failures - only define an entry symbol if one has been specified. 1998-11-23 22:38:48 +00:00
DJ Delorie
3feaa5aff8 * emultempl/pe.em (gld_i386pe_after_open): call
pe_process_import_defs
	* pe-dll.c (pe_dll_generate_def_file): calculate BASE from
	pe_data, only print if actually set.  Print version only if
	set.
	(save_relocs): save relocs for both input and output.
	(make_one): support internal/external different names.
	(pe_dll_generate_implib): support new make_one
	(pe_process_import_defs): new function; handles IMPORT
	directives in .def files.
1998-11-23 19:47:31 +00:00
DJ Delorie
b7de6a0df6 * opncls.c (bfd_make_readable): need more cleanup for symbols and
relents.  Call bfd_check_format to reinitialize.
1998-11-23 19:45:45 +00:00
Michael Snyder
e1dba9c442 Mon Nov 23 11:38:40 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* symfile.c (deduce_language_from_filename): rewrite so as to
        work from a table of filename extensions, modifiable by the user.
        (filename_language_table): new data structure.
        (set_ext_lang_command): new function for new command, "set
        extension-language".  (info_extension_language_command): new
        function for new command "info extension-languages".
        (add_filename_language, init_filename_language_table): new
        support functions for the above.
        * language.c (language_enum): new function.  Support for above.
1998-11-23 19:44:42 +00:00