Commit graph

19006 commits

Author SHA1 Message Date
Ian Lance Taylor
6e2183b1a7 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Define.
(struct elf_i386_link_hash_entry): Define.
	(struct elf_i386_link_hash_table): Define.
	(elf_i386_link_hash_traverse): Define.
	(elf_i386_hash_table): Define.
	(elf_i386_link_hash_newfunc): New static function.
	(elf_i386_link_hash_table_create): New static function.
	(elf_i386_check_relocs): If linking with -Bsymbolic, don't copy
	PC relative relocs for a global symbol defined in a regular
	object, and count the number of PC relative relocs copied for any
	global symbol.
	(elf_i386_size_dynamic_sections): If linking with -Bsymbolic,
	traverse with elf_i386_discard_copies.
	(elf_i386_discard_copies): New static function.
	(bfd_elf32_bfd_link_hash_table_create): Define.
1997-04-17 16:13:36 +00:00
Ian Lance Taylor
81f01dd538 From Gordon W. Ross <gwr@mc.com>:
* aoutf1.h (MY_entry_is_text_address): Define if not defined.
	(sunos4_aout_backend): Use MY_entry_is_text_address.
1997-04-17 15:12:09 +00:00
David Edelsohn
ba65b2f4c9 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions. 1997-04-17 14:14:49 +00:00
David Edelsohn
e9b2f57903 sim-trace.c: New file. 1997-04-17 14:08:30 +00:00
David Edelsohn
5bfbd72555 Add macros for CPU_FOO_FILE, CPU_STATE. 1997-04-17 14:07:43 +00:00
David Edelsohn
8786d42627 (standard_option_handler): Tweak some error messages.
(sim_parse_args): Record orig_val as unsigned char.
1997-04-17 14:07:19 +00:00
David Edelsohn
15d8adf5b5 Clean up. 1997-04-17 14:06:10 +00:00
David Edelsohn
d4f1c49e78 * igen.c (print_itrace): Use TRACE_FOO_P and trace_printf. 1997-04-17 14:03:16 +00:00
David Edelsohn
09e348731e Tweak comment. 1997-04-17 13:46:50 +00:00
David Edelsohn
c95d08a8d6 * Make-common.in (nrun.o): Add rule for.
* nrun.c: New file.
1997-04-17 12:43:31 +00:00
David Edelsohn
4b364b00cf * sim-config.h (WITH_DEBUG): Provide default value of zero. 1997-04-17 12:41:19 +00:00
David Edelsohn
4ede3a832b * sim-options.c, sim-options.h: New files. 1997-04-17 12:39:29 +00:00
David Edelsohn
cdd7a784bd MAX_CPUS -> WITH_SMP. 1997-04-17 12:21:35 +00:00
David Edelsohn
75cfb4864d Fix copyright message, this is not GCC. 1997-04-17 11:24:09 +00:00
David Edelsohn
f7d2f53818 * run.c (main): Check return value of sim_open. 1997-04-17 11:14:21 +00:00
David Edelsohn
1ad886c928 * Makefile.in (SIM_OBJS): Add sim-load.o.
* interp.c (sim_kind, myname): New static locals.
	(sim_open): Set sim_kind, myname.  Ignore -E arg.
	(sim_load): Return SIM_RC.  New arg abfd.  Call sim_load_file to
	load file into simulator.  Set start address from bfd.
	(sim_create_inferior): Return SIM_RC.  Delete arg start_address.
1997-04-17 10:54:07 +00:00
David Edelsohn
1d77e69d4a * Makefile.in (SIM_OBJS): Add sim-load.o.
* interp.c (target_byte_order): Delete.
	(sim_kind, myname, little_endian_p): New static locals.
	(init_pointers): Use little_endian_p instead of target_byte_order.
	(sim_resume): Likewise.
	(sim_open): Set sim_kind, myname.  Set little_endian_p from -E arg.
	(sim_load): Return SIM_RC.  New arg abfd.  Call sim_load_file to
	load file into simulator.  Set start address from bfd.
	(sim_create_inferior): Return SIM_RC.  Delete arg start_address.
1997-04-17 10:52:59 +00:00
David Edelsohn
ed119303f5 * psim.c (psim_options): Ignore -E option (sets endianness).
* sim_calls.c: #include bfd.h.
	(entry_point): New static local.
	(sim_load): Return SIM_RC.  New arg abfd.  Set start address from bfd.
	(sim_create_inferior): Return SIM_RC.  Delete arg start_address.
1997-04-17 10:31:52 +00:00
David Edelsohn
6cc6987e1e * Makefile.in (SIM_OBJS): Add sim-load.o.
* interp.c (sim_kind, myname): New static locals.
	(sim_open): Set sim_kind, myname.  Ignore -E arg.
	(sim_load): Return SIM_RC.  New arg abfd.  Call sim_load_file to
	load file into simulator.  Set start address from bfd.
	(sim_create_inferior): Return SIM_RC.  Delete arg start_address.
