aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2006-05-20daily updateAlan Modra1-1/+1
2006-05-192006-05-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* elfxx-ia64.c (ELF_MAXPAGESIZE): Fix a typo in comment.
2006-05-19 * elf.c (elf_fake_sections): Formatting.Alan Modra2-29/+40
(assign_file_positions_for_load_sections): Only add SEC_ALLOC sections to p_memsz. Remove hack for PT_NOTE sections. Allow section alignment to increase p_align for PT_LOAD. (assign_file_positions_for_non_load_sections): Remove ARM BPABI hack for PT_DYNAMIC. Instead, set p_filesz for all segments other than PT_LOAD, and PT_NOTE in core.
2006-05-19daily updateAlan Modra1-1/+1
2006-05-18daily updateAlan Modra1-1/+1
2006-05-17Fix a typo.Daniel Jacobowitz1-1/+1
2006-05-17 * elf.c (assign_file_positions_for_segments): Split into..Alan Modra2-54/+94
(assign_file_positions_for_load_sections): ..this, and.. (assign_file_positions_for_non_load_sections): ..this new function,.. (assign_file_positions_except_relocs): ..writing program headers here.
2006-05-17 * elflink.c (elf_gc_sweep): Don't specially keep non-alloc,Alan Modra2-1/+6
non-load sections if they have relocs.
2006-05-17daily updateAlan Modra1-1/+1
2006-05-16daily updateAlan Modra1-1/+1
2006-05-152006-05-15 Paul Brook <paul@codesourcery.com>Paul Brook5-13/+46
bfd/ * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename ... (bfd_is_arm_special_symbol_name): ... to this. Add type argument. Check symbol name is of specified type. * elf32-arm.c (elf32_arm_is_target_special_symbol, arm_elf_find_function, elf32_arm_output_symbol_hook): Use bfd_is_arm_special_symbol_name. * bfd-in.h (BFD_ARM_SPECIAL_SYM_TYPE_MAP, BFD_ARM_SPECIAL_SYM_TYPE_TAG, BFD_ARM_SPECIAL_SYM_TYPE_OTHER, BFD_ARM_SPECIAL_SYM_TYPE_ANY): Define. (bfd_is_arm_mapping_symbol_name): Remove prototype. (bfd_is_arm_special_symbol_name): Add prototype. * bfd-in2.h: Regenerate. gas/ * config/tc-arm.c (arm_adjust_symtab): Use bfd_is_arm_special_symbol_name. ld/testsuite/ * ld-arm/arm-be8.d: New test. * ld-arm/arm-be8.s: New test. * ld-arm/arm-elf.exp: Add arm-be8.
2006-05-15bfd:Bob Wilson2-168/+251
* elf32-xtensa.c (check_loop_aligned): Fix reversed check for undefined opcode. Clean up assertions. (narrow_instruction, widen_instruction): Remove "do_it" parameters. Factor most of the code into separate functions.... (can_narrow_instruction, can_widen_instruction): New. (prev_instr_is_a_loop): New. (compute_ebb_proposed_actions): Combine error handling code for decode errors. Replace call to insn_decode_len with inline code. Use can_narrow_instruction and can_widen_instruction. Handle errors from call to xtensa_opcode_is_loop. (relax_section): Adjust calls to narrow_instruction and widen_instruction. gas: * config/tc-xtensa.c (is_direct_call_opcode, is_branch_jmp_to_next, xg_assemble_vliw_tokens, xtensa_mark_narrow_branches, xtensa_fix_short_loop_frags, is_local_forward_loop, relax_frag_immed): Handle errors from calls to xtensa_opcode_is_* functions.
2006-05-15 PR 2658Alan Modra2-0/+10
* elf32-ppc.c (ppc_elf_relax_section): Don't segfault on non-pic -shared link.
2006-05-15daily updateAlan Modra1-1/+1
2006-05-14daily updateAlan Modra1-1/+1
2006-05-13daily updateAlan Modra1-1/+1
2006-05-12daily updateAlan Modra1-1/+1
2006-05-11bfd/doc/Carlos O'Donell2-4/+8
2006-05-11 Carlos O'Donell <carlos@codesourcery.com> * bfd.texinfo: Rename "Index" to "BFD Index" gas/ 2006-05-11 Carlos O'Donell <carlos@codesourcery.com> * doc/as.texinfo: Rename "Index" to "AS Index", and "ABORT" to "ABORT (COFF)". ld/ 2006-05-11 Carlos O'Donell <carlos@codesourcery.com> * ld.texinfo: Rename "Index" to "LD Index"
2006-05-112006-05-11 Michael Matz <matz@suse.de>H.J. Lu2-0/+6
* elflink.c (match_group_member): Correctly iterate group members.
2006-05-112006-05-11 Paul Brook <paul@codesourcery.com>Paul Brook5-6/+141
bfd/ * elf32-arm.c (elf32_arm_reloc_map): Add MOVW and MOVT relocs. (elf32_arm_final_link_relocate): Handle MOVW and MOVT relocs. (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto. * reloc.c: Ditto. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * libcoff.h: Regenerate. gas/ * config/tc-arm.c (parse_half): New function. (operand_parse_code): Remove OP_Iffff. Add OP_HALF. (parse_operands): Ditto. (do_mov16): Reject invalid relocations. (do_t_mov16): Ditto. Use Thumb reloc numbers. (insns): Replace Iffff with HALF. (md_apply_fix): Add MOVW and MOVT relocs. (tc_gen_reloc): Ditto. * doc/c-arm.texi: Document relocation operators ld/testsuite/ * ld-arm/arm-elf.exp: Add arm-movwt. * ld-arm/arm-movwt.d: New test. * ld-arm/arm-movwt.s: New test. * ld-arm/arm.ld: Add .far.
2006-05-11 * elf.c (_bfd_elf_init_private_section_data): Don't changeAlan Modra2-1/+7
section type if already set.
2006-05-11PR ld/2607Nick Clifton2-9/+30
* elfcode.h (valid_section_index_p): New function: Checks for a valid section index. Allows indicies in the range SHN_LOPROC to SHN_HIOS. (elf_object_p): Use valid_section_index_p.
2006-05-11Apply fixes to allow arm WinCE toolchain to produce working executables.Nick Clifton2-6/+15
2006-05-11daily updateAlan Modra1-1/+1
2006-05-10 PR 2342Alan Modra2-1/+6
* elflink.c (_bfd_elf_default_action_discarded): Revert 2006-02-16.
2006-05-10daily updateAlan Modra1-1/+1
2006-05-09* config/tc-arm.c (arm_fix_adjustable): For COFF, convert fixups againstNick Clifton2-4/+13
symbols which are not going to be placed into the symbol table. * coffcode.h (coff_write_relocs): Produce an error message if a an out-of-range symbol index is detected in a reloc.
2006-05-09 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Remove unusedBen Elliston2-4/+7
local variable `dynobj'.
2006-05-09daily updateAlan Modra1-1/+1
2006-05-08Remove bfd/ in ChangeLog entry.H.J. Lu1-1/+1
2006-05-08daily updateAlan Modra1-1/+1
2006-05-07daily updateAlan Modra1-1/+1
2006-05-06daily updateAlan Modra1-1/+1
2006-05-05* gas/config/tc-avr.h (TC_VALIDATE_FIX): Define. Disable fixups for PMEMNick Clifton2-67/+92
related expressions. * bfd/elf32-avr.c (elf32_avr_relax_delete_bytes): Iterate over all of the bfd's sections for the reloc-addend adjustments.
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