aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2005-11-24bfd/Alan Modra9-33/+12
* elf-bfd.h (_bfd_generic_match_sections_by_type): Don't define. * libbfd-in.h (_bfd_generic_match_sections_by_type): Delete. * libbfd.c (_bfd_generic_match_sections_by_type): Delete. * targets.c (bfd_match_sections_by_type): Don't define. (BFD_JUMP_TABLE_LINK): Remove _bfd_generic_match_sections_by_type. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise. * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. ld/ * ldlang.c (lang_output_section_find_by_flags): Add match_type param. Run two passes, first using match_type, second without. * ldlang.h (lang_match_sec_type_func): New typedef. (lang_output_section_find_by_flags): Update prototype. bfd_match_sections_by_type and lang_output_section_find_by_flags. * emultempl/pe.em (place_orphan): Likewise.
2005-11-23daily updateAlan Modra1-1/+1
2005-11-23bfd/Daniel Jacobowitz5-29/+52
* elf32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for R_MIPS_PC16. (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16. (bfd_elf32_bfd_reloc_type_lookup): Don't handle BFD_RELOC_16_PCREL_S2. * elf64-mips.c (mips_elf64_howto_table_rel): Use rightshift 2 for R_MIPS_PC16. (mips_elf64_howto_table_rela): Likewise. (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16. (bfd_elf64_bfd_reloc_type_lookup): Don't handle BFD_RELOC_16_PCREL_S2. * elfn32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for R_MIPS_PC16. (elf_mips_howto_table_rela): Likewise. (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16. (bfd_elf32_bfd_reloc_type_lookup): Don't handle BFD_RELOC_16_PCREL_S2. * elfxx-mips.c: Formatting fixes. (mips_elf_calculate_relocation): Handle R_MIPS_GNU_REL16_S2 and R_MIPS_PC16 identically. gas/ * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL_S2. (macro_build): Complain for invalid branch displacements. (mips_validate_fix): Delete. (md_apply_fix): Re-add pcrel support for branches. Use consistent text for misaligned branch targets. (tc_gen_reloc: Re-add pcrel support for branches. Handle strange BFD pcrel processing. Remove error for unresolved branches. * config/tc-mips.h (TC_VALIDATE_FIX, mips_validate_fix): Delete. gas/testsuite/ * gas/mips/bge.d, gas/mips/bge.s, gas/mips/bgeu.d, gas/mips/bgeu.s, gas/mips/blt.d, gas/mips/blt.s, gas/mips/bltu.d, gas/mips/bltu.s: Reactivate external branch tests. * gas/mips/branch-misc-2.d, gas/mips/branch-misc-2pic.d, gas/mips/branch-misc-2-64.d, gas/mips/branch-misc-2pic-64.d: New tests. * gas/mips/branch-misc-2.l, gas/mips/branch-misc-2pic.l, gas/testsuite/gas/mips/branch-misc-2pic.s: Remove. * gas/mips/mips.exp: Adjust branch-misc-2 tests. Add 64-bit variants.
2005-11-23 * elfcode.h (elf_object_p): Delay the setting of start_addressAlan Modra2-3/+8
until we're sure the backend matches the binary.
2005-11-22daily updateAlan Modra1-1/+1
2005-11-21daily updateAlan Modra1-1/+1
2005-11-20daily updateAlan Modra1-1/+1
2005-11-20 * som.c (som_decode_symclass): Decode BSF_WEAK symbols in the sameDave Anglin2-2/+26
manner as bfd_decode_symclass.
2005-11-19daily updateAlan Modra1-1/+1
2005-11-18daily updateAlan Modra1-1/+1
2005-11-18 * elf64-ppc.c (ppc64_elf_check_relocs): Don't set has_14bit_branchAlan Modra2-1/+23
on branches to same section.
2005-11-18 * elf64-hppa.c (elf64_hppa_object_p): Recognize corefiles underDave Anglin2-4/+48
hppa64-hp-hpux11.11. (elf64_hppa_section_from_phdr): New function. (elf_backend_section_from_phdr): Define.
2005-11-17daily updateAlan Modra1-1/+1
2005-11-16daily updateAlan Modra1-1/+1
2005-11-15daily updateAlan Modra1-1/+1
2005-11-14daily updateAlan Modra1-1/+1
2005-11-13daily updateAlan Modra1-1/+1
2005-11-12daily updateAlan Modra1-1/+1
2005-11-11daily updateAlan Modra1-1/+1
2005-11-11PR 1150Nick Clifton3-2/+38
* readelf.c (get_mips_symbol_other): New function. (get_symbol_other): New function. (process_symbol_table): Call get_symbol_other() to get a description of the st_other field if it contains more information than just the visibility. * elfxx-mips.c (mips_elf_calculate_relocation): Ignore an undefined symbol if it is optional. (_bfd_mips_elf_merge_symbol_attribute): Make sure that the optional flag is merged as well as the visibility. * elfxx-mips.h (_bfd_mips_elf_merge_symbol_attribute): Prototype. (elf_backend_merge_symbol_attribute): Define. * mips.h (STO_OPTIONAL): Define. (ELF_MIPS_IS_OPTIONAL): Define.
2005-11-10daily updateAlan Modra1-1/+1
2005-11-09daily updateAlan Modra1-1/+1
2005-11-08daily updateAlan Modra1-1/+1
2005-11-08bfd:Nathan Sidwell7-8/+62
Add ms2. * archures.c (bfd_mach_ms2): Define. * cpu-ms1.c (arch_info_struct): Add ms2 stanza. * elf32-ms1.c (elf32_ms1_machine): Add ms2 case. (ms1_elf_merge_private_bfd_data): Remove unused variables. Add correct merging logic, with workaround. (ms1_elf_print_private_bfd_data): Add ms2 case. * reloc.c (BFD_RELOC_MS1_PCINSN8): Add ms2 specific reloc. * libbfd.h: Regenerated. * bfd-in2.h: Regenerated. cpu: Add ms2 * ms1.cpu (ms2, ms2bf): New architecture variant, cpu, machine and model. (f-uu8, f-uu1, f-imm16l, f-loopo, f-cb1sel, f-cb2sel, f-cb1incr, f-cb2incr, f-rc3): New fields. (LOOP): New instruction. (JAL-HAZARD): New hazard. (imm16o, loopsize, imm16l, rc3, cb1sel, cb2sel, cb1incr, cb2incr): New operands. (mul, muli, dbnz, iflush): Enable for ms2 (jal, reti): Has JAL-HAZARD. (ldctxt, ldfb, stfb): Only ms1. (fbcb): Only ms1,ms1-003. (wfbinc, mefbinc, wfbincr, mwfbincr, fbcbincs, mfbcbincs, fbcbincrs, mfbcbincrs): Enable for ms2. (loop, loopu, dfbc, dwfb, fbwfb, dfbr): New ms2 insns. * ms1.opc (parse_loopsize): New. (parse_imm16): hi16/lo16 relocs are applicable to IMM16L. (print_pcrel): New. gas: Add ms2. * config/tc-ms1.c (ms1_mach_bitmask): Initialize to MS1. (ms1_architectures): Add ms2. (md_parse_option): Add ms2. (md_show_usage): Add ms2. (md_assemble): Add JAL_HAZARD detection logic. (md_cgen_lookup_reloc): Add MS1_OPERAND_LOOPSIZE case. * doc/c-ms1.texi: New. * doc/all.texi: Add MS1. * doc/Makefile.am (CPU_DOCS): Add c-ms1.texi. * doc/Makefile.in: Rebuilt. * doc/Makefile: Rebuilt. gas/testsuite: Add ms2. * gas/ms1/allinsn.d: Adjust pcrel disassembly. * gas/ms1/errors.exp: Fix target triplet. * gas/ms1/ms1-16-003.d: Adjust pcrel disassembly. * gas/ms1/ms1-16-003.s: Tweak label. * gas/ms1/ms1.exp: Adjust target triplet. Add ms2 test. * gas/ms1/ms2.d, gas/ms1/ms2.s: New. * gas/ms1/relocs.d: Adjust expected machine name and pcrel disassembly. * gas/ms1/relocs.exp: Adjust target triplet. include: Add ms2. * elf/ms1.h (EF_MS1_CPU_MS2): New. opcodes: Add ms2. * ms1-asm.c, ms1-desc.c, ms1-desc.h, ms1-dis.c, ms1-ibld.c, ms1-opc.c, ms1-opc.h: Regenerated.
2005-11-07daily updateAlan Modra1-1/+1
2005-11-07 * warning.m4 (AM_BINUTILS_WARNINGS): Default to empty stringSteve Ellcey3-129/+259
if compiler is not GCC. * configure: Regenerate
2005-11-07 * configure.host (ia64-*-hpux*): Set _LARGEFILE64_SOURCE.Steve Ellcey2-0/+6
2005-11-06daily updateAlan Modra1-1/+1
2005-11-05daily updateAlan Modra1-1/+1
2005-11-04daily updateAlan Modra1-1/+1
2005-11-03daily updateAlan Modra1-1/+1
2005-11-03 * configure.in: Check for fopen64.Daniel Jacobowitz9-233/+150
* libbfd-in.h (real_fopen): New prototype. * configure, config.in, libbfd.h: Regenerated. * bfdio.c (real_fopen): New function. * opncls.c (bfd_fopen, bfd_fill_in_gnu_debuglink_section): Use it. * cache.c (bfd_open_file): Likewise.
2005-11-03 * elfxx-mips.c (mips_elf_calculate_relocation): Handle onlyThiemo Seufer2-6/+11
forced local symbols here. (mips_elf_create_dynamic_relocation): Likewise. (_bfd_mips_elf_finish_dynamic_symbol): Fix typo in comment.
2005-11-03 * elf.c (elf_fake_sections): When calculating tbss size, just useAlan Modra3-22/+26
the last link_order. (assign_file_positions_for_segments): Likewise. * elflink.c (bfd_elf_final_link): Likewise. (elf_reloc_link_order): Correct comment.
2005-11-02daily updateAlan Modra1-1/+1
2005-11-01daily updateAlan Modra1-1/+1
2005-11-01 PR ld/1775Alan Modra2-2/+8
* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Add required parentheses.
2005-10-31daily updateAlan Modra1-1/+1
2005-10-30daily updateAlan Modra1-1/+1
2005-10-292005-10-29 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu4-6/+16
* Makefile.am: Run "make dep-am". * Makefile.in: Regenerated. * dep-in.sed: Replace " ./" with " ".
2005-10-292005-10-29 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu4-0/+14
* hpux-core.c: Include <machine/reg.h> only if HPUX_CORE is define. * osf-core.c: Include <sys/core.h> only if OSF_CORE is defined. * sco5-core.c: Include <sys/paccess.h> and <sys/region.h> only if SCO5_CORE is defined.
2005-10-29daily updateAlan Modra1-1/+1
2005-10-29* Makefile.am: Run "make dep-am".Mark Kettenis3-1670/+1429
* Makefile.in: Regenerate.
2005-10-29daily updateAlan Modra1-1/+1
2005-10-28 From Eric Botcazou <botcazou@adacore.com>Joel Brobecker1-0/+6
* coffcode.h (coff_compute_section_file_positions): Fix small error in preprocessor directives.
2005-10-28 Mostly from Eric Botcazou <botcazou@adacore.com>Joel Brobecker3-23/+36
* rs6000-core.c: ANSIfy all function definitions. Add missing function prototypes. (ptr_to_uint): New type. (rs6000coff_core_p): Use it as intermediate step in casts. (rs6000coff_core_file_matches_executable_p): Likewise. * xcoff-target.h (rs6000coff_core_p): Fix prototype. (rs6000coff_core_file_matches_executable_p): Likewise.
2005-10-282005-10-28 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+14
PR binutils/1472 * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_sparc_v8plus, bfd_mach_sparc_v8plusa, bfd_mach_sparc_v8plusb, bfd_mach_sparc_v9, bfd_mach_sparc_v9a and bfd_mach_sparc_v9b.
2005-10-28 PR ld/1567Hans-Peter Nilsson2-1/+12
* elf32-cris.c (cris_elf_howto_table) <R_CRIS_32>: Set complain_on_overflow field to complain_overflow_dont.
2005-10-28daily updateAlan Modra1-1/+1
2005-10-27 PR 973Alan Modra2-12/+59
* cache.c (enum cache_flag): New. (close_one): Save file mtime. (bfd_cache_lookup): Add flag arg, adjust all users. (bfd_cache_lookup_worker): Likewise. (cache_btell): Use CACHE_NO_OPEN and return abfd->where if file not open. (cache_bflush): Similarly, and return success of file not open. (cache_bseek): Use CACHE_NO_SEEK if SEEK_SET or SEEK_END. (cache_bstat): Use CACHE_NO_SEEK_ERROR.