Commit Graph

20438 Commits

Author SHA1 Message Date
Ian Lance Taylor e232f1aaf3 * peicode.h (coff_swap_scnhdr_out): Don't clobber other flag
settings when setting IMAGE_SCN_MEM_READ.  From Jim Wilson
	<wilson@cygnus.com>.
1997-10-20 14:55:58 +00:00
Andrew Cagney 293a0876f8 Have single bit macros return an unsigned result. Avoids risk (and
need) of sign extending results.
1997-10-20 07:27:55 +00:00
Andrew Cagney fb5a2a3e39 Make mips registers of type unsigned_word.
Ensure all references to MIPS registers use same type.
1997-10-20 06:28:53 +00:00
Jeff Law 27637913f0 * som.c (som_bfd_ar_write_symbol_stuff): Account for trailing
'/' in the extended name table.
1997-10-20 03:01:55 +00:00
Andrew Cagney 0a0ecb2120 Add 8 bit arithmetic to sim-alu.
Fix flags (Carry, oVerflow) for negate and subtract.
Add ALU*_RESULT macros for accessing final result of ALU op.
1997-10-20 02:03:06 +00:00
Ian Lance Taylor 66a6a38139 * write.c (subsegs_finish): New function, broken out of
write_object_file.
	(write_object_file): Some code moves into subsegs_finish.
	* write.c (subsegs_finish): Declare.
	* as.c (main): Call subsegs_finish.
Fixes last frag when generating a listing for a file with an error.
1997-10-19 18:14:01 +00:00
Ian Lance Taylor 891a158431 * read.c (s_include): Check for error return from
demand_copy_string.
PR 13566.
1997-10-19 17:51:31 +00:00
Stan Shebs 08655f154a * infcmd.c: Improve grammar of "set args" help. 1997-10-17 20:24:02 +00:00
Gavin Romig-Koch d7727fe96b opcodes/mips-opc.c (bnezl,beqzl): Mark these as also tx39. 1997-10-17 17:26:45 +00:00
Richard Henderson b038ec7bd9 * ldlang.c (lang_register_vers_node): Only check globals<=>locals,
since we need to be able to export different versions of the same
        symbol.
1997-10-17 07:05:05 +00:00
Richard Henderson bccab6306f * elflink.h (elf_link_assign_sym_version): For explicitly versioned
symbols, check globals list before matching on locals.
1997-10-17 07:04:28 +00:00
Andrew Cagney afb1dbe851 Preliminary tests for sim-alu module. 1997-10-17 03:57:53 +00:00
Michael Meissner 9d59cbb13c Make decl of sds_load static 1997-10-16 19:06:25 +00:00
Gavin Romig-Koch b7dd310d55 opcodes/mips-opc.c: Note that 'jalx' is (probably incorrectly) marked I1. 1997-10-16 16:03:22 +00:00
Michael Meissner 3cd99cc646 fix typo 1997-10-16 12:22:05 +00:00
Michael Meissner 04e4681226 Fix mangled patch 1997-10-16 12:19:16 +00:00
Andrew Cagney ea985d2472 Move register definitions and macros out of interp.c and into sim-main.h 1997-10-16 03:50:48 +00:00
Andrew Cagney 085c1cb988 Checkpoint IGEN version of MIPS simulator. 1997-10-16 03:41:57 +00:00
Andrew Cagney 284e759d1f Rename generated file engine.c to oengine.c. 1997-10-16 03:39:13 +00:00
Andrew Cagney 339fb14904 * gencode.c (build_instruction): Use FPR_STATE not fpr_state. 1997-10-16 03:29:47 +00:00
Andrew Cagney 8b70f83790 * gencode.c (build_instruction): For "FPSQRT", output correct number
of arguments to Recip.
1997-10-16 03:23:16 +00:00
Andrew Cagney eaa202ddd4 * gen-semantics.c (print_semantic_body): Use CIA not cia.ip. Escape
newlines at end of generated call to sim_engine_abort.
1997-10-16 03:19:41 +00:00
Ian Lance Taylor fc1213aa0b * peicode.h (pe_mkobject_hook): Set DLL flag.
(pe_bfd_copy_private_bfd_data): Copy DLL flag.
1997-10-15 20:34:26 +00:00
David Edelsohn 899f620488 * sparc/tm-sparc.h (STORE_STRUCT_RETURN): Change to handle --enable-64-bit-bfd. 1997-10-15 19:08:18 +00:00
David Edelsohn 223f2ecd9a (STORE_STRUCT_RETURN): Change to handle --enable-64-bit-bfd. 1997-10-15 19:07:30 +00:00
Ian Lance Taylor a12e621548 * scripttempl/pe.sc: Put .stab and .stabstr sections at end. 1997-10-15 18:53:18 +00:00
Ian Lance Taylor c086885a66 * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_DISCARDABLE
for .stab* sections.  Replace strlen of constant strings with
	number.
