aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2013-03-22 PR ld/14902Nick Clifton2-6/+11
* elf32-h8300.c (elf32_h8_relax_delete_bytes): Fix off by one errors adjusting relocs and symbols.
2013-03-21daily updateAlan Modra1-1/+1
2013-03-21 * elf32-h8300 (h8_relax_section): Add new relaxation of movNick Clifton6-53/+179
@(disp:32,ERx) to mov @(disp:16,ERx). (R_H8_DISP32A16): New reloc. Comments added and corrected. * reloc.c (BFD_RELOC_H8_DISP32A16): New reloc. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * ld.texinfo (H8/300): Add description of relaxation of mov @(disp:32,ERx) to mov @(disp:16,ERx). * ld-h8300/h8300.exp: Add new relax-7 test on ELF. * ld-h8300/relax-2.s: Add other direction and .w/.l variants of mov insns. * ld-h8300/relax-2.d: Update expected disassembly. * ld-h8300/relax-7a.s: New: tests for mov @(disp:32,ERx) -> mov @(disp:16,ERx). * ld-h8300/relax-7b.s: New: Likewise. * ld-h8300/relax-7.d: New: expected disassembly. * config/tc-h8300.c (do_a_fix_imm): Add relaxation of mov @(disp:32,ERx) to mov @(disp:16,ERx) insns by new reloc R_H8_DISP32A16. * config/tc-h8300.h: Remove duplicated defines.
2013-03-21 * coffgen.c (coff_real_object_p): Make global.Kai Tietz4-10/+56
* peicode.h (coff_real_object_p): Add prototype. (FILHDR): Defined for COFF_IMAGE_WITH_PE as external_PEI_IMAGE_hdr structure. (coff_swap_filehdr_in): Handle variable header-size. * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Just handle amount of directory-entiries as specified in pe-header.
2013-03-21 PR sim/15286Nick Clifton2-0/+20
* elf32-arm.c (bfd_arm_get_mach_from_attributes): Identify XScale, iWMMXt and iWMMXt2 processors from attributes.
2013-03-20daily updateAlan Modra1-1/+1
2013-03-20bfd/Alan Modra2-0/+10
* elflink.c (_bfd_elf_make_dynamic_reloc_section): Override sh_type according to is_rela. ld/testsuite/ * ld-elf/rel.c, ld-elf/relmain.c, ld-elf/relmain.out: New test. * ld-elf/shared.exp: Build and run it.
2013-03-19daily updateAlan Modra1-1/+1
2013-03-19daily updateAlan Modra1-1/+1
2013-03-18 PR ld/12549Alan Modra2-2/+8
bfd/ * elflink.c (elf_link_add_object_symbols): Exclude weak refs when considering whether an --as-needed library is needed. ld/ * ld.texinfo (--as-needed): Update. ld/testsuite/ * ld-elf/pr14862.out: Expect no output.
2013-03-17daily updateAlan Modra1-1/+1
2013-03-16daily updateAlan Modra1-1/+1
2013-03-15daily updateAlan Modra1-1/+1
2013-03-14daily updateAlan Modra1-1/+1
2013-03-14gdbTom Tromey3-8/+19
* symfile.c (get_debug_link_info): Remove. (find_separate_debug_file_by_debuglink): Use bfd_get_debug_link_info. bfd * opncls.c (bfd_get_debug_link_info): Rename from get_debug_link_info. Export. Update comment. (find_separate_debug_file): Update. * bfd-in2.h: Rebuild.
2013-03-13daily updateAlan Modra1-1/+1
2013-03-12daily updateAlan Modra1-1/+1
2013-03-11daily updateAlan Modra1-1/+1
2013-03-10daily updateAlan Modra1-1/+1
2013-03-09daily updateAlan Modra1-1/+1
2013-03-08daily updateAlan Modra1-1/+1
2013-03-08 * elf64-aarch64.c (elf_backend_can_gc_sections): EnableNick Clifton2-2/+140
gc-section support. (elf64_aarch64_gc_sweep_hook): Handle GOT, TLS and PLT related relocs. * lib/ld-lib.exp (check_gc_sections_available): Remove aarch64 from list of targets that don't support gc-section.
2013-03-08 * elf-bfd.h (elfcore_write_s390_tdb): Add prototype.Nick Clifton3-7/+39
* elf.c (elfcore_write_s390_tdb): New function. (elfcore_write_register_note): Call it. (elfcore_grok_s390_tdb): New function. (elfcore_grok_note): Call it. * readelf.c (get_note_type): Add NT_S390_TDB.
2013-03-08 * elfxx-mips.c (mips_elf_allocate_lazy_stub): Correct data type.Maciej W. Rozycki2-1/+5
2013-03-07daily updateAlan Modra1-1/+1
2013-03-06daily updateAlan Modra1-1/+1
2013-03-05daily updateAlan Modra1-1/+1
2013-03-05 * config.bfd: Add x86_64-*-cygwin to list of supported targets.Corinna Vinschen2-1/+5
2013-03-04daily updateAlan Modra1-1/+1
2013-03-04 * elf32-ppc.c (ppc_elf_relocate_section <R_PPC_PLTREL24>): AdjustAlan Modra2-29/+39
non-zero addends when relocatable, rather than addends >= 32768. Always zero "addend" before applying relocation.
2013-03-04 * archive64.c (bfd_elf64_archive_write_armap): Fix calculation ofNick Clifton2-6/+12
file pointer offsets for thin archives.
2013-03-03daily updateAlan Modra1-1/+1
2013-03-02daily updateAlan Modra1-1/+1
2013-03-01daily updateAlan Modra1-1/+1
2013-02-28daily updateAlan Modra1-1/+1
2013-02-28 bfd/Julian Brown2-7/+16
* elf32-arm.c (elf32_arm_size_dynamic_sections): Don't call elf32_arm_allocate_dynrelocs for source reloc for non-dynamic link. ld/testsuite/ * ld-arm/tls-local-static.s: New test. * ld-arm/tls-local-static.d: New. * ld-arm/arm-elf.exp (tls-local-static): Add test.
2013-02-27daily updateAlan Modra1-1/+1
2013-02-27* reloc.c (BFD_RELOC_RL78_CODE): Add.DJ Delorie5-0/+14
* libbfd.h: Regenerate. * bfd-in2.h: Regenerate. * elf32-rl78.c (rl78_elf_relocate_section): Handle weak code references in compuated relocs. * config/tc-rl78.c (reloc_function): Add %code -> BFD_RELOC_RL78_CODE. (rl78_op): Handle %code(). (rl78_cons_fix_new): Likewise, but ignore for 20-bit operands. (tc_gen_reloc): Likwise; convert to a computed reloc. (md_apply_fix): Likewise.
2013-02-26daily updateAlan Modra1-1/+1
2013-02-26Tweak moxie-rtems triplet recognitionAnthony Green2-1/+5
2013-02-25daily updateAlan Modra1-1/+1
2013-02-24daily updateAlan Modra1-1/+1
2013-02-23daily updateAlan Modra1-1/+1
2013-02-22daily updateAlan Modra1-1/+1
2013-02-22Set unique_global only for definitionH.J. Lu3-7/+16
bfd/ PR ld/15167 * elf64-ia64-vms.c (elf64_vms_link_add_object_symbols): Set unique_global only for definition. * elflink.c (_bfd_elf_merge_symbol): Don't set unique_global here. (elf_link_add_object_symbols): Set unique_global only for definition. ld/testsuite/ PR ld/15167 * ld-unique/unique.exp: Add a test for shared library with reference.
2013-02-21daily updateAlan Modra1-1/+1
2013-02-21bfd/Alan Modra3-86/+116
* elf-bfd.h (struct elf_build_id): Extracted from.. (struct elf_build_id_info): ..here. Delete. (struct output_elf_obj_tdata): New, extracted from.. (struct elf_obj_tdata): ..here. Reorganize for better packing. Add "o" field. (elf_program_header_size): Reference tdata->o. (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker, elf_stack_flags, elf_shstrtab, elf_strtab_sec, elf_shstrtab_sec, elf_section_syms, elf_num_section_syms, elf_flags_init): Likewise. * elf.c (bfd_elf_allocate_object): Allocate output_elf_obj_tdata when opening bfd in any mode that might write. (_bfd_elf_write_object_contents): Use build_id field in output_elf_obj_tdata. (_bfd_elf_close_and_cleanup): Tweak elf_shstrtab test. (elfobj_grok_gnu_build_id): Adjust for elf_tdata changes. gdb/ * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes. ld/ * emultempl/elf32.em (write_build_id, setup_build_id): Adjust for elf_tdata changes.
2013-02-21 * elf-bfd.h (struct core_elf_obj_tdata): New.Alan Modra29-192/+225
(struct elf_obj_tdata): Delete core_signal, core_pid, core_lwpid, core_program, and core_command. Add "core". * elf.c (bfd_elf_mkcorefile): Allocate "core" struct. Update all refs to tdata core fields. * elf32-am33lin.c, * elf32-arm.c, * elf32-cris.c, * elf32-frv.c, * elf32-hppa.c, * elf32-i386.c, * elf32-m68k.c, * elf32-mips.c, * elf32-nios2.c, * elf32-ppc.c, * elf32-s390.c, * elf32-score.c, * elf32-score7.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilegx.c, * elf32-tilepro.c, * elf32-xtensa.c, * elf64-aarch64.c, * elf64-hppa.c, * elf64-mips.c, * elf64-ppc.c, * elf64-tilegx.c, * elf64-x86-64.c, * elfcore.h, * elfn32-mips.c: Update all refs to tdata core fields.
2013-02-21bfd/Alan Modra17-137/+149
* elf-bfd.h (struct elf_obj_tdata): Rename segment_map to seg_map. Delete num_locals and num_globals. (elf_num_locals, elf_num_globals): Don't define. (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker, elf_stack_flags, elf_strtab_sec, elf_shstrtab_sec): Define. * bfd.c, * elf-eh-frame.c, * elf-nacl.c, * elf-vxworks.c, * elf.c, * elf32-arm.c, * elf32-lm32.c, * elf32-ppc.c, * elf32-rx.c, * elf32-spu.c, * elf64-hppa.c, * elfcode.h, * elflink.c, * elfnn-ia64.c, * elfxx-mips.c: Use newly defined elf_obj_tdata accessor macros. * elf.c (elf_map_symbols): Add pnum_locals param. Return number of locals syms via new param. (swap_out_syms): Adjust to suit elf_map_symbols change. ld/ * emultempl/elf-generic.em: Use newly defined elf_obj_tdata accessor macros.
2013-02-20daily updateAlan Modra1-1/+1