aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2012-06-29 * section.c (bfd_get_linker_section): New function.Alan Modra42-880/+943
* elf32-arm.c: When retrieving SEC_LINKER_CREATED sections, use the above throughout rather than bfd_get_section_by_name. Use bfd_make_section_anyway rather than bfd_make_section when creating them. * elf32-bfin.c: Likewise. * elf32-cr16.c: Likewise. * elf32-cris.c: Likewise. * elf32-frv.c: Likewise. * elf32-hppa.c: Likewise. * elf32-i370.c: Likewise. * elf32-i386.c: Likewise. * elf32-lm32.c: Likewise. * elf32-m32c.c: Likewise. * elf32-m32r.c: Likewise. * elf32-m68k.c: Likewise. * elf32-microblaze.c: Likewise. * elf32-ppc.c: Likewise. * elf32-rl78.c: Likewise. * elf32-s390.c: Likewise. * elf32-score.c: Likewise. * elf32-score7.c: Likewise. * elf32-sh.c: Likewise. * elf32-tic6x.c: Likewise. * elf32-tilepro.c: Likewise. * elf32-vax.c: Likewise. * elf32-xstormy16.c: Likewise. * elf32-xtensa.c: Likewise. * elf64-alpha.c: Likewise. * elf64-hppa.c: Likewise. * elf64-ia64-vms.c: Likewise. * elf64-ppc.c: Likewise. * elf64-s390.c: Likewise. * elf64-sh64.c: Likewise. * elf64-sparc.c: Likewise. * elf64-x86-64.c: Likewise. * elfnn-ia64.c: Likewise. * elfxx-mips.c: Likewise. * elfxx-sparc.c: Likewise. * elfxx-tilegx.c: Likewise. * elflink.c: Likewise. * elf-vxworks.c: Likewise. * elf-m10300.c: Likewise. Also make use of htab plt, got and gotplt shortcuts. * bfd-in2.h: Regenerate. * elf32-lm32.c (lm32_elf_check_relocs): Use the correct bfd when calling create_rofixup_section. * elflink.c (bfd_elf_final_link): Simplify test for .dynstr.
2012-06-29 * elf32-sh.c (sh_elf_create_dynamic_sections): Don't create .relaAlan Modra7-154/+10
section for bss type sections, except for .rela.bss. * elf-m10300.c (_bfd_mn10300_elf_create_dynamic_sections): Likewise. * elf32-cr16.c (_bfd_cr16_elf_create_dynamic_sections): Likewise. * elf32-lm32.c (lm32_elf_create_dynamic_sections): Likewise. * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise. * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
2012-06-29daily updateAlan Modra1-1/+1
2012-06-28gas/config/Sean Keys1-1/+4
* tc-xgate.h: Defined tc_frob_symbol. * tc-xgate.c (xgate_frob_symbol): Wrote new function to mark symbols as being XGATE by setting st_target_internal value. bfd/ * elf32-xgate.c (elf32_xgate_add_symbol_hook): Added a temp patch that forces st_target_internal to equal 1, since tc_frob_symbol seems to need adjusting.
2012-06-28bfd/Roland McGrath2-3/+10
* elf32-arm.c (elf32_arm_populate_plt_entry): Use int32_t for displacement calculation in nacl_p case.
2012-06-28 * po/vi.po: Updated Vietnamese translation.Nick Clifton4-2/+6130
* po/uk.po: New Ukranian translation. * configure.in (ALL_LINGUAS): Add uk. * configure: Regenerate.
2012-06-28daily updateAlan Modra1-1/+1
2012-06-27daily updateAlan Modra1-1/+1
2012-06-26 * elf64-ppc.c (ppc64_elf_next_toc_section): Don't error if inputAlan Modra2-2/+11
file has multiple .got/.toc sections and all don't fit in current toc group.
2012-06-26daily updateAlan Modra1-1/+1
2012-06-25daily updateAlan Modra1-1/+1
2012-06-24daily updateAlan Modra1-1/+1
2012-06-23daily updateAlan Modra1-1/+1
2012-06-22bfd/Roland McGrath2-0/+55
* elf.c (assign_file_positions_for_non_load_sections): Define __ehdr_start symbol if it's referenced and there's a PT_LOAD segment that covers both the file and program headers. ld/ * NEWS: Mention __ehdr_start. ld/testsuite/ * ld-elf/ehdr_start.s: New file. * ld-elf/ehdr_start.d: New file.
2012-06-22* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't makeAndreas Schwab2-5/+5
_GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute.
2012-06-22 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't emit out-of-lineAlan Modra2-4/+10
save/restore functions when relocatable. Make "funcs" static.
2012-06-22daily updateAlan Modra1-1/+1
2012-06-21daily updateAlan Modra1-1/+1
2012-06-20daily updateAlan Modra1-1/+1
2012-06-19daily updateAlan Modra1-1/+1
2012-06-18 * elf32-cris.c (cris_elf_plt_sym_val): Rewrite to work in presenceHans-Peter Nilsson2-4/+57
of merged .got and .got.plt entries.
2012-06-18 * elf32-arm.c (elf32_arm_final_link_relocate): Correct return value.Alan Modra2-1/+5
2012-06-18daily updateAlan Modra1-1/+1
2012-06-17 * elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE>Hans-Peter Nilsson2-1/+8
<R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to thread common symbols.
2012-06-17daily updateAlan Modra1-1/+1
2012-06-16daily updateAlan Modra1-1/+1
2012-06-15daily updateAlan Modra1-1/+1
2012-06-14daily updateAlan Modra1-1/+1
2012-06-13 * elf32-arm.c (bfd_arm_get_mach_from_attributes): New function.Nick Clifton2-8/+52
(elf32_arm_object_p): If the machine number could not be deduced from the notes, call bfd_arm_get_mach_from_attributes to get the number from the attributes.
2012-06-13daily updateAlan Modra1-1/+1
2012-06-12Abort if PT_GNU_RELRO segment doesn't fit in PT_LOAD segmentH.J. Lu2-0/+11
bfd/ PR bfd/14207 * elf.c (assign_file_positions_for_non_load_sections): Abort if PT_GNU_RELRO segment doesn't fit in PT_LOAD segment. ld/testsuite/ PR ld/14207 * ld-x86-64/x86-64.exp: Run pr14207. * ld-x86-64/pr14207.d: New file. * ld-x86-64/pr14207.s: Likewise.
2012-06-12 PR ld/14207Alan Modra2-7/+21
* elf.c (_bfd_elf_map_sections_to_segments): Disregard bss type sections at end of PT_LOAD segment when searching for segment that contains end of relro extent.
2012-06-12daily updateAlan Modra1-1/+1
2012-06-11Reindent assign_file_positions_for_non_load_sectionsH.J. Lu2-8/+13
* elf.c (assign_file_positions_for_non_load_sections): Reindent.
2012-06-11Reindent _bfd_elf_map_sections_to_segmentsH.J. Lu2-1/+5
* elf.c (_bfd_elf_map_sections_to_segments): Reindent.
2012-06-11daily updateAlan Modra1-1/+1
2012-06-10daily updateAlan Modra1-1/+1
2012-06-09daily updateAlan Modra1-1/+1
2012-06-08daily updateAlan Modra1-1/+1
2012-06-07daily updateAlan Modra1-1/+1
2012-06-06bfd/Alan Modra2-0/+84
* elflink.c (elf_link_input_bfd): Provide a file symbol for each input file with local syms, if the input lacks such. (bfd_elf_final_link): Add a file symbol to mark end of locals for which we can associate with input files. (struct elf_final_link_info): Add filesym_count field. (struct elf_outext_info): Add need_second_pass and second_pass. (elf_link_output_extsym): Detect symbols defined in the output file, emit them on second pass over locals. ld/testsuite/ Update to suit added STT_FILE symbols.
2012-06-06daily updateAlan Modra1-1/+1
2012-06-05daily updateAlan Modra1-1/+1
2012-06-04bfd/Jan Kratochvil6-7/+22
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument of target_read_memory as bfd_size_type. * bfd-in2.h: Regenerate. * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN argument of target_read_memory as bfd_size_type. (_bfd_elf32_bfd_from_remote_memory): Likewise. (_bfd_elf64_bfd_from_remote_memory): Likewise. * elf.c (bfd_elf_bfd_from_remote_memory): Likewise. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise. gdb/ * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd parameters. (target_read_memory_bfd): New function. (symbol_file_add_from_memory): Use it.
2012-06-04daily updateAlan Modra1-1/+1
2012-06-03 PR binutils/13897Alan Modra4-114/+187
* elf.c (elf_find_function): Cache last function sym info. (_bfd_elf_maybe_function_sym): Return function size, pass in section of interest. * elf-bfd.h (struct elf_backend_data <maybe_function_sym>): Likewise. (_bfd_elf_maybe_function_sym): Likewise. * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise. (opd_entry_value): Add in_code_sec param. Revert caching code. Return -1 if in_code_sec and function found in wrong section. Update all calls.
2012-06-03daily updateAlan Modra1-1/+1
2012-06-02daily updateAlan Modra1-1/+1
2012-06-01bfd/Jan Kratochvil6-7/+19
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument of target_read_memory as size_t. * bfd-in2.h: Regenerate. * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN argument of target_read_memory as size_t. (_bfd_elf32_bfd_from_remote_memory): Likewise. (_bfd_elf64_bfd_from_remote_memory): Likewise. * elf.c (bfd_elf_bfd_from_remote_memory): Likewise. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise. gdb/ * target.c (target_read_memory): Make LEN argument as size_t. * target.h (target_read_memory): Likewise.
2012-06-01 PR binutils/13897Alan Modra2-36/+38
* elf64-ppc.c (opd_entry_value): Rewrite cache code.