1997-10-15 18:17:40 +00:00
David Edelsohn 048c2f0179 * config/sparc/tm-sparc.h (FIX_CALL_DUMMY): Mask off displacement
to 30 bits in call insn to handle --enable-64-bit-bfd.
1997-10-15 17:31:07 +00:00
Jeff Law f08be001ae * gas/ieee-fp/x930509a.s: Tweak slightly to work on the PA.
[ pseudo-ops and directives must not start in column zero on the PA. ]
1997-10-15 16:40:48 +00:00
Jeff Law e35cf6e4e9 * gas/hppa/unsorted/unsorted.exp: Update for recent disassembler
changes.
1997-10-15 16:37:03 +00:00
Jeff Law 326ca4ee57 Bring over from r5900 branch. 1997-10-15 04:11:06 +00:00
Richard Henderson 08ce71f5c4 * read.c (get_line_sb): Accept any eol marker while scanning macros. 1997-10-15 03:56:30 +00:00
Richard Henderson 10b8f7f036 * config/tc-alpha.h (DIFF_EXPR_OK): Define.
* config/tc-i386.h (DIFF_EXPR_OK): Define.
        * config/tc-alpha.c (md_apply_fix): Notice fx_pcrel and substitute
        the correct relocation when it exists.
        * config/tc-i386.c (md_apply_fix3): Likewise.
        * config/tc-ppc.h: Correct typo in comment.
        * config/tc-v850.h: Likewise.
1997-10-15 02:17:00 +00:00
Andrew Cagney 81b3b32cda Sanitize additional files. 1997-10-15 00:05:28 +00:00
Andrew Cagney 5a9bddea84 Enable d10v simulator testsuite - two tests: Hello World and exit47. 1997-10-15 00:00:41 +00:00
Andrew Cagney fd89abc204 Handle core regions which start at a poorly aligned address. 1997-10-14 23:45:52 +00:00
Nick Clifton 0543ba6ec8 Add function to determine if a symbol is located at a given address. 1997-10-14 23:12:18 +00:00
Nick Clifton 3516c09c60 New dummy function for symbol_at_address_func field of disassemble_info
structure.
Add code to use this field in v850 disassembly.
1997-10-14 23:09:59 +00:00
Nick Clifton ecf4429f18 Added new field to disassemble_info structure to provide a function which
determines if a symbol can be found at a given address.
1997-10-14 23:05:34 +00:00
Richard Henderson d980a81fbd * elf64-alpha.c (elf64_alpha_merge_ind_symbols): New function to
merge got and reloc entries from ind syms to their target.
        (elf64_alpha_always_size_sections): Call it.
        (elf64_alpha_check_relocs): Operate on the target of indirect symbols.
        (elf64_alpha_can_merge_gots): Likewise.
        (elf64_alpha_merge_gots): Likewise.

        * elf64-alpha.c (elf64_alpha_relocate_section): Back out HJ's change,
        as it is insufficient to handle the relocation changes as well.
1997-10-14 22:46:33 +00:00
Jeff Law 78fa3a1408 * h8300.h: Bit ops with absolute addresses not in the 8 bit
area are not available in the base model (H8/300).
pr 13467.
1997-10-14 19:19:15 +00:00
Andrew Cagney 7456a10d9b * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
(ALU64_SUB): Define.
* Make-common.in (all): Build SIM_EXTRA_ALL first.
(.gdbinit): Remove dependencies, generate once per build.
1997-10-14 09:39:05 +00:00
Andrew Cagney 055ee2977f Checkpoint IGEN version of MIPS simulator. 1997-10-14 09:34:08 +00:00
Andrew Cagney 5ccb90201f remote-sim.h: Clarify sim_read, sim_write MEM argument. 1997-10-14 09:33:18 +00:00
Andrew Cagney 0c2c5f6141 Move global MIPS simulator variables into sim_cpu struct. 1997-10-14 09:26:03 +00:00
Andrew Cagney 1b217de0f3 Correct type of address argument for sim_core_{read,write} 1997-10-14 09:24:57 +00:00
Andrew Cagney 18c64df613 o Add support for configuring wordsize, fp hardware and target
endianness.  Provide defaults for some tier-1 mips targets.
o	Parameterize all functions with SIM_DESC.
1997-10-14 07:27:31 +00:00
Richard Henderson 6a587c4aae * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Allow for RELATIVE
relocs for symbols in shlibs that have been forced local.
        (elf64_alpha_relocate_section): Output RELATIVEs in .got for same.
1997-10-14 06:12:50 +00:00
Richard Henderson 3a13dd8f03 * bfd/elf64-alpha.c (elf64_alpha_relocate_section): Use the
got_enties of the default symbol for the default versioned
        symbol.  Patch from hjl@gnu.ai.mit.edu, modified not to use
        alloca in the loop.
1997-10-14 04:24:59 +00:00
Andrew Cagney d5cecca93c Output line-ref to original igen source file when generating trace
statements.
Define NIA macro (dependant on gen-delayed-branch).
Verify opening/closing quote in input assembler strings.
1997-10-14 02:54:08 +00:00