Michael Meissner [Fri, 3 Nov 1995 03:55:44 +0000 (03:55 +0000)]
Fix typo in last changes
Ian Lance Taylor [Fri, 3 Nov 1995 03:52:08 +0000 (03:52 +0000)]
* Makefile.in (DO_X): Split rule to decrease command line length
for systems with small ARG_MAX values. From phdm@info.ucl.ac.be
(Philippe De Muyter).
Michael Meissner [Fri, 3 Nov 1995 03:39:27 +0000 (03:39 +0000)]
Update dependencies; Fix multiple options in --enable-sim-cflags
Michael Meissner [Thu, 2 Nov 1995 20:21:35 +0000 (20:21 +0000)]
Use autoconf correctly; provide more stats with -I
Fred Fish [Thu, 2 Nov 1995 15:31:46 +0000 (15:31 +0000)]
* i386-tdep.c (i386_extract_return_value): Make function visible
for all i386 targets, but only assume floating point values returned
in floating point registers for I386_AIX_TARGET.
* i386v-nat.c (i386_register_u_addr): Enable code to locate
floating point regs in user struct.
Fred Fish [Thu, 2 Nov 1995 15:20:50 +0000 (15:20 +0000)]
* config/i386/tm-i386.h: New file containing generic i*86 target
definitions.
(TARGET_BYTE_ORDER): Moved here from tm-i386v.h.
(IEEE_FLOAT): Moved here from tm-i386v.h.
(START_INFERIOR_TRAPS_EXPECTED): Define default as 2.
(FUNCTION_START_OFFSET): Moved here from tm-i386v.h.
(SKIP_PROLOGUE): Moved here from tm-i386v.h.
(SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h.
(INNER_THAN): Moved here from tm-i386v.h.
(BREAKPOINT): Moved here from tm-i386v.h.
(DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h.
(ABOUT_TO_RETURN): Moved here from tm-i386v.h.
(REGISTER_SIZE): Moved here from tm-i386v.h.
(NUM_REGS): Moved here from tm-i386v.h.
(REGISTER_NAMES): Moved here from tm-i386v.h.
(EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h.
(FP_REGNUM): Moved here from tm-i386v.h.
(SP_REGNUM): Moved here from tm-i386v.h.
(PC_REGNUM): Moved here from tm-i386v.h.
(PS_REGNUM): Moved here from tm-i386v.h.
(FP0_REGNUM): Moved here from tm-i386aix.h.
(FPC_REGNUM): Moved here from tm-sun386.h.
(REGISTER_BYTES): Moved here from tm-i386aix.h.
(REGISTER_BYTE): Moved here from tm-i386aix.h.
(REGISTER_RAW_SIZE): Moved here from tm-i386aix.h.
(MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h.
(REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h.
(MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h.
(EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h.
(STORE_RETURN_VALUE): Moved here from tm-i386aix.h.
(REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h.
(STORE_STRUCT_RETURN): Moved here from tm-i386v.h.
(FRAME_CHAIN): Moved here from tm-i386v4.h.
(FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h.
(FRAME_SAVED_PC): Moved here from tm-i386os9k.h
(FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h.
(FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h.
(FRAME_NUM_ARGS): Moved here from tm-i386sun.h.
(FRAME_ARGS_SKIP): Moved here from tm-i386v.h.
(FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h.
(PUSH_DUMMY_FRAME): Moved here from tm-i386v.h.
(POP_FRAME): Moved here from tm-i386v.h.
(CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from
tm-i386v.h
(print_387_control_word, print_387_status_word): Declare prototypes.
(struct frame_info, struct frame_saved_regs): Forward decls for
prototypes.
(SP_ARG0): Moved here from tm-i386v.h.
* config/i386/tm-i386v.h:
(i386/tm-i386.h): Include.
(TARGET_BYTE_ORDER): Remove.
(IEEE_FLOAT): Remove.
(START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4.
(FUNCTION_START_OFFSET): Remove.
(SKIP_PROLOGUE): Remove.
(i386_skip_prologue): Remove prototype.
(SAVED_PC_AFTER_CALL): Remove.
(INNER_THAN): Remove.
(BREAKPOINT): Remove.
(DECR_PC_AFTER_BREAK): Remove.
(ABOUT_TO_RETURN): Remove.
(REGISTER_SIZE): Remove.
(NUM_REGS): Undef before redefine to 16 (no FP support).
(REGISTER_NAMES): Undef before redefine.
(FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove.
(REGISTER_BYTES): Undef before redefine.
(REGISTER_BYTE): Undef before redefine.
(REGISTER_RAW_SIZE): Undef before redefine.
(REGISTER_VIRTUAL_SIZE): Undef before redefine.
(MAX_REGISTER_RAW_SIZE): Undef before redefine.
(MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine.
(REGISTER_VIRTUAL_TYPE): Undef before redefine.
(STORE_STRUCT_RETURN): Undef before redefine.
(EXTRACT_RETURN_VALUE): Undef before redefine.
(STORE_RETURN_VALUE): Undef before redefine.
(EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
(FRAME_CHAIN): Undef before redefine.
(FRAMELESS_FUNCTION_INVOCATION): Undef before redefine.
(FRAME_SAVED_PC): Undef before redefine.
(FRAME_ARGS_ADDRESS): Remove.
(FRAME_LOCALS_ADDRESS): Remove.
(FRAME_NUM_ARGS): Undef before redefine.
(FRAME_ARGS_SKIP): Remove.
(FRAME_FIND_SAVED_REGS): Remove.
(PUSH_DUMMY_FRAME): Remove.
(POP_FRAME): Remove.
(CALL_DUMMY): Remove.
(CALL_DUMMY_LENGTH): Remove.
(CALL_DUMMY_START_OFFSET): Remove.
(CALL_DUMMY_BREAKPOINT_OFFSET): Remove
(FIX_CALL_DUMMY): Remove.
(print_387_control_word): Remove.
(print_387_status_word): Remove.
(SP_ARG0): Remove.
* config/i386/tm-symmetry.h:
(TM_SYMMETRY_H): Enclose file in test for define & define if needed.
(START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of
tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2.
(DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h
or tm-i386v.h, #undef, and #define to 0.
(MAX_REGISTER_RAW_SIZE): Remove.
(FRAME_CHAIN): Remove.
(FRAMELESS_FUNCTION_INVOCATION): Remove.
(FRAME_SAVED_PC): Remove.
(print_387_control_word, print_387_status_word): Remove prototypes.
* config/i386/tm-ptx.h:
(TM_PTX_H): Enclose file in test for define & define if needed.
(START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of
tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2.
(DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h
or tm-i386v.h, #undef, and #define to 0.
(SDB_REG_TO_REGNUM): Remove obsolete commented out define.
(print_387_control_word, print_387_status_word): Remove prototypes.
* config/i386/tm-linux.h:
(TM_LINUX_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include instead of tm-i386v.h.
(START_INFERIOR_TRAPS_EXPECTED): Remove.
* config/i386/tm-i386v4.h:
(TM_I386V4_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include instead of tm-i386v.h.
(START_INFERIOR_TRAPS_EXPECTED): Remove.
(FRAME_CHAIN): Moved to tm-i386.h.
(FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h.
(FRAME_SAVED_PC): Remove.
(sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc.
(FRAME_NUM_ARGS): Remove.
* config/i386/tm-i386os9k.h:
(TM_I386OS9K_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include instead of tm-i386v.h.
(START_INFERIOR_TRAPS_EXPECTED): Remove.
(NUM_REGS): Undefine before redefining.
(FRAME_CHAIN): Remove.
(FRAMELESS_FUNCTION_INVOCATION): Remove.
(FRAME_SAVED_PC): Move to tm-i386.h.
* config/i386/tm-i386nw.h:
(TM_I386NW_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include instead of tm-i386v.h.
(START_INFERIOR_TRAPS_EXPECTED): Remove.
* config/i386/tm-i386bsd.h:
(TM_I386BSD_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include instead of tm-i386v.h.
(START_INFERIOR_TRAPS_EXPECTED): Remove.
(FRAMELESS_FUNCTION_INVOCATION): Remove.
(FRAME_SAVED_PC): Remove.
* config/i386/tm-i386aix.h:
(i386/tm-i386.h): Include instead of tm-i386v.h.
(START_INFERIOR_TRAPS_EXPECTED): Remove.
(FP_REGNUM): Remove.
(SP_REGNUM): Remove.
(PC_REGNUM): Remove.
(PS_REGNUM): Remove.
(FP0_REGNUM): Moved to tm-i386.h.
(NUM_REGS): Remove.
(REGISTER_NAMES): Remove.
(REGISTER_BYTES): Moved to tm-i386.h.
(REGISTER_BYTE): Moved to tm-i386.h.
(REGISTER_RAW_SIZE): Moved to tm-i386.h.
(MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h.
(REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h.
(REGISTER_VIRTUAL_TYPE): Removed.
(EXTRACT_RETURN_VALUE): Moved to tm-i386.h.
(STORE_RETURN_VALUE): Moved to tm-i386.h.
* config/i386/tm-sun386.h:
(TM_SUN386_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include.
(TARGET_BYTE_ORDER): Remove.
(FUNCTION_START_OFFSET): Remove.
(SKIP_PROLOGUE): Remove.
(SAVED_PC_AFTER_CALL): Remove.
(INNER_THAN): Remove.
(BREAKPOINT): Remove.
(DECR_PC_AFTER_BREAK): Remove.
(ABOUT_TO_RETURN): Remove.
(REGISTER_SIZE): Remove.
(NUM_REGS): Undefine before defining.
(REGISTER_NAMES): Undefine before redefining.
(REGISTER_BYTES): Undefine before redefining.
(REGISTER_BYTE): Undefine before defining.
(FP_REGNUM): Undefine before defining.
(PC_REGNUM): Undefine before defining.
(FPC_REGNUM): Undefine before defining.
(REGISTER_RAW_SIZE): Undefine before defining.
(FRAME_CHAIN): Undefine before defining.
(FRAMELESS_FUNCTION_INVOCATION): Undefine before defining.
(FRAME_SAVED_PC): Undefine before defining.
(FRAME_NUM_ARGS): Moved to tm-i386.h.
(MAX_REGISTER_RAW_SIZE): Remove.
(MAX_REGISTER_VIRTUAL_SIZE): Remove.
(STORE_STRUCT_RETURN): Remove.
(EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
(FRAME_ARGS_ADDRESS): Remove.
(FRAME_LOCALS_ADDRESS): Remove.
(FRAME_NUM_ARGS): Undefine before defining.
(FRAME_ARGS_SKIP): Remove.
(FRAME_FIND_SAVED_REGS): Remove.
(PUSH_DUMMY_FRAME): Remove.
(POP_FRAME): Remove.
(CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove.
(struct frame_info, struct frame_saved_regs): Remove forward decls
for prototypes.
* config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of
tm-i386v.h.
* config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of
tm-i386v.h.
Michael Meissner [Thu, 2 Nov 1995 14:28:10 +0000 (14:28 +0000)]
Add ppc-opcode-stupid
Michael Meissner [Thu, 2 Nov 1995 14:27:18 +0000 (14:27 +0000)]
Andrew's latest changes & print all instruction counts if -I
Stan Shebs [Thu, 2 Nov 1995 00:58:23 +0000 (00:58 +0000)]
Tsk tsk, somebody forgot to update .Sanitize when they renamed regex.*...
Jason Molenda [Wed, 1 Nov 1995 23:19:28 +0000 (23:19 +0000)]
* Makefile.in (all-patch): depend on all-libiberty.
Fred Fish [Wed, 1 Nov 1995 23:06:12 +0000 (23:06 +0000)]
* breakpoint.c (breakpoint_re_set): Fix typo in comment.
Fred Fish [Wed, 1 Nov 1995 23:02:09 +0000 (23:02 +0000)]
* gdb.base/break.exp: Change test that deletes all breakpoints
when no user breakpoints are installed. A post 4.15 change
causes gdb to no longer prompt in this case.
Ian Lance Taylor [Wed, 1 Nov 1995 22:12:57 +0000 (22:12 +0000)]
* reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
Ken Raeburn [Wed, 1 Nov 1995 21:14:44 +0000 (21:14 +0000)]
* config/tc-i386.c (md_assemble): For a jump instruction with non-constant
target, require 7 available bytes in the current frag, not 6.
Ian Lance Taylor [Wed, 1 Nov 1995 20:52:10 +0000 (20:52 +0000)]
Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* Makefile.in (ALL_EMULATIONS): Add edelta68.o.
(edelta68.c): New target.
* configure.tgt (m68*-motorola-sysv3*): New target.
* emulparams/delta68.sh: New file.
* scripttempl/delta68.sc: New file.
* scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
addresses.
Per Bothner [Wed, 1 Nov 1995 20:50:55 +0000 (20:50 +0000)]
* Makefile.in (DISTSTUFF): Rename to GEN_FILES, to avoid confusion.
(all): Depend on $(GEN_FILES), not diststuff (which also depends
on info).
Ian Lance Taylor [Wed, 1 Nov 1995 20:26:50 +0000 (20:26 +0000)]
Wed Nov 1 15:25:18 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* m68k.h (PAGEMAGICEXECSWAPPED): Define.
(PAGEMAGICPEXECSWAPPED): Define.
(PAGEMAGICPEXECTSHLIB): Define.
(PAGEMAGICPEXECPAGED): Define.
(_COMMENT): DEFINE.
* m88k.h (_COMMENT): Define.
Ian Lance Taylor [Wed, 1 Nov 1995 20:24:27 +0000 (20:24 +0000)]
Wed Nov 1 15:23:15 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* sym_ids.c: Include <ctype.h>.
Fred Fish [Wed, 1 Nov 1995 20:11:52 +0000 (20:11 +0000)]
* symtab.c (in_prologue): Document func_start and when it is zero
don't call SKIP_PROLOGUE (which typically leads unconditionally to
an error when we try to access a prologue at address 0).
Ian Lance Taylor [Wed, 1 Nov 1995 20:11:07 +0000 (20:11 +0000)]
Wed Nov 1 15:09:57 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* binutils-all/objcopy.exp: Add setup_xfails for
m68*-motorola-sysv3* and m88*-motorola-sysv3*.
Ian Lance Taylor [Wed, 1 Nov 1995 20:06:30 +0000 (20:06 +0000)]
Wed Nov 1 15:04:57 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* Makefile.in (syslex.o): add -I$(srcdir) if compiling in a
separate directory.
Michael Meissner [Wed, 1 Nov 1995 19:32:38 +0000 (19:32 +0000)]
Lots of changes
Ian Lance Taylor [Wed, 1 Nov 1995 19:31:48 +0000 (19:31 +0000)]
Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* coff-m88k.c (rtype2howto): New static function.
(RTYPE2HOWTO): Use it rather than a macro definition.
* coffcode.h (coff_write_object_contents): set internal_a.magic
to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
* configure.in: m68*-motorola-sysv3* does not use ptrace-core.o;
define TRAD_HEADER to new file hosts/delta68.h.
m88*-motorola-sysv*, however, does use ptrace-core.o.
* hosts/delta68.h: New file.
* ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
Ian Lance Taylor [Wed, 1 Nov 1995 19:30:04 +0000 (19:30 +0000)]
Wed Nov 1 14:28:23 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* chew.c: Include <ctype.h>.
Ken Raeburn [Wed, 1 Nov 1995 18:56:16 +0000 (18:56 +0000)]
* i386linux.c (MY(vec)): Declare before use.
Ian Lance Taylor [Wed, 1 Nov 1995 18:34:56 +0000 (18:34 +0000)]
* m68k-opc.c (m68k_opcode_aliases): Add dbfw as an alias for dbf,
and likewise for all the dbxx opcodes.
Ian Lance Taylor [Wed, 1 Nov 1995 18:25:35 +0000 (18:25 +0000)]
* elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
BFD is not of the right type.
(bfd_elf_get_needed_list): Likewise.
* i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
* sunos.c (bfd_sunos_get_needed_list): Likewise.
* xcofflink.c (XCOFF_XVECP): Define.
(bfd_xcoff_link_record_set): Don't do anything if the BFD is not
of the right type.
(bfd_xcoff_import_symbol): Likewise.
(bfd_xcoff_export_symbol): Likewise.
(bfd_xcoff_link_count_reloc): Likewise.
(bfd_xcoff_record_link_assignment): Likewise.
(bfd_xcoff_size_dynamic_sections): Likewise.
Ian Lance Taylor [Wed, 1 Nov 1995 18:09:06 +0000 (18:09 +0000)]
* sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
table index against the number of symbols for a base relative
reloc.
Ian Lance Taylor [Wed, 1 Nov 1995 17:31:58 +0000 (17:31 +0000)]
* ldgram.y (mri_script_command): Accept ',' as well as '=' in
ALIGN and ALIGNMOD statements.
Ian Lance Taylor [Wed, 1 Nov 1995 17:25:21 +0000 (17:25 +0000)]
* configure.in: If the only directory in target_configdirs which
actually exists is libiberty, then set target_configdirs to empty,
to avoid trying to build a target libiberty in a gas or gdb
distribution.
Ian Lance Taylor [Wed, 1 Nov 1995 17:24:20 +0000 (17:24 +0000)]
minor cleanups
Ian Lance Taylor [Wed, 1 Nov 1995 16:47:14 +0000 (16:47 +0000)]
* 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.
Ian Lance Taylor [Wed, 1 Nov 1995 16:46:19 +0000 (16:46 +0000)]
* 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.
Michael Meissner [Wed, 1 Nov 1995 03:25:04 +0000 (03:25 +0000)]
remove extra #endif
Michael Meissner [Wed, 1 Nov 1995 03:02:04 +0000 (03:02 +0000)]
fix typo in last change
Jason Molenda [Wed, 1 Nov 1995 02:30:41 +0000 (02:30 +0000)]
Regenerated.
J.T. Conklin [Wed, 1 Nov 1995 02:02:21 +0000 (02:02 +0000)]
* configure.in (host_makefile_frag): Use m68k-sun-sunos* instead
of m68k-sun-* when selecting mh-sun3 to avoid matching NetBSD/sun3
systems.
Jim Wilson [Wed, 1 Nov 1995 01:03:31 +0000 (01:03 +0000)]
Patches to make fixincludes work for cross toolchains.
Fred Fish [Wed, 1 Nov 1995 00:01:39 +0000 (00:01 +0000)]
* arc-dis.c: Include elf-bfd.h rather than libelf.h.
Ian Lance Taylor [Wed, 1 Nov 1995 00:00:47 +0000 (00:00 +0000)]
* config/tc-ppc.c (ppc_lglobl): Do the right thing.
Fred Fish [Tue, 31 Oct 1995 23:58:52 +0000 (23:58 +0000)]
* elfread.c: Include elf-bfd.h rather than libelf.h.
Fred Fish [Tue, 31 Oct 1995 23:40:03 +0000 (23:40 +0000)]
* config/obj-elf.h: Include bfd/elf-bfd.h rather than
bfd/libelf.h.
Ian Lance Taylor [Tue, 31 Oct 1995 23:30:21 +0000 (23:30 +0000)]
Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
* ecoff.c (ecoff_frob_symbol): Warn about weak common symbols.
Fred Fish [Tue, 31 Oct 1995 23:29:05 +0000 (23:29 +0000)]
* 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.
Ian Lance Taylor [Tue, 31 Oct 1995 23:23:48 +0000 (23:23 +0000)]
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.
Fred Fish [Tue, 31 Oct 1995 23:18:28 +0000 (23:18 +0000)]
* 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.
Ian Lance Taylor [Tue, 31 Oct 1995 22:55:22 +0000 (22:55 +0000)]
* 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.
Ian Lance Taylor [Tue, 31 Oct 1995 21:41:59 +0000 (21:41 +0000)]
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.
Michael Meissner [Tue, 31 Oct 1995 20:59:19 +0000 (20:59 +0000)]
map , to spaces in --enable-sim-cflags
Ian Lance Taylor [Tue, 31 Oct 1995 20:50:25 +0000 (20:50 +0000)]
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.
Ian Lance Taylor [Tue, 31 Oct 1995 20:32:53 +0000 (20:32 +0000)]
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.
Ian Lance Taylor [Tue, 31 Oct 1995 20:28:25 +0000 (20:28 +0000)]
really make import_file static
Michael Meissner [Tue, 31 Oct 1995 20:24:41 +0000 (20:24 +0000)]
Add various switches to control how the simulator is built
Ian Lance Taylor [Tue, 31 Oct 1995 20:22:04 +0000 (20:22 +0000)]
* config/tc-ppc.c (ppc_frob_symbol): Set BSF_NOT_AT_END for
symbols with csect aux entries.
Steve Chamberlain [Tue, 31 Oct 1995 20:01:18 +0000 (20:01 +0000)]
* Makefile.in, configure.in: Make winsup builds work with
new scheme.
Ian Lance Taylor [Tue, 31 Oct 1995 19:20:58 +0000 (19:20 +0000)]
* coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
C_ECOMM storage classes.
Ian Lance Taylor [Tue, 31 Oct 1995 19:16:02 +0000 (19:16 +0000)]
* 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.
Steve Chamberlain [Tue, 31 Oct 1995 18:50:02 +0000 (18:50 +0000)]
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.
Steve Chamberlain [Tue, 31 Oct 1995 18:40:29 +0000 (18:40 +0000)]
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__.
Steve Chamberlain [Tue, 31 Oct 1995 18:32:51 +0000 (18:32 +0000)]
* Makefile.in, configure.in: Make winsup builds work with
new scheme.
Ian Lance Taylor [Tue, 31 Oct 1995 18:30:02 +0000 (18:30 +0000)]
* input-scrub.c (input_scrub_push): Reset sb_index.
Michael Meissner [Tue, 31 Oct 1995 18:29:37 +0000 (18:29 +0000)]
New changes from Andrew
Ian Lance Taylor [Tue, 31 Oct 1995 17:39:55 +0000 (17:39 +0000)]
* 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.
Ian Lance Taylor [Tue, 31 Oct 1995 17:36:12 +0000 (17:36 +0000)]
* 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.
Ken Raeburn [Tue, 31 Oct 1995 07:43:58 +0000 (07:43 +0000)]
keep files added by Niklas Hallqvist
Ken Raeburn [Tue, 31 Oct 1995 02:01:13 +0000 (02:01 +0000)]
Put the "some mentions of sanitize..." check *after* the GM sanitization,
and make it a fatal error.
Ian Lance Taylor [Mon, 30 Oct 1995 23:58:15 +0000 (23:58 +0000)]
* configure.in: Build the linker on AIX.
Ian Lance Taylor [Mon, 30 Oct 1995 23:53:16 +0000 (23:53 +0000)]
* 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.
Ian Lance Taylor [Mon, 30 Oct 1995 23:30:24 +0000 (23:30 +0000)]
* listing.c (listing_newline): Don't create a frag in the absolute
section.
Per Bothner [Mon, 30 Oct 1995 20:57:41 +0000 (20:57 +0000)]
* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Add $(TARGET_SUBDIR)
where needed.
David Edelsohn [Mon, 30 Oct 1995 20:47:56 +0000 (20:47 +0000)]
* Makefile.in (all-gcc): Fix typo.
Ian Lance Taylor [Mon, 30 Oct 1995 19:56:30 +0000 (19:56 +0000)]
* elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
PR 8293.
Ian Lance Taylor [Mon, 30 Oct 1995 19:34:02 +0000 (19:34 +0000)]
* 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.
Fred Fish [Mon, 30 Oct 1995 03:15:12 +0000 (03:15 +0000)]
* pr-5016.exp: xfail "whatis i" for sparc-sun-sunos4*, same as linux.
Fred Fish [Sun, 29 Oct 1995 20:31:03 +0000 (20:31 +0000)]
* gdb.stabs/ecoff.sed: Remove comment lines except for first one.
IRIX 4.0 /bin/sed chokes on them, though they work fine elsewhere.
Fred Fish [Sun, 29 Oct 1995 19:28:08 +0000 (19:28 +0000)]
* monitor.c: Include gnu-regex.h rather than system regex.h.
Steve Chamberlain [Sun, 29 Oct 1995 06:58:26 +0000 (06:58 +0000)]
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.
Per Bothner [Sat, 28 Oct 1995 17:26:38 +0000 (17:26 +0000)]
* Makefile.in ($(CHECK_TARGET_MODULES)): Fix typo.
Peter Schauer [Sat, 28 Oct 1995 11:57:02 +0000 (11:57 +0000)]
* 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.
Steve Chamberlain [Sat, 28 Oct 1995 08:35:43 +0000 (08:35 +0000)]
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.
Steve Chamberlain [Sat, 28 Oct 1995 08:30:37 +0000 (08:30 +0000)]
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.
Steve Chamberlain [Sat, 28 Oct 1995 07:26:10 +0000 (07:26 +0000)]
Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
* emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
Don't hang if last option is unrecognised.
(gld_${EMULATION_NAME}_set_symbols): Insert created
symbols into ABS output section.
Per Bothner [Sat, 28 Oct 1995 06:28:42 +0000 (06:28 +0000)]
* configure.in: Rename libFOO to target-libFOO, and xiberty
to target-xiberty, to provide more flexibility.
(target_subdir): Define. Create if cross.
Set TARGET_SUBDIR in Makefile to ${target_subdir}.
* Makefile.in: Rename all-libFOO -> all-target-libFOO, all-xiberty
-> all-target-libiberty, configure-libFOO -> configure-target-libFOO,
check-libFOO -> check-target-libFOO, etc.
($(DO_X)): Iterate over TARGET_CONFIGDIRS after SUBDIRS.
($(CONFIGURE_TARGET_MODULES), $(CHECK_TARGET_MODULES),
$(ALL_TARGET_MODULES), $(INSTALL_TARGET_MODULES)): Update accordingly.
(configure-target-XXX): Depend on $(ALL_GCC), not all-gcc, to
allow ALL_GCC="" to only configure.
(DEVO_SUPPORT): Add cfg-ml-com.in and cfg-ml-pos.in.
(ETC_SUPPORT, ETC_SUPPORT_PFX): Merge; update 'taz' accordingly.
(LIBGXX_SUPPORT_DIRS): Remove xiberty.
Ken Raeburn [Sat, 28 Oct 1995 05:55:18 +0000 (05:55 +0000)]
* Makefile.in (taz): Build "info" in etc explicitly.
Ian Lance Taylor [Sat, 28 Oct 1995 05:55:00 +0000 (05:55 +0000)]
* ld-scripts/script.t: Put .pr in .text, and .rw in .data, for
convenience when testing XCOFF.
Ian Lance Taylor [Sat, 28 Oct 1995 05:51:49 +0000 (05:51 +0000)]
* xcofflink.c (xcoff_link_add_symbols): Handle csects in the
absolute section.
Ian Lance Taylor [Sat, 28 Oct 1995 05:50:14 +0000 (05:50 +0000)]
* config/tc-ppc.c (md_pseudo_table): Add "data" and "text".
(ppc_csect): Move most of the code to ppc_change_csect, and call
it.
(ppc_change_csect): New static function, taken from ppc_csect.
(ppc_section): New static function.
(ppc_saw_abs): New static varable.
(ppc_frob_symbol): Create aux entry for absolute symbols. Warn if
a symbol has no csect.
(ppc_adjust_symtab): New function.
* config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF.
(ppc_adjust_symtab): Declare if OBJ_XCOFF.
Ian Lance Taylor [Sat, 28 Oct 1995 05:05:46 +0000 (05:05 +0000)]
* symbols.c (symbol_find_or_make): Change name to be const.
* symbols.h (symbol_find_or_make): Update declaration.
Niklas Hallqvist [Sat, 28 Oct 1995 01:40:02 +0000 (01:40 +0000)]
* Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
m68k4k arch.
(em68k4knbsd.c): New rule.
* configure.tgt: Added support for the NetBSD m68k4k arch.
* genscripts.sh, ldint.texinfo,
emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
PAGE_SIZE to TARGET_PAGE_SIZE.
* emulparams/m68knbsd.h: Ditto.
(TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
(EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
being.
* emulparams/m68k4knbsd.sh: New file.
* scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
Niklas Hallqvist [Sat, 28 Oct 1995 01:01:52 +0000 (01:01 +0000)]
* m68k4knetbsd.c: New file.
* hosts/mipsnbsd.h: New file.
Niklas Hallqvist [Sat, 28 Oct 1995 00:58:22 +0000 (00:58 +0000)]
Initial revision
Niklas Hallqvist [Sat, 28 Oct 1995 00:45:51 +0000 (00:45 +0000)]
* PORTING, aout-arm.c, aout-encap.c, aout-rce.c, aout-target.h,
aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
Change PAGE_SIZE to TARGET_PAGE_SIZE.
* m68knetbsd.c: Ditto as well as add support for the m68k4k object
format.
* netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
segments includes the a.out header. See to that the magic number
*always* is big-endian.
* config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
m68k4k NetBSD configurations.
* configure.in, configure: Separate i386 & mips NetBSD
configurations from other BSD ones. Don't assume DEC is the only
thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
configurations. Add support for m68k4k NetBSD object format.
* libaout.h: Added M_68K4K_NETBSD magic.
* hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
* hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
<machine/endian.h>.
Niklas Hallqvist [Sat, 28 Oct 1995 00:36:29 +0000 (00:36 +0000)]
Define HOST_BIG_ENDIAN_P according to <machine/endian.h>.
Niklas Hallqvist [Sat, 28 Oct 1995 00:35:40 +0000 (00:35 +0000)]
Do not define HOST_BIG_ENDIAN_P
Niklas Hallqvist [Sat, 28 Oct 1995 00:34:30 +0000 (00:34 +0000)]
Added M_68K4K_NETBSD magic.
Niklas Hallqvist [Sat, 28 Oct 1995 00:34:10 +0000 (00:34 +0000)]
Separate i386 & mips NetBSD configurations from other BSD ones. Don't assume
DEC is the only thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
configurations. Add support for m68k4k NetBSD object format.
Niklas Hallqvist [Sat, 28 Oct 1995 00:30:38 +0000 (00:30 +0000)]
Add m68*-hp*-netbsd* case. Cross-pollinate m68k and m68k4k NetBSD
configurations.
Niklas Hallqvist [Sat, 28 Oct 1995 00:26:12 +0000 (00:26 +0000)]
Change PAGE_SIZE to TARGET_PAGE_SIZE
Ian Lance Taylor [Fri, 27 Oct 1995 22:21:43 +0000 (22:21 +0000)]
* emultempl/aix.em: Include ldctor.h.
(gld${EMULATION_NAME}_after_open): New static function.
(gld${EMULATION_NAME}_before_allocation): Call find_relocs.
(gld${EMULATION_NAME}_find_relocs): New static function.
(gld${EMULATION_NAME}_find_exp_assignment): New static function.
(ld_${EMULATION_NAME}_emulation): Use new after_open function.
* scripttempl/aix.sc: Use CONSTRUCTORS in .data.
* ldctor.c (struct set_info): Move definition into ldctor.h.
(struct set_element): Likewise.
(sets): Make non-static.
(ldctor_add_set_entry): Add name parameter. Save it in the new
set element.
(ldctor_build_sets): Avoid being called twice. Pass set element
name to lang_add_reloc.
* ldctor.h (struct set_info): Move definition here from ldctor.c.
(struct set_element): Likewise. Add new field name.
(sets): Declare.
(ldctor_add_set_entry): Declare new name parameter.
* ldwrite.c (build_link_order): Don't insist that either name or
section be NULL in a lang_reloc_statement.
* ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
new name parameter.
(constructor_callback): Pass name to ldctor_add_new_set_entry for
new name parameter.
Ian Lance Taylor [Fri, 27 Oct 1995 22:20:19 +0000 (22:20 +0000)]
* xcofflink.c: More improvements, mostly to fix handling of
constructors and a few other special cases.
* coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
zero, reverting yesterday's change.
* bfd-in.h (bfd_xcoff_link_record_set): Declare.
(bfd_xcoff_link_count_reloc): Declare.
(bfd_xcoff_record_link_assignment): Declare.
* bfd-in2.h: Rebuild.