summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * expr.c (expr): Move code setting "retval" to the end of the loop,Alan Modra2001-09-097-76/+174
| | | | | | | | | | | | | | | | | | | | | and rearrange for efficiency. For "PIC code" subtraction, use "rightseg" rather than recalculating. For "symbol OP symbol" subtract, set "retval" to absolute_section if symbols in same section. * symbols.c (resolve_symbol_value): Resolve "sym +/- expr" to an O_symbol. Simplify a +/- b code. Allow equality and non-equality comparisons on symbols from any section. Allow other comparison operators as for subtraction. (symbol_equated_reloc_p): New predicate function. * symbols.h (symbol_equated_reloc_p): Declare. * write.c (adjust_reloc_syms): Use symbol_equated_reloc_p. (write_relocs): Likewise. (write_object_file): Likewise. (relax_segment <rs_machine_dependent>): Ensure segment for expression syms is set correctly. * config/tc-mips.c (md_estimate_size_before_relax): Likewise. * config/tc-i386.c (md_assemble <Output jumps>): Don't lose part of a complex expression when setting up frag_var.
* * elf64-alpha.c (elf64_alpha_relocate_section): Soft failRichard Henderson2001-09-092-3/+24
| | | | | relocation errors. Fail gp-relative relocations against dynamic symbols.
* *** empty log message ***gdbadmin2001-09-091-1/+1
|
* Fix truncated 2001-08-23 entry.Mark Kettenis2001-09-081-1/+1
|
* * gdbint.texinfo (Host Definition): Remove description ofMark Kettenis2001-09-082-5/+3
| | | | MEM_FNS_DECLARED.
* * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.Mark Kettenis2001-09-082-5/+2
|
* * gdbint.texinfo (Host Definition): Remove description of R_OK.Mark Kettenis2001-09-082-3/+2
|
* * config/arm/xm-linux.h, config/ia64/xm-linux.h,Mark Kettenis2001-09-087-18/+5
| | | | | | config/m68k/xm-linux.h, config/mips/xm-linux.h, config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove redundant inclusion of <unistd.h>.
* * gdbint.texinfo (Host Definition): Remove description ofMark Kettenis2001-09-082-5/+5
| | | | HAVE_SIGSETMASK.
* * gdbtypes.h (struct block): Add forward declaration.Mark Kettenis2001-09-082-0/+7
|
* * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULARAlan Modra2001-09-083-6813/+6833
| | | | | | | as well as DEF_DYNAMIC in test for avoided copy relocs. (allocate_plt_and_got_and_discard_relocs): Likewise. * elf32-i386.c (elf_i386_relocate_section): Likewise. (allocate_plt_and_got_and_discard_relocs): Likewise.
* mischeckin. fixed.Eric Christopher2001-09-083-4/+4
|
* 2001-09-07 Eric Christopher <echristo@redhat.com>Eric Christopher2001-09-083-4/+9
| | | | | * gas/mips/mips64.d: Change to use mipsisa64. * gas/mips/mips32.d: Change to use mipsisa32.
* * config/tc-alpha.c (alpha_reloc_op_tag): Replace need_seq withRichard Henderson2001-09-082-27/+37
| | | | | require_seq and allow_seq. Let !literal omit the sequence number. (tokenize_arguments): Reject sequence numbers of !allow_seq.
* *** empty log message ***gdbadmin2001-09-081-1/+1
|
* * config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGEJakub Jelinek2001-09-072-0/+6
| | | | section symbols the same way as externs.
* * defs.h (enum return_reason): Renumber so that all values areAndrew Cagney2001-09-073-40/+134
| | | | | | | | | | | | | | | negative. (RETURN_MASK): Negate reason. (catch_exception_ftype): Declare. (catch_exceptions): Declare. * top.c (catcher): New function, based on catch_errors. Add in parameter func_uiout and out parameters func_val, func_caught and func_cleanup. Change type of func to catch_exceptions_ftype. Save/restore uiout. (struct catch_errors_args): Define. (do_catch_errors): New function. (catch_errors): Rewrite, use do_catch_errors and catcher. (catch_exceptions): New function, use catcher.
* Correctly parse register values provided by the monitor.Jim Blandy2001-09-073-2/+92
| | | | | | | | | | * rom68k-rom.c: #include "value.h". (is_hex_digit, hex_digit_value, is_whitespace, rom68k_supply_one_register): New static functions. (rom68k_supply_register): Call rom68k_supply_one_register, instead of monitor_supply_register; the latter was incorrectly parsing the values. * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
* * emulparams/h8300helf.sh: Move stack to a much higher memory address.Jeff Law2001-09-073-2/+7
| | | | * emulparams/h8300self.sh: Similarly.
* * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaultsMark Kettenis2001-09-072-4/+5
| | | | to using setpgid if available now.
* Fix wrong ChangeLog entriesThiemo Seufer2001-09-071-10/+11
|
* Reallow unrestricted use of .set mipsX pseudo-op in gas.Thiemo Seufer2001-09-0713-10/+63
| | | | Update testcases accordingly.
* * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handlingThiemo Seufer2001-09-0715-14/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | of R_MIPS_PC16. * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL. (macro_build): Use BFD_RELOC_16_PCREL_S2 only for embedded PIC, BFD_RELOC_16_PCREL for the rest. (mips_ip): Likewise. (md_pcrel_from): return the right offset for the differently shifted pcrel relocs. (md_apply_fix): Handle BFD_RELOC_16_PCREL. * gas/mips/beq.d: Check branches to external labels. * gas/mips/beq.s: Likewise. * gas/mips/bge.d: Likewise. * gas/mips/bge.s: Likewise. * gas/mips/bgeu.d: Likewise. * gas/mips/bgeu.s: Likewise. * gas/mips/blt.d: Likewise. * gas/mips/blt.s: Likewise. * gas/mips/bltu.d: Likewise. * gas/mips/bltu.s: Likewise. * gas/mips/elempic.d: Switch from R_MIPS_GNU_REL16_S2 to R_MIPS_PC16. * gas/mips/empic.d: Likewise. * gas/mips/empic.s: Likewise. * gas/mips/telempic.d: Likewise. * gas/mips/tempic.d: Likewise.
* *** empty log message ***gdbadmin2001-09-071-1/+1
|
* * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTOThiemo Seufer2001-09-062-6953/+6908
| | | | | definitions. (mips_elf64_howto_table_rel): Likewise.
* From Ian Roxborough <irox@redhat.com>Keith Seitz2001-09-063-424/+407
| | | | | | | * configure.in: Use ITCL_LIB_FULL_PATH and ITK_LIB_FULL_PATH to set Itcl and Itk dependancies for gdb. * configure: Regenerated.
* Don't use error result from find_stab_function_addr().Kevin Buettner2001-09-063-6/+47
|
* * gas/mips/tmips16-f.d: New file, testcase for big endian MIPS16Thiemo Seufer2001-09-062-0/+39
| | | | relocations, tradtional variant.
* Fix import symbols for AIX.Tom Rix2001-09-069-76/+114
|
* 2001-09-04 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2001-09-062-1/+18
| | | | | * gdbint.texinfo (Target Architecture Definition): Add explanation of TARGET_PRINT_INSN macro.
* *** empty log message ***gdbadmin2001-09-061-1/+1
|
* 2001-09-05 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2001-09-0513-19/+94
| | | | | | | | | | | | | | | | | | | | * gdbarch.sh: Move include of dis-asm.h so it is generated earlier in gdbarch.h. (TARGET_PRINT_INSN): Multiarch. * gdbarch.h: Regenerate. * gdbarch.c: Regenerate. * arch-utils.c (legacy_print_insn): New function. * arch-utils.h (legacy_print_insn): Export. * cris-tdep.c (cris_delayed_get_disassembler): Use TARGET_PRINT_INSN, instead of tm_print_insn. * d10v-tdep.c (print_insn): Ditto. * d30v-tdep.c (print_insn): Ditto. * m32r-tdep.c (dump_insn): Ditto. * v850-tdep.c (v850_scan_prologue): Ditto. * mcore-tdep.c (mcore_dump_insn): Ditto. * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
* Fix typo.Michael Snyder2001-09-051-1/+6
|
* * gdbtypes.h (struct type): Doc fix.Jim Blandy2001-09-052-15/+27
|
* 2001-08-31 Jason Molenda (jmolenda@apple.com)Michael Snyder2001-09-051-1/+0
| | | | | * c-valprint.c (c_val_print): Second call to check_typedef () is no longer necessary.
* * config/tc-ia64.c (FUNC_IPLT_RELOC): New.Richard Henderson2001-09-052-1/+34
| | | | | | | (pseudo_func): Add @iplt. (pseudo_opcode): Add data16 and data16.ua. (md_begin): Set iplt pseudo. (ia64_cons_fix_new): Handle 16 byte iplt reloc specially.
* Set correct value for default (PE) stack size.Nick Clifton2001-09-052-1/+6
|
* * elf64-alpha.c (SKIP_HOWTO): New.Richard Henderson2001-09-055-237/+74
| | | | | | | | | | | | | (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs. Fix sizes of 16-bit mem format relocs. (elf64_alpha_reloc_map): Update to match. (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate. (elf64_alpha_relax_without_lituse): Likewise. (elf64_alpha_check_relocs): Handle GPREL16. (elf64_alpha_relocate_section): Likewise. * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove. (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New. * bfd-in2.h, libbfd.h: Rebuild.
* * alpha.h (R_ALPHA_OP*, R_ALPHA_IMMED*, R_ALPHA_GPVALUE): Remove.Richard Henderson2001-09-052-17/+14
| | | | (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
* 2001-09-04 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2001-09-054-6/+21
| | | | | | | | | | From Daniel Jacobowitz <drow@mvista.com> * dbxread.c (free_header_files): Make global. (init_header_files): Likewise. * stabsread.h (free_header_files): Add prototype. (init_header_files): Likewise. * mdebugread.c (mdebug_build_psymtabs): Initialize properly before using the stabs debug reader.
* * alpha.h (struct alpha_operand): Pack elements into bitfields.Richard Henderson2001-09-052-4/+8
|
* * config/tc-alpha.c (struct alpha_insn): Make sequence scalar long.Richard Henderson2001-09-0516-851/+731
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (MACRO_LITERAL, MACRO_BASE, MACRO_BYTOFF, MACRO_JSR): Remove. (alpha_macros): Remove occurrences of same. (O_lituse_addr, O_gprel): New. (DUMMY_RELOC_LITUSE_*): New. (s_alpha_ucons, s_alpha_arch): Prototype. (alpha_reloc_op): Construct elements via DEF macro. (ALPHA_RELOC_SEQUENCE_OK): Remove. (struct alpha_reloc_tag): Rename from alpha_literal_tag; rename members to not be literal specific. (next_sequence_num): New. (md_apply_fix3): Cope with missing GPDISP_LO16. Adjust for added/removed BFD relocations. (alpha_force_relocation, alpha_fix_adjustable): Likewise. (alpha_adjust_symtab_relocs): Handle GPDISP relocs as well. (tokenize_arguments): Parse ! relocations properly. (find_macro_match): Delete unused macro argument types. (assemble_insn): Add reloc parameter; emit that instead of the default as appropriate. (get_alpha_reloc_tag): New. Split from ... (emit_insn): ... here. Allocate a reloc tag for GPDISP. (assemble_tokens): Don't search macros if user relocation present. Copy reloc sequence number to insn struct. (emit_ldgp): Remove user reloc handling. (load_expression, emit_lda, emit_ldah, emit_ir_load): Likewise. (emit_loadstore, emit_ldXu, emit_ldil, emit_stX): Likewise. (emit_sextX, emit_division, emit_jsrjmp, emit_retjcr): Likewise. * config/tc-alpha.h (tc_adjust_symtab): Always define. (struct alpha_fix_tag): Name members less literal specific. * gas/alpha/alpha.exp: New file. * gas/alpha/elf-reloc-1.[sd]: New test. * gas/alpha/elf-reloc-2.[sl]: New test. * gas/alpha/elf-reloc-3.[sl]: New test. * gas/alpha/elf-reloc-4.[sd]: New test. * gas/alpha/fp.exp: Remove file. * gas/alpha/fp.s: Output to .data not .rdata. * gas/alpha/fp.d: Adjust to match.
* * readelf.c: Include elf/h8 for H8 series definitions.Jeff Law2001-09-054-1/+22
| | | | | | | | (guess_is_rela): H8 series if RELA. (dump_relocations): Handle H8 series relocations. * testsuite/binutils/all/readelf.exp: Expect readelf -wi to fail for the H8 series.
* 2001-09-04 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2001-09-056-10/+24
| | | | | | | | | | | From Daniel Jacobowitz <drow@mvista.com> * dbxread.c (dbx_symfile_read): Only reinitialize the psymbol list if mainline or if both static and global lists are empty. * dwarf2read.c (dwarf2_build_psymtabs): Likewise. * dwarfread.c (dwarf_build_psymtabs): Likewise. * xcoffread.c (xcoff_initial_scan): Likewise. * os9kread.c (os9k_symfile_read): Likewise.
* Tue Sep 4 20:06:09 2001 Jeffrey A Law (law@cygnus.com)Jeff Law2001-09-056-113/+129
| | | | | | | | | | | | * gas/all/gas.exp (930509a): Expect failure on the H8/300 ELF port. * gas/h8300/ffxx1-elf.d: Update due to recent changes to H8/300 ELF toolchain. * gas/h8300/h8300-elf.exp: Likewise. * gas/macros/macros.exp: Expect failure on all H8/300 ports. * gas/vtable/vtable.exp: Do not run tests on H8/300 ELF ports.
* 2001-09-04 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2001-09-052-5/+38
| | | | | | From Daniel Jacobowitz <drow@mvista.com> * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without a name specially.
* * tc-h8300.c (tc_gen_reloc): Give an error if we try to take theJeff Law2001-09-052-2/+17
| | | | address of two symbols in different sections.
* *** empty log message ***gdbadmin2001-09-051-1/+1
|
* merge from gccDJ Delorie2001-09-043-37/+25
|
* * elf32-h8300.c (elf32_h8_relax_section): New function.Jeff Law2001-09-042-0/+867
| | | | | | | | (elf32_h8_relax_delete_bytes): Likewise. (elf32_h8_symbol_address_p): Likewise. (elf32_h8_get_relocated_section_contents): Likewise. (bfd_elf32_bfd_relax_section): Define. (bfd_elf32_bfd_get_relocated_section_contents): Likewise.