aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2006-05-05 * elf32-s390.c (invalid_tls_insn): Call bfd_set_error.Martin Schwidefsky3-11/+61
(elf_s390_relocate_section): Add code to do the GD->LE and LD->LE TLS linker optimizations if a brasl instruction is used for the __tls_get_offset function call. * elf64-s390.c (invalid_tls_insn): Call bfd_set_error.
2006-05-05 * elf64-ppc.c (ppc64_elf_tls_optimize): Only optimizeAlan Modra2-7/+71
R_PPC64_TPREL64 and R_PPC64_DTPMOD64 relocs when they are in the .toc and referenced by a TLS code sequence. (ppc64_elf_edit_toc): Cater for the unlikely situation that .toc is the first section in a file.
2006-05-05daily updateAlan Modra1-1/+1
2006-05-04 * aoutf1.h (struct external_sparc_core): Declare c_regs as structAndreas Schwab2-13/+23
regs instead of an array of int. (struct external_solaris_bcp_core): Likewise. (swapcore_sun3): Use offsetof instead of computing the offset manually. (swapcore_sparc): Likewise. Simplify reference to c_regs. (swapcore_solaris_bcp): Likewise.
2006-05-04 * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Adjust handlingDaniel Jacobowitz2-1/+6
for missing GOTs.
2006-05-04 * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept moreDaniel Jacobowitz2-3/+8
mapping symbols.
2006-05-04 * coff-or32.c (bfd_section_from_shdr): Remove unused localBen Elliston5-13/+10
variable `ptr'. * cofflink.c (process_embedded_commands): Remove unused local variables `had_read' and `had_shared'. * ecofflink.c (bfd_ecoff_debug_accumulate): Remove unused local variable `fdr_adr'. * ihex.c (ihex_read_section): Remove unused local variable `addr'.
2006-05-04daily updateAlan Modra1-1/+1
2006-05-03bfd/Alan Modra23-173/+230
* libbfd-in.h (_bfd_generic_new_section_hook): Declare. * section.c (bfd_abs_symbol, bfd_com_symbol): Delete. (bfd_und_symbol, bfd_ind_symbol): Delete. (BFD_FAKE_SECTION): Remove SYM_PTR param, set symbol_ptr_ptr to &SEC.symbol. (STD_SECTION): Adjust. (_bfd_generic_new_section_hook): New function, extracted from.. (bfd_section_init): ..here. (bfd_make_section_old_way): Call new_section_hook for abs, com, und and ind sections. * elf.c (_bfd_elf_large_com_section): Adjust. * aoutx.h (new_section_hook): Call _bfd_generic_new_section_hook. * pdp11.c (new_section_hook): Likewise. * coffcode.h (coff_new_section_hook): Likewise. * ecoff.c (_bfd_ecoff_new_section_hook): Likewise. * elf.c (_bfd_elf_new_section_hook): Likewise. * vms.c (vms_new_section_hook): Likwise. * elf32-arm.c (elf32_arm_new_section_hook): Check used_by_bfd isn't already set. * elf32-sh64.c (sh64_elf_new_section_hook): Likewise. * elf32-xtensa.c (elf_xtensa_new_section_hook): Likewise. * elf64-mmix.c (mmix_elf_new_section_hook): Likewise. * elf64-ppc.c (ppc64_elf_new_section_hook): Likewise. * elfxx-mips.c (_bfd_mips_elf_new_section_hook): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_new_section_hook): Likewise. * ieee.c (ieee_new_section_hook): Likewise. Call _bfd_generic_new_section_hook too. * mmo.c (mmo_new_section_hook): Likewise. * oasys.c (oasys_new_section_hook): Likewise. * som.c (som_new_section_hook): Likewise. * coff-w65.c (reloc_processing): Don't use bfd_abs_symbol. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. gas/ * subsegs.c (subseg_get): Don't call obj_sec_set_private_data. * config/obj-elf.h (obj_sec_set_private_data): Delete. * config/tc-hppa.c (tc_gen_reloc): Don't use bfd_abs_symbol. * config/tc-mn10300.c (tc_gen_reloc): Likewise.
2006-05-03 * hash.c (DEFAULT_SIZE): Revert last change.Alan Modra2-23/+24
(higher_prime_number): Correct test for no larger prime. Don't abort on error, instead return 0. Depopulate primes[]. (bfd_hash_lookup): If we overflow size, refuse to grow table.
2006-05-03daily updateAlan Modra1-1/+1
2006-05-022006-05-02 Paul Brook <paul@codesourcery.com>Paul Brook2-1/+8
bfd/ * elf32-arm.c (elf32_arm_final_link_relocate): Set thumb funciton bit for R_ARM_REL32. gas/ * config/tc-arm.c (arm_optimize_expr): New function. * config/tc-arm.h (md_optimize_expr): Define (arm_optimize_expr): Add prototype. (TC_FORCE_RELOCATION_SUB_SAME): Define. ld/testsuite/ * ld-arm/arm-elf.exp: Add thumb-rel32. * ld-arm/thumb-rel32.d: New test. * ld-arm/thumb-rel32.s: New test.
2006-05-02 * archive.c (bfd_generic_archive_p): Remove unused local variableBen Elliston9-34/+18
`fail'. * dwarf2.c (decode_line_info): Remove unused local variable `basic_block'. * elfcode.h (elf_slurp_reloc_table_from_section): Remove unsed local varibale `s'. * tekhex.c (tekhex_write_object_contents): Remove unused local variable `bytes_written'. * aout-ns32k.c (MY_swap_std_reloc_out): Remove unused local variable `r_addend'. * elf32-dlx.c (dlx_rtype_to_howto): Remove breaks after returns. * elfxx-mips.c (_bfd_elf_mips_mach): Remove breaks after returns. (_bfd_ns32k_relocate_contents): Remove break after return. * elf.c (bfd_section_from_shdr): Remove breaks after returns.
2006-05-02Rename DEBUG to SYMBIAN_DEBUG to avoid conflicts with global DEBUG definitionNick Clifton2-25/+30
2006-05-02 * dwarf2.c: Formatting.Alan Modra10-100/+49
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Simplify output section check. * elf32-i370.c: Warning fixes inside #ifdef DEBUG. * elf32-m32c.c: Similarly. * elf32-ppc.c: Similarly. * elf32-v850.c: Similarly. * nlm32-sparc.c: Similarly. * elfcode.h: Similarly. (elf_symbol_flags): Delete. * elflink.c (elf_link_input_bfd): Comment typo.
2006-05-02daily updateAlan Modra1-1/+1
2006-05-01* bfd-in.h (bfd_hash_table): Add count field.DJ Delorie4-1/+112
* bfd-in2.h: Regenerate. * hash.c (higher_prime_number): New. (bfd_hash_table_inint_n): Init count field. (bfd_hash_lookup): Grow table as needed.
2006-05-01daily updateAlan Modra1-1/+1
2006-04-30daily updateAlan Modra1-1/+1
2006-04-29daily updateAlan Modra1-1/+1
2006-04-28daily updateAlan Modra1-1/+1
2006-04-27 PR binutils/2584Kaz Kojima2-24/+73
* tekhex.c (getvalue): Change return type to bfd_boolean and add the new parameter. Return false if the unexpected character is found. (getsym): Likewise. (first_phase): Change return type to bfd_boolean and return false if the unexpected character is found. Replace abort with returning false. (pass_over): Change return type to bfd_boolean and the type of the second argument to bfd_boolean (*) (bfd *, int, char *). Return false if FUNC returns false. (tekhex_object_p): Return NULL if pass_over fails.
2006-04-27 * coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix.Alan Modra2-2/+6
2006-04-27daily updateAlan Modra1-1/+1
2006-04-262006-04-26 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-7/+21
PR binutils/2593 * elf.c (_bfd_elf_new_section_hook): Don't set section ELF type and flags if its BFD flags have been set. (_bfd_elf_init_private_section_data): Don't copy the output ELF section type from input if it has been set to something different.
2006-04-26Add missing changelog entryAndreas Jaeger1-0/+18
2006-04-26daily updateAlan Modra1-1/+1
2006-04-25Regenerate libbfd.h.H.J. Lu1-0/+2
2006-04-252006-04-25 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu6-5/+68
PR binutils/2467 * elf.c (_bfd_elf_close_and_cleanup): Check elf_tdata (abfd) is NULL first. * elf32-arm.c (elf32_arm_close_and_cleanup): Check if abfd->sections is NULL. (elf32_arm_bfd_free_cached_info): New. (bfd_elf32_bfd_free_cached_info): Defined. * elfxx-target.h (bfd_elfNN_bfd_free_cached_info): Default it to _bfd_free_cached_info. * libbfd-in.h (_bfd_free_cached_info): New. * libbfd: Regenerated. * opncls.c (_bfd_delete_bfd): Check if abfd->memory is NULL. (_bfd_free_cached_info): New.
2006-04-25daily updateAlan Modra1-1/+1
2006-04-24daily updateAlan Modra1-1/+1
2006-04-23daily updateAlan Modra1-1/+1
2006-04-22daily updateAlan Modra1-1/+1
2006-04-21 * elf.c (assign_file_positions_except_relocs): Move code settingAlan Modra2-54/+61
file position of non-loaded sections.. (assign_file_positions_for_segments): ..to here.
2006-04-212006-04-20 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+44
PR ld/2537 * elf.c (bfd_section_from_shdr): Allow sections reserved for applications. Issue an error on sections we don't know how to handle.
2006-04-21daily updateAlan Modra1-1/+1
2006-04-20daily updateAlan Modra1-1/+1
2006-04-19 * Makefile.am: Run "make dep-am".Alan Modra3-22/+29
* Makefile.in: Regenerate.
2006-04-19bfd/Alan Modra3-6/+11
* warning.m4 (--enable-werror, -build-warnings): Format help messages. * configure: Regenerate. binutils/ * configure: Regenerate. gas/ * configure.in (--enable-targets): Indent help message. * configure: Regenerate. gprof/ * configure: Regenerate. ld/ * configure: Regenerate. opcodes/ * configure: Regenerate.
2006-04-19daily updateAlan Modra1-1/+1
2006-04-18PR 2257Nick Clifton2-2/+17
* elfcode.h (elf_object_p): Allow files with corrupt e_shstrndx fields to still be handled as ELF files. * readelf.c (SECTION_NAME): Cope with a missing string table. (process_file_header): Cope with a corrupt e_shstrndx field. (process_section_headers): Correctly handle an e_shstrndx value of SHF_UNDEF.
2006-04-18daily updateAlan Modra1-1/+1
2006-04-17daily updateAlan Modra1-1/+1
2006-04-16Update POTFILES.in.Daniel Jacobowitz2-0/+6
2006-04-16 * configure.in: Update version to 2.17.50.Daniel Jacobowitz3-2/+7
* configure: Regenerated.
2006-04-16daily updateAlan Modra1-1/+1
2006-04-15daily updateAlan Modra1-1/+1
2006-04-14 * elf32-xtensa.c (build_reloc_opcodes): New.Bob Wilson2-5/+45
(compute_text_actions): Use it to decode opcodes outside inner loop. (check_section_ebb_pcrels_fit): Add "reloc_opcodes" argument, and if it is set, use it to get the opcodes for relocations. (move_shared_literal): Adjust call to check_section_ebb_pcrels_fit.
2006-04-14daily updateAlan Modra1-1/+1
2006-04-13daily updateAlan Modra1-1/+1