summaryrefslogtreecommitdiff
path: root/bfd
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't compress empty debug sectionH.J. Lu2012-07-032-1/+7
| | | | | | | | | | | | | | | 2012-07-03 H.J. Lu <hongjiu.lu@intel.com> PR binutils/14319 * elf.c (_bfd_elf_make_section_from_shdr): Don't compress empty debug section. 2012-07-03 H.J. Lu <hongjiu.lu@intel.com> PR binutils/14319 * binutils-all/compress.exp: Test compress empty debug sections. * binutils-all/dw2-empty.S: New file.
* Properly handle indirect symbolsH.J. Lu2012-07-032-29/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-07-03 H.J. Lu <hongjiu.lu@intel.com> PR ld/3351 * elflink.c (_bfd_elf_update_dynamic_flags): New. (_bfd_elf_merge_symbol): Update both real and indirect symbol dynamic flags. (_bfd_elf_add_default_symbol): Make the real symbol dynamic if the indirect symbol is defined in a shared library. (elf_link_add_object_symbols): Likewise. If the indirect symbol has been forced local, don't make the real symbol dynamic. (elf_link_check_versioned_symbol): Check indirect symbol. (elf_link_output_extsym): Use real symbol definition when reporting indirect symbol error. Check version info for dynamic versioned symbol. 2012-07-03 H.J. Lu <hongjiu.lu@intel.com> PR ld/3351 * ld-elf/indirect.exp: New file. * ld-elf/indirect1a.c: Likewise. * ld-elf/indirect1b.c: Likewise. * ld-elf/indirect1c.c: Likewise. * ld-elf/indirect2.c: Likewise. * ld-elf/indirect3.out: Likewise. * ld-elf/indirect3a.c: Likewise. * ld-elf/indirect3b.c: Likewise. * ld-elf/indirect3c.c: Likewise. * ld-elf/indirect4.out: Likewise. * ld-elf/indirect4a.c: Likewise. * ld-elf/indirect4b.c: Likewise. * ld-elf/indirect4c.c: Likewise.
* PR ld/14207Alan Modra2012-07-032-10/+19
| | | | | | | | | | * elf.c (assign_file_positions_for_load_sections): Remove assertions that only PT_LOAD headers include file header and section headers. (assign_file_positions_for_non_load_sections): Similarly don't assert PT_GNU_RELRO header does not include file and section headers. Compare first section vma rather than PT_LOAD p_vaddr against relro_start when looking for PT_LOAD covering PT_GNU_RELRO. Replace abort with assertion.
* daily updateAlan Modra2012-07-031-1/+1
|
* * elf32-m32c.c (m32c_elf_check_relocs): Use bfd_make_sectionAlan Modra2012-07-024-64/+79
| | | | | | | | | | | | "anyway" variant when creating .plt. (m32c_elf_relax_plt_section): Remove redundant test and unused param. (m32c_elf_relax_section): Test SEC_LINKER_CREATED before calling m32c_elf_relax_plt_section. * elfxx-mips.c (mips_elf_create_got_section): Use make anyway variant when creating .got and .got.plt. (_bfd_mips_elf_final_link): Likewise for .rtproc, and use bfd_get_linker_section. * sunos.c: Similarly throughout.
* daily updateAlan Modra2012-07-021-1/+1
|
* * elf.c (_bfd_elf_make_section_from_shdr): Fix typo in errorAndreas Schwab2012-07-012-2/+7
| | | | message.
* daily updateAlan Modra2012-07-011-1/+1
|
* daily updateAlan Modra2012-06-301-1/+1
|
* Return FALSE on unresolvable relocationH.J. Lu2012-06-292-7/+15
| | | | | * elf64-x86-64.c (elf_x86_64_relocate_section): Return FALSE on unresolvable relocation.
* Simplify global symbol handlingH.J. Lu2012-06-292-4/+9
| | | | | * archive.c (_bfd_compute_and_write_armap): Simplify global symbol handling.
* PR ld/14189Nick Clifton2012-06-292-1/+8
| | | | | * elf32-arm.c (elf32_arm_check_relocs): Do not increment refcount for locally bound symbols.
* * section.c (bfd_get_linker_section): New function.Alan Modra2012-06-2942-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.
* * elf32-sh.c (sh_elf_create_dynamic_sections): Don't create .relaAlan Modra2012-06-297-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.
* daily updateAlan Modra2012-06-291-1/+1
|
* gas/config/seank2012-06-281-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.
* bfd/Roland McGrath2012-06-282-3/+10
| | | | | * elf32-arm.c (elf32_arm_populate_plt_entry): Use int32_t for displacement calculation in nacl_p case.
* * po/vi.po: Updated Vietnamese translation.Nick Clifton2012-06-284-2/+6130
| | | | | | * po/uk.po: New Ukranian translation. * configure.in (ALL_LINGUAS): Add uk. * configure: Regenerate.
* daily updateAlan Modra2012-06-281-1/+1
|
* daily updateAlan Modra2012-06-271-1/+1
|
* * elf64-ppc.c (ppc64_elf_next_toc_section): Don't error if inputAlan Modra2012-06-262-2/+11
| | | | | file has multiple .got/.toc sections and all don't fit in current toc group.
* daily updateAlan Modra2012-06-261-1/+1
|
* daily updateAlan Modra2012-06-251-1/+1
|
* daily updateAlan Modra2012-06-241-1/+1
|
* daily updateAlan Modra2012-06-231-1/+1
|
* bfd/Roland McGrath2012-06-222-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.
* * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't makeAndreas Schwab2012-06-222-5/+5
| | | | _GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute.
* * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't emit out-of-lineAlan Modra2012-06-222-4/+10
| | | | save/restore functions when relocatable. Make "funcs" static.
* daily updateAlan Modra2012-06-221-1/+1
|
* daily updateAlan Modra2012-06-211-1/+1
|
* daily updateAlan Modra2012-06-201-1/+1
|
* daily updateAlan Modra2012-06-191-1/+1
|
* * elf32-cris.c (cris_elf_plt_sym_val): Rewrite to work in presenceHans-Peter Nilsson2012-06-182-4/+57
| | | | of merged .got and .got.plt entries.
* * elf32-arm.c (elf32_arm_final_link_relocate): Correct return value.Alan Modra2012-06-182-1/+5
|
* daily updateAlan Modra2012-06-181-1/+1
|
* * elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE>Hans-Peter Nilsson2012-06-172-1/+8
| | | | | <R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to thread common symbols.
* daily updateAlan Modra2012-06-171-1/+1
|
* daily updateAlan Modra2012-06-161-1/+1
|
* daily updateAlan Modra2012-06-151-1/+1
|
* daily updateAlan Modra2012-06-141-1/+1
|
* * elf32-arm.c (bfd_arm_get_mach_from_attributes): New function.Nick Clifton2012-06-132-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.
* daily updateAlan Modra2012-06-131-1/+1
|
* Abort if PT_GNU_RELRO segment doesn't fit in PT_LOAD segmentH.J. Lu2012-06-122-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.
* PR ld/14207Alan Modra2012-06-122-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.
* daily updateAlan Modra2012-06-121-1/+1
|
* Reindent assign_file_positions_for_non_load_sectionsH.J. Lu2012-06-112-8/+13
| | | | * elf.c (assign_file_positions_for_non_load_sections): Reindent.
* Reindent _bfd_elf_map_sections_to_segmentsH.J. Lu2012-06-112-1/+5
| | | | * elf.c (_bfd_elf_map_sections_to_segments): Reindent.
* daily updateAlan Modra2012-06-111-1/+1
|
* daily updateAlan Modra2012-06-101-1/+1
|
* daily updateAlan Modra2012-06-091-1/+1
|