aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
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
2013-02-19daily updateAlan Modra1-1/+1
2013-02-19 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Also clearMaciej W. Rozycki2-2/+12
STO_MICROMIPS annotation.
2013-02-18include/Alan Modra5-26/+64
* bfdlink.h (struct bfd_link_info): Delete emit_note_gnu_build_id. bfd/ * configure.in: Bump version to 2.23.52. * elf-bfd.h (struct elf_build_id_info): New. (struct elf_obj_tdata): Delete after_write_object_contents, after_write_object_contents_info and build_id_size. Make build_id a pointer to struct elf_build_id_info. * elf.c (_bfd_elf_write_object_contents): Style. Update after_write_ibject_contents invocation. (elfobj_grok_gnu_build_id): Update for new build_id struct. Don't allow zero size notes. * configure: Regenerate. gdb/ * elfread.c (struct build_id): Delete. Use struct elf_build_id throughout file instead. (build_id_bfd_get): Update to use new elf_tdata build_id field. Don't xmalloc return value. (build_id_verify): Similarly. Don't xfree. (build_id_to_debug_filename): Update. (find_separate_debug_file_by_buildid): Update, don't xfree. ld/ * emultempl/elf32.em (emit_note_gnu_build_id): New static var. Replace all info->emit_note_gnu_build_id refs. (id_note_section_size): Rename from gld${EMULATION_NAME}_id_note_section_size. (struct build_id_info): Delete. (write_build_id): Rename from gld${EMULATION_NAME}_write_build_id_section. Update elf_tdata usage. Style, formatting. (setup_build_id): New function. (gld${EMULATION_NAME}_after_open): Use setup_build_id.
2013-02-18 * elf64-mips.c (micromips_elf64_howto_table_rel): AddMaciej W. Rozycki3-0/+139
R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR. (micromips_elf64_howto_table_rela): Likewise. (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR. * elfn32-mips.c (elf_micromips_howto_table_rel): Add R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR. (elf_micromips_howto_table_rela): Likewise. (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
2013-02-18 * elfxx-mips.c (MICROMIPS_P): New macro.Maciej W. Rozycki2-1/+10
(_bfd_mips_elf_symbol_processing): Use it.
2013-02-18 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): ClarifyMaciej W. Rozycki2-1/+6
comment on _PROCEDURE_LINKAGE_TABLE_ creation.
2013-02-18daily updateAlan Modra1-1/+1
2013-02-18 PR ld/12549Alan Modra4-7/+40
* elf-bfd.h (_bfd_elf_strtab_clear_refs): Delete. (_bfd_elf_strtab_clear_all_refs): Declare. (_bfd_elf_strtab_resize): Declare. * elf-strtab.c (_bfd_elf_strtab_clear_refs): Delete. (_bfd_elf_strtab_clear_all_refs): New function. (_bfd_elf_strtab_resize): Likewise. * elflink.c (elf_link_add_object_symbols): Use _bfd_elf_strtab_resize.
2013-02-18 * elf-bfd.h (struct elf_obj_tdata): Move find_line_info, local_stubs,Alan Modra4-59/+68
local_call_stubs, elf_data_symbol, elf_text_symbol, elf_data_section, and elf_text_section to.. * elfxx-mips.c (struct mips_elf_obj_tdata): ..here. Update all refs. * elf64-alpha.c (struct mips_elf_find_line): Rename to.. (struct alpha_elf_find_line): ..this. (struct alpha_elf_obj_tdata): Add find_line_info, update refs.
2013-02-17daily updateAlan Modra1-1/+1
2013-02-16daily updateAlan Modra1-1/+1
2013-02-16Don't add DT_NEEDED for references from the dummy bfdH.J. Lu2-1/+10
bfd/ PR ld/15146 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED for references from the dummy bfd. ld/ PR ld/15146 * plugin.c (plugin_notice): Replace the undefined dummy bfd with the real one. ld/testsuite/ PR ld/15146 * ld-plugin/pr15146.d: New file. * ld-plugin/pr15146a.c: Likewise. * ld-plugin/pr15146b.c: Likewise. * ld-plugin/pr15146c.c: Likewise. * ld-plugin/pr15146d.c: Likewise. * ld-plugin/lto.exp: Add tests for PR ld/15146.
2013-02-16Also track weak referencesH.J. Lu2-9/+18
PR ld/15149 * elflink.c (elf_link_add_object_symbols): Also track weak references.