aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2003-01-03daily updateAlan Modra1-1/+1
2003-01-03 * Makefile.am (ALL_MACHINES): Add cpu-iq2000.lo.Stan Cox13-3/+1109
(ALL_MACHINES_CFILES): Add cpu-iq2000.c. (BFD32_BACKENDS): Add elf32-iq2000.lo. (BFD32_BACKENDS_CFILES): Add elf32-iq2000.c. (cpu-iq2000.lo): New target. * Makefile.in: Regenerate. * config.bfd: Handle iq2000-*-elf. * archures.c (bfd_architecture): Add bfd_{arch,mach}_iq2000. (bfd_archures_list): Add bfd_iq2000_arch. * configure.in: Handle bfd_elf32_iq2000_vec. * configure: Regenerate. * reloc.c: Add BFD_RELOC_IQ2000_OFFSET_16, BFD_RELOC_IQ2000_OFFSET_21, and BFD_RELOC_IQ2000_UHI16. * targets.c (bfd_elf32_iq2000_vec): Declare. (bfd_target_vector): Add bfd_elf32_iq2000_vec. * elf.c (prep_headers): Set e_machine to EM_IQ2000. * cpu-iq2000.c: New file. * elf32-iq2000.c: Likewise. * libbfd.h: Regenerate. * bfd-in2.h: Likewise.
2003-01-03oops - omitted from previous delta - a reworking of the linker relaxation code.Nick Clifton1-740/+717
2003-01-02daily updateAlan Modra1-1/+1
2003-01-02bfd/Richard Sandiford2-110/+167
* elfxx-mips.c: Include libiberty.h. (elf_mips_isa, _bfd_mips_elf_mach_extends_p): Remove. (mips_set_isa_flags): New function, split out from... (_bfd_mips_elf_final_write_processing): ...here. Only call mips_set_isa_flags if the EF_MIPS_MACH bits are clear. (mips_mach_extensions): New array. (mips_32bit_flags_p): New function. (_bfd_mips_elf_merge_private_bfd_data): Rework architecture checks. Use mips_32bit_flags_p to check if one binary is 32-bit and the other is 64-bit. When adopting IBFD's architecture, adopt the bfd_mach as well as the flags. ld/testsuite/ * ld-mips-elf/jr.s: New file. * ld-mips-elf/mips-elf-flags.exp: New test.
2003-01-02Rework IP2k linker relxation.Nick Clifton1-0/+8
2003-01-01daily updateAlan Modra1-1/+1
2002-12-31daily updateAlan Modra1-1/+1
2002-12-31[ bfd/ChangeLog ]Chris Demetriou6-2/+36
2002-12-30 Chris Demetriou <cgd@broadcom.com> * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mipsisa32r2 case. * archures.c (bfd_mach_mipsisa32r2): New define. * bfd-in2.h: Regenerate. * cpu-mips.c (I_mipsisa32r2): New enum value. (arch_info_struct): Add entry for I_mipsisa32r2. * elfxx-mips.c (elf_mips_isa, _bfd_elf_mips_mach) (_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_32R2. (_bfd_mips_elf_final_write_processing): Add bfd_mach_mipsisa32r2 case. (_bfd_mips_elf_merge_private_bfd_data): Handle merging of binaries marked as using MIPS32 Release 2. [ binutils/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * doc/binutils.texi (objdump): Note MIPS HWR (Hardware Register) changes in MIPS -M options. [ gas/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and CPU variants. * configure: Regenerate. * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines. (macro_build): Handle "K" operand. (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where CPU_HAS_DROR and CPU_HAS_ROR are currently used. (mips_ip): New variable "lastpos", and implement "+A", "+B", and "+C" operands for MIPS32 Release 2 ins/ext instructions. Implement "K" operand for MIPS32 Release 2 rdhwr instruction. (validate_mips_insn): Implement "+" as a way to extend the allowed operands, and implement "K", "+A", "+B", and "+C" operands. (OPTION_MIPS32R2): New define. (md_longopts): Add entry for OPTION_MIPS32R2. (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2. (md_parse_option): Handle OPTION_MIPS32R2. (s_mipsset): Reimplement handling of ".set mipsN" options and add support for ".set mips32r2". (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2). (md_show_usage): Document "-mips32r2" option. * doc/as.texinfo: Document "-mips32r2" option. * doc/c-mips.texi: Likewise. [ gas/testsuite/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * gas/mips/cp0-names-mips32r2.d: New test. * gas/mips/hwr-names-mips32r2.d: New test. * gas/mips/hwr-names-numeric.d: New test. * gas/mips/hwr-names.s: New test source file. * gas/mips/mips32r2.d: New test. * gas/mips/mips32r2.s: New test source file. * gas/mips/mips32r2-ill.l: New test. * gas/mips/mips32r2-ill.s: New test source file. * gas/mips/mips.exp: Add mips32r2 architecture data array entry. Run new tests mentioned above. [ include/elf/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * mips.h (E_MIPS_ARCH_32R2): New define. [ include/opcode/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * mips.h: Document "+" as the start of two-character operand type names, and add new "K", "+A", "+B", and "+C" operand types. (OP_MASK_INSMSB, OP_SH_INSMSB, OP_MASK_EXTMSB) (OP_SH_EXTMSB, INSN_ISA32R2, ISA_MIPS32R2, CPU_MIPS32R2): New defines. [ opcodes/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * mips-dis.c (mips_cp0_names_mips3264r2, mips_hwr_names_numeric) (mips_hwr_names_mips3264r2): New arrays. (mips_arch_choice): New "hwr_names" member. (mips_arch_choices): Adjust for structure change, and add a new entry for "mips32r2" ISA. (mips_hwr_names): New variable. (set_default_mips_dis_options): Set mips_hwr_names. (parse_mips_dis_option): New "hwr-names" option which sets mips_hwr_names, and adjust "reg-names=ARCH" to set mips_hwr_names. (print_insn_arg): Change return type to "int" and use that to indicate number of characters consumed. Add support for "+" operand extension character, "+A", "+B", "+C", and "K" operands. (print_insn_mips): Adjust for changes to print_insn_arg. (print_mips_disassembler_options): Adjust for "hwr-names" addition and "reg-names" change. * mips-opc (I33): New define (shorthand for INSN_ISA32R2). (mips_builtin_opcodes): Note that "nop" and "ssnop" are special forms of "sll". Add new MIPS32 Release 2 instructions: ehb, di, ei, ext, ins, jr.hb, jalr.hb, mfhc1, mfhc2, mthc1, mthc2, rdhwr, rdpgpr, seb, seh, synci, wrpgpr, wsbh. Note that hardware rotate instructions (ror, rorv) can be used on MIPS32 Release 2, and add the official mnemonics for them (rotr, rotrv) and the similar "rotl" mnemonic for left-rotate.
2002-12-30daily updateAlan Modra1-1/+1
2002-12-30Add support for msp430.Nick Clifton13-14/+937
2002-12-29daily updateAlan Modra1-1/+1
2002-12-28daily updateAlan Modra1-1/+1
2002-12-28 * elf.c (elf_sort_sections): Don't reorder .tbss.Jakub Jelinek3-12/+55
(assign_file_positions_for_segments): Only adjust off/voff for increased alignment in PT_LOAD or PT_NOTE segment, but adjust p_filesz for .tbss too. in PT_LOAD consider .tbss to have zero memory size. (copy_private_bfd_data) [SECTION_SIZE]: Define. [IS_CONTAINED_BY_VMA, IS_CONTAINED_BY_LMA]: Use it. [INCLUDE_SECTION_IN_SEGMENT]: Only put SHF_TLS sections into PT_TLS segment. Never put SHF_TLS sections in segments other than PT_TLS or PT_LOAD. * elf64-alpha.c (elf64_alpha_finish_dynamic_sections): Clear .plt sh_entsize.
2002-12-27daily updateAlan Modra1-1/+1
2002-12-26daily updateAlan Modra1-1/+1
2002-12-25daily updateAlan Modra1-1/+1
2002-12-24daily updateAlan Modra1-1/+1
2002-12-24* coff64-rs6000.c (xcoff64_ppc_relocate_section): Fix logic reversal.DJ Delorie2-1/+5
2002-12-23daily updateAlan Modra1-1/+1
2002-12-23 * elflink.h (elf_link_output_extsym): Heed strip_discarded.Alan Modra2-5/+14
2002-12-23Change linker's default behaviour - it will now reject binary files whoesNick Clifton4-15/+35
architecture it does not recognise, unless it has explicitly told to accept them.
2002-12-22daily updateAlan Modra1-1/+1
2002-12-21daily updateAlan Modra1-1/+1
2002-12-21Disable WINCE workaround that subtracted 8 from pc relative relocations.Nick Clifton2-0/+8
2002-12-20daily updateAlan Modra1-1/+1
2002-12-20 * coff-h8300.c: Fix comment typos.Kazu Hirata10-12/+24
* coffcode.h: Likewise. * cpu-cris.c: Likewise. * elf32-vax.c: Likewise. * genlink.h: Likewise. * linker.c: Likewise. * som.c: Likewise. * tekhex.c: Likewise. * vms-misc.c: Likewise.
2002-12-20* reloc.c: Add BFD_RELOC_XSTORMY16_12.DJ Delorie5-1/+29
* libbfd.h: Regenerate. * bfd-in2.h: Regenerate. * elf32-xstormy16.c (xstormy16_elf_howto): Add R_XSTORMY16_12. (xstormy16_reloc_map): Add R_XSTORMY16_12.
2002-12-20 * doc/bfdint.texi: Fix typos.Kazu Hirata2-2/+6
2002-12-20 * acinclude.m4 (AM_INSTALL_LIBBFD): Do not rely on "test -o".Alan Modra6-517/+490
* configure.in (build-warnings): Likewise. (Horrible hacks to build DLLs on Windows): Do not rely on "tail -1". * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate.
2002-12-19daily updateAlan Modra1-1/+1
2002-12-19 * coff-h8300.c: Include libiberty.h.Alan Modra2-34/+62
(h8300_reloc16_extra_cases): Check the hash table creator before referencing h8300 specific fields. Stash the hash table pointer in a local var. Comment typo fixes. (h8300_bfd_link_add_symbols): Likewise.
2002-12-18daily updateAlan Modra1-1/+1
2002-12-18 * bfd/reloc.c (struct reloc_howto_struct): Revise src_mask andAlan Modra3-22/+26
dst_mask comments. * bfd-in2.h: Regenerate.
2002-12-18 * elf32-ppc.c (ppc_elf_relocate_section): Reorganize dynamic relocAlan Modra2-6/+15
code a little. Comment on dynamic relocs against section symbols.
2002-12-17daily updateAlan Modra1-1/+1
2002-12-17 * configure.host (ia64-*-hpux*): Support 64 bit targets usingAlan Modra2-1/+10
the HP compiler's "long long".
2002-12-17* elf32-xstormy16.c (xstormy16_elf_howto): Add R_XSTORMY16_LO16DJ Delorie2-1/+41
and R_XSTORMY16_HI16) howto entries. (xstormy16_reloc_map): Map R_XSTORMY16_{LO,HI}16 to BFD_RELOC_{LO,HI}16. (xstormy16_info_to_howto_rela): Use R_XSTORMY16_GNU_VTINHERIT to determine the start of the second reloc table.
2002-12-16daily updateAlan Modra1-1/+1
2002-12-16Fix the reading of the debugging information of Tru64/Alpha binaries thatNick Clifton2-42/+169
are produced by recent Compaq compilers.
2002-12-15daily updateAlan Modra1-1/+1
2002-12-14daily updateAlan Modra1-1/+1
2002-12-13daily updateAlan Modra1-1/+1
2002-12-12daily updateAlan Modra1-1/+1
2002-12-12* elf-m10300.c (elf32_mn10300_link_hash_newfunc): ReorderAlexandre Oliva2-1/+6
initializers to match struct declaration.
2002-12-12Comment typo fixes.Alan Modra6-6/+15
2002-12-12 * elf32-i386.c (elf_i386_finish_dynamic_sections): Add output_offsetAlan Modra4-42/+79
to DT_JMPREL. Use srelplt input section size for DT_PLTRELSZ and DT_RELSZ adjustment, not output section. Avoid writing tags when unchanged. Don't assume linker script is sane, adjust DT_REL too. * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Just use raw size of srelplt for DT_PLTRELSZ. Use srelplt input section size for DT_RELASZ adjustment, not output section. Avoid writing tags when unchanged. Adjust DT_RELA. * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Tweaks for better formatting. Avoid writing tags when unchanged. Adjust DT_RELA.
2002-12-12* elfxx-mips.c (mips_elf_calculate_relocation): Don't divideAlexandre Oliva2-1/+5
addend by 4.
2002-12-12* elfxx-mips.c (struct mips_got_entry): New.Alexandre Oliva2-87/+144
(struct mips_got_info): Added got_entries field. (mips_elf_got_entry_hash, mips_elf_got_entry_eq): New functions. (mips_elf_local_got_index, mips_elf_got_page, mips_elf_got16_entry): Re-implement in terms of new... (mips_elf_create_local_got_entry): Rewrite to use got_entries. Change return type. (mips_elf_highest): Warning clean-up. (mips_elf_create_got_section): Initialize got_entries. (_bfd_mips_elf_check_relocs): Use got_entries to estimate local got size. (_bfd_mips_elf_size_dynamic_sections): Do not account for GOT_PAGE entries, since we now reuse GOT16 entries.
2002-12-11daily updateAlan Modra1-1/+1