aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2005-01-27forgot to include the change for "Make relative branches out of rangeChristian Groessler1-2/+2
an error instead of a warning" from last commit
2005-01-27 * config/tc-z8k.c (INSERT): Remove, not used anywhere.Christian Groessler2-16/+28
(md_apply_fix3): Make relative branches out of range an error instead of a warning. Display correct line number for out of range branches/calls/memory accesses.
2005-01-27 * dwarf2dbg.c (dwarf2_finish): Correct logic for determining whenNathan Sidwell4-14/+58
to emit .debug_line and other debug sections. * as.h (seg_not_empty_p): Declare. * subsegs.c (seg_not_empty_p): New predicate.
2005-01-272005-01-27 Andrew Cagney <cagney@gnu.org>Andrew Cagney2-3/+9
* gettext.m4: Don't use NONE as a default for CATOBJEXT.
2005-01-27gas/Jan Beulich6-3/+29
2005-01-27 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx". gas/testsuite/ 2005-01-27 Jan Beulich <jbeulich@novell.com> * gas/ia64/nop_x.[ds]: New. * gas/ia64/ia64.exp: Run new test.
2005-01-27gas/Jan Beulich7-12/+96
2005-01-25 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (emit_one_bundle): Add late resolution of move to/from application registers dynamic insns. (md_assemble): Defer resolution of move to/from application registers dynamic insns when they can be issued on either the I- or M-units. gas/testsuite/ 2005-01-25 Jan Beulich <jbeulich@novell.com> * gas/ia64/dv-waw-err.l: Don't expect ar112 move warning to refer to M-unit. * gas/ia64/mov-ar.[ds]: New. * gas/ia64/ia64.exp: Run new test.
2005-01-25bfd/ChangeLog:Alexandre Oliva3-4/+130
2004-12-10 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (elf32_frv_relocate_section): Force local binding for TLSMOFF. * reloc.c: Add R_FRV_TLSMOFF. * elf32-frv.c (elf32_frv_howto_table): Likewise. (frv_reloc_map, frv_reloc_type_lookup): Map it. (elf32_frv_relocate_section): Handle it. (elf32_frv_check_relocs): Likewise. * libbfd.h, bfd-in2.h: Rebuilt. 2004-11-26 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (_frvfdpic_emit_got_relocs_plt_entries): Don't crash when given an undefweak TLS symbol. Fix constant TLS PLT entries such that they return the constant in gr9. (_frvfdpic_relax_tls_entries): Don't crash for undefweak TLS symbols. (_frvfdpic_size_got_plt): Set _cooked_size of dynamic sections. too, such that they shrink on relaxation. (elf32_frvfdpic_finish_dynamic_sections): Check __ROFIXUP_END__ as marking the position right past the _GLOBAL_OFFSET_TABLE_ value. (_frvfdpic_assign_plt_entries): Shrink constant TLS PLT entries if we can guarantee the use of 16-bit constants. 2004-11-10 Alexandre Oliva <aoliva@redhat.com> Introduce TLS support for FR-V FDPIC. * reloc.c: Add TLS relocations. * elf32-frv.c (elf32_frv_howto_table): Add TLS relocations. (elf32_frv_rel_tlsdesc_value_howto): New. (elf32_frv_rel_tlsoff_howto): New. (frv_reloc_map): Add new mappings. (struct frvfdpic_elf_link_hash_table): Add pointer to summary reloc information. (frvfdpic_dynamic_got_plt_info): New. (frvfdpic_plt_tls_ret_offset): New. (ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE): Move earlier. (struct _frvfdpic_dynamic_got_info): Likewise. Add TLS members. (struct _frvfdpic_dynamic_got_plt_info): Likewise. (FRVFDPIC_SYM_LOCAL): Regard symbols defined in the absolute section as local. (struct frvfdpic_relocs_info): Add TLS fields. (frvfdpic_relocs_info_hash): Warning clean up. (frvfdpic_relocs_info_find): Initialize tlsplt_entry. (frvfdpic_pic_merge_early_relocs_info): Merge TLS fields. (FRVFDPIC_TLS_BIAS): Define. (tls_biased_base): New. (_frvfdpic_emit_got_relocs_plt_entries): Deal with TLS relocations. (frv_reloc_type_lookup): Likewise. (frvfdpic_info_to_howto_rel): Likewise. (elf32_frv_relocate_section): Likewise. (_frv_create_got_section): Create the PLT section here. (elf32_frvfdpic_create_dynamic_sections): Not here. (_frvfdpic_count_nontls_entries): Move out of... (_frvfdpic_count_got_plt_entries): ... here. (_frvfdpic_count_tls_entries): Likewise. Add TLS support. (_frvfdpic_count_relocs_fixups): Likewise. Add relaxation support. (_frvfdpic_relax_tls_entries): New. (_frvfdpic_compute_got_alloc_data): Add TLS support. (_frvfdpic_get_tlsdesc_entry): New. (_frvfdpic_assign_got_entries): Add TLS support. (_frvfdpic_assign_plt_entries): Likewise. (_frvfdpic_reset_got_plt_entries): New. (_frvfdpic_size_got_plt): Move out of... (elf32_frvfdpic_size_dynamic_sections): ... here. (_frvfdpic_relax_got_plt_entries): New. (elf32_frvfdpic_relax_section): New. (elf32_frvfdpic_finish_dynamic_sections): Add TLS sanity check. (elf32_frv_check_relocs): Add TLS support. (bfd_elf32_bfd_relax_section): Define for FDPIC. * libbfd.h, bfd-in2.h: Rebuilt. cpu/ChangeLog: 2004-11-10 Alexandre Oliva <aoliva@redhat.com> * frv.cpu: Add support for TLS annotations in loads and calll. * frv.opc (parse_symbolic_address): New. (parse_ldd_annotation): New. (parse_call_annotation): New. (parse_ld_annotation): New. (parse_ulo16, parse_uslo16): Use parse_symbolic_address. Introduce TLS relocations. (parse_d12, parse_s12, parse_u12): Likewise. (parse_uhi16): Likewise. Fix constant checking on 64-bit host. (parse_call_label, print_at): New. gas/ChangeLog: * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such. 2004-12-10 Alexandre Oliva <aoliva@redhat.com> * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support. 2004-11-10 Alexandre Oliva <aoliva@redhat.com> * cgen.c (gas_cgen_parse_operand): Handle CGEN_PARSE_OPERAND_SYMBOLIC. * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations. (frv_force_relocation): Likewise. Fix handling of PIC relocations. (md_apply_fix3): Likewise. include/elf/ChangeLog: 2004-12-10 Alexandre Oliva <aoliva@redhat.com> * frv.h: Add R_FRV_TLSMOFF. 2004-11-10 Alexandre Oliva <aoliva@redhat.com> * frv.h: Add TLS relocations. include/opcode/ChangeLog: 2004-11-10 Alexandre Oliva <aoliva@redhat.com> * cgen.h (enum cgen_parse_operand_type): Add CGEN_PARSE_OPERAND_SYMBOLIC. ld/testsuite/ChangeLog: * ld-frv/fdpic.exp: Add -mfdpic to ASFLAGS. * ld-frv/tls.exp: Likewise. 2004-11-26 Alexandre Oliva <aoliva@redhat.com> * ld-frv/tls-3.s: New. * ld-frv/tls-static-3.d: New. * ld-frv/tls-dynamic-3.d: New. * ld-frv/tls-pie-3.d: New. * ld-frv/tls-shared-3.d: New. * ld-frv/tls-relax-static-3.d: New. * ld-frv/tls-relax-dynamic-3.d: New. * ld-frv/tls-relax-pie-3.d: New. * ld-frv/tls-relax-shared-3.d: New. * ld-frv/tls.exp: Run the new tests. * ld-frv/tls-dynamic-2.d: Adjust for improved relaxation. * ld-frv/tls-relax-dynamic-2.d: Likewise. * ld-frv/tls-relax-initial-shared-2.d: Likewise. 2004-11-10 Alexandre Oliva <aoliva@redhat.com> * ld-frv/tls-1-dep.s: New. * ld-frv/tls-1-shared.lds: New. * ld-frv/tls-1.s: New. * ld-frv/tls-2.s: New. * ld-frv/tls-dynamic-1.d: New. * ld-frv/tls-dynamic-2.d: New. * ld-frv/tls-initial-shared-2.d: New. * ld-frv/tls-pie-1.d: New. * ld-frv/tls-relax-dynamic-1.d: New. * ld-frv/tls-relax-dynamic-2.d: New. * ld-frv/tls-relax-initial-shared-2.d: New. * ld-frv/tls-relax-pie-1.d: New. * ld-frv/tls-relax-shared-1.d: New. * ld-frv/tls-relax-shared-2.d: New. * ld-frv/tls-relax-static-1.d: New. * ld-frv/tls-shared-1-fail.d: New. * ld-frv/tls-shared-1.d: New. * ld-frv/tls-shared-2.d: New. * ld-frv/tls-static-1.d: New. * ld-frv/tls.exp: New. * ld-frv/fdpic-pie-1.d: Adjust for 64-bit host. * ld-frv/fdpic-pie-2.d: Likewise. * ld-frv/fdpic-pie-6.d: Likewise. * ld-frv/fdpic-pie-7.d: Likewise. * ld-frv/fdpic-pie-8.d: Likewise. * ld-frv/fdpic-shared-1.d: Likewise. * ld-frv/fdpic-shared-2.d: Likewise. * ld-frv/fdpic-shared-3.d: Likewise. * ld-frv/fdpic-shared-4.d: Likewise. * ld-frv/fdpic-shared-5.d: Likewise. * ld-frv/fdpic-shared-6.d: Likewise. * ld-frv/fdpic-shared-7.d: Likewise. * ld-frv/fdpic-shared-8.d: Likewise. * ld-frv/fdpic-shared-local-2.d: Likewise. * ld-frv/fdpic-shared-local-8.d: Likewise. * ld-frv/fdpic-static-1.d: Likewise. * ld-frv/fdpic-static-2.d: Likewise. * ld-frv/fdpic-static-6.d: Likewise. * ld-frv/fdpic-static-7.d: Likewise. * ld-frv/fdpic-static-8.d: Likewise. opcodes/ChangeLog: 2004-11-10 Alexandre Oliva <aoliva@redhat.com> * frv-asm.c: Rebuilt. * frv-desc.c: Rebuilt. * frv-desc.h: Rebuilt. * frv-dis.c: Rebuilt. * frv-ibld.c: Rebuilt. * frv-opc.c: Rebuilt. * frv-opc.h: Rebuilt.
2005-01-24sleb128.d: Do not assume an 8-bit byte.Nick Clifton3-11/+18
quad.d: Likewise. Also allow for ports which order bytes within words in other than simple big-endian or little-endian fashions.
2005-01-21 * as.h: Remove #if 0'd code.Ben Elliston11-122/+26
* atof-generic.c (atof_generic): Likewise. * ecoff.c (ecoff_directive_frame): Likewise. * frags.h (FRAG_APPEND_1_CHAR): Likewise. * itbl-ops.c (itbl_add_reg): Likewise. * listing.c (calc_hex): Likewise. * read.c (MASK_CHAR): Likewise. * subsegs.c (subsegs_print_statistics): Likewise. * symbols.c (indent): Likewise. * write.c (write_relocs): Likewise. (write_object_file): Likewise. (relax_frag): Likewise.
2005-01-20(std_longopts): Add an entry for "--a" in order to prevent getopt_long_only()Nick Clifton2-0/+15
from considering -a as an abbreviation for --alternate. (parse_args): Fix the parsing of -a=<file>.
2005-01-20 PR gas/684Alan Modra2-4/+10
* read.c (s_incbin): Adjust default count for skip. Check validity of count and skip rigorously.
2005-01-19 2005-01-19 Fred Fish <fnf@specifixinc.com>Fred Fish2-1/+5
* config/tc-mips.c (dummy_opcode): Add init for new struct member.
2005-01-19 * read.c (convert_to_bignum): New function, split out from...Richard Sandiford8-35/+191
(emit_expr): ...here. Handle the case where X_add_number is positive and the input value is negative. (output_big_sleb128): Fix setting of continuation bit. Check whether the final byte needs to be sign-extended. Fix size-shrinking loop. (emit_leb128_expr): When generating a signed leb128, see whether the sign of an O_constant's X_add_number matches the sign of the input value. Use a bignum if not.
2005-01-17Fix SH2A machine variants in order to correctly select instruction inheritanceNick Clifton25-29/+5145
2005-01-142005-01-14 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
PR 659 * config/tc-i386.c (i386_scale): Disallow 0 scale.
2005-01-12gas/testsuite/H.J. Lu4-0/+34
2005-01-12 H.J. Lu <hongjiu.lu@intel.com> * i386/i386.exp: Run "sib". * gas/i386/sib.d: New file. * gas/i386/sib.s: Likewise. opcodes/ 2005-01-12 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (OP_E): Ignore scale when index == 0x4 in SIB.
2005-01-12(s_iq2000_set): Fix thinko parsing ignored_arguments array.Nick Clifton2-4/+9
2005-01-102005-01-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+8
* write.c (write_object_file): Disallow a symbol equated to common symbol.
2005-01-10Add support for maxq10 and maxq20 machine valuesNick Clifton2-9/+27
2005-01-09 * gas/i386/intel16.d: Ignore trailing text with #pass.Andreas Schwab7-6/+15
* gas/i386/intelok.d: Likewise. * gas/i386/prefix.d: Likewise. * gas/i386/sub.d: Likewise. * gas/i386/padlock.d: Likewise. * gas/i386/x86_64.d: Likewise.
2005-01-062005-01-06 Paul Brook <paul@codesourcery.com>Paul Brook2-9/+87
bfd/ * config.bfd: Add entry for arm-*-vxworks and arm-*-windiss. * configure.in: Add bfd_elf32_{big,little}arm_vxworks_vec. * configure: Regenerate. * elf32-arm.c: Add VxWorks target bfd. (USE_REL): Remove. (elf32_arm_link_hash_table): Add use_rel. (elf32_arm_link_hash_table_create, elf32_arm_final_link_relocate, elf32_arm_relocate_section): Replace USE_REL with runtime check. Correct offset calculation for RELA case. (elf_backend_may_use_rel_p, elf_backend_may_use_rela_p, elf_backend_default_use_rela_p, elf_backend_rela_normal): Define. (elf32_arm_vxworks_link_hash_table_create): New function. * targets.c (bfd_elf32_bigarm_vxworks_vec): Add declaration. (bfd_elf32_littlearm_vxworks_vec): Ditto. (_bfd_target_vector): Add bfd_elf32_{big,little}arm_vxworks_vec. gas/ * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS. (md_begin): Handle TE_VXWORKS for FP defaults. (md_apply_fix3): Correct rela offsets. (elf32_arm_target_format): Add VxWorks targets. ld/ * Makefie.am: Add earmelf_vxworks. * Makefile.in: Regenerate. * configure.tgt: Make arm-*-vxworks a separate case. * emulparams/armelf_vxworks.sh: New function.
2005-01-06 * configure.tgt: Set em=vxworks for *-*-vxworks.Paul Brook3-1/+37
* config/te-vxworks.h: New File.
2005-01-06 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.Paul Brook2-2/+6
2005-01-05 * gas/elf/elf.exp (section5): Use 0-9 instead of [:digit:].Eric Botcazou2-1/+5
2005-01-04(md_apply_fix3): Fix offset calculation for global label.Nick Clifton2-2/+19
2005-01-04Line number bug fix patch from David Mosberger.Jim Wilson2-6/+29
* config/tc-ia64.c (md): Add member "loc_directive_seen". (dot_loc): New function. (md_pseudo_table): Add entry to map .loc to dot_loc(). (emit_one_bundle): Only call dwarf2_gen_line_info() if we have seen a .loc directive or we're generating DWARF2 debug info for assembly source.
2004-12-30 * gas/elf/elf.exp: Don't list reloc sections.Alan Modra3-4/+6
* gas/elf/section5.e: Remove reloc sections.
2004-12-29 PR gas/619Alan Modra2-3/+7
* read.c (s_comm_internal): Don't zero end of name until size expression has been parsed.
2004-12-25 * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.Marek Michalkiewicz2-3/+7
2004-12-232004-12-23 Tomer Levi <Tomer.Levi@nsc.com>Tomer Levi2-6/+9
* config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch' case).
2004-12-22 * configure.tgt: New.Ian Lance Taylor6-838/+544
* configure.in: Move setting of cpu_type, fmt, etc., to configure.tgt. * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add $(srcdir)/configure.tgt. * configure, Makefile.in: Rebuild.
2004-12-22Add support for the new R_AVR_LDI, R_AVR_6 and R_AVR_6_ADIW relocs for theNick Clifton2-14/+67
LDI, ADIW/SBIW and LDD/STD instructions.
2004-12-212004-12-21 Tomer Levi <Tomer.Levi@nsc.com>Tomer Levi1-0/+10
* gas/crx/beq_insn.d: Update reference file according to disassembler printing method. * gas/crx/bit_insn.d: Likewise. * gas/crx/br_insn.d: Likewise. * gas/crx/cmpbr_insn.d: Likewise. * gas/crx/cop_insn.d: Likewise. * gas/crx/load_stor_insn.d: Likewise.
2004-12-212004-12-21 Tomer Levi <Tomer.Levi@nsc.com>Tomer Levi6-232/+232
* gas/crx/beq_insn.d: Update reference file according to disassembler printing method. * gas/crx/bit_insn.d: Likewise. * gas/crx/br_insn.d: Likewise. * gas/crx/cmpbr_insn.d: Likewise. * gas/crx/cop_insn.d: Likewise. * gas/crx/load_stor_insn.d: Likewise.
2004-12-21 * gas/elf/section5.e, gas/elf/section5.l: Replace [:digit:],Hans-Peter Nilsson3-29/+35
[:xdigit:] and {N} in regexps with [0-9], [0-9a-fA-F] and N copies, to cater to tcl versions before Tcl 8.2.3.
2004-12-20* gas/elf/section5.[ls]: Use % instead of @ in .section directives.Nick Clifton3-12/+17
2004-12-172004-12-16 Andrew Stubbs <andrew.stubbs@st.com>Joern Rennecke1-0/+8
* config/tc-sh64.c (shmedia_md_apply_fix3): Add missing BFD_RELOC_SH_IMMS10BY8 relocation. * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather than just ignoring bad code.
2004-12-162004-12-16 Andrew Stubbs <andrew.stubbs@st.com>Joern Rennecke1-2/+8
* config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather than just ignoring bad code.
2004-12-162004-12-16 Andrew Stubbs <andrew.stubbs@st.com>Joern Rennecke1-0/+5
* config/tc-sh64.c (shmedia_md_apply_fix3): Add missing BFD_RELOC_SH_IMMS10BY8 relocation.
2004-12-16include/elf/Richard Sandiford6-2/+62
* v850.h (R_V850_LO16_SPLIT_OFFSET): New reloc. bfd/ * reloc.c (BFD_RELOC_V850_LO16_SPLIT_OFFSET): New bfd_reloc_code_type. * elf32-v850.c (v850_elf_howto_table): Add entry for R_V850_LO16_SPLIT_OFFSET. (v850_elf_reloc_map): Map it to BFD_RELOC_V850_LO16_SPLIT_OFFSET. (v850_elf_perform_lo16_relocation): New function, extracted from... (v850_elf_perform_relocation): ...here. Use it to handle R_V850_LO16_SPLIT_OFFSET. (v850_elf_check_relocs, v850_elf_final_link_relocate): Handle R_V850_LO16_SPLIT_OFFSET. * libbfd.h, bfd-in2.h: Regenerate. gas/ * config/tc-v850.c (handle_lo16): New function. (v850_reloc_prefix): Use it to check lo(). (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET. gas/testsuite/ * gas/v850/split-lo16.{s,d}: New test. * gas/v850/v850.exp: Run it. ld/testsuite/ * ld-v850: New directory.
2004-12-16Add support for s390x-ibm-tpf targetNick Clifton3-0/+7
2004-12-16gas/Jan Beulich7-23/+108
2004-12-15 Jan Beulich <jbeulich@novell.com> * config/obj-elf.c (obj_elf_change_section): Only set type and attributes on new sections. Emit warning when type of re-declared section doesn't match. gas/testsuite/ 2004-12-15 Jan Beulich <jbeulich@novell.com> * gas/elf/section5.[els]: New.
2004-12-16gas/Jan Beulich2-0/+6
2004-12-15 Jan Beulich <jbeulich@novell.com> * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so '.cfi_startproc simple' doesn't inherit the old value.
2004-12-16gas/Jan Beulich2-2/+8
2004-12-15 Jan Beulich <jbeulich@novell.com> * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf generation to emit a factored offset.
2004-12-13 * gas/mips/elf-rel25.d, gas/mips/elf-rel25a.d: Cope with differentRichard Sandiford3-2/+7
.text alignments.
2004-12-11bfd/Alan Modra55-192/+249
* elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that canonical sections syms have a name. gas/testsuite/ Update for changed section syms. ld/testsuite/ Update for changed section syms.
2004-12-11 * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offsetIan Lance Taylor2-0/+6
which is too large in the case of NO_PIC without 64-bit addresses.
2004-12-10 * gas/mips/elf-rel23a.d: New test.Ian Lance Taylor7-0/+88
* gas/mips/elf-rel23b.d: New test. * gas/mips/elf-rel25.s: New test. * gas/mips/elf-rel25.d: New test. * gas/mips/elf-rel25a.d: New test. * gas/mips/mips.exp: Run new tests.
2004-12-10 * config/tc-mips.c (mips_in_shared): New static variable.Ian Lance Taylor4-15/+101
(macro_build_lui): Permit "_gp" if !mips_in_shared. (md_longopts): Add -mshared and -mno-shared. (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED. (s_cpload): Implement !mips_in_shared case. (s_cpsetup): Likewise. * doc/c-mips.texi (MIPS Opts): Document -mno-shared. * NEWS: Mention -mno-shared.
2004-12-09 * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocationPaul Brook4-6/+15
for function start. * testsuite/gas/arm/unwind.d: Expect R_ARM_PREL31 relocations.