1997-04-17 10:27:47 +00:00
David Edelsohn
9d52bcb7f0 * Makefile.in (SIM_OBJS): Add sim-load.o.
* interp.c: #include bfd.h.
	(target_byte_order): Delete.
	(sim_kind, myname, big_endian_p): New static locals.
	(sim_open): Set sim_kind, myname.  Move call to set_endianness to
	after argument parsing.  Recognize -E arg, set endianness accordingly.
	(sim_load): Return SIM_RC.  New arg abfd.  Call sim_load_file to
	load file into simulator.  Set PC from bfd.
	(sim_create_inferior): Return SIM_RC.  Delete arg start_address.
	(set_endianness): Use big_endian_p instead of target_byte_order.
1997-04-17 10:23:48 +00:00
David Edelsohn
463372706f * Makefile.in (SIM_OBJS): Add sim-load.o.
* compile.c (sim_kind, myname): New static locals.
	(sim_open): Set sim_kind, myname.
	(sim_load): Return SIM_RC.  New arg abfd.  Update test for h8300h.
	Call sim_load_file to load file into simulator.  Set start address
	from bfd.
	(sim_create_inferior): Return SIM_RC.  Delete arg start_address.
1997-04-17 10:14:28 +00:00
David Edelsohn
26277668db * interf.c (sim_open): Ignore -E arg.
(start_address): New static local.
	(sim_load): Return SIM_RC.  New arg abfd.  Set start_address from bfd.
	(sim_create_inferior): Return SIM_RC.  Delete arg start_address.
1997-04-17 10:05:50 +00:00
David Edelsohn
04885cc34c * Makefile.in (SIM_OBJS): Add sim-load.o.
* d10v_sim.h (exec_bfd): Rename to prog_bfd.
	* interp.c: #include bfd.h.
	(myname, sim_kind, start_address): New static locals.
	(prog_bfd_was_opened_p, prog_bfd): New static locals.
	(decode_pc): Update to use prog_bfd.
	(sim_open): Set sim_kind, myname.  Ignore -E arg.
	(sim_close): Close prog_bfd if simulator opened it.
	(sim_create_inferior): Return SIM_RC.  Delete arg start_address.
	(sim_load): Return SIM_RC.  New arg abfd.  Set start address from bfd.
	Call sim_load_file to load file into simulator.
	* simops.c (trace_input_func): exec_bfd renamed to prog_bfd.
1997-04-17 10:02:27 +00:00
David Edelsohn
0ab92fe79f * Makefile.in (SIM_OBJS): Add sim-load.o.
* wrapper.c (sim_kind,myname): New static locals.
	(sim_open): Set sim_kind, myname.
	(sim_load): Call sim_load_file to do work.  Set start address from bfd.
	(sim_create_inferior): Return SIM_RC.  Delete start_address arg.
1997-04-17 09:41:11 +00:00
David Edelsohn
35c384f6bb * sim-load.c: New file.
[forgot this]
1997-04-17 09:38:01 +00:00
David Edelsohn
3b609fd511 Add sim-load.c, sim-trace.h. 1997-04-17 09:37:42 +00:00
David Edelsohn
0f2811d1c5 * Make-common.in (sim-options.o, sim-load.o): Add rules for.
(sim_main_headers): Add sim-trace.h.
	* run.c (exec_bfd, target_byte_order): Delete.
	(main): Pass -E <endian> to sim_open.  Delete code to load sections,
	call sim_load instead.  Check return code of sim_create_inferior.
	* sim-base.h (CURRENT_STATE): Define.
	(sim_state_base): Make typedef.  New members options, prog_argv,
	prog_bfd, text_{section,start,end}, start_addr, simcache_size,
	mem_size, memory [+ corresponding access macros].
	(sim_cpu_base): New typedef.
	* sim-trace.h: New file.
	* sim-basics.h: #include it.
	* sim-load.c: New file.
1997-04-17 09:37:02 +00:00
David Edelsohn
22003c917e (gdbsim_open): Pass endian indicator as arg.
[forgot this]
1997-04-17 09:23:55 +00:00
David Edelsohn
44cd79e4b1 * remote-sim.c (gdbsim_load): Update call to sim_load.
(gdbsim_create_inferior): No longer pass start_address to
	sim_create_inferior.
	(gdbsim_open): Pass endian indicator as arg.
1997-04-17 09:23:28 +00:00
David Edelsohn
a1cb1f4b9c * remote-sim.h (struct _bfd): Declare.
(sim_load): Return SIM_RC.  New arg `abfd'.
	(sim_create_inferior): Return SIM_RC.  Delete arg `start_address'.
1997-04-17 09:19:45 +00:00
Andrew Cagney
87e43259f1 Cleanups to compile under FreeBSD 1997-04-17 06:05:19 +00:00
Ian Lance Taylor
a895901a15 From Gordon W. Ross <gwr@mc.com>:
* netbsd.h (N_SHARED_LIB): Define.
	(SEGMENT_SIZE): Don't define.
	* m68knetbsd.c (SEGMENT_SIZE): Don't define (revert change of
	April 11).
	* sparcnetbsd.c (TARGET_PAGE_SIZE): Define as 0x2000.
	(SEGMENT_SIZE): Don't define.
1997-04-16 22:02:56 +00:00
Martin Hunt
ebec2a6a21 Wed Apr 16 12:43:32 1997 Martin Hunt <hunt@cygnus.com>
* elf32-d30v.c (elf_d30v_howto_table): Changed size of
	R_D30V_32_NORMAL to 2 (4 bytes).
1997-04-16 19:50:24 +00:00
Martin Hunt
4bdb83fcb9 Wed Apr 16 12:31:24 1997 Martin Hunt <hunt@cygnus.com>
* config/tc-d30v.c (parallel_ok): Fix parallel checking
	for instructions using conditional execution.
1997-04-16 19:35:54 +00:00
Martin Hunt
0a09e92add Wed Apr 16 12:20:24 1997 Martin Hunt <hunt@cygnus.com>
* gas/d30v/d30.exp: Add optimizer test case.
	* gas/d30v/opt.s: Add conditional compilation tests.
	* gas/d30v/opt.d: Rebuild.
1997-04-16 19:28:31 +00:00
Ian Lance Taylor
10888f106a * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set .rela.bss size
to sizeof Rela structure, not sizeof Rel structure.  From Gary
	Thomas <g.thomas@opengroup.org>.
1997-04-16 18:03:42 +00:00
Gavin Romig-Koch
ff55d0fb84 Correct test for fpr pairs. 1997-04-16 13:22:25 +00:00
Stan Shebs
1654a68d5b * remote.c (get_offsets): Don't use scanf for interpreting
response to qOffsets.
1997-04-16 01:55:47 +00:00
Gavin Romig-Koch
68952421e6 Correct test for fpr pairs. 1997-04-15 22:46:58 +00:00
Ian Lance Taylor
ded64db806 this file was removed a long time ago 1997-04-15 22:36:26 +00:00
Ian Lance Taylor
ec2f730d86 sanitize out references to v850 1997-04-15 22:34:57 +00:00
Ian Lance Taylor
55aba3335b * aout-target.h (MY(callback)): If entry_is_text_address, adjust
whenever entry is larger than text address, but only by whole
	pages.  From Gordon W. Ross <gwr@mc.com>.
1997-04-15 19:47:45 +00:00
Ian Lance Taylor
08499fc27d * Makefile.in (DEVO_SUPPORT): Add mkinstalldirs. 1997-04-15 19:37:39 +00:00
Ian Lance Taylor
14b31001d8 * Makefile.in (INSTALL_XFORM): Remove.
(BASE_FLAGS_TO_PASS): Remove INSTALL_XFORM.
1997-04-15 19:32:01 +00:00
Ian Lance Taylor
c42d511971 * Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
1997-04-15 19:20:58 +00:00
Ian Lance Taylor
61473a55c5 * Makefile.in (install-sis): Depend upon installdirs. Use
$(program_transform_name) directly, rather than using
	$(INSTALL_XFORM).
1997-04-15 19:19:43 +00:00
Ian Lance Taylor
6808fd61d2 * Make-common.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
	(install-common): Depend upon installdirs.  Use
	$(program_transform_name) directly, rather than using
	$(INSTALL_XFORM).
	(installdirs): New target.
	* Makefile.in (INSTALL): Set to @INSTALL@.
	(INSTALL_XFORM, INSTALL_XFORM1): Remove.
	(install-man): Depend upon installdirs.  Use
	$(program_transform_name) directly, rather than using
	$(INSTALL_XFORM).
	(installdirs): New target.
1997-04-15 19:13:56 +00:00
Ian Lance Taylor
04184003f6 * Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
	(install): Depend upon installdirs.  Use $(program_transform_name)
	directly, rather than using $(INSTALL_XFORM).
	(installdirs): New target.
1997-04-15 19:06:20 +00:00
Ian Lance Taylor
d60002f692 * Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
	(install): Depend upon installdirs.  Use $(program_transform_name)
	directly, rather than using $(INSTALL_XFORM) and
	$(INSTALL_XFORM1).
	(installdirs): New target.
1997-04-15 18:55:38 +00:00
Ian Lance Taylor
591042f3e7 * gdbserver/Makefile.in (INSTALL_XFORM): Remove.
(INSTALL_XFORM1): Remove.
	(install-only): Use $(program_transform_name) directly, rather
	than using $(INSTALL_XFORM) and $(INSTALL_XFORM1).
	(uninstall): Transform name.
1997-04-15 18:52:33 +00:00