105caefcfSchristos2010-12-31  Robert Millan  <rmh@gnu.org>
205caefcfSchristos
305caefcfSchristos	* config.bfd: Recognize mips-freebsd and mips-kfreebsd-gnu.
405caefcfSchristos	* configure.host: Likewise.
505caefcfSchristos	* configure.in: Support for `bfd_elf32_ntradbigmips_freebsd_vec',
605caefcfSchristos	`bfd_elf32_ntradlittlemips_freebsd_vec',
705caefcfSchristos	`bfd_elf32_tradbigmips_freebsd_vec',
805caefcfSchristos	`bfd_elf32_tradlittlemips_freebsd_vec',
905caefcfSchristos	`bfd_elf64_tradbigmips_freebsd_vec' and
1005caefcfSchristos	`bfd_elf64_tradlittlemips_freebsd_vec'.
1105caefcfSchristos	* configure: Regenerate.
1205caefcfSchristos	* elf32-mips.c: New target for FreeBSD support
1305caefcfSchristos	(same as traditional MIPS but overrides ELF_OSABI
1405caefcfSchristos	with ELFOSABI_FREEBSD).
1505caefcfSchristos	* elf64-mips.c: Likewise.
1605caefcfSchristos	* elfn32-mips.c: Likewise.
1705caefcfSchristos	* targets.c (_bfd_target_vector): Add
1805caefcfSchristos	`bfd_elf32_ntradbigmips_freebsd_vec',
1905caefcfSchristos	`bfd_elf32_ntradlittlemips_freebsd_vec',
2005caefcfSchristos	`bfd_elf32_tradbigmips_freebsd_vec',
2105caefcfSchristos	`bfd_elf32_tradlittlemips_freebsd_vec',
2205caefcfSchristos	`bfd_elf64_tradbigmips_freebsd_vec' and
2305caefcfSchristos	`bfd_elf64_tradlittlemips_freebsd_vec'.
2405caefcfSchristos
2505caefcfSchristos2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>
2605caefcfSchristos
2705caefcfSchristos	* elfcode.h (NAME(elf,r_info)): New.
2805caefcfSchristos	(NAME(elf,r_sym)): Likewise.
2905caefcfSchristos
3005caefcfSchristos	* elflink.c (elf64_r_info): Removed.
3105caefcfSchristos	(elf32_r_info): Likewise.
3205caefcfSchristos	(elf64_r_sym): Likewise.
3305caefcfSchristos	(elf32_r_sym): Likewise.
3405caefcfSchristos
3505caefcfSchristos2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>
3605caefcfSchristos
3705caefcfSchristos	* elf64-x86-64.c (elf_x86_64_relocs_compatible): New.
3805caefcfSchristos	(elf_backend_relocs_compatible): Defined to
3905caefcfSchristos	elf_x86_64_relocs_compatible.
4005caefcfSchristos
4105caefcfSchristos2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>
4205caefcfSchristos
4305caefcfSchristos	* archures.c (bfd_mach_x64_32): New.
4405caefcfSchristos	(bfd_mach_x64_32_intel_syntax): Likewise.
4505caefcfSchristos	* bfd-in2.h: Regenerated.
4605caefcfSchristos
4705caefcfSchristos	* config.bfd (targ64_selvecs): Add bfd_elf32_x86_64_vec for
4805caefcfSchristos	i[3-7]86-*-linux-*.
4905caefcfSchristos	(targ_selvecs): Add bfd_elf32_x86_64_vec for x86_64-*-linux-*.
5005caefcfSchristos
5105caefcfSchristos	* configure.in: Support bfd_elf32_x86_64_vec.
5205caefcfSchristos	* configure: Regenerated.
5305caefcfSchristos
5405caefcfSchristos	* cpu-i386.c (bfd_x64_32_arch_intel_syntax): New.
5505caefcfSchristos	(bfd_x64_32_arch): Likewise.
5605caefcfSchristos
5705caefcfSchristos	* elf-bfd.h (elf_append_rela): New prototype.
5805caefcfSchristos	(elf_append_rel): Likewise.
5905caefcfSchristos	(elf64_r_info): Likewise.
6005caefcfSchristos	(elf32_r_info): Likewise.
6105caefcfSchristos	(elf64_r_sym): Likewise.
6205caefcfSchristos	(elf32_r_sym): Likewise.
6305caefcfSchristos
6405caefcfSchristos	* elf64-x86-64.c (ABI_64_P): New.
6505caefcfSchristos	(elf_x86_64_info_to_howto): Replace ELF64_R_TYPE with
6605caefcfSchristos	ELF32_R_TYPE.  Replace ELF64_ST_TYPE with ELF_ST_TYPE.
6705caefcfSchristos	(elf_x86_64_check_tls_transition):Likewise.
6805caefcfSchristos	(elf_x86_64_check_relocs): Likewise.
6905caefcfSchristos	(elf_x86_64_gc_mark_hook):Likewise.
7005caefcfSchristos	(elf_x86_64_gc_sweep_hook): Likewise.
7105caefcfSchristos	(elf_x86_64_relocate_section): Likewise.
7205caefcfSchristos	(elf_x86_64_reloc_type_class): Likewise.
7305caefcfSchristos	(ELF_DYNAMIC_INTERPRETER): Renamed to ...
7405caefcfSchristos	(ELF64_DYNAMIC_INTERPRETER): This.
7505caefcfSchristos	(ELF32_DYNAMIC_INTERPRETER): New.
7605caefcfSchristos	(elf_x86_64_link_hash_table): Add r_info, r_sym, swap_reloca_out,
7705caefcfSchristos	dynamic_interpreter and dynamic_interpreter_size.
7805caefcfSchristos	(elf_x86_64_get_local_sym_hash): Replace ELF64_R_SYM with
7905caefcfSchristos	htab->r_sym.  Replace ELF64_R_INFO with htab->r_info.
8005caefcfSchristos	(elf_x86_64_get_local_sym_hash): Likewise.
8105caefcfSchristos	(elf_x86_64_check_tls_transition):Likewise.
8205caefcfSchristos	(elf_x86_64_check_relocs): Likewise.
8305caefcfSchristos	(elf_x86_64_gc_mark_hook):Likewise.
8405caefcfSchristos	(elf_x86_64_gc_sweep_hook): Likewise.
8505caefcfSchristos	(elf_x86_64_relocate_section): Likewise.
8605caefcfSchristos	(elf_x86_64_finish_dynamic_symbol): Likewise.
8705caefcfSchristos	(elf_x86_64_finish_local_dynamic_symbol): Likewise.
8805caefcfSchristos	(elf_x86_64_link_hash_table_create): Initialize r_info, r_sym,
8905caefcfSchristos	swap_reloca_out, dynamic_interpreter and dynamic_interpreter_size.
9005caefcfSchristos	(elf_x86_64_check_relocs): Check ABI_64_P when requesting for
9105caefcfSchristos	PIC.
9205caefcfSchristos	(elf_x86_64_relocate_section): Likewise.
9305caefcfSchristos	(elf64_x86_64_adjust_dynamic_symbol): Replace sizeof
9405caefcfSchristos	(Elf64_External_Rela) with bed->s->sizeof_rela.
9505caefcfSchristos	(elf64_x86_64_allocate_dynrelocs): Likewise.
9605caefcfSchristos	(elf64_x86_64_size_dynamic_sections): Likewise.
9705caefcfSchristos	(elf64_x86_64_finish_dynamic_symbol): Likewise.
9805caefcfSchristos	(elf64_x86_64_append_rela): Removed.
9905caefcfSchristos	(elf32_x86_64_elf_object_p): New.
10005caefcfSchristos	Add bfd_elf32_x86_64_vec.
10105caefcfSchristos
10205caefcfSchristos	* elf64-x86-64.c (elf64_x86_64_xxx): Renamed to ...
10305caefcfSchristos	(elf_x86_64_xxx): This.
10405caefcfSchristos
10505caefcfSchristos	* elflink.c (bfd_elf_final_link): Check ELF file class on error.
10605caefcfSchristos	(elf_append_rela): New.
10705caefcfSchristos	(elf_append_rel): Likewise.
10805caefcfSchristos	(elf64_r_info): Likewise.
10905caefcfSchristos	(elf32_r_info): Likewise.
11005caefcfSchristos	(elf64_r_sym): Likewise.
11105caefcfSchristos	(elf32_r_sym): Likewise.
11205caefcfSchristos
11305caefcfSchristos	* targets.c (bfd_elf32_x86_64_vec): New.
11405caefcfSchristos	(_bfd_target_vector): Add bfd_elf32_x86_64_vec.
11505caefcfSchristos
11605caefcfSchristos2010-12-24  Alan Modra  <amodra@gmail.com>
11705caefcfSchristos
11805caefcfSchristos	* compress.c (decompress_contents): Style.
11905caefcfSchristos	(bfd_get_full_section_contents): Do not decompress directly into
12005caefcfSchristos	caller buffer or directly return cached section contents.
12105caefcfSchristos	Check malloc return for compressed_buffer.
12205caefcfSchristos
12305caefcfSchristos2010-12-21  Kai Tietz  <kai.tietz@onevision.com>
12405caefcfSchristos
12505caefcfSchristos	* peXXigen.c (_bfd_XXi_final_link_postscript): Use
12605caefcfSchristos	bfd_get_symbol_leading_char to determine "_tls_used" name.
12705caefcfSchristos
12805caefcfSchristos2010-12-21  Pierre Muller  <muller@ics.u-strasbg.fr>
12905caefcfSchristos
13005caefcfSchristos	* peXXigen.c (_bfd_XXi_final_link_postscript): Use correct size
13105caefcfSchristos	for windows 64-bit TLS table size.
13205caefcfSchristos
13305caefcfSchristos2010-12-16  DJ Delorie  <dj@redhat.com>
13405caefcfSchristos
13505caefcfSchristos	* reloc.c (BFD_RELOC_RX_ABS16_REV): Add.
13605caefcfSchristos	(BFD_RELOC_RX_ABS32_REV): Add.
13705caefcfSchristos	* bfd-in2.h: Regenerate.
13805caefcfSchristos	* libbfd.h: Regenerate.
13905caefcfSchristos	* elf32-rx.c (rx_reloc_map): Add them.
14005caefcfSchristos
14105caefcfSchristos2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
14205caefcfSchristos
14305caefcfSchristos	* elf.c (_bfd_elf_new_section_hook): Special handling for
14405caefcfSchristos	.init_array/.fini_array output sections.
14505caefcfSchristos
14605caefcfSchristos2010-12-13  Alan Modra  <amodra@gmail.com>
14705caefcfSchristos
14805caefcfSchristos	* aoutx.h (aout_link_check_ar_symbols): Formatting.
14905caefcfSchristos	* cofflink.c (coff_link_check_ar_symbols): Likewise.
15005caefcfSchristos	* elflink.c (elf_link_add_archive_symbols): Likewise.
15105caefcfSchristos	* pdp11.c (aout_link_check_ar_symbols): Likewise.
15205caefcfSchristos	* xcofflink.c (xcoff_link_check_dynamic_ar_symbols,
15305caefcfSchristos	xcoff_link_check_dynamic_ar_symbols): Likewise.
15405caefcfSchristos
15505caefcfSchristos	* aoutx.h (aout_link_check_archive_element): Simplify code dealing
15605caefcfSchristos	with add_archive_element substitute BFD.
15705caefcfSchristos	* cofflink.c (coff_link_check_archive_element): Likewise.
15805caefcfSchristos	* ecoff.c (ecoff_link_check_archive_element): Likewise.
15905caefcfSchristos	(ecoff_link_add_archive_symbols): Likewise.
16005caefcfSchristos	* linker.c (generic_link_check_archive_element): Likewise.
16105caefcfSchristos	* pdp11.c (aout_link_check_archive_element): Likewise.
16205caefcfSchristos	* vms-alpha.c (alpha_vms_link_add_archive_symbols): Likewise.
16305caefcfSchristos	* xcofflink.c (xcoff_link_check_archive_element): Likewise.
16405caefcfSchristos
16505caefcfSchristos	* aoutx.h (aout_link_check_archive_element): Free symbols from old
16605caefcfSchristos	bfd if !keep_memory.
16705caefcfSchristos	* cofflink.c (coff_link_check_archive_element): Likewise.
16805caefcfSchristos	* pdp11.c (aout_link_check_archive_element): Likewise.
16905caefcfSchristos	* xcofflink.c (xcoff_link_check_archive_element): Likewise.
17005caefcfSchristos
17105caefcfSchristos2010-12-13  Alan Modra  <amodra@gmail.com>
17205caefcfSchristos
17305caefcfSchristos	* plugin.c (bfd_plugin_mkobject): Delete.
17405caefcfSchristos	(plugin_vec): Use bfd_false instead.
17505caefcfSchristos
17605caefcfSchristos2010-12-12  H.J. Lu  <hongjiu.lu@intel.com>
17705caefcfSchristos
17805caefcfSchristos	* elflink.c (elf_link_add_archive_symbols): Remove subsbfd.
17905caefcfSchristos
18005caefcfSchristos2010-12-12  H.J. Lu  <hongjiu.lu@intel.com>
18105caefcfSchristos
18205caefcfSchristos	* elf.c (special_sections_g): Add ".gnu.lto_".
18305caefcfSchristos
18405caefcfSchristos2010-12-10  Alan Modra  <amodra@gmail.com>
18505caefcfSchristos
18605caefcfSchristos	* config.bfd: Configure rs6000-*-aix* as for powerpc-*-aix*.
18705caefcfSchristos	Add aix5coff64_vec to powerpc ELF entries.
18805caefcfSchristos
18905caefcfSchristos2010-12-09  Mike Frysinger  <vapier@gentoo.org>
19005caefcfSchristos
19105caefcfSchristos	* .gitignore: New file.
19205caefcfSchristos
19305caefcfSchristos2010-12-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
19405caefcfSchristos
19505caefcfSchristos	PR ld/12288
19605caefcfSchristos	* plugin.c (message): Add putchar for the trailing `\n'.
19705caefcfSchristos
19805caefcfSchristos2010-12-04  Mike Frysinger  <vapier@gentoo.org>
19905caefcfSchristos
20005caefcfSchristos	* Makefile.am (!INSTALL_LIBBFD/bfdinclude_HEADERS): Set to nothing.
20105caefcfSchristos	(PLUGINS/bfdinclude_HEADERS): Append plugin-api.h.
20205caefcfSchristos	* Makefile.in: Regenerated.
20305caefcfSchristos
20405caefcfSchristos2010-12-04  Alan Modra  <amodra@gmail.com>
20505caefcfSchristos
20605caefcfSchristos	PR ld/12277
20705caefcfSchristos	* elflink.c (elf_link_output_extsym): Set bfd_error on symbol
20805caefcfSchristos	and section errors.  Allow better translation of error messages.
20905caefcfSchristos
21005caefcfSchristos2010-12-02  Richard Sandiford  <richard.sandiford@linaro.org>
21105caefcfSchristos
21205caefcfSchristos	* elf32-arm.c (elf32_arm_link_hash_table): Remove sgot, sgotplt,
21305caefcfSchristos	srelgot, splt, srelplt.
21405caefcfSchristos	(create_got_section, elf32_arm_link_hash_table_create): Don't set them.
21505caefcfSchristos	(elf32_arm_create_dynamic_sections): Likewise.  Use htab->root
21605caefcfSchristos	fields instead.
21705caefcfSchristos	(arm_type_of_stub): Use the root fields instead of the removed ones.
21805caefcfSchristos	(cortex_a8_erratum_scan, elf32_arm_size_stubs): Likewise.
21905caefcfSchristos	(bfd_elf32_arm_process_before_allocation): Likewise.
22005caefcfSchristos	(elf32_arm_check_relocs, allocate_dynrelocs): Likewise.
22105caefcfSchristos	(elf32_arm_size_dynamic_sections): Likewise.
22205caefcfSchristos	(elf32_arm_output_arch_local_syms): Likewise.
22305caefcfSchristos	(elf32_arm_final_link_relocate): Set sgot, splt and srelgot from the
22405caefcfSchristos	htab fields instead of looking them up by name.  Consistently use
22505caefcfSchristos	these local variables instead of htab fields.
22605caefcfSchristos	(elf32_arm_finish_dynamic_symbol): Likewise sgot, splt and srel.
22705caefcfSchristos	Use srelbss instead of looking it up by name.
22805caefcfSchristos	(elf32_arm_finish_dynamic_sections): Use sgotplt, splt and srelplt
22905caefcfSchristos	instead of looking up the symbols by name.  Use the root fields
23005caefcfSchristos	instead of the removed ones.
23105caefcfSchristos
23205caefcfSchristos2010-12-02  Richard Sandiford  <richard.sandiford@linaro.org>
23305caefcfSchristos
23405caefcfSchristos	* elf32-arm.c (elf32_arm_relocs_copied): Delete.
23505caefcfSchristos	(elf32_arm_link_hash_entry): Replace relocs_copied with dyn_relocs.
23605caefcfSchristos	(elf32_arm_link_hash_newfunc): Update accordingly.
23705caefcfSchristos	(elf32_arm_copy_indirect_symbol, elf32_arm_gc_sweep_hook): Likewise.
23805caefcfSchristos	(elf32_arm_check_relocs, allocate_dynrelocs): Likewise.
23905caefcfSchristos	(elf32_arm_readonly_dynrelocs): Likewise.
24005caefcfSchristos	(elf32_arm_size_dynamic_sections): Likewise.
24105caefcfSchristos
24205caefcfSchristos2010-12-02  Paul Koning  <ni1d@arrl.net>
24305caefcfSchristos
24405caefcfSchristos	* pdp11.c (aout_link_add_symbols): Ignore debug symbols.
24505caefcfSchristos
24605caefcfSchristos2010-11-30  Joel Sherrill  <joel.sherrill@oarcorp.com>
24705caefcfSchristos
24805caefcfSchristos	* config.bfd: Add sparc64-rtems.
24905caefcfSchristos
25005caefcfSchristos2010-11-25  Alan Modra  <amodra@gmail.com>
25105caefcfSchristos
25205caefcfSchristos	* po/es.po: Update.
25305caefcfSchristos	* po/fi.po: Update.
25405caefcfSchristos	* po/fr.po: Update.
25505caefcfSchristos	* po/ja.po: Update.
25605caefcfSchristos	* po/zh_CN.po: Update.
25705caefcfSchristos
25805caefcfSchristos2010-11-24  Joel Brobecker  <brobecker@adacore.com>
25905caefcfSchristos
26005caefcfSchristos	* Makefile.am (OPTIONAL_BACKENDS): Add rs6000-core.lo.
26105caefcfSchristos	(OPTIONAL_BACKENDS_CFILES): Add rs6000-core.c.
26205caefcfSchristos	* Makefile.in: Regenerate.
26305caefcfSchristos
26405caefcfSchristos2010-11-24  Alan Modra  <amodra@gmail.com>
26505caefcfSchristos
26605caefcfSchristos	PR ld/12253
26705caefcfSchristos	* elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct
26805caefcfSchristos	DW_EH_PE_datarel handling.  Truncate .eh_frame_hdr address to
26905caefcfSchristos	ptr_size.
27005caefcfSchristos
27105caefcfSchristos2010-11-23  Mingming Sun  <mingm.sun@gmail.com>
27205caefcfSchristos
27305caefcfSchristos	* elfxx-mips.c (mips_set_isa_flags): Move bfd_mach_loongson_3a
27405caefcfSchristos	after bfd_mach_mips_sb1.
27505caefcfSchristos
27605caefcfSchristos2010-11-17  Tristan Gingold  <gingold@adacore.com>
27705caefcfSchristos
27805caefcfSchristos	* vms-lib.c (vms_write_index): Add comments.
27905caefcfSchristos	Partially revert previous patch.  Free blocks later.
28005caefcfSchristos
28105caefcfSchristos2010-11-17  Nick Clifton  <nickc@redhat.com>
28205caefcfSchristos
28305caefcfSchristos	PR ld/12161
28405caefcfSchristos	* elf32-avr.c (elf32_avr_check_relocs): Delete.
28505caefcfSchristos	(elf_backend_check_relocs): Delete.
28605caefcfSchristos
28705caefcfSchristos2010-11-16  Jie Zhang  <jie.zhang@analog.com>
28805caefcfSchristos
28905caefcfSchristos	* elf32-bfin.c (elf32_bfin_code_in_l1): New variable.
29005caefcfSchristos	(elf32_bfin_data_in_l1): New variable.
29105caefcfSchristos	(elf32_bfin_final_write_processing): New.
29205caefcfSchristos	(elf_backend_final_write_processing): Define.
29305caefcfSchristos
29405caefcfSchristos2010-11-15  Mike Frysinger  <vapier@gentoo.org>
29505caefcfSchristos
29605caefcfSchristos	PR binutils/12177
29705caefcfSchristos	* elf32-bfin.c (_bfin_create_got_section): Drop unused flags code.
29805caefcfSchristos
29905caefcfSchristos2010-11-12  H.J. Lu  <hongjiu.lu@intel.com>
30005caefcfSchristos
30105caefcfSchristos	* archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS and
30205caefcfSchristos	BFD_DECOMPRESS.
30305caefcfSchristos	(bfd_openr_next_archived_file): Revert the last change.
30405caefcfSchristos
30505caefcfSchristos2010-11-11  Mingming Sun  <mingm.sun@gmail.com>
30605caefcfSchristos
30705caefcfSchristos	* archures.c (bfd_mach_mips_loongson_3a): Defined.
30805caefcfSchristos	* bfd-in2.h (bfd_mach_mips_loongson_3a): Defined.
30905caefcfSchristos	* cpu-mips.c (I_loongson_3a): New add.
31005caefcfSchristos	(arch_info_struct): Add loongson_3a.
31105caefcfSchristos	* elfxx-mips.c (_bfd_elf_mips_mach): Add loongson_3a.
31205caefcfSchristos	(mips_set_isa_flags): Add loongson_3a.
31305caefcfSchristos	(mips_mach_extensions): Add loongson_3a in MIPS64 extensions.
31405caefcfSchristos
31505caefcfSchristos2010-11-10  Richard Sandiford  <richard.sandiford@linaro.org>
31605caefcfSchristos
31705caefcfSchristos	* elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove unused
31805caefcfSchristos	variables.
31905caefcfSchristos
32005caefcfSchristos2010-11-10  Nick Clifton  <nickc@redhat.com>
32105caefcfSchristos
32205caefcfSchristos	* po/ja.po: Updated Japanese translation.
32305caefcfSchristos	* po/ru.po: Updated Russian translation.
32405caefcfSchristos
32505caefcfSchristos2010-11-08  Nick Clifton  <nickc@redhat.com>
32605caefcfSchristos
32705caefcfSchristos	* po/ja.po: Updated Japanese translation.
32805caefcfSchristos
32905caefcfSchristos2010-11-08  Alan Modra  <amodra@gmail.com>
33005caefcfSchristos
33105caefcfSchristos	* hash.c (bfd_hash_hash): Extract from..
33205caefcfSchristos	(bfd_hash_lookup): ..here.
33305caefcfSchristos	(bfd_hash_rename): New function.
33405caefcfSchristos	* section.c (bfd_rename_section): New function.
33505caefcfSchristos	* bfd-in.h (bfd_hash_rename): Declare.
33605caefcfSchristos	* bfd-in2.h: Regenerate.
33705caefcfSchristos	* elf.c (_bfd_elf_make_section_from_shdr): Rename input sections
33805caefcfSchristos	when compressing or decompressing.  Don't assert name match.
33905caefcfSchristos	* elf64-hppa.c (get_reloc_section): Don't assert name match.
34005caefcfSchristos	* elfxx-ia64.c (get_reloc_section): Likewise.
34105caefcfSchristos
34205caefcfSchristos2010-11-05  Joseph Myers  <joseph@codesourcery.com>
34305caefcfSchristos
34405caefcfSchristos	* elf32-tic6x.c (elf32_tic6x_obj_attrs_handle_unknown): New.
34505caefcfSchristos	(elf32_tic6x_merge_attributes): Use
34605caefcfSchristos	_bfd_elf_merge_unknown_attribute_low and
34705caefcfSchristos	_bfd_elf_merge_unknown_attribute_list.
34805caefcfSchristos	(elf_backend_obj_attrs_handle_unknown): Define.
34905caefcfSchristos
35005caefcfSchristos2010-11-05  Joseph Myers  <joseph@codesourcery.com>
35105caefcfSchristos
35205caefcfSchristos	* elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
35305caefcfSchristos	_bfd_elf_merge_unknown_attribute_list): Correct test for matching
35405caefcfSchristos	string attributes.
35505caefcfSchristos
35605caefcfSchristos2010-11-05  Tristan Gingold  <gingold@adacore.com>
35705caefcfSchristos
35805caefcfSchristos	* po/bfd.pot: Regenerate
35905caefcfSchristos
36005caefcfSchristos2010-11-05  Tristan Gingold  <gingold@adacore.com>
36105caefcfSchristos
36205caefcfSchristos	* configure.in: Bump version to 2.21.51
36305caefcfSchristos	* configure: Regenerate.
36405caefcfSchristos
36505caefcfSchristos2010-11-04  Maciej W. Rozycki  <macro@codesourcery.com>
36605caefcfSchristos
36705caefcfSchristos	PR ld/10144
36805caefcfSchristos	* elfxx-mips.c (_bfd_mips_elf_check_relocs)
36905caefcfSchristos	[R_MIPS_32, R_MIPS_REL32, R_MIPS_64]: Ignore relocs from
37005caefcfSchristos	SEC_DEBUGGING sections.
37105caefcfSchristos
37205caefcfSchristos2010-11-04  Tristan Gingold  <gingold@adacore.com>
37305caefcfSchristos
37405caefcfSchristos	* vms-lib.c (vms_write_index): Fix thinko: reverse the loop.
37505caefcfSchristos	Use bfd_zmalloc instead of bfd_malloc.  Fix comment.
37605caefcfSchristos
37705caefcfSchristos2010-11-04  Kai Tietz  <kai.tietz@onevision.com>
37805caefcfSchristos
37905caefcfSchristos	* coffcode.h (GNU_LINKONCE_WT): New.
38005caefcfSchristos	(sec_to_styp_flags): Add handling of new debug
38105caefcfSchristos	section.
38205caefcfSchristos	(styp_to_sec_flags): Likewise.
38305caefcfSchristos
38405caefcfSchristos2010-11-04  Tristan Gingold  <gingold@adacore.com>
38505caefcfSchristos
38605caefcfSchristos	* makefile.vms (CFLAGS): Make badalias warnings informational.
38705caefcfSchristos	* vms-lib.c (vms_lib_bread): Avoid arithmetic on void pointer.
38805caefcfSchristos
38905caefcfSchristos2010-11-04  Joseph Myers  <joseph@codesourcery.com>
39005caefcfSchristos
39105caefcfSchristos	* elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
39205caefcfSchristos	_bfd_elf_merge_unknown_attribute_list): New.
39305caefcfSchristos	* elf-bfd.h (struct elf_backend_data): Add
39405caefcfSchristos	obj_attrs_handle_unknown.
39505caefcfSchristos	(_bfd_elf_merge_unknown_attribute_low,
39605caefcfSchristos	_bfd_elf_merge_unknown_attribute_list): Declare.
39705caefcfSchristos	* elf32-arm.c (elf32_arm_obj_attrs_handle_unknown): New.  Split
39805caefcfSchristos	out from elf32_arm_merge_eabi_attributes.
39905caefcfSchristos	(elf32_arm_merge_eabi_attributes): Use
40005caefcfSchristos	_bfd_elf_merge_unknown_attribute_low and
40105caefcfSchristos	_bfd_elf_merge_unknown_attribute_list.
40205caefcfSchristos	(elf_backend_obj_attrs_handle_unknown): Define.
40305caefcfSchristos	* elfxx-target.h (elf_backend_obj_attrs_handle_unknown): Define.
40405caefcfSchristos	(elfNN_bed): Update initializer.
40505caefcfSchristos
40605caefcfSchristos2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
40705caefcfSchristos
40805caefcfSchristos	* bfd.c (BFD_FLAGS_FOR_BFD_USE_MASK): New.
40905caefcfSchristos	* bfd-in2.h: Regenerated.
41005caefcfSchristos
41105caefcfSchristos2010-11-02  Joseph Myers  <joseph@codesourcery.com>
41205caefcfSchristos
41305caefcfSchristos	* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Except for
41405caefcfSchristos	Tag_ABI_compatibility, treat odd tags as strings and even ones as
41505caefcfSchristos	integers.
41605caefcfSchristos	(elf32_tic6x_obj_attrs_order, elf32_tic6x_tag_to_array_alignment,
41705caefcfSchristos	elf32_tic6x_array_alignment_to_tag): New.
41805caefcfSchristos	(elf32_tic6x_merge_attributes): Handle more attributes.  Set type
41905caefcfSchristos	for merged attributes.
42005caefcfSchristos	(elf_backend_obj_attrs_order): Define.
42105caefcfSchristos
42205caefcfSchristos2010-10-29  Maciej W. Rozycki  <macro@codesourcery.com>
42305caefcfSchristos
42405caefcfSchristos	* elfxx-mips.c (mips_elf_calculate_relocation): Fix a typo.
42505caefcfSchristos
42605caefcfSchristos2010-10-29  Pawel Sikora  <pluto@pld-linux.org>
42705caefcfSchristos
42805caefcfSchristos	PR binutils/12075
42905caefcfSchristos	* compress.c (bfd_compress_section_contents): Use uLong on
43005caefcfSchristos	compressed_size.
43105caefcfSchristos
43205caefcfSchristos2010-10-29  Joseph Myers  <joseph@codesourcery.com>
43305caefcfSchristos
43405caefcfSchristos	* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check
43505caefcfSchristos	Tag_ABI_compatibility not Tag_compatibility.
43605caefcfSchristos	(elf32_tic6x_merge_attributes): Update compatibility attribute
43705caefcfSchristos	name in comment.  Return FALSE if merging common attributes fails.
43805caefcfSchristos
43905caefcfSchristos2010-10-29  Nick Clifton  <nickc@redhat.com>
44005caefcfSchristos
44105caefcfSchristos	PR bintils/6962
44205caefcfSchristos	* coffcode.h (handle_COMDAT): Only check the base type when
44305caefcfSchristos	looking for a section symbol.
44405caefcfSchristos
44505caefcfSchristos2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
44605caefcfSchristos	    Cary Coutant  <ccoutant@google.com>
44705caefcfSchristos
44805caefcfSchristos	* archive.c (bfd_openr_next_archived_file): Copy BFD_COMPRESS
44905caefcfSchristos	and BFD_DECOMPRESS.
45005caefcfSchristos
45105caefcfSchristos	* bfd.c (BFD_COMPRESS): New.
45205caefcfSchristos	(BFD_DECOMPRESS): Likewise.
45305caefcfSchristos	(BFD_FLAGS_SAVED): Likewise.
45405caefcfSchristos	(bfd_preserve_save): Replace BFD_IN_MEMORY with BFD_FLAGS_SAVED.
45505caefcfSchristos
45605caefcfSchristos	* compress.c (bfd_uncompress_section_contents): Removed.
45705caefcfSchristos	(get_uncompressed_size): New.
45805caefcfSchristos	(decompress_contents): Likewise.
45905caefcfSchristos	(bfd_compress_section_contents): Likewise.
46005caefcfSchristos	(bfd_get_full_section_contents): Likewise.
46105caefcfSchristos	(bfd_is_section_compressed): Likewise.
46205caefcfSchristos	(bfd_init_section_decompress_status): Likewise.
46305caefcfSchristos	(bfd_init_section_compress_status): Likewise.
46405caefcfSchristos
46505caefcfSchristos	* dwarf2.c (dwarf_debug_sections): New.
46605caefcfSchristos	(dwarf_debug_section_enum): Likewise.
46705caefcfSchristos	(read_section): Remove section_name and compressed_section_name.
46805caefcfSchristos	Add dwarf_debug_section_enum.  Try compressed debug section.
46905caefcfSchristos	(read_indirect_string): Updated.
47005caefcfSchristos	(read_abbrevs): Likewise.
47105caefcfSchristos	(decode_line_info): Likewise.
47205caefcfSchristos	(read_debug_ranges): Likewise.
47305caefcfSchristos	(find_line): Updated.
47405caefcfSchristos
47505caefcfSchristos	* ecoff.c (bfd_debug_section): Add compress_status and
47605caefcfSchristos	compressed_size.
47705caefcfSchristos
47805caefcfSchristos	* elf.c (_bfd_elf_make_section_from_shdr): Call
47905caefcfSchristos	bfd_is_section_compressed to check if a DWARF debug section is
48005caefcfSchristos	compressed.  Call bfd_init_section_compress_status or
48105caefcfSchristos	bfd_init_section_decompress_status if needed.
48205caefcfSchristos
48305caefcfSchristos	* elflink.c (elf_link_input_bfd): Replace bfd_get_section_contents
48405caefcfSchristos	with bfd_get_full_section_contents.
48505caefcfSchristos	* merge.c (_bfd_add_merge_section): Likewise.
48605caefcfSchristos	* reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
48705caefcfSchristos	* simple.c (bfd_simple_get_relocated_section_contents): Likewise.
48805caefcfSchristos
48905caefcfSchristos	* elfxx-target.h (TARGET_BIG_SYM): Allow BFD_COMPRESS and
49005caefcfSchristos	BFD_DECOMPRESS.
49105caefcfSchristos	(TARGET_LITTLE_SYM): Likewise.
49205caefcfSchristos
49305caefcfSchristos	* libbfd-in.h (dwarf_debug_section): New.
49405caefcfSchristos	(dwarf_debug_sections): Likewise.
49505caefcfSchristos
49605caefcfSchristos	* libbfd.c (_bfd_generic_get_section_contents): Issue an error
49705caefcfSchristos	when getting contents on compressed/decompressed section.
49805caefcfSchristos
49905caefcfSchristos	* section.c (COMPRESS_SECTION_NONE): New.
50005caefcfSchristos	(COMPRESS_SECTION_DONE): Likewise.
50105caefcfSchristos	(DECOMPRESS_SECTION_SIZED): Likewise.
50205caefcfSchristos	(BFD_FAKE_SECTION): Add compress_status and compressed_size.
50305caefcfSchristos	(bfd_malloc_and_get_section): Replace bfd_get_section_contents
50405caefcfSchristos	with bfd_get_full_section_contents.
50505caefcfSchristos
50605caefcfSchristos	* bfd-in2.h: Regenerated.
50705caefcfSchristos	* libbfd.h: Likewise.
50805caefcfSchristos
50905caefcfSchristos2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
51005caefcfSchristos	    Joseph Myers  <joseph@codesourcery.com>
51105caefcfSchristos
51205caefcfSchristos	* elf32-tic6x.c (elf32_tic6x_merge_attributes): Check for mismatch
51305caefcfSchristos	of DSBT attributes.
51405caefcfSchristos
51505caefcfSchristos2010-10-25  Daniel Jacobowitz  <dan@codesourcery.com>
51605caefcfSchristos
51705caefcfSchristos	* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Always call
51805caefcfSchristos	_bfd_clear_contents.  Pass it the input section.
51905caefcfSchristos	* libbfd-in.h (_bfd_clear_contents): Add input_section argument.
52005caefcfSchristos	* libbfd.h: Regenerate.
52105caefcfSchristos	* reloc.c (_bfd_clear_contents): Take input_section argument.
52205caefcfSchristos	Use non-zero for .debug_ranges.
52305caefcfSchristos	(bfd_generic_get_relocated_section_conten): Update _bfd_clear_contents
52405caefcfSchristos	call.
52505caefcfSchristos
52605caefcfSchristos	* elf32-arm.c (elf32_arm_relocate_section): Use
52705caefcfSchristos	RELOC_AGAINST_DISCARDED_SECTION.
52805caefcfSchristos	* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
52905caefcfSchristos	* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
53005caefcfSchristos	* elf32-arm.c (elf32_arm_relocate_section): Likewise.
53105caefcfSchristos	* elf32-avr.c (elf32_avr_relocate_section): Likewise.
53205caefcfSchristos	* elf32-bfin.c (bfin_relocate_section): Likewise.
53305caefcfSchristos	(bfinfdpic_relocate_section): Likewise.
53405caefcfSchristos	* elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
53505caefcfSchristos	* elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
53605caefcfSchristos	* elf32-cris.c (cris_elf_relocate_section): Likewise.
53705caefcfSchristos	* elf32-crx.c (elf32_crx_relocate_section): Likewise.
53805caefcfSchristos	* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
53905caefcfSchristos	* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
54005caefcfSchristos	* elf32-frv.c (elf32_frv_relocate_section): Likewise.
54105caefcfSchristos	* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
54205caefcfSchristos	* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
54305caefcfSchristos	* elf32-i370.c (i370_elf_relocate_section): Likewise.
54405caefcfSchristos	* elf32-i860.c (elf32_i860_relocate_section): Likewise.
54505caefcfSchristos	* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
54605caefcfSchristos	* elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
54705caefcfSchristos	* elf32-lm32.c (lm32_elf_relocate_section): Likewise.
54805caefcfSchristos	* elf32-m32c.c (m32c_elf_relocate_section): Likewise.
54905caefcfSchristos	* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
55005caefcfSchristos	* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
55105caefcfSchristos	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
55205caefcfSchristos	* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
55305caefcfSchristos	* elf32-mep.c (mep_elf_relocate_section): Likewise.
55405caefcfSchristos	* elf32-moxie.c (moxie_elf_relocate_section): Likewise.
55505caefcfSchristos	* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
55605caefcfSchristos	* elf32-mt.c (mt_elf_relocate_section): Likewise.
55705caefcfSchristos	* elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
55805caefcfSchristos	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
55905caefcfSchristos	* elf32-rx.c (rx_elf_relocate_section): Likewise.
56005caefcfSchristos	* elf32-s390.c (elf_s390_relocate_section): Likewise.
56105caefcfSchristos	* elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
56205caefcfSchristos	* elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
56305caefcfSchristos	* elf32-sh.c (sh_elf_relocate_section): Likewise.
56405caefcfSchristos	* elf32-spu.c (spu_elf_relocate_section): Likewise.
56505caefcfSchristos	* elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
56605caefcfSchristos	* elf32-v850.c (v850_elf_relocate_section): Likewise.
56705caefcfSchristos	* elf32-vax.c (elf_vax_relocate_section): Likewise.
56805caefcfSchristos	* elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
56905caefcfSchristos	* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
57005caefcfSchristos	* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
57105caefcfSchristos	* elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
57205caefcfSchristos	(elf64_alpha_relocate_section): Likewise.
57305caefcfSchristos	* elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
57405caefcfSchristos	* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
57505caefcfSchristos	* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
57605caefcfSchristos	* elf64-s390.c (elf_s390_relocate_section): Likewise.
57705caefcfSchristos	* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
57805caefcfSchristos	* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
57905caefcfSchristos	* elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
58005caefcfSchristos	* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
58105caefcfSchristos
58205caefcfSchristos2010-10-25  Nathan Sidwell  <nathan@codesourcery.com>
58305caefcfSchristos
58405caefcfSchristos	* elf32-tic6x.c: Add attribution.
58505caefcfSchristos
58605caefcfSchristos2010-10-25  Alan Modra  <amodra@gmail.com>
58705caefcfSchristos
58805caefcfSchristos	* elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
58905caefcfSchristos	var warning at -O3.
59005caefcfSchristos
59105caefcfSchristos2010-10-25  Alan Modra  <amodra@gmail.com>
59205caefcfSchristos
59305caefcfSchristos	* opncls.c (bfd_alloc, bfd_zalloc): Don't mark internal.
59405caefcfSchristos	* libbfd-in.h (bfd_alloc, bfd_zalloc): Don't declare here.
59505caefcfSchristos	* libbfd.h: Regenerate
59605caefcfSchristos	* bfd-in2.h: Regenerate.
59705caefcfSchristos
59805caefcfSchristos2010-10-25  Alan Modra  <amodra@gmail.com>
59905caefcfSchristos
60005caefcfSchristos	* opncls.c (_bfd_id_counter): Rename to bfd_id_counter.
60105caefcfSchristos	(bfd_reserved_id_counter, bfd_use_reserved_id): New vars.
60205caefcfSchristos	(_bfd_new_bfd): Use negative id when bfd_use_reserved_id.
60305caefcfSchristos	(bfd_create): Doc fix.
60405caefcfSchristos	* bfd-in2.h: Regenerate.
60505caefcfSchristos
60605caefcfSchristos2010-10-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
60705caefcfSchristos
60805caefcfSchristos	* elfxx-sparc.c (tpoff): Define bed, static_tls_size.
60905caefcfSchristos	Consider static_tls_alignment.
61005caefcfSchristos
61105caefcfSchristos	* elf32-sparc.c (TARGET_BIG_SYM): Redefine to
61205caefcfSchristos	bfd_elf32_sparc_sol2_vec.
61305caefcfSchristos	(TARGET_BIG_NAME): Redefine to elf32-sparc-sol2.
61405caefcfSchristos	(elf32_bed): Redefine to elf32_sparc_sol2_bed.
61505caefcfSchristos	(elf_backend_static_tls_alignment): Redefine to 8.
61605caefcfSchristos	Include elf32-target.h.
61705caefcfSchristos	(elf_backend_static_tls_alignment): Undef again for VxWorks.
61805caefcfSchristos
61905caefcfSchristos	* elf64-sparc.c (TARGET_BIG_SYM): Redefine to
62005caefcfSchristos	bfd_elf64_sparc_sol2_vec.
62105caefcfSchristos	(TARGET_BIG_NAME): Redefine to elf64-sparc-sol2.
62205caefcfSchristos	(ELF_OSABI): Undef.
62305caefcfSchristos	(elf64_bed): Redefine to elf64_sparc_sol2_bed.
62405caefcfSchristos	(elf_backend_static_tls_alignment): Redefine to 16.
62505caefcfSchristos	Include elf64-target.h.
62605caefcfSchristos
62705caefcfSchristos	* config.bfd (sparc-*-solaris2.[0-6]): Split from sparc-*-elf*.
62805caefcfSchristos	Set targ_defvec to bfd_elf32_sparc_sol2_vec.
62905caefcfSchristos	[BFD64] (sparc-*-solaris2*): Set targ_defvec to
63005caefcfSchristos	bfd_elf32_sparc_sol2_vec.
63105caefcfSchristos	Replace bfd_elf64_sparc_vec by bfd_elf64_sparc_sol2_vec in
63205caefcfSchristos	targ_selvecs.
63305caefcfSchristos
63405caefcfSchristos	* configure.in: Handle bfd_elf32_sparc_sol2_vec,
63505caefcfSchristos	bfd_elf64_sparc_sol2_vec.
63605caefcfSchristos	* configure: Regenerate.
63705caefcfSchristos
63805caefcfSchristos	* targets.c (bfd_elf32_sparc_sol2_vec): Declare.
63905caefcfSchristos	(bfd_elf64_sparc_sol2_vec): Declare.
64005caefcfSchristos	(_bfd_target_vector): Add bfd_elf32_sparc_sol2_vec,
64105caefcfSchristos	bfd_elf64_sparc_sol2_vec.
64205caefcfSchristos
64305caefcfSchristos2010-10-21  Joseph Myers  <joseph@codesourcery.com>
64405caefcfSchristos
64505caefcfSchristos	* elf32-tic6x.c (elf32_tic6x_merge_arch_attributes): Update for
64605caefcfSchristos	attribute renaming.
64705caefcfSchristos	(elf_backend_obj_attrs_section): Change to ".c6xabi.attributes".
64805caefcfSchristos
64905caefcfSchristos2010-10-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
65005caefcfSchristos
65105caefcfSchristos	* elf-bfd.h (struct elf_backend_data): New member
65205caefcfSchristos	static_tls_alignment.
65305caefcfSchristos	* elfxx-target.h (elf_backend_static_tls_alignment): Provide
65405caefcfSchristos	default.
65505caefcfSchristos	(elfNN_bed): Initialize static_tls_alignment.
65605caefcfSchristos	* elflink.c (bfd_elf_final_link): Don't round end of TLS section
65705caefcfSchristos	if static TLS has special alignment requirements.
65805caefcfSchristos	* elf32-i386.c (elf_i386_tpoff): Define bed, static_tls_size.
65905caefcfSchristos	Consider static_tls_alignment.
66005caefcfSchristos	(elf_backend_static_tls_alignment): Redefine for Solaris 2.
66105caefcfSchristos	Undef again for VxWorks.
66205caefcfSchristos	* elf64-x86-64.c (elf64_x86_64_tpoff):  Define bed,
66305caefcfSchristos	static_tls_size.
66405caefcfSchristos	Consider static_tls_alignment.
66505caefcfSchristos	(elf_backend_static_tls_alignment): Redefine for Solaris 2.
66605caefcfSchristos	Undef again for Intel L1OM.
66705caefcfSchristos
66805caefcfSchristos2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
66905caefcfSchristos
67005caefcfSchristos	Apply LD plugin patch series (part 6/6).
67105caefcfSchristos	* aoutx.h (aout_link_check_ar_symbols): Take new "subsbfd" reference
67205caefcfSchristos	parameter and pass it when invoking add_archive_element callback.
67305caefcfSchristos	(aout_link_check_archive_element): Handle substitute bfd if it
67405caefcfSchristos	was set during add_archive_element callback in the above.
67505caefcfSchristos	* cofflink.c (coff_link_check_ar_symbols): Take new "subsbfd" reference
67605caefcfSchristos	parameter and pass it when invoking add_archive_element callback.
67705caefcfSchristos	(coff_link_check_archive_element): Handle substitute bfd if it
67805caefcfSchristos	was set during add_archive_element callback in the above.
67905caefcfSchristos	* ecoff.c (read_ext_syms_and_strs): New function holds symbol-reading
68005caefcfSchristos	code factored-out from ecoff_link_check_archive_element.
68105caefcfSchristos	(reread_ext_syms_and_strs): Clear old symbols and call it.
68205caefcfSchristos	(ecoff_link_check_archive_element):  Use the above.  Handle substitute
68305caefcfSchristos	BFD if one is set by add_archive_element callback.
68405caefcfSchristos	(ecoff_link_add_archive_symbols): Likewise allow bfd substitution.
68505caefcfSchristos	* elflink.c (elf_link_add_archive_symbols): Likewise.
68605caefcfSchristos	* linker.c (generic_link_check_archive_element): Likewise.
68705caefcfSchristos	* pdp11.c (aout_link_check_ar_symbols): Take new "subsbfd" reference
68805caefcfSchristos	parameter and pass it when invoking add_archive_element callback.
68905caefcfSchristos	(aout_link_check_archive_element): Handle substitute bfd if it was
69005caefcfSchristos	set during add_archive_element callback in the above.
69105caefcfSchristos	* vms-alpha.c (alpha_vms_link_add_archive_symbols): Handle substitute
69205caefcfSchristos	BFD if one is set by add_archive_element callback.
69305caefcfSchristos	* xcofflink.c (xcoff_link_check_dynamic_ar_symbols): Take new "subsbfd"
69405caefcfSchristos	reference parameter and pass it when invoking add_archive_element
69505caefcfSchristos	callback.
69605caefcfSchristos	(xcoff_link_check_ar_symbols): Likewise.
69705caefcfSchristos	(xcoff_link_check_archive_element): Handle bfd substitution if it was
69805caefcfSchristos	set by callback in the above.
69905caefcfSchristos
70005caefcfSchristos2010-10-11  Alan Modra  <amodra@gmail.com>
70105caefcfSchristos
70205caefcfSchristos	* elf32-frv.c (elf32_frv_relocate_section): Set "name" for global syms.
70305caefcfSchristos	(elf32_frvfdpic_finish_dynamic_sections): Don't crash on
70405caefcfSchristos	__ROFIXUP_END__ defined in shared lib.
70505caefcfSchristos
70605caefcfSchristos2010-10-11  Thomas Schwinge  <thomas@codesourcery.com>
70705caefcfSchristos
70805caefcfSchristos	* elf32-arm.c (elf32_arm_final_link_relocate)
70905caefcfSchristos	(elf32_arm_relocate_section): Handle relocations against STN_UNDEF.
71005caefcfSchristos
71105caefcfSchristos2010-10-11  Dave Korn  <dave.korn.cygwin@gmail.com>
71205caefcfSchristos
71305caefcfSchristos	* elflink.c (_bfd_elf_link_output_relocs): Delete unused variable
71405caefcfSchristos	"output_rel_hdr".
71505caefcfSchristos
71605caefcfSchristos2010-10-09  John Tytgat  <john@bass-software.com>
71705caefcfSchristos
71805caefcfSchristos	* reloc.c (BFD_RELOC_ARM_HVC): Add.
71905caefcfSchristos	* libbfd.h: Regenerate.
72005caefcfSchristos
72105caefcfSchristos2010-10-08  Kai Tietz  <kai.tietz@onevision.com>
72205caefcfSchristos
72305caefcfSchristos	* pei-x86_64.c (find_next_xdata_or_end): Removed.
72405caefcfSchristos	(pex64_dump_xdata): Remove arguments stop, onaline,
72505caefcfSchristos	and pdata. New argument endx.  Print term "none"
72605caefcfSchristos	instead of misleading "CFA".
72705caefcfSchristos	(sort_xdata_arr): New function.
72805caefcfSchristos	(pex64_bfd_print_pdata): Use binary search/sort for unwind-RVAs
72905caefcfSchristos	instead of searching quadratic.
73005caefcfSchristos
73105caefcfSchristos2010-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
73205caefcfSchristos	    Alan Modra  <amodra@gmail.com>
73305caefcfSchristos
73405caefcfSchristos	Fix build with -DDEBUG=7
73505caefcfSchristos	* elf.c (_bfd_elf_symbol_from_bfd_symbol): Remove call
73605caefcfSchristos	to deleted function elf_symbol_flags.  Add typecast to avoid warning.
73705caefcfSchristos	* elf32-rx.c (dump_symbol) : Rename to..
73805caefcfSchristos	(rx_dump_symbol): ..this to avoid link errors.
73905caefcfSchristos	* elflink.c (elf_link_input_bfd): Add typecast to avoid warnings.
74005caefcfSchristos	(bfd_elf_perform_complex_relocation): Likewise.
74105caefcfSchristos	* elf32-xtensa.c (print_action_list): Likewise.
74205caefcfSchristos
74305caefcfSchristos2010-10-06  Nathan Sidwell  <nathan@codesourcery.com>
74405caefcfSchristos
74505caefcfSchristos	* elf32-arm.c (elf32_arm_stub_long_branch_any_arm_pic,
74605caefcfSchristos	elf32_arm_stub_long_branch_any_arm_pic): Use a consistent name for
74705caefcfSchristos	ip/r12.
74805caefcfSchristos	(arm_type_of_stub): Remove superfluous braces.
74905caefcfSchristos
75005caefcfSchristos2010-10-04  Bernd Schmidt  <bernds@codesourcery.com>
75105caefcfSchristos
75205caefcfSchristos	* elf-bfd.h (struct bfd_elf_section_reloc_data): New structure.
75305caefcfSchristos	(struct bfd_elf_section_data): New members REL and RELA; delete
75405caefcfSchristos	members REL_HDR, REL_HDR2, REL_COUNT, REL_COUNT2, REL_IDX,
75505caefcfSchristos	REL_IDX2, REL_HASHES.
75605caefcfSchristos	(_bfd_elf_init_reloc_shdr): Adjust declaration.
75705caefcfSchristos	(_bfd_elf_single_rel_hdr): Declare.
75805caefcfSchristos	(RELOC_AGAINST_DISCARDED_SECTION): Use it.
75905caefcfSchristos	* elf.c (bfd_section_from_shdr): Adjusted to match changes in
76005caefcfSchristos	data structures.
76105caefcfSchristos	(_bfd_elf_init_reloc_shdr): New arg RELDATA.  Remove arg REL_HDR.
76205caefcfSchristos	All callers changed.  Allocate memory for the Elf_Internal_Shdr
76305caefcfSchristos	structure.
76405caefcfSchristos	(_bfd_elf_single_rel_hdr): New function.
76505caefcfSchristos	(struct fake_section_arg): New structure.
76605caefcfSchristos	(elf_fake_section): Expect to see a pointer to it in the third
76705caefcfSchristos	argument.  If doing a relocatable link, allocate both REL and RELA
76805caefcfSchristos	sections as needed.
76905caefcfSchristos	(assign_section_numbers): Adjusted to match changes in
77005caefcfSchristos	data structures.
77105caefcfSchristos	(_bfd_elf_compute_section_file_positions): Call elf_fake_sections
77205caefcfSchristos	with a struct fake_section_args argument.
77305caefcfSchristos	* elfcode.h (elf_write_relocs): Adjusted to match changes in
77405caefcfSchristos	data structures.
77505caefcfSchristos	(elf_slurp_reloc_table): Likewise.
77605caefcfSchristos	* elflink.c (_bfd_elf_link_read_relocs): Likewise.
77705caefcfSchristos	(_bfd_elf_link_size_reloc_section): Remove arg REL_HDR, replace with
77805caefcfSchristos	RELDATA.  Remove argument O.  All callers changed.  Remove code to
77905caefcfSchristos	discover the right rel_hdr and count.
78005caefcfSchristos	(_bfd_elf_link_output_relocs): Adjusted to match changes in
78105caefcfSchristos	data structures.
78205caefcfSchristos	(elf_link_adjust_relocs): Remove args REL_HDR, COUNT and REL_HASH;
78305caefcfSchristos	replace with RELDATA.  All callers changed.
78405caefcfSchristos	(elf_link_input_bfd): Correctly generate rel_hash data when both
78505caefcfSchristos	REL and RELA sections are present.
78605caefcfSchristos	(elf_reloc_link_order): Adjusted to match changes in
78705caefcfSchristos	data structures.
78805caefcfSchristos	(bfd_elf_final_link): Simplify code to count relocs.  Free the
78905caefcfSchristos	hashes array for both REL and RELA.
79005caefcfSchristos	(get_dynamic_reloc_section_name): Use _bfd_elf_single_reloc_hdr
79105caefcfSchristos	* elf32-m32r.c (m32r_elf_fake_sections, elf_backend_fake_sections):
79205caefcfSchristos	Delete.
79305caefcfSchristos	* elf32-tic6x.c (elf32_tic6x_fake_sections, elf_backend_fake_sections):
79405caefcfSchristos	Delete.
79505caefcfSchristos	(elf32_tic6x_rel_relocation_p): Adjusted to match changes in
79605caefcfSchristos	data structures.
79705caefcfSchristos	* elf32-microblaze.c (microblaze_elf_check_relocs): Use
79805caefcfSchristos	_bfd_elf_single_rel_hdr.
79905caefcfSchristos	* elf32-ppc.c (ppc_elf_relax_section): Likewise.
80005caefcfSchristos	* elf32-spu.c (spu_elf_relocate_section): Likewise.
80105caefcfSchristos	* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
80205caefcfSchristos	* elf64-hppa.c (get_reloc_section): Likewise.
80305caefcfSchristos	* elf64-mips.c (mips_elf64_slurp_reloc_table): Adjusted to match
80405caefcfSchristos	changes in data structures.
80505caefcfSchristos	(mips_elf64_write_relocs): Use _bfd_elf_single_rel_hdr.
80605caefcfSchristos	* elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
80705caefcfSchristos	(ppc64_elf_edit_toc): Likewise.
80805caefcfSchristos	(get_relocs): Adjusted to match changes in data structures.
80905caefcfSchristos	Allocate an Elf_Internal_Shdr structure if necessary.
81005caefcfSchristos	(ppc64_elf_finish_dynamic_sections): Use _bfd_elf_single_rel_hdr.
81105caefcfSchristos	* elf64-sparc.c (elf64_sparc_slurp_reloc_table): Adjusted to match
81205caefcfSchristos	changes in data structures.
81305caefcfSchristos	* elfxx-ia64.c (get_reloc_section): Use _bfd_elf_single_rel_hdr.
81405caefcfSchristos	* elfxx-mips.c (MIPS_RELOC_RELA_P): Remove macro.
81505caefcfSchristos	(mips_elf_rel_relocation_p): Adjusted to match changes in data
81605caefcfSchristos	structures.
81705caefcfSchristos	(_bfd_mips_elf_relocate_section): Use mips_elf_rel_relocation_p rather
81805caefcfSchristos	than MIPS_RELOC_RELOCA_P.
81905caefcfSchristos	* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use
82005caefcfSchristos	_bfd_elf_single_rel_hdr.
82105caefcfSchristos	(_bfd_sparc_elf_relocate_section): Likewise.
82205caefcfSchristos
82305caefcfSchristos2010-10-01  Thomas Schwinge  <thomas@codesourcery.com>
82405caefcfSchristos
82505caefcfSchristos	* elf32-arm.c (elf32_arm_size_stubs): Don't choke on local symbols in
82605caefcfSchristos	SHN_UNDEF, SHN_ABS, SHN_COMMON.
82705caefcfSchristos
82805caefcfSchristos2010-09-30  H.J. Lu  <hongjiu.lu@intel.com>
82905caefcfSchristos
83005caefcfSchristos	PR ld/11812
83105caefcfSchristos	* elf32-i386.c (elf_i386_size_dynamic_sections): Don't
83205caefcfSchristos	 allocate .got.plt section if there are no GOT nor PLT
83305caefcfSchristos	 entries and there is no refeence to _GLOBAL_OFFSET_TABLE_.
83405caefcfSchristos	 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Li.kewise.
83505caefcfSchristos
83605caefcfSchristos	* elflink.c (_bfd_elf_define_linkage_sym): Clear non_elf.
83705caefcfSchristos
83805caefcfSchristos2010-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83905caefcfSchristos
84005caefcfSchristos	* configure: Regenerate.
84105caefcfSchristos
84205caefcfSchristos2010-09-24  Thomas Schwinge  <thomas@codesourcery.com>
84305caefcfSchristos
84405caefcfSchristos	* elf32-arm.c, elf32-cris.c, elf32-hppa.c, elf32-i370.c, elf32-m32r.c,
84505caefcfSchristos	elf32-m68k.c, elf32-microblaze.c, elf32-ppc.c, elf32-score.c,
84605caefcfSchristos	elf32-score7.c, elf32-sh.c, elf32-vax.c, elf32-xtensa.c, elf64-alpha.c,
84705caefcfSchristos	elf64-hppa.c, elf64-mips.c, elf64-ppc.c, elf64-sparc.c, elfcode.h,
84805caefcfSchristos	elflink.c, elfxx-ia64.c, elfxx-mips.c: Use STN_UNDEF when referring to
84905caefcfSchristos	the zero symbol index.
85005caefcfSchristos
85105caefcfSchristos	* elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index
85205caefcfSchristos	to STN_UNDEF, not SHN_UNDEF.
85305caefcfSchristos
85405caefcfSchristos2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
85505caefcfSchristos
85605caefcfSchristos	* elf32-tic6x.c (elf32_tic6x_fake_sections): New function.
85705caefcfSchristos	(elf_backend_fake_sections): Define.
85805caefcfSchristos
85905caefcfSchristos2010-09-23  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
86005caefcfSchristos
86105caefcfSchristos	* bfd-in2.h (BFD_RELOC_ARM_HVC): New enum value.
86205caefcfSchristos
86305caefcfSchristos2010-09-23  Alan Modra  <amodra@gmail.com>
86405caefcfSchristos
86505caefcfSchristos	* cpu-d10v.c: Make bits_per_address 18 for all arch_info entries.
86605caefcfSchristos
86705caefcfSchristos2010-09-23  Alan Modra  <amodra@gmail.com>
86805caefcfSchristos
86905caefcfSchristos	* elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC
87005caefcfSchristos	difference between input and output section.
87105caefcfSchristos
87205caefcfSchristos2010-09-22  Kai Tietz  <kai.tietz@onevision.com>
87305caefcfSchristos
87405caefcfSchristos	* coffcode.h (sec_to_styp_flags): Adjust debug
87505caefcfSchristos	sections to be conform to pe-coff specification
87605caefcfSchristos	and avoid marking them as excluded.
87705caefcfSchristos	(styp_to_sec_flags): Doing reverse mapping.
87805caefcfSchristos
87905caefcfSchristos	* peXXigen.c (_bfd_XXi_final_link_postscript): Add handling for
88005caefcfSchristos	setting IAT directory entry.
88105caefcfSchristos
88205caefcfSchristos2010-09-20  Richard Henderson  <rth@redhat.com>
88305caefcfSchristos
88405caefcfSchristos	* elf64-alpha.c (elf64_alpha_howto_table): Use bfd_elf_generic_reloc.
88505caefcfSchristos
88605caefcfSchristos2010-09-19  Richard Sandiford  <rdsandiford@googlemail.com>
88705caefcfSchristos
88805caefcfSchristos	* elfxx-mips.c (mips_elf_link_hash_entry): Add got_only_for_calls.
88905caefcfSchristos	(mips_elf_link_hash_newfunc): Initialize it.
89005caefcfSchristos	(mips_elf_record_global_got_symbol): Add a for_call parameter.
89105caefcfSchristos	(mips_elf_count_got_symbols): Check SYMBOL_CALLS_LOCAL rather
89205caefcfSchristos	than SYMBOL_REFERENCES_LOCAL if the GOT entry is only used for calls.
89305caefcfSchristos	Try to remove .got entries in favour of .got.plt entries on VxWorks.
89405caefcfSchristos	(_bfd_mips_elf_check_relocs): Do not try to avoid allocating
89505caefcfSchristos	a global GOT entry for VxWorks calls.  Update uses of
89605caefcfSchristos	mips_elf_record_global_got_symbol.
89705caefcfSchristos	(allocate_dynrelocs): Set got_only_for_calls to false if the GOT
89805caefcfSchristos	entry is used for dynamic relocations.
89905caefcfSchristos
90005caefcfSchristos2010-09-19  Richard Sandiford  <rdsandiford@googlemail.com>
90105caefcfSchristos
90205caefcfSchristos	* elfxx-mips.c (mips_got_entry): Adjust commentary.
90305caefcfSchristos	(mips_elf_create_local_got_entry): If given a symbol, check that it
90405caefcfSchristos	has been assigned to the local part of the GOT.
90505caefcfSchristos	(mips_elf_count_got_symbols): Take the bfd_link_info as argument
90605caefcfSchristos	instead of the master GOT.  Put all locally-binding symbols in
90705caefcfSchristos	the local area.
90805caefcfSchristos	(mips_elf_make_got_per_bfd): Use global_got_area to decide whether
90905caefcfSchristos	a symbol lives in the local or global area.
91005caefcfSchristos	(mips_elf_local_relocation_p): Remove check_forced argument and
91105caefcfSchristos	retain only the !check_forced behavior.
91205caefcfSchristos	(mips_elf_calculate_relocation): Adjust call accordingly.
91305caefcfSchristos	Use global_got_area to decide whether an output relocation
91405caefcfSchristos	should be local or global.  Explicitly decay R_MIPS_GOT_PAGE
91505caefcfSchristos	into R_MIPS_GOT_DISP where appropriate.  Fix selection of
91605caefcfSchristos	local vs. global semantics for R_MIPS*_26.  Remove redundant
91705caefcfSchristos	reevaluation of what is stored in was_local_p.
91805caefcfSchristos	(mips_elf_create_dynamic_relocation): Use global_got_area to decide
91905caefcfSchristos	whether the relocation should be against a global or local symbol.
92005caefcfSchristos	(mips_elf_lay_out_got): Update the GOT traversal after the above
92105caefcfSchristos	change to mips_elf_count_got_symbols.
92205caefcfSchristos	(mips_elf_adjust_addend): Adjust call to mips_elf_local_relocation_p.
92305caefcfSchristos	(_bfd_mips_elf_relocate_section): Likewise.
92405caefcfSchristos	(_bfd_mips_elf_finish_dynamic_symbol): Use global_got_area to decide
92505caefcfSchristos	whether the symbol has a global got entry.
92605caefcfSchristos	(_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
92705caefcfSchristos
92805caefcfSchristos2010-09-19  Richard Sandiford  <rdsandiford@googlemail.com>
92905caefcfSchristos
93005caefcfSchristos	* elfxx-mips.c (allocate_dynrelocs): Don't add relocation symbols
93105caefcfSchristos	to the global GOT on VxWorks.
93205caefcfSchristos
93305caefcfSchristos2010-09-19  Richard Sandiford  <rdsandiford@googlemail.com>
93405caefcfSchristos
93505caefcfSchristos	* elfxx-mips.c (_bfd_mips_elf_check_relocs): On VxWorks,
93605caefcfSchristos	exclude __GOTT_BASE__ and __GOTT_INDEX__ from the warning
93705caefcfSchristos	about HI/LO relocations in shared objects.
93805caefcfSchristos
93905caefcfSchristos2010-09-16  Alan Modra  <amodra@gmail.com>
94005caefcfSchristos
94105caefcfSchristos	* elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc
94205caefcfSchristos	sections.
94305caefcfSchristos	(spu_elf_create_sections): Mark .fixup with SEC_LINKER_CREATED and
94405caefcfSchristos	set dynobj.
94505caefcfSchristos	(spu_elf_finish_dynamic_sections): New function.
94605caefcfSchristos	(elf_backend_finish_dynamic_sections): Define.
94705caefcfSchristos
94805caefcfSchristos2010-09-16  Alan Modra  <amodra@gmail.com>
94905caefcfSchristos
95005caefcfSchristos	* elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD.
95105caefcfSchristos	* elflink.c (elf_link_input_bfd): Likewise.
95205caefcfSchristos
95305caefcfSchristos2010-09-15  Kai Tietz  <kai.tietz@onevision.com>
95405caefcfSchristos
95505caefcfSchristos	* pei-x86_64.c (pex64_get_unwind_info): Reorgnized.
95605caefcfSchristos	(pex64_get_scope_entry): Removed.
95705caefcfSchristos	(find_next_xdata_or_end): New helper.
95805caefcfSchristos	(pex64_dump_xdata): Reworked.
95905caefcfSchristos	(pex64_bfd_print_pdata): Add checking for
96005caefcfSchristos	valid pdata sorting and values. Reworked
96105caefcfSchristos	output.
96205caefcfSchristos
96305caefcfSchristos2010-09-15  H.J. Lu  <hongjiu.lu@intel.com>
96405caefcfSchristos
96505caefcfSchristos	PR binutils/12004
96605caefcfSchristos	* plugin.c (bfd_plugin_object_p): Handle NULL iostream.
96705caefcfSchristos
96805caefcfSchristos2010-09-14  Kai Tietz  <kai.tietz@onevision.com>
96905caefcfSchristos
97005caefcfSchristos	* pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
97105caefcfSchristos	.rdata, .data, and .text partial matched section names.
97205caefcfSchristos	* pei-x86_64.c: Likewise.
97305caefcfSchristos
97405caefcfSchristos	* peXXigen.c (sort_x64_pdata): New helper.
97505caefcfSchristos	(_bfd_XXi_final_link_postscript): Do pdata sorting.
97605caefcfSchristos
97705caefcfSchristos2010-09-09  H.J. Lu  <hongjiu.lu@intel.com>
97805caefcfSchristos
97905caefcfSchristos	PR ld/11998
98005caefcfSchristos	* elf.c (assign_file_positions_for_load_sections): Don't warn
98105caefcfSchristos	zero LMA adjustment.
98205caefcfSchristos
98305caefcfSchristos2010-09-09  Bernd Schmidt  <bernds@codesourcery.com>
98405caefcfSchristos
98505caefcfSchristos	* elflink.c (bfd_elf_final_link): Correct calculation of
98605caefcfSchristos	max_external_reloc_size.
98705caefcfSchristos
98805caefcfSchristos2010-09-07  Alan Modra  <amodra@gmail.com>
98905caefcfSchristos	    Marcus Brinkmann  <marcus.brinkmann@ruhr-uni-bochum.de>
99005caefcfSchristos
99105caefcfSchristos	* peXXigen.c: Whitespace.
99205caefcfSchristos	(pe_print_idata): Correct section limit calculations.  Tidy array
99305caefcfSchristos	indexing.
99405caefcfSchristos	(_bfd_XX_print_ce_compressed_pdata): Don't leak memory.
99505caefcfSchristos
99605caefcfSchristos2010-09-02  Richard Henderson  <rth@redhat.com>
99705caefcfSchristos
99805caefcfSchristos	* config.bfd (x86_64-*-mingw*): Select 32-bit pei vectors too.
99905caefcfSchristos
100005caefcfSchristos2010-09-01  Pedro Alves  <pedro@codesourcery.com>
100105caefcfSchristos
100205caefcfSchristos	* netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
100305caefcfSchristos	(netbsd_core_file_pid): ... this.
100405caefcfSchristos
100505caefcfSchristos2010-09-01  Tristan Gingold  <gingold@adacore.com>
100605caefcfSchristos
100705caefcfSchristos	* coffcode.h (coff_slurp_line_table): Add a cast.
100805caefcfSchristos	(coff_slurp_reloc_table): Ditto.
100905caefcfSchristos
101005caefcfSchristos2010-08-30  Gunther Nikl  <gnikl@users.sourceforge.net>
101105caefcfSchristos
101205caefcfSchristos	* cisco-core.c (cisco_core_file_pid): Define.
101305caefcfSchristos
101405caefcfSchristos2010-08-30  Alan Modra  <amodra@gmail.com>
101505caefcfSchristos
101605caefcfSchristos	PR binutils/11953
101705caefcfSchristos	* elf.c (copy_elf_program_header): Calculate map->header_size
101805caefcfSchristos	from lowest_section, not first_section.  Validate program
101905caefcfSchristos	header p_paddr against section lma.  Find lowest_section in
102005caefcfSchristos	second loop over headers.
102105caefcfSchristos
102205caefcfSchristos2010-08-28  Alan Modra  <amodra@gmail.com>
102305caefcfSchristos
102405caefcfSchristos	* elflink.c (_bfd_elf_dynamic_symbol_p): Rename param.  Make
102505caefcfSchristos	common syms local.
102605caefcfSchristos	(_bfd_elf_symbol_refs_local_p): Expand comment.
102705caefcfSchristos	(elf_link_output_extsym): Fix style nit.
102805caefcfSchristos
102905caefcfSchristos2010-08-26  Nathan Sidwell  <nathan@codesourcery.com>
103005caefcfSchristos
103105caefcfSchristos	* elf32-arm.c (elf32_arm_final_link): Process stub sections
103205caefcfSchristos	exactly once.
103305caefcfSchristos
103405caefcfSchristos2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
103505caefcfSchristos
103605caefcfSchristos	PR ld/11939
103705caefcfSchristos	* elflink.c (elf_link_add_object_symbols): Don't set
103805caefcfSchristos	unique_global for non-ELF hash link table.
103905caefcfSchristos
104005caefcfSchristos2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
104105caefcfSchristos
104205caefcfSchristos	PR ld/11944
104305caefcfSchristos	* elf-bfd.h (elf_backend_data): Add target_id.
104405caefcfSchristos	(bfd_elf_make_generic_object): Renamed to ...
104505caefcfSchristos	(bfd_elf_make_object): This.
104605caefcfSchristos
104705caefcfSchristos	* elf.c (bfd_elf_make_generic_object): Removed.
104805caefcfSchristos	(bfd_elf_make_object): New.
104905caefcfSchristos	(bfd_elf_mkcorefile): Really treat it as an object file.
105005caefcfSchristos
105105caefcfSchristos	* elf-m10300.c (ELF_TARGET_ID): New.
105205caefcfSchristos	* elf32-arm.c (ELF_TARGET_ID): Likewise.
105305caefcfSchristos	* elf32-bfin.c (ELF_TARGET_ID): Likewise.
105405caefcfSchristos	* elf32-cris.c (ELF_TARGET_ID): Likewise.
105505caefcfSchristos	* elf32-frv.c (ELF_TARGET_ID): Likewise.
105605caefcfSchristos	* elf32-i386.c (ELF_TARGET_ID): Likewise.
105705caefcfSchristos	* elf32-lm32.c (ELF_TARGET_ID): Likewise.
105805caefcfSchristos	* elf32-m32r.c (ELF_TARGET_ID): Likewise.
105905caefcfSchristos	* elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
106005caefcfSchristos	* elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
106105caefcfSchristos	* elf32-m68k.c (ELF_TARGET_ID): Likewise.
106205caefcfSchristos	* elf32-microblaze.c (ELF_TARGET_ID): Likewise.
106305caefcfSchristos	* elf32-ppc.c (ELF_TARGET_ID): Likewise.
106405caefcfSchristos	* elf32-s390.c (ELF_TARGET_ID): Likewise.
106505caefcfSchristos	* elf32-sh.c (ELF_TARGET_ID): Likewise.
106605caefcfSchristos	* elf32-sparc.c (ELF_TARGET_ID): Likewise.
106705caefcfSchristos	* elf32-spu.c (ELF_TARGET_ID): Likewise.
106805caefcfSchristos	* elf32-tic6x.c (ELF_TARGET_ID): Likewise.
106905caefcfSchristos	* elf32-xtensa.c (ELF_TARGET_ID): Likewise.
107005caefcfSchristos	* elf64-alpha.c (ELF_TARGET_ID): Likewise.
107105caefcfSchristos	* elf64-hppa.c (ELF_TARGET_ID): Likewise.
107205caefcfSchristos	* elf64-ppc.c (ELF_TARGET_ID): Likewise.
107305caefcfSchristos	* elf64-s390.c (ELF_TARGET_ID): Likewise.
107405caefcfSchristos	* elf64-x86-64.c (ELF_TARGET_ID): Likewise.
107505caefcfSchristos	* elfxx-ia64.c (ELF_TARGET_ID): Likewise.
107605caefcfSchristos
107705caefcfSchristos	* elf32-hppa.c (elf32_hppa_mkobject): Removed.
107805caefcfSchristos	(bfd_elf32_mkobject): Likewise.
107905caefcfSchristos	(ELF_TARGET_ID): New.
108005caefcfSchristos
108105caefcfSchristos	* elf32-mips.c (ELF_TARGET_ID): New.
108205caefcfSchristos	(bfd_elf32_mkobject): Removed.
108305caefcfSchristos
108405caefcfSchristos	* elf64-mips.c (ELF_TARGET_ID): New.
108505caefcfSchristos	(bfd_elf64_mkobject): Removed.
108605caefcfSchristos
108705caefcfSchristos	* elfn32-mips.c (ELF_TARGET_ID): New.
108805caefcfSchristos	(bfd_elf32_mkobject): Removed.
108905caefcfSchristos
109005caefcfSchristos	* elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
109105caefcfSchristos	* elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.
109205caefcfSchristos
109305caefcfSchristos	* elfxx-target.h (bfd_elfNN_mkobject): Default to
109405caefcfSchristos	bfd_elf_make_object.
109505caefcfSchristos	(ELF_TARGET_ID): New.  Default to GENERIC_ELF_DATA.
109605caefcfSchristos	(elfNN_bed): Initialize target_id.
109705caefcfSchristos
109805caefcfSchristos2010-08-25  Julian Brown  <julian@codesourcery.com>
109905caefcfSchristos
110005caefcfSchristos	* elf32-arm.c (arm_stub_required_alignment): New.
110105caefcfSchristos	(arm_build_one_stub): Use above to partition stubs.
110205caefcfSchristos	(make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
110305caefcfSchristos	arm_stub_a8_veneer_b_cond.
110405caefcfSchristos
110505caefcfSchristos2010-08-25  Alan Modra  <amodra@gmail.com>
110605caefcfSchristos
110705caefcfSchristos	* aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
110805caefcfSchristos	* aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
110905caefcfSchristos	* aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
111005caefcfSchristos	* coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
111105caefcfSchristos	* elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
111205caefcfSchristos	* reloc.c (bfd_default_reloc_type_lookup): Likewise.
111305caefcfSchristos	* riscix.c (riscix_reloc_type_lookup): Likewise.
111405caefcfSchristos
111505caefcfSchristos2010-08-25  Alan Modra  <amodra@gmail.com>
111605caefcfSchristos
111705caefcfSchristos	* elf.c (_bfd_elf_map_sections_to_segments): Don't load program
111805caefcfSchristos	headers if any loaded section wraps the address space.  Simplify
111905caefcfSchristos	~(m-1) to -m.  Use lma rather than vma when determining whether
112005caefcfSchristos	note sections are adjacent.
112105caefcfSchristos
112205caefcfSchristos2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>
112305caefcfSchristos
112405caefcfSchristos	PR ld/11933
112505caefcfSchristos	* elflink.c (elf_link_add_object_symbols): Don't check relocation
112605caefcfSchristos	if input ELF object ID doesn't match output.
112705caefcfSchristos
112805caefcfSchristos2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112905caefcfSchristos
113005caefcfSchristos	* configure: Regenerate.
113105caefcfSchristos
113205caefcfSchristos2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
113305caefcfSchristos
113405caefcfSchristos	* merge.c (sec_merge_emit): Revert the last checkin.
113505caefcfSchristos
113605caefcfSchristos2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
113705caefcfSchristos
113805caefcfSchristos	* elf32-sh.c (sh_elf_relocate_section): Handle non-ELF output
113905caefcfSchristos	BFD.
114005caefcfSchristos
114105caefcfSchristos2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
114205caefcfSchristos
114305caefcfSchristos	* elf32-m68k.c (bfd_elf_m68k_set_target_options): Don't set GOT
114405caefcfSchristos	options unless an m68k hash table has been found.
114505caefcfSchristos
114605caefcfSchristos2010-08-20  Nick Clifton  <nickc@redhat.com>
114705caefcfSchristos
114805caefcfSchristos	* merge.c (sec_merge_emit): Do not zero pad sections that do not
114905caefcfSchristos	have an alignment.
115005caefcfSchristos
115105caefcfSchristos2010-08-18  Pedro Alves  <pedro@codesourcery.com>
115205caefcfSchristos
115305caefcfSchristos	PR corefile/8210
115405caefcfSchristos
115505caefcfSchristos	* bfd-in2.h: Regenerate.
115605caefcfSchristos	* corefile.c (bfd_core_file_pid): New.
115705caefcfSchristos
115805caefcfSchristos	* targets.c (BFD_JUMP_TABLE_CORE): Add NAME##_core_file_pid.
115905caefcfSchristos	(struct bfd_target) <_core_file_pid>: New.
116005caefcfSchristos
116105caefcfSchristos	* libbfd-in.h (_bfd_nocore_core_file_pid): Declare.
116205caefcfSchristos	* libbfd.c (_bfd_nocore_core_file_pid): New.
116305caefcfSchristos
116405caefcfSchristos	* elf-bfd.h (bfd_elf32_core_file_pid, bfd_elf64_core_file_pid):
116505caefcfSchristos	Declare.
116605caefcfSchristos	* elfcode.h (elf_core_file_pid): New define.
116705caefcfSchristos	* elfcore.h (elf_core_file_pid): New function.
116805caefcfSchristos
116905caefcfSchristos	* elf.c (elfcore_make_pid): Rewrite.
117005caefcfSchristos	(elfcore_grok_prstatus): Only set core_pid if not set yet.
117105caefcfSchristos	(elfcore_grok_prstatus) [!HAVE_PRSTATUS_T_PR_WHO]: Fallback to
117205caefcfSchristos	getting the lwpid from prstat.pr_pid.
117305caefcfSchristos
117405caefcfSchristos	* elf64-x86-64.c (elf64_x86_64_grok_prstatus): Write the LWPID to
117505caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
1176*5ba6b03cSchristos	(elf64_x86_64_grok_psinfo): Extract the main process's PID,
117705caefcfSchristos	and store it in elf_tdata's core_pid field.
117805caefcfSchristos	* elf32-i386.c (elf_i386_grok_prstatus): Write the LWPID to
117905caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
1180*5ba6b03cSchristos	(elf_i386_grok_psinfo): Extract the main process's PID, and
118105caefcfSchristos	store it in elf_tdata's core_pid field.
118205caefcfSchristos
118305caefcfSchristos	* elf32-am33lin.c (elf32_am33lin_grok_prstatus): Write the LWPID
118405caefcfSchristos	to elf_tdata's core_lwpid instead of to core_pid.
118505caefcfSchristos	* elf32-arm.c (elf32_arm_nabi_grok_prstatus): Write the LWPID to
118605caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
118705caefcfSchristos	* elf32-cris.c (cris_elf_grok_prstatus): Write the LWPID to
118805caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
118905caefcfSchristos	* elf32-frv.c (elf32_frv_grok_prstatus): Write the LWPID to
119005caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
119105caefcfSchristos	* elf32-hppa.c (elf32_hppa_grok_prstatus): Write the LWPID to
119205caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
119305caefcfSchristos	* elf32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
119405caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
119505caefcfSchristos	* elf32-ppc.c (ppc_elf_grok_prstatus): Write the LWPID to
119605caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
119705caefcfSchristos	* elf32-s390.c (elf_s390_grok_prstatus): Write the LWPID to
119805caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
119905caefcfSchristos	* elf32-score.c (s3_bfd_score_elf_grok_prstatus): Write the LWPID
120005caefcfSchristos	to elf_tdata's core_lwpid instead of to core_pid.
120105caefcfSchristos	* elf32-score7.c (s7_bfd_score_elf_grok_prstatus): Write the LWPID
120205caefcfSchristos	to elf_tdata's core_lwpid instead of to core_pid.
120305caefcfSchristos	* elf32-sh.c (elf32_shlin_grok_prstatus): Write the LWPID to
120405caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
120505caefcfSchristos	* elf32-xtensa.c (elf_xtensa_grok_prstatus): Write the LWPID to
120605caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
120705caefcfSchristos	* elf64-hppa.c (elf64_hppa_grok_prstatus): Write the LWPID to
120805caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
120905caefcfSchristos	* elf64-mips.c (elf64_mips_grok_prstatus): Write the LWPID to
121005caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
121105caefcfSchristos	* elf64-ppc.c (ppc64_elf_grok_prstatus): Write the LWPID to
121205caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
121305caefcfSchristos	* elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
121405caefcfSchristos	elf_tdata's core_lwpid instead of to core_pid.
121505caefcfSchristos
121605caefcfSchristos	* plugin.c (bfd_plugin_core_file_pid): New function.
121705caefcfSchristos	* aout-target.h (MY_core_file_pid): Define.
121805caefcfSchristos	* aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
121905caefcfSchristos	* coff-rs6000.c (coff_core_file_pid): New define.
122005caefcfSchristos	(rs6000coff_vec, pmac_xcoff_vec): Use BFD_JUMP_TABLE_CORE.
122105caefcfSchristos	* coff64-rs6000.c (coff_core_file_pid): New define.
122205caefcfSchristos	(rs6000coff64_vec): Use BFD_JUMP_TABLE_CORE.
122305caefcfSchristos	(xcoff64_core_file_pid): New define.
122405caefcfSchristos	(aix5coff64_vec): Use BFD_JUMP_TABLE_CORE.
122505caefcfSchristos	* mach-o-target.c (bfd_mach_o_core_file_pid): New define.
122605caefcfSchristos	* aix386-core.c (aix386_core_file_pid): New define.
122705caefcfSchristos	* hppabsd-core.c (hppabsd_core_core_file_pid): New define.
122805caefcfSchristos	* hpux-core.c (hpux_core_core_file_pid): New define.
122905caefcfSchristos	* irix-core.c (irix_core_core_file_pid): New define.
123005caefcfSchristos	* lynx-core.c (lynx_core_file_pid): New define.
123105caefcfSchristos	* osf-core.c (osf_core_core_file_pid): New define.
123205caefcfSchristos	* ptrace-core.c (ptrace_unix_core_file_pid): New define.
123305caefcfSchristos	* sco5-core.c (sco5_core_file_pid): New define.
123405caefcfSchristos	* xcoff-target.h (coff_core_file_pid): New define.
123505caefcfSchristos	* netbsd-core.c (netbsd_core_core_file_pid): New define.
123605caefcfSchristos
123705caefcfSchristos2010-08-13  H.J. Lu  <hongjiu.lu@intel.com>
123805caefcfSchristos
123905caefcfSchristos	PR ld/11913
124005caefcfSchristos	* elf32-i386.c (elf_i386_finish_dynamic_sections): Check if
124105caefcfSchristos	 .got.plt section is discarded.
124205caefcfSchristos	 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Likewise.
124305caefcfSchristos
124405caefcfSchristos2010-08-13  Nathan Sidwell  <nathan@codesourcery.com>
124505caefcfSchristos
124605caefcfSchristos	* elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B
124705caefcfSchristos	variant.
124805caefcfSchristos
124905caefcfSchristos2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
125005caefcfSchristos
125105caefcfSchristos	PR binutils/11909
125205caefcfSchristos	* Makefile.am (coff-tic4x.lo): New.  Disable -Werror.
125305caefcfSchristos	(coff-tic54x.lo): Likewise.
125405caefcfSchristos	* Makefile.in: Regenerated.
125505caefcfSchristos
125605caefcfSchristos2010-08-12  Todd Veldhuizen  <todd.veldhuizen@logicblox.com>
125705caefcfSchristos
125805caefcfSchristos	PR ld/11843
125905caefcfSchristos	* elflink.c (compute_bucket_count): Avoid futile long searches for
126005caefcfSchristos	the best bucket size.
126105caefcfSchristos
126205caefcfSchristos2010-08-09  Richard Henderson  <rth@redhat.com>
126305caefcfSchristos
126405caefcfSchristos	PR ld/11891
126505caefcfSchristos	* elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Disallow relaxing
126605caefcfSchristos	to tlshi/lo until pos0 and pos1 are adjacent.  Use the destination
126705caefcfSchristos	register from the tldgd insn.
126805caefcfSchristos
126905caefcfSchristos2010-08-09  Catherine Moore  <clm@codesourcery.com>
127005caefcfSchristos
127105caefcfSchristos	* elfxx-mips.c (mips_elf_perform_relocation): Improve
127205caefcfSchristos	interlinking error message.
127305caefcfSchristos
127405caefcfSchristos2010-08-06  Alan Modra  <amodra@gmail.com>
127505caefcfSchristos
127605caefcfSchristos	* elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.
127705caefcfSchristos	(ppc64_elf_relocate_section): Nop out high part insn of large toc
127805caefcfSchristos	code sequence when the high part of offset is zero.
127905caefcfSchristos
128005caefcfSchristos2010-08-04  Tristan Gingold  <gingold@adacore.com>
128105caefcfSchristos
128205caefcfSchristos	* vms-alpha.c (alpha_vms_build_fixups): Write the EICP.
128305caefcfSchristos	(alpha_vms_bfd_final_link): Explicitly forbid relocatable links.
128405caefcfSchristos	Clear the SEC_RELOC flag.
128505caefcfSchristos
128605caefcfSchristos2010-08-04  Tristan Gingold  <gingold@adacore.com>
128705caefcfSchristos
128805caefcfSchristos	* vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable
128905caefcfSchristos	sections with relocs.
129005caefcfSchristos	(alpha_vms_add_fixup_lp): Set SEC_RELOC flag.
129105caefcfSchristos	(alpha_vms_add_fixup_ca): Ditto.
129205caefcfSchristos	(alpha_vms_add_fixup_qr): Ditto.
129305caefcfSchristos	Add comments.
129405caefcfSchristos
129505caefcfSchristos2010-08-04  Tristan Gingold  <gingold@adacore.com>
129605caefcfSchristos
129705caefcfSchristos	* vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make
129805caefcfSchristos	CODE sections writable.
129905caefcfSchristos
130005caefcfSchristos2010-08-04  Tristan Gingold  <gingold@adacore.com>
130105caefcfSchristos
130205caefcfSchristos	* vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ...
130305caefcfSchristos	(alpha_vms_add_fixup_lr): ... this for consistency.
130405caefcfSchristos	(alpha_vms_add_qw_fixup): Removed.
130505caefcfSchristos	Fix some comments.
130605caefcfSchristos	(vms_get_symbol_info): Adjust type for unknown sections.
130705caefcfSchristos
130805caefcfSchristos2010-08-04  Tristan Gingold  <gingold@adacore.com>
130905caefcfSchristos
131005caefcfSchristos	* vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute
131105caefcfSchristos	section for any absolute section.  Remove some debugging code.
131205caefcfSchristos
131305caefcfSchristos2010-08-03  DJ Delorie  <dj@redhat.com>
131405caefcfSchristos
131505caefcfSchristos	* elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.
131605caefcfSchristos
131705caefcfSchristos2010-08-03  Tristan Gingold  <gingold@adacore.com>
131805caefcfSchristos
131905caefcfSchristos	* vms-misc.c (vms_convert_to_var): Make it static.
132005caefcfSchristos	(_bfd_vms_convert_to_var_unix_filename): Make it public.
132105caefcfSchristos
132205caefcfSchristos2010-08-03  Tristan Gingold  <gingold@adacore.com>
132305caefcfSchristos
132405caefcfSchristos	* makefile.vms (OBJS): Update list.
132505caefcfSchristos
132605caefcfSchristos2010-08-03  Tristan Gingold  <gingold@adacore.com>
132705caefcfSchristos
132805caefcfSchristos	* vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS
132905caefcfSchristos	nor SEC_RELOC for empty sections.
133005caefcfSchristos
133105caefcfSchristos2010-08-03  Tristan Gingold  <gingold@adacore.com>
133205caefcfSchristos
133305caefcfSchristos	* vms-alpha.c (evax_section_flags): Fix flags for absolute
133405caefcfSchristos	section.  Remove useless parenthesis.
133505caefcfSchristos
133605caefcfSchristos2010-08-03  Tristan Gingold  <gingold@adacore.com>
133705caefcfSchristos
133805caefcfSchristos	* vms-lib.c (vms_lib_bread_raw): Change type of BUF argument.
133905caefcfSchristos	(vms_lib_bread, vms_lib_bopen): Adjust.
134005caefcfSchristos
134105caefcfSchristos2010-08-02  Alan Modra  <amodra@gmail.com>
134205caefcfSchristos
134305caefcfSchristos	PR 11866
134405caefcfSchristos	* elf.c (assign_file_positions_for_load_sections): Use p_vaddr to
134505caefcfSchristos	calculate off_adjust rather than first section vma.
134605caefcfSchristos
134705caefcfSchristos2010-07-30  H.J. Lu  <hongjiu.lu@intel.com>
134805caefcfSchristos
134905caefcfSchristos	* elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.
135005caefcfSchristos
135105caefcfSchristos2010-07-30  Anthony Green  <green@moxielogic.com>
135205caefcfSchristos
135305caefcfSchristos	* config.bfd (targ_cpu): Add moxie-*-rtems support.
135405caefcfSchristos
135505caefcfSchristos2010-07-29  Alan Modra  <amodra@gmail.com>
135605caefcfSchristos
135705caefcfSchristos	* elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in
135805caefcfSchristos	.toc section, even when none are used in relocs.
135905caefcfSchristos
136005caefcfSchristos2010-07-27  Maciej W. Rozycki  <macro@codesourcery.com>
136105caefcfSchristos
136205caefcfSchristos	* elfxx-mips.h: Include "elf/mips.h".
136305caefcfSchristos	(gprel16_reloc_p): New static inline function.
136405caefcfSchristos	* elfxx-mips.c (_bfd_mips_elf_check_relocs)
136505caefcfSchristos	[R_MIPS16_GOT16, R_MIPS_GOT16, R_MIPS_GOT_HI16, R_MIPS_GOT_LO16]:
136605caefcfSchristos	Use got16_reloc_p.
136705caefcfSchristos	(_bfd_mips_elf_relocate_section)[bfd_reloc_overflow]: Use
136805caefcfSchristos	gprel16_reloc_p.
136905caefcfSchristos	* elf32-mips.c (mips_info_to_howto_rel): Likewise.
137005caefcfSchristos	* elfn32-mips.c (mips_info_to_howto_rel): Likewise.
137105caefcfSchristos
137205caefcfSchristos2010-07-27  Maciej W. Rozycki  <macro@codesourcery.com>
137305caefcfSchristos
137405caefcfSchristos	* elf64-mips.c (mips_elf64_howto_table_rela)
137505caefcfSchristos	[R_MIPS_TLS_DTPMOD64]: Clear partial_inplace.
137605caefcfSchristos	[R_MIPS_TLS_DTPREL64, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
137705caefcfSchristos	[R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
137805caefcfSchristos	[R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL64]: Likewise.
137905caefcfSchristos	[R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
138005caefcfSchristos	* elfn32-mips.c (elf_mips_howto_table_rela)
138105caefcfSchristos	[R_MIPS_TLS_DTPMOD32]: Likewise.
138205caefcfSchristos	[R_MIPS_TLS_DTPREL32, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
138305caefcfSchristos	[R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
138405caefcfSchristos	[R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL32]: Likewise.
138505caefcfSchristos	[R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
138605caefcfSchristos
138705caefcfSchristos2010-07-23  Naveen.H.S  <naveen.S@kpitcummins.com>
138805caefcfSchristos	    Ina Pandit  <ina.pandit@kpitcummins.com>
138905caefcfSchristos
139005caefcfSchristos	* archures.c (DESCRIPTION): Define bfd_mach_v850e2 and
139105caefcfSchristos	bfd_mach_v850e2v3.
139205caefcfSchristos	* reloc.c (bfd_architecture): Define bfd_mach_v850e2 and
139305caefcfSchristos	bfd_mach_v850e2v3.
139405caefcfSchristos	(BFD_RELOC_V850_16_PCREL, BFD_RELOC_V850_17_PCREL,
139505caefcfSchristos	BFD_RELOC_V850_22_PCREL, BFD_RELOC_V850_23,
139605caefcfSchristos	BFD_RELOC_V850_32_PCREL, BFD_RELOC_V850_32_ABS,
139705caefcfSchristos	BFD_RELOC_V850_16_SPLIT_OFFSET, BFD_RELOC_V850_16_S1,
139805caefcfSchristos	BFD_RELOC_V850_LO16_SPLIT_OFFSET, BFD_RELOC_V850_SDA_15_16_OFFSET,
139905caefcfSchristos	BFD_RELOC_V850_ZDA_16_16_OFFSET, BFD_RELOC_V850_CALLT_15_16_OFFSET,
140005caefcfSchristos	BFD_RELOC_V850_32_GOTPCREL, BFD_RELOC_V850_16_GOT,
140105caefcfSchristos	BFD_RELOC_V850_32_GOT, BFD_RELOC_V850_22_PLT_PCREL,
140205caefcfSchristos	BFD_RELOC_V850_32_PLT_PCREL, BFD_RELOC_V850_COPY,
140305caefcfSchristos	BFD_RELOC_V850_GLOB_DAT, BFD_RELOC_V850_JMP_SLOT,
140405caefcfSchristos	BFD_RELOC_V850_RELATIVE, BFD_RELOC_V850_16_GOTOFF,
140505caefcfSchristos	BFD_RELOC_V850_32_GOTOFF, BFD_RELOC_V850_CODE,
140605caefcfSchristos	BFD_RELOC_V850_DATA): New relocations for V850 target.
140705caefcfSchristos	* config.bfd: Match all v850 targets.
140805caefcfSchristos	* cpu-v850.c (arch_info_struct): Define V850e2 and V850e2v3.
140905caefcfSchristos	* elf32-v850.c (v850_elf_check_relocs): Check the newly added
141005caefcfSchristos	relocations.
141105caefcfSchristos	(v850_elf_perform_relocation ): Update the newly added
141205caefcfSchristos	relocations.
141305caefcfSchristos	(v850_elf_howto_t): Update the specifications of added
141405caefcfSchristos	relocations.
141505caefcfSchristos	(v850_elf_reloc_map): Update the relocation mappings.
141605caefcfSchristos	(v850_elf_final_link_relocate): Maps added relocation into the
141705caefcfSchristos	appropriate howto structure.
141805caefcfSchristos	(v850_elf_object_p): Add support for V850E2 and V850E2V3.
141905caefcfSchristos	(v850_elf_final_write_processing): Likewise.
142005caefcfSchristos	(v850_elf_merge_private_bfd_data): Likewise.
142105caefcfSchristos	(v850_elf_print_private_bfd_data): Likewise.
142205caefcfSchristos	* libbfd.h: Regenerate.
142305caefcfSchristos	* bfd-in2.h: Regenerate.
142405caefcfSchristos
142505caefcfSchristos2010-07-23  Alan Modra  <amodra@gmail.com>
142605caefcfSchristos
142705caefcfSchristos	* archive.c (_bfd_archive_bsd44_construct_extended_name_table):
142805caefcfSchristos	Correct format specifier.
142905caefcfSchristos
143005caefcfSchristos2010-07-22  Alan Modra  <amodra@gmail.com>
143105caefcfSchristos
143205caefcfSchristos	* ecoff.c: Don't include aout/ranlib.h.
143305caefcfSchristos	(_bfd_ecoff_slurp_armap): Use correct struct for ardata->symdefs.
143405caefcfSchristos	(_bfd_ecoff_write_armap): Output ar_date and ar_size using
143505caefcfSchristos	_bfd_ar_spacepad.
143605caefcfSchristos
143705caefcfSchristos2010-07-22  Alan Modra  <amodra@gmail.com>
143805caefcfSchristos
143905caefcfSchristos	* aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
144005caefcfSchristos	relocs.
144105caefcfSchristos
144205caefcfSchristos2010-07-20  Alan Modra  <amodra@gmail.com>
144305caefcfSchristos
144405caefcfSchristos	* elf.c (assign_file_positions_for_load_sections): Check that
144505caefcfSchristos	zero size sections are allocated in segments too.
144605caefcfSchristos	(assign_file_positions_for_non_load_sections): Warn if zero
144705caefcfSchristos	size alloc sections are found here.
144805caefcfSchristos	(copy_elf_program_header): Don't drop zero size sections from
144905caefcfSchristos	segment map.
145005caefcfSchristos	(copy_private_bfd_data): Check for changes in zero size sections.
145105caefcfSchristos
145205caefcfSchristos2010-07-17  Alan Modra  <amodra@gmail.com>
145305caefcfSchristos
145405caefcfSchristos	* elf.c (_bfd_elf_map_sections_to_segments): Force new segment
145505caefcfSchristos	for sections with overlapping LMAs.
145605caefcfSchristos	(assign_file_positions_for_load_sections): Catch overlap for
145705caefcfSchristos	sections that wrap around the address space.  Replace a
145805caefcfSchristos	warning that duplicates ld's --check-sections error with a
145905caefcfSchristos	warning that lma has been adjusted for overlapping sections.
146005caefcfSchristos
146105caefcfSchristos2010-07-14  Cary Coutant  <ccoutant@google.com>
146205caefcfSchristos
146305caefcfSchristos	PR ld/11817
146405caefcfSchristos	* dwarf2.c (read_section): Revert patch for compressed debug sections.
146505caefcfSchristos	(find_line): Likewise.
146605caefcfSchristos	(read_and_uncompress_section): Remove.
146705caefcfSchristos
146805caefcfSchristos2010-07-13  H.J. Lu  <hongjiu.lu@intel.com>
146905caefcfSchristos
147005caefcfSchristos	PR ld/11812
147105caefcfSchristos	* elf32-i386.c (elf_i386_size_dynamic_sections): Don't
147205caefcfSchristos	 allocate .got.plt section if there are no GOT nor PLT
147305caefcfSchristos	 entries.
147405caefcfSchristos	 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
147505caefcfSchristos
147605caefcfSchristos2010-07-13  H.J. Lu  <hongjiu.lu@intel.com>
147705caefcfSchristos
147805caefcfSchristos	PR ld/11791
147905caefcfSchristos	* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Support
148005caefcfSchristos	garbage collection against STT_GNU_IFUNC symbols.
148105caefcfSchristos
148205caefcfSchristos	* elf32-i386.c (elf_i386_get_local_sym_hash): Don't set
148305caefcfSchristos	elf.plt.offset/elf.got.offset to -1.
148405caefcfSchristos	(elf_i386_tls_transition): Skip TLS transition for functions.
148505caefcfSchristos	(elf_i386_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
148605caefcfSchristos
148705caefcfSchristos	* elf64-x86-64.c (elf64_x86_64_get_local_sym_hash): Don't set
148805caefcfSchristos	elf.plt.offset/elf.got.offset to -1.
148905caefcfSchristos	(elf64_x86_64_tls_transition): Skip TLS transition for functions.
149005caefcfSchristos	(elf64_x86_64_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
149105caefcfSchristos
149205caefcfSchristos2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
149305caefcfSchristos
149405caefcfSchristos	* elf32-i386.c (elf_i386_check_relocs): Re-indent.
149505caefcfSchristos	(elf_i386_relocate_section): Likewise.
149605caefcfSchristos
149705caefcfSchristos2010-07-06  H.J. Lu  <hongjiu.lu@intel.com>
149805caefcfSchristos
149905caefcfSchristos	* dwarf2.c (add_line_info): Initialize prev_line.
150005caefcfSchristos
150105caefcfSchristos2010-07-06  Alan Modra  <amodra@gmail.com>
150205caefcfSchristos
150305caefcfSchristos	* elf32-ppc.c (ppc_elf_relax_section): Insert branch around
150405caefcfSchristos	trampolines only for .init and .fini sections.
150505caefcfSchristos
150605caefcfSchristos2010-07-05  Alan Modra  <amodra@gmail.com>
150705caefcfSchristos
150805caefcfSchristos	* elf32-ppc.c: Formatting.
150905caefcfSchristos	(ppc_elf_finish_dynamic_sections): Don't make plt_entry var static.
151005caefcfSchristos
151105caefcfSchristos2010-07-03  Cary Coutant  <ccoutant@google.com>
151205caefcfSchristos
151305caefcfSchristos	* compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED.
151405caefcfSchristos	* dwarf2.c (read_and_uncompress_section): New function.
151505caefcfSchristos	(read_section): Call it.
151605caefcfSchristos	(find_line): Likewise.
151705caefcfSchristos
151805caefcfSchristos2010-07-01  Alan Modra  <amodra@gmail.com>
151905caefcfSchristos
152005caefcfSchristos	* elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
152105caefcfSchristos	than SYMBOL_REFERENCES_LOCAL.
152205caefcfSchristos	(ppc64_elf_relocate_section): Likewise.
152305caefcfSchristos
152405caefcfSchristos2010-07-01  Alan Modra  <amodra@gmail.com>
152505caefcfSchristos
152605caefcfSchristos	* elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.
152705caefcfSchristos
152805caefcfSchristos2010-06-29  Alan Modra  <amodra@gmail.com>
152905caefcfSchristos
153005caefcfSchristos	* cpu-maxq.c: Delete file.
153105caefcfSchristos	* coff-maxq.c: Delete file.
153205caefcfSchristos	* Makefile.am: Remove references to maxq.
153305caefcfSchristos	* archures.c: Likewise.
153405caefcfSchristos	* coffcode.h: Likewise.
153505caefcfSchristos	* configure.in: Likewise.
153605caefcfSchristos	* targets.c: Likewise.
153705caefcfSchristos	* config.bfd: Move maxq from obsolete to removed.
153805caefcfSchristos	* Makefile.in: Regenerate.
153905caefcfSchristos	* bfd-in2.h: Regenerate.
154005caefcfSchristos	* configure: Regenerate.
154105caefcfSchristos	* libbfd.h: Regenerate.
154205caefcfSchristos	* po/SRC-POTFILES.in: Regenerate.
154305caefcfSchristos
154405caefcfSchristos2010-06-28  Alan Modra  <amodra@gmail.com>
154505caefcfSchristos
154605caefcfSchristos	* compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
154705caefcfSchristos	to silence gcc warning.
154805caefcfSchristos
154905caefcfSchristos2010-06-27  Alan Modra  <amodra@gmail.com>
155005caefcfSchristos
155105caefcfSchristos	* elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
155205caefcfSchristos	(group_sections): Likewise.
155305caefcfSchristos
155405caefcfSchristos2010-06-27  Alan Modra  <amodra@gmail.com>
155505caefcfSchristos
155605caefcfSchristos	* bout.c (aligncode): Delete set but unused variables.
155705caefcfSchristos	* coff-mcore.c (coff_mcore_relocate_section): Likewise.
155805caefcfSchristos	* coff-ppc.c (ppc_record_toc_entry): Likewise.
155905caefcfSchristos	(coff_ppc_relocate_section): Likewise.
156005caefcfSchristos	* coff-rs6000.c (xcoff_complain_overflow_bitfield_func): Likewise.
156105caefcfSchristos	* elf-m10200.c (mn10200_elf_relax_delete_bytes): Likewise.
156205caefcfSchristos	* elf-m10300.c (mn10300_elf_final_link_relocate): Likewise.
156305caefcfSchristos	(mn10300_elf_relax_section): Likewise.
156405caefcfSchristos	* elf32-arm.c (arm_build_one_stub, arm_size_one_stub): Likewise.
156505caefcfSchristos	(record_vfp11_erratum_veneer): Likewise.
156605caefcfSchristos	(bfd_elf32_arm_vfp11_erratum_scan): Likewise.
156705caefcfSchristos	(elf32_arm_final_link_relocate): Likewise.
156805caefcfSchristos	(elf32_arm_check_relocs, arm_map_one_stub): Likewise.
156905caefcfSchristos	* elf32-avr.c (elf32_avr_relax_delete_bytes): Likewise.
157005caefcfSchristos	(elf32_avr_relax_section): Likewise.
157105caefcfSchristos	(avr_mark_stub_not_to_be_necessary): Likewise.
157205caefcfSchristos	* elf32-bfin.c (_bfin_create_got_section): Likewise.
157305caefcfSchristos	* elf32-cr16.c (cr16_elf_final_link_relocate): Likewise.
157405caefcfSchristos	(elf32_cr16_relax_delete_bytes): Likewise.
157505caefcfSchristos	* elf32-cr16c.c (cr16c_elf_final_link_relocate): Likewise.
157605caefcfSchristos	* elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
157705caefcfSchristos	* elf32-crx.c (elf32_crx_relax_delete_bytes): Likewise.
157805caefcfSchristos	* elf32-h8300.c (elf32_h8_relax_section): Likewise.
157905caefcfSchristos	(elf32_h8_relax_delete_bytes): Likewise.
158005caefcfSchristos	* elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
158105caefcfSchristos	* elf32-i370.c (i370_elf_check_relocs): Likewise.
158205caefcfSchristos	(elf_relocate_section): Likewise.
158305caefcfSchristos	* elf32-ip2k.c (adjust_all_relocations): Likewise.
158405caefcfSchristos	(ip2k_elf_relax_section): Likewise.
158505caefcfSchristos	* elf32-lm32.c (lm32_elf_relocate_section): Likewise.
158605caefcfSchristos	(lm32_elf_check_relocs): Likewise.
158705caefcfSchristos	(lm32_elf_finish_dynamic_sections): Likewise.
158805caefcfSchristos	(lm32_elf_finish_dynamic_symbol): Likewise.
158905caefcfSchristos	* elf32-m32c.c (m32c_offset_for_reloc): Likewise.
159005caefcfSchristos	(m32c_elf_relax_delete_bytes): Likewise.
159105caefcfSchristos	* elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
159205caefcfSchristos	(m32r_elf_finish_dynamic_sections): Likewise.
159305caefcfSchristos	(m32r_elf_check_relocs, m32r_elf_fake_sections): Likewise.
159405caefcfSchristos	* elf32-m68hc11.c (m68hc11_elf_relax_section): Likewise.
159505caefcfSchristos	* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
159605caefcfSchristos	* elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
159705caefcfSchristos	* elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
159805caefcfSchristos	(microblaze_elf_check_relocs): Likewise.
159905caefcfSchristos	(microblaze_elf_finish_dynamic_symbol): Likewise.
160005caefcfSchristos	* elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
160105caefcfSchristos	* elf32-ppc.c (ppc_elf_tls_optimize): Likewise.
160205caefcfSchristos	* elf32-rx.c (rx_elf_relocate_section): Likewise.
160305caefcfSchristos	(elf32_rx_relax_delete_bytes, rx_offset_for_reloc): Likewise.
160405caefcfSchristos	(elf32_rx_relax_section): Likewise.
160505caefcfSchristos	* elf32-score.c (score_elf_got_offset_from_index): Likewise.
160605caefcfSchristos	(score_elf_final_link_relocate): Likewise.
160705caefcfSchristos	(s3_bfd_score_elf_relocate_section): Likewise.
160805caefcfSchristos	* elf32-score7.c (score_elf_got_offset_from_index): Likewise.
160905caefcfSchristos	(s7_bfd_score_elf_relocate_section): Likewise.
161005caefcfSchristos	* elf32-sh.c (sh_elf_check_relocs): Likewise.
161105caefcfSchristos	* elf32-spu.c (spu_elf_relocate_section): Likewise.
161205caefcfSchristos	* elf32-v850.c (v850_elf_check_relocs): Likewise.
161305caefcfSchristos	(find_remembered_hi16s_reloc): Likewise.
161405caefcfSchristos	* elf32-vax.c (elf32_vax_merge_private_bfd_data): Likewise.
161505caefcfSchristos	(elf_vax_relocate_section): Likewise.
161605caefcfSchristos	* elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
161705caefcfSchristos	* elf32-xtensa.c (xlate_offset_with_removed_text): Likewise.
161805caefcfSchristos	(move_literal): Likewise.
161905caefcfSchristos	* elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
162005caefcfSchristos	(elf64_hppa_check_relocs): Likewise.
162105caefcfSchristos	(elf64_hppa_finish_dynamic_symbol): Likewise.
162205caefcfSchristos	(elf64_hppa_relocate_section): Likewise.
162305caefcfSchristos	* elf64-mmix.c (mmix_elf_reloc, mmix_elf_relax_section): Likewise.
162405caefcfSchristos	* elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
162505caefcfSchristos	(ppc64_elf_edit_opd, ppc64_elf_edit_toc): Likewise.
162605caefcfSchristos	* elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
162705caefcfSchristos	(elfNN_vms_section_from_shdr): Likewise.
162805caefcfSchristos	* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
162905caefcfSchristos	(_bfd_sparc_elf_relocate_section): Likewise.
163005caefcfSchristos	* hp300hpux.c (slurp_symbol_table): Likewise.
163105caefcfSchristos	* i386lynx.c (swap_std_reloc_out, swap_std_reloc_in): Likewise.
163205caefcfSchristos	* mach-o.c (bfd_mach_o_write_thread): Likewise.
163305caefcfSchristos	* mmo.c (mmo_scan, mmo_write_symbols_and_terminator): Likewise.
163405caefcfSchristos	* nlm32-sparc.c (nlm_sparc_read_reloc): Likewise.
163505caefcfSchristos	* pdp11.c (pdp11_aout_link_input_section): Likewise.
163605caefcfSchristos	(aout_link_input_section, aout_link_input_bfd): Likewise.
163705caefcfSchristos	* pe-mips.c (mips_swap_reloc_out): Likewise.
163805caefcfSchristos	(coff_pe_mips_relocate_section): Likewise.
163905caefcfSchristos	* som.c (som_bfd_ar_write_symbol_stuff): Likewise.
164005caefcfSchristos	* vms-alpha.c (_bfd_vms_slurp_egsd): Likewise.
164105caefcfSchristos	* xsym.c (bfd_sym_fetch_type_information_table_ent): Likewise.
164205caefcfSchristos
164305caefcfSchristos	* coff-i860.c (i860_reloc_processing): Avoid set but unused warning.
164405caefcfSchristos	* coffcode.h (coff_compute_section_file_positions): Likewise.
164505caefcfSchristos	(coff_slurp_reloc_table): Likewise.
164605caefcfSchristos	* cpu-arm.c (arm_check_note): Likewise.
164705caefcfSchristos	* elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Likewise.
164805caefcfSchristos	* elf32-avr.c (elf32_avr_relocate_section): Likewise.
164905caefcfSchristos	* elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Likewise.
165005caefcfSchristos	* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
165105caefcfSchristos	* elf32-moxie.c (moxie_elf_relocate_section): Likewise.
165205caefcfSchristos	* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
165305caefcfSchristos	* elf32-sh64.c (_bfd_sh_align_load_span): Likewise.
165405caefcfSchristos	* ieee.c (parse_expression): Likewise.
165505caefcfSchristos	(ieee_slurp_external_symbols, drop_int): Likewise.
165605caefcfSchristos	* peXXigen.c (pe_print_pdata): Likewise.
165705caefcfSchristos	* versados.c (process_esd): Likewise.
165805caefcfSchristos
165905caefcfSchristos2010-06-25  Tristan Gingold  <gingold@adacore.com>
166005caefcfSchristos
166105caefcfSchristos	* vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with
166205caefcfSchristos	its flags.  Create an absolute section if needed.
166305caefcfSchristos
166405caefcfSchristos2010-06-25  Tristan Gingold  <gingold@adacore.com>
166505caefcfSchristos
166605caefcfSchristos	* vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of
166705caefcfSchristos	sections.  Mark .vmsdebug section as SEC_DEBUGGING.  Do not create
166805caefcfSchristos	dummy psect anymore.  Adjust.
166905caefcfSchristos	(_bfd_vms_write_eeom): Adjust (use target_index instead of index)
167005caefcfSchristos	(_bfd_vms_write_etir): Ditto.
167105caefcfSchristos	(start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of
167205caefcfSchristos	section name.  Adjust.
167305caefcfSchristos
167405caefcfSchristos2010-06-25  Tristan Gingold  <gingold@adacore.com>
167505caefcfSchristos
167605caefcfSchristos	* vms-alpha.c (alpha_vms_write_exec): Set linktime field.
167705caefcfSchristos
167805caefcfSchristos2010-06-25  Alan Modra  <amodra@gmail.com>
167905caefcfSchristos
168005caefcfSchristos	* elf64-ppc.c (toc_skip_enum): Define.
168105caefcfSchristos	(ppc64_elf_edit_toc): Use two low bits of skip array as markers.
168205caefcfSchristos	Optimize largetoc sequences.
168305caefcfSchristos	(adjust_toc_syms): Update for skip array change.
168405caefcfSchristos	(ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT.
168505caefcfSchristos
168605caefcfSchristos2010-06-25  Alan Modra  <amodra@gmail.com>
168705caefcfSchristos
168805caefcfSchristos	* elf64-ppc.c (is_static_defined): New function.
168905caefcfSchristos	(get_tls_mask, ppc_type_of_stub): Use it here.
169005caefcfSchristos	(ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input.
169105caefcfSchristos	(ppc64_elf_tls_setup): Typo fix.
169205caefcfSchristos	(adjust_toc_syms): Correctly handle symbols defined past the end
169305caefcfSchristos	of the toc.  Move syms on removed entries to next entry rather
169405caefcfSchristos	than to start of toc.
169505caefcfSchristos	(ppc64_elf_edit_toc): Likewise.  Ensure we only attempt to
169605caefcfSchristos	edit ppc64 input.  Allocate one extra word in skip array.
169705caefcfSchristos	Honour info->keep_memory when reading relocs if we can.
169805caefcfSchristos	Adjust toc relocs after adjusting symbols.
169905caefcfSchristos
170005caefcfSchristos2010-06-23  Nathan Sidwell  <nathan@codesourcery.com>
170105caefcfSchristos
170205caefcfSchristos	* archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
170305caefcfSchristos	when scaning map.
170405caefcfSchristos
170505caefcfSchristos2010-06-17  Tristan Gingold  <gingold@adacore.com>
170605caefcfSchristos
170705caefcfSchristos	* Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ...
170805caefcfSchristos	(BFD64_BACKENDS_CFILES): ... here.
170905caefcfSchristos	(BFD32_BACKENDS): Move vms-alpha.lo to ...
171005caefcfSchristos	(BFD64_BACKENDS): ... here.
171105caefcfSchristos	* Makefile.in: Regenerate.
171205caefcfSchristos
171305caefcfSchristos2010-06-15  Joseph Myers  <joseph@codesourcery.com>
171405caefcfSchristos
171505caefcfSchristos	* elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2.
171605caefcfSchristos	* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type,
171705caefcfSchristos	elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes,
171805caefcfSchristos	elf32_tic6x_merge_private_bfd_data): New.
171905caefcfSchristos	(bfd_elf32_bfd_merge_private_bfd_data,
172005caefcfSchristos	elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section,
172105caefcfSchristos	elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor):
172205caefcfSchristos	Define.
172305caefcfSchristos	* elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare.
172405caefcfSchristos
172505caefcfSchristos2010-06-15  Joseph Myers  <joseph@codesourcery.com>
172605caefcfSchristos
172705caefcfSchristos	* elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
172805caefcfSchristos	(struct elf_backend_data): Update comment on obj_attrs_order.
172905caefcfSchristos	* elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
173005caefcfSchristos	_bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
173105caefcfSchristos	instead of hardcoded 4.
173205caefcfSchristos	* elf32-arm.c (elf32_arm_obj_attrs_order): Use
173305caefcfSchristos	LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
173405caefcfSchristos	instead of hardcoded 4 and 5.
173505caefcfSchristos	(elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
173605caefcfSchristos	instead of hardcoded 4.
173705caefcfSchristos
173805caefcfSchristos2010-06-14  Kevin Buettner  <kevinb@redhat.com>
173905caefcfSchristos
174005caefcfSchristos	* elf32-h8300.c (elf_symbol_leading_char): Define.
174105caefcfSchristos
174205caefcfSchristos2010-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
174305caefcfSchristos
174405caefcfSchristos	* vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
174505caefcfSchristos
174605caefcfSchristos2010-06-11  Tristan Gingold  <gingold@adacore.com>
174705caefcfSchristos
174805caefcfSchristos	* vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
174905caefcfSchristos	sections to 0.
175005caefcfSchristos
175105caefcfSchristos2010-06-11  Tristan Gingold  <gingold@adacore.com>
175205caefcfSchristos
175305caefcfSchristos	* vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.
175405caefcfSchristos
175505caefcfSchristos2010-06-11  Tristan Gingold  <gingold@adacore.com>
175605caefcfSchristos
175705caefcfSchristos	* vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
175805caefcfSchristos	Adjust cast.
175905caefcfSchristos	(_bfd_vms_output_dump): Make DATA argument const, adjust cast.
176005caefcfSchristos	* vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
176105caefcfSchristos	* vms-alpha.c (evax_section_flags): Make it const.
176205caefcfSchristos	(vms_secflag_by_name): Remove unused ABFD argument.
176305caefcfSchristos	Make SECTION_FLAGS and NAME arguments const. Clarify comment.
176405caefcfSchristos	(vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
176505caefcfSchristos	(_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
176605caefcfSchristos	(_bfd_vms_write_egsd): Remove useless cast.
176705caefcfSchristos
176805caefcfSchristos2010-06-10  Tristan Gingold  <gingold@adacore.com>
176905caefcfSchristos
177005caefcfSchristos	* config.bfd: Remove #if/#endif so that som can be compiled on any
177105caefcfSchristos	host.
177205caefcfSchristos	* targets.c (_bfd_target_vector): Remove #if/#endif so that som
177305caefcfSchristos	can be used on any host.
177405caefcfSchristos
177505caefcfSchristos2010-06-10  Tristan Gingold  <gingold@adacore.com>
177605caefcfSchristos
177705caefcfSchristos	* som.c: Can now be compiled on any host.
177805caefcfSchristos	Include bfd headers instead of system one.
177905caefcfSchristos	(som_compute_checksum): Parameter is now a pointer to a
178005caefcfSchristos	som_external_header structure.  Adjust.
178105caefcfSchristos	(struct section_to_type): Field section is now const.
178205caefcfSchristos	(R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional
178305caefcfSchristos	definition.
178405caefcfSchristos	(R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto.
178505caefcfSchristos	(R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto.
178605caefcfSchristos	(som_swap_clock_in, som_swap_clock_out): New functions.
178705caefcfSchristos	(som_swap_header_in, som_swap_header_out): Likewise.
178805caefcfSchristos	(som_swap_space_dictionary_in): Likewise.
178905caefcfSchristos	(som_swap_space_dictionary_out): Likewise.
179005caefcfSchristos	(som_swap_subspace_dictionary_in): Likewise.
179105caefcfSchristos	(som_swap_subspace_dictionary_record_out): Likewise.
179205caefcfSchristos	(som_swap_aux_id_in, som_swap_aux_id_out): Likewise.
179305caefcfSchristos	(som_swap_string_auxhdr_out): Likewise.
179405caefcfSchristos	(som_swap_compilation_unit_out): Likewise.
179505caefcfSchristos	(som_swap_exec_auxhdr_in): Likewise.
179605caefcfSchristos	(som_swap_exec_auxhdr_out): Likewise.
179705caefcfSchristos	(som_swap_lst_header_in): Likewise.
179805caefcfSchristos	(som_object_setup): Adjust parameter type using bfd types.
179905caefcfSchristos	(setup_sections): Likewise.  Ditto for object file types.
180005caefcfSchristos	Use intermediate variables for external representation and use the
180105caefcfSchristos	swap functions to convert.
180205caefcfSchristos	(som_object_p): Ditto.  Remove #ifdef/#endif on always defined
180305caefcfSchristos	macros.
180405caefcfSchristos	(som_prep_headers): Likewise.
180505caefcfSchristos	(som_write_symbol_strings): Likewise.
180605caefcfSchristos	(som_begin_writing): Likewise.
180705caefcfSchristos	(som_finish_writing): Likewise.
180805caefcfSchristos	(som_build_and_write_symbol_table): Likewise.
180905caefcfSchristos	(bfd_section_from_som_symbol): Likewise.
181005caefcfSchristos	(som_slurp_symbol_table): Likewise.
181105caefcfSchristos	(som_bfd_print_private_bfd_data): Likewise.
181205caefcfSchristos	(bfd_som_attach_aux_hdr): Likewise.  Clear the padding.
181305caefcfSchristos	(bfd_som_attach_compilation_unit): Likewise.
181405caefcfSchristos	(som_bfd_count_ar_symbols): Likewise.
181505caefcfSchristos	(som_bfd_fill_in_ar_symbols): Likewise.
181605caefcfSchristos	(som_slurp_armap): Likewise.
181705caefcfSchristos	(som_bfd_ar_write_symbol_stuff): Likewise.
181805caefcfSchristos	(som_write_armap): Likewise.  Use _bfd_ar_spacepad instead of
181905caefcfSchristos	sprintf to write header fields.
182005caefcfSchristos	* som.h: Include bfd headers instead of system one.
182105caefcfSchristos	(FILE_HDR_SIZE, AUX_HDR_SIZE): Removed.
182205caefcfSchristos	(struct somdata): Use bfd structures instead of system ones.
182305caefcfSchristos	(struct som_section_data_struct): Likewise.
182405caefcfSchristos	(struct som_subspace_dictionary_record): Removed (now in
182505caefcfSchristos	include/som/internal.h)
182605caefcfSchristos
182705caefcfSchristos2010-06-10  Tristan Gingold  <gingold@adacore.com>
182805caefcfSchristos
182905caefcfSchristos	* targets.c (bfd_target_list): Remove hp/ux compiler work-around
183005caefcfSchristos	as bfd requires an ANSI-C compiler.
183105caefcfSchristos
183205caefcfSchristos2010-06-09 Tristan Gingold  <gingold@adacore.com>
183305caefcfSchristos
183405caefcfSchristos	* bfdio.c (bfd_bread): Fix the code to prevent reading past the
183505caefcfSchristos	end of archive members.
183605caefcfSchristos
183705caefcfSchristos2010-06-08  Tristan Gingold  <gingold@adacore.com>
183805caefcfSchristos
183905caefcfSchristos	* som.c (som_bfd_free_cached_info): Do not free relocations as
184005caefcfSchristos	they were allocated with bfd_zalloc.
184105caefcfSchristos
184205caefcfSchristos2010-06-08  Tristan Gingold  <gingold@adacore.com>
184305caefcfSchristos
184405caefcfSchristos	* vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
184505caefcfSchristos	for the first block.
184605caefcfSchristos
184705caefcfSchristos2010-06-08  Tristan Gingold  <gingold@adacore.com>
184805caefcfSchristos
184905caefcfSchristos	* vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
185005caefcfSchristos	* libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
185105caefcfSchristos	* libbfd.h: Regenerate.
185205caefcfSchristos	* elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
185305caefcfSchristos	(bfd_elfNN_mkarchive): Ditto.
185405caefcfSchristos
185505caefcfSchristos2010-06-02  Tristan Gingold  <gingold@adacore.com>
185605caefcfSchristos
185705caefcfSchristos	* vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
185805caefcfSchristos
185905caefcfSchristos2010-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
186005caefcfSchristos
186105caefcfSchristos	* configure: Regenerate.
186205caefcfSchristos
186305caefcfSchristos2010-06-01  Tristan Gingold  <gingold@adacore.com>
186405caefcfSchristos
186505caefcfSchristos	* vms-alpha.c (struct vms_private_data_struct): Add
186605caefcfSchristos	transfer_address field.  Remove unused dst_info field.
186705caefcfSchristos	(alpha_vms_write_exec): Use transfer_address.
186805caefcfSchristos	(_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE.
186905caefcfSchristos	(alpha_vms_bfd_final_link): Set transfer_address.
187005caefcfSchristos
187105caefcfSchristos2010-05-31  Tristan Gingold  <gingold@adacore.com>
187205caefcfSchristos
187305caefcfSchristos	* vms-lib.c (credat_lo, credat_hi): New fields.
187405caefcfSchristos	(vms_read_block): Adjust comments.
187505caefcfSchristos	(vms_write_block): New function.
187605caefcfSchristos	(_bfd_vms_lib_archive_p): Decode majorid once.  Replace some
187705caefcfSchristos	hard-coded values with constants.  Set credat_lo and credat_hi.
187805caefcfSchristos	(_bfd_vms_lib_mkarchive): Add argument kind.
187905caefcfSchristos	Set ver, mhd_size and type according to kind.
188005caefcfSchristos	(_bfd_vms_lib_alpha_mkarchive): New function.
188105caefcfSchristos	(struct lib_index): Renamed from struct vms_index
188205caefcfSchristos	(lib_index_cmp): Renamed from vms_index_cmp.  Adjusted.
188305caefcfSchristos	(get_idxlen): Type of idx argument adjusted.  Add is_elfidx
188405caefcfSchristos	argument and handle it.
188505caefcfSchristos	(vms_write_index): Adjust argument idx.  Handle elf indexes.
188605caefcfSchristos	(_bfd_vms_lib_build_map): Adjust type of arguments modules and res.
188705caefcfSchristos	(_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and
188805caefcfSchristos	use it.  Handle elf indexes.  Set credat.
188905caefcfSchristos	* libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ...
189005caefcfSchristos	(_bfd_vms_lib_alpha_mkarchive): ... this.
189105caefcfSchristos	* libbfd.h: Regenerated.
189205caefcfSchristos	* vms-alpha.c (vms_alpha_vec): Adjust after previous renaming.
189305caefcfSchristos
189405caefcfSchristos2010-05-28  Sterling Augustine  <sterling@tensilica.com>
189505caefcfSchristos
189605caefcfSchristos	* elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
189705caefcfSchristos	of code to change the bits in the instructions to match the changes
189805caefcfSchristos	in the relocations.  Declare dest_addr and sym_sec to help.
189905caefcfSchristos
190005caefcfSchristos2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
190105caefcfSchristos
190205caefcfSchristos	Workaround GCC PR middle-end/4210.
190305caefcfSchristos	* vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2]
190405caefcfSchristos	and val[3].
190505caefcfSchristos
190605caefcfSchristos2010-05-27  Tristan Gingold  <gingold@adacore.com>
190705caefcfSchristos
190805caefcfSchristos	* vms-misc.c: Define __NEW_STARLET.  Remove trailing spaces.
190905caefcfSchristos	(VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros.
191005caefcfSchristos	(vms_time_to_time_t): Use them instead of local const.
191105caefcfSchristos	(vms_time_t_to_vms_time): New function.
191205caefcfSchristos	(vms_get_time): Likewise.
191305caefcfSchristos	(vms_raw_get_time): Likewise.
191405caefcfSchristos	* vms.h	(vms_time_t_to_vms_time): New declaration.
191505caefcfSchristos	(vms_get_time): Likewise.
191605caefcfSchristos	(vms_raw_get_time): Likewise.
191705caefcfSchristos
191805caefcfSchristos2010-05-26  Tristan Gingold  <gingold@adacore.com>
191905caefcfSchristos
192005caefcfSchristos	* vms-alpha.c: Update comments.
192105caefcfSchristos	(alpha_vms_write_exec): Set lnkflags.  Write the GST.
192205caefcfSchristos	(alpha_vms_link_output_symbol): New function.
192305caefcfSchristos	(alpha_vms_bfd_final_link): Generate the VMS symbol table.
192405caefcfSchristos	Set dst_section private field.
192505caefcfSchristos	(alpha_vms_bfd_final_link): Remove code that set dst_section.
192605caefcfSchristos
192705caefcfSchristos2010-05-26  Tristan Gingold  <gingold@adacore.com>
192805caefcfSchristos
192905caefcfSchristos	* bfdio.c: Declare and define _bfd_memory_iovec.
193005caefcfSchristos	(bfd_bread): Move code for BFD_IN_MEMORY...
193105caefcfSchristos	(bfd_bwrite): ... Ditto ...
193205caefcfSchristos	(bfd_tell): ... Ditto ...
193305caefcfSchristos	(bfd_flush): ... Ditto ...
193405caefcfSchristos	(bfd_stat): ... Ditto ...
193505caefcfSchristos	(bfd_seek): ... Ditto ...
193605caefcfSchristos	(bfd_get_size): ... Ditto ...
193705caefcfSchristos	(bfd_mmap): ... Ditto ...
193805caefcfSchristos	(memory_bread): ... to these new functions.
193905caefcfSchristos	(memory_bwrite): Ditto.
194005caefcfSchristos	(memory_btell): Ditto.
194105caefcfSchristos	(memory_bseek): Ditto.
194205caefcfSchristos	(memory_bflush): Ditto.
194305caefcfSchristos	(memory_bstat): Ditto.
194405caefcfSchristos	(memory_bmmap): Ditto.
194505caefcfSchristos	(memory_bclose): New function.
194605caefcfSchristos	* peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
194705caefcfSchristos	* xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
194805caefcfSchristos	* opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
194905caefcfSchristos	(bfd_make_writable): Use _bfd_memory_iovec.
195005caefcfSchristos	* elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
195105caefcfSchristos	* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
195205caefcfSchristos	_bfd_memory_iovec.
195305caefcfSchristos	(alpha_ecoff_openr_next_archived_file): Use proxy_origin
195405caefcfSchristos	instead of origin.
195505caefcfSchristos	* libbfd.h: Regenerate.
195605caefcfSchristos
195705caefcfSchristos2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
195805caefcfSchristos	    Joseph Myers  <joseph@codesourcery.com>
195905caefcfSchristos	    Andrew Stubbs  <ams@codesourcery.com>
196005caefcfSchristos
196105caefcfSchristos	* config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
196205caefcfSchristos	bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
196305caefcfSchristos	* configure.in: Handle FDPIC vectors.
196405caefcfSchristos	* elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
196505caefcfSchristos	* elf32-sh.c (DEFAULT_STACK_SIZE): Define.
196605caefcfSchristos	(SYMBOL_FUNCDESC_LOCAL): Define.  Use it instead of
196705caefcfSchristos	SYMBOL_REFERENCES_LOCAL for function descriptors.
196805caefcfSchristos	(fdpic_object_p): New.
196905caefcfSchristos	(sh_reloc_map): Add FDPIC and movi20 relocations.
197005caefcfSchristos	(sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
197105caefcfSchristos	range.
197205caefcfSchristos	(struct elf_sh_plt_info): Add got20 and short_plt.  Update all
197305caefcfSchristos	definitions.
197405caefcfSchristos	(FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
197505caefcfSchristos	(fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
197605caefcfSchristos	(FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
197705caefcfSchristos	(fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
197805caefcfSchristos	(fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
197905caefcfSchristos	New.
198005caefcfSchristos	(get_plt_info): Handle FDPIC.
198105caefcfSchristos	(MAX_SHORT_PLT): Define.
198205caefcfSchristos	(get_plt_index, get_plt_offset): Handle short_plt.
198305caefcfSchristos	(union gotref): New.
198405caefcfSchristos	(struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
198505caefcfSchristos	got_type and adjust all uses.  Add GOT_FUNCDESC.
198605caefcfSchristos	(struct sh_elf_obj_tdata): Add local_funcdesc.	Rename
198705caefcfSchristos	local_got_tls_type to local_got_type.
198805caefcfSchristos	(sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type.  All
198905caefcfSchristos	users changed.
199005caefcfSchristos	(sh_elf_local_funcdesc): Define.
199105caefcfSchristos	(struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
199205caefcfSchristos	and srofixup.
199305caefcfSchristos	(sh_elf_link_hash_newfunc): Initialize new fields.
199405caefcfSchristos	(sh_elf_link_hash_table_create): Set fdpic_p.
199505caefcfSchristos	(sh_elf_omit_section_dynsym): New.
199605caefcfSchristos	(create_got_section): Create .got.funcdesc, .rela.got.funcdesc
199705caefcfSchristos	and .rofixup.
199805caefcfSchristos	(allocate_dynrelocs): Allocate local function descriptors and space
199905caefcfSchristos	for R_SH_FUNCDESC-related relocations, and for rofixups.
200005caefcfSchristos	Handle GOT_FUNCDESC.  Create fixups.  Handle GOT entries which
200105caefcfSchristos	require function descriptors.
200205caefcfSchristos	(sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
200305caefcfSchristos	(sh_elf_modify_program_headers): New.
200405caefcfSchristos	(sh_elf_size_dynamic_sections): Allocate function descriptors for
200505caefcfSchristos	local symbols.  Allocate .got.funcdesc contents.  Allocate rofixups.
200605caefcfSchristos	Handle local GOT entries of type GOT_FUNCDESC.	Create fixups for
200705caefcfSchristos	local GOT entries.  Ensure that FDPIC libraries always have a PLTGOT
200805caefcfSchristos	entry in the .dynamic section.
200905caefcfSchristos	(sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
201005caefcfSchristos	(sh_elf_add_rofixup, sh_elf_osec_to_segment)
201105caefcfSchristos	(sh_elf_osec_readonly_p, install_movi20_field): New functions.
201205caefcfSchristos	(sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
201305caefcfSchristos	R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC.  Use sh_elf_got_offset
201405caefcfSchristos	and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_.	Add rofixup
201505caefcfSchristos	read-only section warnings.  Handle undefined weak symbols.  Generate
201605caefcfSchristos	fixups for R_SH_DIR32 and GOT entries.	Check for cross-segment
201705caefcfSchristos	relocations and clear EF_SH_PIC.  Handle 20-bit relocations.
201805caefcfSchristos	Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
201905caefcfSchristos	(sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
202005caefcfSchristos	R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
202105caefcfSchristos	Handle 20-bit relocations.
202205caefcfSchristos	(sh_elf_copy_indirect_symbol): Copy function descriptor reference
202305caefcfSchristos	counts.
202405caefcfSchristos	(sh_elf_check_relocs): Handle new relocations.  Make symbols
202505caefcfSchristos	dynamic for FDPIC relocs.  Account for rofixups.  Error for FDPIC
202605caefcfSchristos	symbol mismatches.  Allocate a GOT for R_SH_DIR32. Allocate fixups
202705caefcfSchristos	for R_SH_DIR32.
202805caefcfSchristos	(sh_elf_copy_private_data): Copy PT_GNU_STACK size.
202905caefcfSchristos	(sh_elf_merge_private_data): Copy initial flags.  Do not clobber
203005caefcfSchristos	non-mach flags.  Set EF_SH_PIC for FDPIC.  Reject FDPIC mismatches.
203105caefcfSchristos	(sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
203205caefcfSchristos	here.  Rename sgot to sgotplt and srel to srelplt.  Handle short_plt,
203305caefcfSchristos	FDPIC descriptors, and got20.  Create R_SH_FUNCDESC_VALUE for FDPIC.
203405caefcfSchristos	Use install_movi20_field.  Rename srel to srelgot.  Always generate
203505caefcfSchristos	R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
203605caefcfSchristos	(sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
203705caefcfSchristos	Do not fill in reserved GOT entries for FDPIC.	Correct DT_PLTGOT.
203805caefcfSchristos	Rename sgot to sgotplt.  Assert that the right number of rofixups
203905caefcfSchristos	and dynamic relocations were allocated.
204005caefcfSchristos	(sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
204105caefcfSchristos	(elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
204205caefcfSchristos	(elf_backend_can_make_relative_eh_frame)
204305caefcfSchristos	(elf_backend_can_make_lsda_relative_eh_frame)
204405caefcfSchristos	(elf_backend_encode_eh_address): Define.
204505caefcfSchristos	(TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
204605caefcfSchristos	(TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
204705caefcfSchristos	Redefine for FDPIC vector.
204805caefcfSchristos	* reloc.c: Add SH FDPIC and movi20 relocations.
204905caefcfSchristos	* targets.c (_bfd_target_vector): Add FDPIC vectors.
205005caefcfSchristos	* configure, bfd-in2.h, libbfd.h: Regenerated.
205105caefcfSchristos
205205caefcfSchristos2010-05-25  Jay Krell  <jay.krell@cornell.edu>
205305caefcfSchristos
205405caefcfSchristos	PR ld/11624
205505caefcfSchristos	* archive.c (_bfd_calloc_wrapper): New function.
205605caefcfSchristos	(_bfd_add_bfd_to_archive_cache): Use it.
205705caefcfSchristos
205805caefcfSchristos	* configure.in: Add alpha*-*-*vms* to list of natives.
205905caefcfSchristos	* configure: Regenerate.
206005caefcfSchristos
206105caefcfSchristos	* vms-misc.c: Define globalref if necessary.
206205caefcfSchristos	(vms_convert_to_var_unix_filename): Rename to
206305caefcfSchristos	_bfd_vms_convert_to_var_unix_filename and export.
206405caefcfSchristos	* vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename.
206505caefcfSchristos	* vms-alpha.c (vms_close_and_cleanup): Update invocation of
206605caefcfSchristos	vms_convert_to_var_unix_filename.
206705caefcfSchristos
206805caefcfSchristos2010-05-24  Tristan Gingold  <gingold@adacore.com>
206905caefcfSchristos
207005caefcfSchristos	* vms-alpha.c (add_symbol_entry): New function extrated from ...
207105caefcfSchristos	(add_symbol): ... adjusted.
207205caefcfSchristos
207305caefcfSchristos2010-05-24  Tristan Gingold  <gingold@adacore.com>
207405caefcfSchristos
207505caefcfSchristos	* vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
207605caefcfSchristos	(alpha_vms_write_exec): Add a comment.
207705caefcfSchristos	(_bfd_vms_write_egsd): Ditto.
207805caefcfSchristos	(alpha_vms_convert_symbol): Remove a blank line.
207905caefcfSchristos
208005caefcfSchristos2010-05-21  Tristan Gingold  <gingold@adacore.com>
208105caefcfSchristos
208205caefcfSchristos	* vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
208305caefcfSchristos	for the GST.
208405caefcfSchristos
208505caefcfSchristos2010-05-21  Tristan Gingold  <gingold@adacore.com>
208605caefcfSchristos
208705caefcfSchristos	* vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and
208805caefcfSchristos	SEC_LOAD if isect has data.
208905caefcfSchristos	(vms_get_symbol_info): Refine the condition for 'T' type.
209005caefcfSchristos
209105caefcfSchristos2010-05-18  Tristan Gingold  <gingold@adacore.com>
209205caefcfSchristos
209305caefcfSchristos	* vms-alpha.c (_bfd_vms_write_emh): New function.
209405caefcfSchristos	(_bfd_vms_write_lmn): New function.
209505caefcfSchristos	(_bfd_vms_write_eeom): Moved.
209605caefcfSchristos	(hash_string): Likewise.
209705caefcfSchristos	(_bfd_vms_length_hash_symbol): Likewise.
209805caefcfSchristos	(_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
209905caefcfSchristos	and _bfd_vms_write_lmn, and call these functions.
210005caefcfSchristos
210105caefcfSchristos2010-05-18  Tristan Gingold  <gingold@adacore.com>
210205caefcfSchristos
210305caefcfSchristos	* vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
210405caefcfSchristos	Add details in the messages.
210505caefcfSchristos	(evax_bfd_print_image): Change message.
210605caefcfSchristos
210705caefcfSchristos2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>
210805caefcfSchristos
210905caefcfSchristos	PR gas/11600
211005caefcfSchristos	* elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
211105caefcfSchristos	(elf_fake_sections): Likewise.
211205caefcfSchristos
211305caefcfSchristos	* elf32-i370.c (i370_elf_section_from_shdr): Don't handle
211405caefcfSchristos	SHF_EXCLUDE here.
211505caefcfSchristos	* elf32-ppc.c (ppc_elf_fake_sections): Likewise.
211605caefcfSchristos
211705caefcfSchristos2010-05-17  Tristan Gingold  <gingold@adacore.com>
211805caefcfSchristos
211905caefcfSchristos	* vms-alpha.c: Include esgps.h and eidc.h.
212005caefcfSchristos	(_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
212105caefcfSchristos	(evax_bfd_print_egsd_flags): New function, extracted from ...
212205caefcfSchristos	(evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags.  Handles
212305caefcfSchristos	EGSD__C_SPSC and EGSD__C_IDC.
212405caefcfSchristos
212505caefcfSchristos2010-05-14  Tristan Gingold  <gingold@adacore.com>
212605caefcfSchristos
212705caefcfSchristos	* vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
212805caefcfSchristos	(_bfd_vms_get_object_record): Handle align byte only in the
212905caefcfSchristos	foreign case.
213005caefcfSchristos
213105caefcfSchristos2010-05-14  Tristan Gingold  <gingold@adacore.com>
213205caefcfSchristos
213305caefcfSchristos	* vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
213405caefcfSchristos	* libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
213505caefcfSchristos	* libbfd.h: Regenerate.
213605caefcfSchristos	* configure.in (havevecs): Define HAVE_all_vecs when
213705caefcfSchristos	--enable-targets=all is set.  Use AC_SUBST on it.
213805caefcfSchristos	(tdefaults): Do not add havevecs.
213905caefcfSchristos	(bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
214005caefcfSchristos	* configure: Regenerate.
214105caefcfSchristos	* Makefile.am (HAVEVECS): New variable.
214205caefcfSchristos	(INCLUDES): Add HAVEVECS.
214305caefcfSchristos	* Makefile.in: Regenerate.
214405caefcfSchristos	* elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
214505caefcfSchristos	target is selected.  Add #ifdef/#endif around vms specific code.
214605caefcfSchristos	(bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
214705caefcfSchristos	bfd_elfNN_archive_slurp_extended_name_table,
214805caefcfSchristos	bfd_elfNN_archive_construct_extended_name_table,
214905caefcfSchristos	bfd_elfNN_archive_truncate_arname,
215005caefcfSchristos	bfd_elfNN_archive_write_armap,
215105caefcfSchristos	bfd_elfNN_archive_read_ar_hdr,
215205caefcfSchristos	bfd_elfNN_archive_write_ar_hdr,
215305caefcfSchristos	bfd_elfNN_archive_openr_next_archived_file,
215405caefcfSchristos	bfd_elfNN_archive_get_elt_at_index,
215505caefcfSchristos	bfd_elfNN_archive_generic_stat_arch_elt,
215605caefcfSchristos	bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
215705caefcfSchristos
215805caefcfSchristos2010-05-11  Jie Zhang  <jie@codesourcery.com>
215905caefcfSchristos
216005caefcfSchristos	* elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
216105caefcfSchristos	Tag_ABI_HardFP_use correctly.
216205caefcfSchristos
216305caefcfSchristos2010-05-11  Alan Modra  <amodra@gmail.com>
216405caefcfSchristos
216505caefcfSchristos	* coffcode.h (coff_write_object_contents): Enclose all occurrences
216605caefcfSchristos	of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
216705caefcfSchristos
216805caefcfSchristos2010-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
216905caefcfSchristos
217005caefcfSchristos	* elf32-arm.c (struct a8_erratum_reloc): Add hash member.  Move
217105caefcfSchristos	sym_name to improve packing.
217205caefcfSchristos	(cortex_a8_erratum_scan): Check for PLT entries.
217305caefcfSchristos	(elf32_arm_size_stubs): Save the target symbol for a8 relocs.
217405caefcfSchristos
217505caefcfSchristos2010-05-07  Tristan Gingold  <gingold@adacore.com>
217605caefcfSchristos
217705caefcfSchristos	* Makefile.in: Regenerate with automake 1.11.1.
217805caefcfSchristos	* aclocal.m4: Ditto.
217905caefcfSchristos
218005caefcfSchristos2010-05-05  Nick Clifton  <nickc@redhat.com>
218105caefcfSchristos
218205caefcfSchristos	* po/es.po: Updated Spanish translation.
218305caefcfSchristos
218405caefcfSchristos2010-05-03  Tristan Gingold  <gingold@adacore.com>
218505caefcfSchristos
218605caefcfSchristos	* vms-lib.c (vms_lib_bopen): Fix the size threshold to read
218705caefcfSchristos	selective_search flag.
218805caefcfSchristos	Add comments.
218905caefcfSchristos	* vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
219005caefcfSchristos	before output_has_begun is set.
219105caefcfSchristos
219205caefcfSchristos2010-05-03  Tristan Gingold  <gingold@adacore.com>
219305caefcfSchristos
219405caefcfSchristos	* vms-alpha.c: Add comments.
219505caefcfSchristos	(struct vms_private_data_struct): Remove image_autoextend field.
219605caefcfSchristos	(dst_check_allocation): Removed.
219705caefcfSchristos	(image_write): Remove call to dst_check_allocation.
219805caefcfSchristos	(vms_slurp_debug): Do not set image_autoextend.  Adjust section
219905caefcfSchristos	size.
220005caefcfSchristos	(_bfd_vms_slurp_object_records): Remove useless new_type variable.
220105caefcfSchristos	(alpha_vms_write_exec): Use dst_section to get the dst section.
220205caefcfSchristos	Write the dmt section.
220305caefcfSchristos	(evax_bfd_print_image): Also print the dst size in hexa.  Fix typo.
220405caefcfSchristos	(alpha_vms_read_sections_content): Do not set image_autoextend.
220505caefcfSchristos	(alpha_vms_bfd_final_link): Generate the dst.
220605caefcfSchristos
220705caefcfSchristos2010-05-03  Tristan Gingold  <gingold@adacore.com>
220805caefcfSchristos
220905caefcfSchristos	* vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
221005caefcfSchristos	next array.
221105caefcfSchristos	(vms_lib_dcx): Adjust for the above change.
221205caefcfSchristos
221305caefcfSchristos2010-04-30  H.J. Lu  <hongjiu.lu@intel.com>
221405caefcfSchristos
221505caefcfSchristos	PR ld/11542
221605caefcfSchristos	* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
221705caefcfSchristos
221805caefcfSchristos	* elf32-i386.c (elf_i386_relocate_section): Use it.
221905caefcfSchristos	* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
222005caefcfSchristos
222105caefcfSchristos2010-04-30  Tristan Gingold  <gingold@adacore.com>
222205caefcfSchristos
222305caefcfSchristos	* vms-lib.c (vms_read_block): New function.
222405caefcfSchristos	(vms_traverse_index): Use vms_read_block.  Handle long key names.
222505caefcfSchristos
222605caefcfSchristos2010-04-30  Tristan Gingold  <gingold@adacore.com>
222705caefcfSchristos
222805caefcfSchristos	* vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
222905caefcfSchristos	and syms removed.
223005caefcfSchristos	(struct carsym_mem): New structure.
223105caefcfSchristos	(vms_add_index): New function.
223205caefcfSchristos	(vms_add_indexes_from_list): New function.
223305caefcfSchristos	(vms_traverse_index): Parameter carsym changed to carsym_mem.
223405caefcfSchristos	Code adjusted to handle elfidx.
223505caefcfSchristos	(vms_lib_read_index): Adjusted for vms_traverse_index changes.
223605caefcfSchristos	Parameter NBREL is now a pointer.
223705caefcfSchristos	(_bfd_vms_lib_archive_p): Adjust for above change.  Handle ia64
223805caefcfSchristos	archives.
223905caefcfSchristos	(_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
224005caefcfSchristos	(_bfd_vms_lib_find_symbol): Ditto.
224105caefcfSchristos	(vms_lib_bopen): Fix two typos: return FALSE in case of error,
224205caefcfSchristos	check MHD id.
224305caefcfSchristos	(_bfd_vms_lib_get_module): New function.
224405caefcfSchristos	(_bfd_vms_lib_get_elt_at_index): Rewritten using the above
224505caefcfSchristos	function.
224605caefcfSchristos	(_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
224705caefcfSchristos	(_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
224805caefcfSchristos	(vms_write_index): Adjust for structure renamed.
224905caefcfSchristos	* vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
225005caefcfSchristos	changes of _bfd_vms_lib_find_symbol.
225105caefcfSchristos
225205caefcfSchristos2010-04-28  Kai Tietz  <kai.tietz@onevision.com>
225305caefcfSchristos
225405caefcfSchristos	* config.bfd: Correct accidential reverted patch
225505caefcfSchristos	about vax*-*-*vms*.
225605caefcfSchristos
225705caefcfSchristos2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
225805caefcfSchristos
225905caefcfSchristos	* pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
226005caefcfSchristos	to USE_MINGW64_LEADING_UNDERSCORES.
226105caefcfSchristos	* pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
226205caefcfSchristos	* config.bfd: Change underscoring default for x64 mingw
226305caefcfSchristos	to false.
226405caefcfSchristos	* coffcode.h (coff_write_relocs): Add check that dereferenced
226505caefcfSchristos	sym_ptr_ptr isn't NULL.
226605caefcfSchristos	* config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
226705caefcfSchristos	* configure: Regenerated.
226805caefcfSchristos	* configure.in: Add option '--enable-leading-mingw64-underscores'
226905caefcfSchristos	and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
227005caefcfSchristos
227105caefcfSchristos2010-04-27  Nick Clifton  <nickc@redhat.com>
227205caefcfSchristos
227305caefcfSchristos	PR binutils/11512
227405caefcfSchristos	* coffgen.c (coff_find_nearest_line): Incldue the section address
227505caefcfSchristos	of function name symbols in address comparisons.
227605caefcfSchristos
227705caefcfSchristos2010-04-27  Nick Clifton  <nickc@redhat.com>
227805caefcfSchristos
227905caefcfSchristos	* po/fr.po: Updated French translation.
228005caefcfSchristos
228105caefcfSchristos2010-04-23  Alan Modra  <amodra@gmail.com>
228205caefcfSchristos
228305caefcfSchristos	* elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
228405caefcfSchristos	ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
228505caefcfSchristos	throughout file.
228605caefcfSchristos	(assign_file_positions_for_load_sections): Modify section in
228705caefcfSchristos	segment warning to ignore overlay vmas.
228805caefcfSchristos	* elf32-spu.c (spu_elf_object_p): Replace use of
228905caefcfSchristos	ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
229005caefcfSchristos
229105caefcfSchristos2010-04-22  Nick Clifton  <nickc@redhat.com>
229205caefcfSchristos
229305caefcfSchristos	* po/bfd.pot: Updated by the Translation project.
229405caefcfSchristos	* po/vi.po: Updated Vietnamese translation.
229505caefcfSchristos
229605caefcfSchristos2010-04-22  Alan Modra  <amodra@gmail.com>
229705caefcfSchristos
229805caefcfSchristos	* elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
229905caefcfSchristos	change.  Tidy.  Don't error on sections not allocated in segment.
230005caefcfSchristos
230105caefcfSchristos2010-04-15  Andrew Haley  <aph@redhat.com>
230205caefcfSchristos
230305caefcfSchristos	* bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
230405caefcfSchristos	merge_exidx_entries.
230505caefcfSchristos	* bfd-in2.h: Likewise.
230605caefcfSchristos	* elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise.  Use it to
230705caefcfSchristos	control merging of exidx entries.
230805caefcfSchristos
230905caefcfSchristos2010-04-20  Joseph Myers  <joseph@codesourcery.com>
231005caefcfSchristos
231105caefcfSchristos	* elf32-tic6x.h: New.
231205caefcfSchristos	* elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
231305caefcfSchristos	* elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
231405caefcfSchristos	elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
231505caefcfSchristos	elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
231605caefcfSchristos	elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
231705caefcfSchristos	bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
231805caefcfSchristos	(elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
231905caefcfSchristos	elf32_tic6x_relocate_section): Handle REL relocations.
232005caefcfSchristos	(elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
232105caefcfSchristos
232205caefcfSchristos2010-04-20  Jakub Jelinek  <jakub@redhat.com>
232305caefcfSchristos
232405caefcfSchristos	* dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
232505caefcfSchristos	DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
232605caefcfSchristos
232705caefcfSchristos2010-04-19  Nick Clifton  <nickc@redhat.com>
232805caefcfSchristos
232905caefcfSchristos	* archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
233005caefcfSchristos	arhdrpos variable.
233105caefcfSchristos	* elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
233205caefcfSchristos	attribute to warned variable.  Remove unused val, type and type2
233305caefcfSchristos	variables.
233405caefcfSchristos
233505caefcfSchristos2010-04-16  Andreas Schwab  <schwab@redhat.com>
233605caefcfSchristos
233705caefcfSchristos	* vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
233805caefcfSchristos	strict-aliasing rules.
233905caefcfSchristos
234005caefcfSchristos2010-04-16  Tristan Gingold  <gingold@adacore.com>
234105caefcfSchristos
234205caefcfSchristos	* vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
234305caefcfSchristos	(_bfd_vms_get_object_record): Always assume there is a pad byte
234405caefcfSchristos	for alignment.
234505caefcfSchristos
234605caefcfSchristos	* vms-lib.c: Add a few comments.
234705caefcfSchristos
234805caefcfSchristos2010-04-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
234905caefcfSchristos
235005caefcfSchristos	* elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
235105caefcfSchristos	attributes in v2.08 of the ABI.
235205caefcfSchristos
235305caefcfSchristos2010-04-15  Alan Modra  <amodra@gmail.com>
235405caefcfSchristos
235505caefcfSchristos	* config.bfd (vax*-*-*vms*): Delete.
235605caefcfSchristos
235705caefcfSchristos2010-04-14  Tristan Gingold  <gingold@adacore.com>
235805caefcfSchristos
235905caefcfSchristos	* Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
236005caefcfSchristos	vms-tir.lo, vms.lo and add vms-alpha.lo
236105caefcfSchristos	(BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
236205caefcfSchristos	vms-tir.c, vms.c and add vms-alpha.c
236305caefcfSchristos	* Makefile.in: Regenerate.
236405caefcfSchristos	* configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
236505caefcfSchristos	Remove vms_vax_vec.
236605caefcfSchristos	* configure: Regenerate.
236705caefcfSchristos	* targets.c (vms_vax_vec): Remove the declaration.
236805caefcfSchristos	(_bfd_target_vector): Remove vms_vax_vec.
236905caefcfSchristos	* vms-alpha.c: New file.
237005caefcfSchristos	* vms-gsd.c: Removed, rewritten in vms-alpha.c
237105caefcfSchristos	* vms-hdr.c: Ditto.
237205caefcfSchristos	* vms-tir.c: Ditto.
237305caefcfSchristos	* vms.c: Ditto.
237405caefcfSchristos	* vms-misc.c: Fix indentation and comments.  Replace most of
237505caefcfSchristos	#if VMS_DEBUG/vms_debug with vms_debug2.
237605caefcfSchristos	(_bfd_vms_hash_newfunc): Moved to vms-alpha.c
237705caefcfSchristos	(hash_string): Ditto.
237805caefcfSchristos	(_bfd_vms_length_hash_symbol): Ditto.
237905caefcfSchristos	(maybe_adjust_record_pointer_for_object): Ditto.
238005caefcfSchristos	(_bfd_vms_get_object_record): Ditto.
238105caefcfSchristos	(vms_get_remaining_object_record): Ditto.
238205caefcfSchristos	(_bfd_vms_push): Ditto.
238305caefcfSchristos	(_bfd_vms_pop): Ditto.
238405caefcfSchristos	(_bfd_vms_get_header_values): Removed.
238505caefcfSchristos	(_bfd_vms_get_first_record): Removed.
238605caefcfSchristos	(vms_get_remaining_image_record): Removed.
238705caefcfSchristos	(new_symbol): Removed.
238805caefcfSchristos	(_bfd_vms_enter_symbol): Removed.
238905caefcfSchristos	(_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
239005caefcfSchristos	(_bfd_vms_output_begin): Remove rechead parameter.  Replace bfd
239105caefcfSchristos	parameter with struct vms_rec_wr.
239205caefcfSchristos	(_bfd_vms_output_push): Removed and replaced by ...
239305caefcfSchristos	(_bfd_vms_output_begin_subrec): ... new function.
239405caefcfSchristos	(_bfd_vms_output_alignment): Replace bfd parameter with
239505caefcfSchristos	struct vms_rec_wr, and adjust.
239605caefcfSchristos	(_bfd_vms_output_check): Ditto
239705caefcfSchristos	(_bfd_vms_output_byte): Ditto.
239805caefcfSchristos	(_bfd_vms_output_short): Ditto.
239905caefcfSchristos	(_bfd_vms_output_long): Ditto.
240005caefcfSchristos	(_bfd_vms_output_quad): Ditto.
240105caefcfSchristos	(_bfd_vms_output_counted): Ditto.
240205caefcfSchristos	(_bfd_vms_output_dump): Ditto.
240305caefcfSchristos	(_bfd_vms_output_fill): Ditto.
240405caefcfSchristos	(_bfd_vms_output_pop): Removed and replaced by ...
240505caefcfSchristos	(_bfd_vms_output_end_subrec): ... new function.
240605caefcfSchristos	(_bfd_vms_output_flush): Removed.
240705caefcfSchristos	(_bfd_vms_output_align): New function.
240805caefcfSchristos	(_bfd_vms_output_end): Add recwr parameter.  Adjust for this new
240905caefcfSchristos	parameter.
241005caefcfSchristos	(vms_convert_to_var): New function imported from vms.c
241105caefcfSchristos	(vms_convert_to_var_1): Ditto.
241205caefcfSchristos	(vms_convert_to_var_unix_filename): Ditto.
241305caefcfSchristos	(vms_get_module_name): Ditto.
241405caefcfSchristos	(get_vms_time_string): Ditto.
241505caefcfSchristos	(vms_time_to_time_t): Ditto.
241605caefcfSchristos	(vms_rawtime_to_time_t): Ditto.
241705caefcfSchristos	* vms.h: All macros for the VMS file format are now in include/vms.
241805caefcfSchristos	Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
241905caefcfSchristos	have been removed.
242005caefcfSchristos	(struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
242105caefcfSchristos	(struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
242205caefcfSchristos	(struct funcinfo, struct vms_private_data_struct): Ditto.
242305caefcfSchristos	(struct vms_section_data_struct): Ditto.
242405caefcfSchristos	(struct vms_rec_rd, stryct vms_rec_wr): New declarations.
242505caefcfSchristos	(vms_get_module_name, get_vms_time_string): New declarations.
242605caefcfSchristos	(vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
242705caefcfSchristos	(_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
242805caefcfSchristos	(_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
242905caefcfSchristos	(_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
243005caefcfSchristos	(_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
243105caefcfSchristos	(_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
243205caefcfSchristos	(_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
243305caefcfSchristos	(_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
243405caefcfSchristos	(_bfd_vms_output_fill): Ditto.
243505caefcfSchristos	(bfd_vms_set_section_flags): Ditto.
243605caefcfSchristos
243705caefcfSchristos2010-04-14  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
243805caefcfSchristos
243905caefcfSchristos	* elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
244005caefcfSchristos	exit due to merging the same weak symbol to test that the symbols are
244105caefcfSchristos	actually weak.
244205caefcfSchristos
244305caefcfSchristos2010-04-13  Alan Modra  <amodra@gmail.com>
244405caefcfSchristos
244505caefcfSchristos	* elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
244605caefcfSchristos	when optimizing high got_tlsgd/ld insns.
244705caefcfSchristos
244805caefcfSchristos2010-04-10  H.J. Lu  <hongjiu.lu@intel.com>
244905caefcfSchristos
245005caefcfSchristos	* hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
245105caefcfSchristos	define.
245205caefcfSchristos	(HAVE_PRSTATUS32_T): Likewise.
245305caefcfSchristos
245405caefcfSchristos2010-04-10  H.J. Lu  <hongjiu.lu@intel.com>
245505caefcfSchristos
245605caefcfSchristos	PR corefiles/11467
245705caefcfSchristos	* configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
245805caefcfSchristos	for x86_64-*-linux*.
245905caefcfSchristos	* config.in: Regenerated.
246005caefcfSchristos	* configure: Likewise.
246105caefcfSchristos
246205caefcfSchristos	* elf.c: Include CORE_HEADER if it is defined.
246305caefcfSchristos
246405caefcfSchristos2010-04-10  H.J. Lu  <hongjiu.lu@intel.com>
246505caefcfSchristos	    Jan Kratochvil  <jan.kratochvil@redhat.com>
246605caefcfSchristos
246705caefcfSchristos	* hosts/x86-64linux.h: New.
246805caefcfSchristos
246905caefcfSchristos2010-04-09  Nick Clifton  <nickc@redhat.com>
247005caefcfSchristos
247105caefcfSchristos	* aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
247205caefcfSchristos	* elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
247305caefcfSchristos	variables htab and hdr_info and mark info parameter as unused.
247405caefcfSchristos	* elf.c (prep_headers): Remove unused variable i_phdrp.
247505caefcfSchristos	(_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
247605caefcfSchristos	* elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
247705caefcfSchristos	as unused.
247805caefcfSchristos	* peXXigen.c (pe_print_reloc): Remove unused variable datasize.
247905caefcfSchristos	* verilog.c (verilog_write_section): Remove unused variable
248005caefcfSchristos	address.
248105caefcfSchristos
248205caefcfSchristos2010-04-07  Alan Modra  <amodra@gmail.com>
248305caefcfSchristos
248405caefcfSchristos	* warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
248505caefcfSchristos	* configure: Regenerate.
248605caefcfSchristos
248705caefcfSchristos2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
248805caefcfSchristos
248905caefcfSchristos	PR ld/11434
249005caefcfSchristos	* elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
249105caefcfSchristos
249205caefcfSchristos2010-04-06  Tristan Gingold  <gingold@adacore.com>
249305caefcfSchristos
249405caefcfSchristos	* vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
249505caefcfSchristos
249605caefcfSchristos2010-04-05  Jakub Jelinek  <jakub@redhat.com>
249705caefcfSchristos
249805caefcfSchristos	* elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
249905caefcfSchristos	provided that it has the expected address size and zero segment
250005caefcfSchristos	length.
250105caefcfSchristos
250205caefcfSchristos	* dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
250305caefcfSchristos	(struct line_info): Add op_index field, change end_sequence type to
250405caefcfSchristos	unsigned char.
250505caefcfSchristos	(new_line_sorts_after): For the same address compare op_index.
250605caefcfSchristos	(add_line_info): Add op_index argument, store it into the structure.
250705caefcfSchristos	(decode_line_info): Complain about unknown versions of .debug_line.
250805caefcfSchristos	Initialize maximum_ops_per_insn.  Add op_index state register and
250905caefcfSchristos	track it.
251005caefcfSchristos
251105caefcfSchristos2010-04-01  Nathan Sidwell  <nathan@codesourcery.com>
251205caefcfSchristos
251305caefcfSchristos	* elf32-ppc.c (apuinfo_set): New static var.
251405caefcfSchristos	(ppc_elf_begin_write_processing): Set it here, always create an
251505caefcfSchristos	APUinfo section if there were any in the inputs.
251605caefcfSchristos	(ppc_elf_write_section): Check apuinfo_set.
251705caefcfSchristos	(ppc_elf_final_write_processing): Likewise.
251805caefcfSchristos
251905caefcfSchristos2010-04-01  Tristan Gingold  <gingold@adacore.com>
252005caefcfSchristos
252105caefcfSchristos	* vms.h: Include time.h. Add prototypes for vms_get_module_name,
252205caefcfSchristos	vms_time_to_time_t and vms_rawtime_to_time_t.
252305caefcfSchristos	* vms.c (vms_alpha_vec): Add archives support.
252405caefcfSchristos	* vms-misc.c: Include safe-ctype.h
252505caefcfSchristos	(vms_get_module_name): New function.
252605caefcfSchristos	(vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
252705caefcfSchristos	* vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
252805caefcfSchristos	vms_get_module_name function.  Use this function.
252905caefcfSchristos	* targets.c: Declare vms_lib_txt_vec.  Add it to _bfd_target_vector.
253005caefcfSchristos	* libbfd-in.h: Add prototype for _bfd_append_relative_path.
253105caefcfSchristos	Add prototypes for vms-lib.c
253205caefcfSchristos	* libbfd.h: Regenerate.
253305caefcfSchristos	* configure.in (TDEFINES): Add an entry for vms_lib_txt_vec.  Add
253405caefcfSchristos	vms-lib.lo to vms_alpha_vec.
253505caefcfSchristos	* config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
253605caefcfSchristos	* configure: Regenerate.
253705caefcfSchristos	* bfd.c: Add selective_search field.
253805caefcfSchristos	* bfd-in2.h: Regenerate.
253905caefcfSchristos	* archive.c (append_relative_path): Rename to
254005caefcfSchristos	_bfd_append_relative_path and make it public.
254105caefcfSchristos	(_bfd_get_elt_at_filepos): Adjust for above renaming.
254205caefcfSchristos	* Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
254305caefcfSchristos	(BFD32_BACKENDS_CFILES): Add vms-lib.c
254405caefcfSchristos	* Makefile.in: Regenerate.
254505caefcfSchristos
254605caefcfSchristos2010-04-01  Jakub Jelinek  <jakub@redhat.com>
254705caefcfSchristos
254805caefcfSchristos	* dwarf2.c (read_attribute_value): Handle CU version 4
254905caefcfSchristos	for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
255005caefcfSchristos	and DW_FORM_flag_present.  For unknown form value return NULL.
255105caefcfSchristos	(scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
255205caefcfSchristos	like DW_FORM_block.
255305caefcfSchristos	(parse_comp_unit): Allow CU version 4.
255405caefcfSchristos
255505caefcfSchristos2010-04-01  Hans-Peter Nilsson  <hp@axis.com>
255605caefcfSchristos
255705caefcfSchristos	* elf32-cris.c (cris_elf_relocate_section): Correct first argument
255805caefcfSchristos	to _bfd_elf_get_dynamic_reloc_section.
255905caefcfSchristos	(elf_cris_discard_excess_dso_dynamics): Ditto.
256005caefcfSchristos
256105caefcfSchristos2010-03-31  Kai Tietz  <kai.tietz@onevision.com>
256205caefcfSchristos
256305caefcfSchristos	* coff-i386.c (in_reloc_p): Check also for R_SECREL32.
256405caefcfSchristos	* coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
256505caefcfSchristos
256605caefcfSchristos2010-03-31  Alan Modra  <amodra@gmail.com>
256705caefcfSchristos
256805caefcfSchristos	* elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
256905caefcfSchristos	TPREL16_HI and TPREL16_HA insns.
257005caefcfSchristos
257105caefcfSchristos2010-03-31  Hans-Peter Nilsson  <hp@axis.com>
257205caefcfSchristos
257305caefcfSchristos	PR ld/11458
257405caefcfSchristos	* elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
257505caefcfSchristos	assert of empty pcrel_relocs_copied on the direct symbol.  Instead
257605caefcfSchristos	of moving the list from the indirect symbol to the direct symbol,
257705caefcfSchristos	merge into any existing list.
257805caefcfSchristos	(cris_elf_check_relocs): Store the original section in the
257905caefcfSchristos	pcrel_relocs_copied list, not the relocation section.
258005caefcfSchristos	(elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
258105caefcfSchristos	the relocation section, for reducing its size.  Change the
258205caefcfSchristos	BFD_ASSERT into a check for the section being read-only, and only
258305caefcfSchristos	emit warnings and TEXTREL marker when there's an entry for a
258405caefcfSchristos	read-only section.
258505caefcfSchristos
258605caefcfSchristos2010-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
258705caefcfSchristos
258805caefcfSchristos	* elf32-arm.c (using_thumb_only): Handle v6-M.
258905caefcfSchristos
259005caefcfSchristos2010-03-26  Alan Modra  <amodra@gmail.com>
259105caefcfSchristos
259205caefcfSchristos	* elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
259305caefcfSchristos	* bfd-in.h (elf_discarded_section): Clarify comment.
259405caefcfSchristos	* reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
259505caefcfSchristos	* bfd-in2.h: Regenerate.
259605caefcfSchristos
259705caefcfSchristos2010-03-26  Matt Rice  <ratmice@gmail.com>
259805caefcfSchristos
259905caefcfSchristos	* archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
260005caefcfSchristos	as unique in the armap.
260105caefcfSchristos
260205caefcfSchristos2010-03-26  Alan Modra  <amodra@gmail.com>
260305caefcfSchristos
260405caefcfSchristos	PR ld/11375
260505caefcfSchristos	* elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
260605caefcfSchristos	possible stub on branches.
260705caefcfSchristos
260805caefcfSchristos2010-03-25  Joseph Myers  <joseph@codesourcery.com>
260905caefcfSchristos
261005caefcfSchristos	* Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
261105caefcfSchristos	(ALL_MACHINES_CFILES): Add cpu-tic6x.c.
261205caefcfSchristos	(BFD32_BACKENDS): Add elf32-tic6x.lo.
261305caefcfSchristos	(BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
261405caefcfSchristos	* Makefile.in: Regenerate.
261505caefcfSchristos	* archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
261605caefcfSchristos	(bfd_archures_list): Update.
261705caefcfSchristos	* config.bfd (tic6x-*-elf): New.
261805caefcfSchristos	* configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
261905caefcfSchristos	New.
262005caefcfSchristos	* configure: Regenerate.
262105caefcfSchristos	* cpu-tic6x.c, elf32-tic6x.c: New.
262205caefcfSchristos	* reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
262305caefcfSchristos	BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
262405caefcfSchristos	BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
262505caefcfSchristos	BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
262605caefcfSchristos	BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
262705caefcfSchristos	BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
262805caefcfSchristos	BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
262905caefcfSchristos	BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
263005caefcfSchristos	BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
263105caefcfSchristos	BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
263205caefcfSchristos	BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
263305caefcfSchristos	BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
263405caefcfSchristos	BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
263505caefcfSchristos	* targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
263605caefcfSchristos	(_bfd_target_vector): Update.
263705caefcfSchristos	* bfd-in2.h, libbfd.h: Regenerate.
263805caefcfSchristos
263905caefcfSchristos2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
264005caefcfSchristos
264105caefcfSchristos	* aout-target.h: Update copyright year.
264205caefcfSchristos	* aout-tic30.c: Likewise.
264305caefcfSchristos	* coff-alpha.c: Likewise.
264405caefcfSchristos	* coff-rs6000.c: Likewise.
264505caefcfSchristos	* coff64-rs6000.c: Likewise.
264605caefcfSchristos	* elf64-mips.c: Likewise.
264705caefcfSchristos	* ieee.c: Likewise.
264805caefcfSchristos	* libecoff.h: Likewise.
264905caefcfSchristos	* mach-o-target.c: Likewise.
265005caefcfSchristos	* mach-o.c: Likewise.
265105caefcfSchristos	* oasys.c: Likewise.
265205caefcfSchristos	* targets.c: Likewise.
265305caefcfSchristos
265405caefcfSchristos2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
265505caefcfSchristos
265605caefcfSchristos	* libbfd-in.h: Update copyright year.
265705caefcfSchristos
265805caefcfSchristos2010-03-21  H.J. Lu  <hongjiu.lu@intel.com>
265905caefcfSchristos
266005caefcfSchristos	PR ld/11413
266105caefcfSchristos	* elflink.c (_bfd_elf_add_default_symbol): Check !executable
266205caefcfSchristos	instead of shared.
266305caefcfSchristos
266405caefcfSchristos2010-03-19  Jie Zhang  <jie@codesourcery.com>
266505caefcfSchristos
266605caefcfSchristos	* elf32-arm.c (struct section_list): Remove.
266705caefcfSchristos	(section_list): Remove typedef.
266805caefcfSchristos	(record_section_with_arm_elf_section_data): Remove.
266905caefcfSchristos	(find_arm_elf_section_entry): Remove.
267005caefcfSchristos	(get_arm_elf_section_data): Use is_arm_elf.
267105caefcfSchristos	(unrecord_section_with_arm_elf_section_data): Remove.
267205caefcfSchristos	(elf32_arm_new_section_hook): Don't call
267305caefcfSchristos	record_section_with_arm_elf_section_data.
267405caefcfSchristos	(elf32_arm_write_section): Set mapcount to -1 when
267505caefcfSchristos	the map has been used. Don't call
267605caefcfSchristos	unrecord_section_with_arm_elf_section_data.
267705caefcfSchristos	(unrecord_section_via_map_over_sections): Remove.
267805caefcfSchristos	(elf32_arm_close_and_cleanup): Remove.
267905caefcfSchristos	(elf32_arm_bfd_free_cached_info): Remove.
268005caefcfSchristos	(bfd_elf32_close_and_cleanup): Don't define.
268105caefcfSchristos	(bfd_elf32_bfd_free_cached_info): Don't define.
268205caefcfSchristos
268305caefcfSchristos2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
268405caefcfSchristos
268505caefcfSchristos	PR binutils/11396
268605caefcfSchristos	* libcoff-in.h (pe_tdata): Add dont_strip_reloc.
268705caefcfSchristos	* libcoff.h: Regenerated.
268805caefcfSchristos
268905caefcfSchristos	* peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
269005caefcfSchristos	if dont_strip_reloc is set.
269105caefcfSchristos	(_bfd_XX_bfd_copy_private_bfd_data_common): Set
269205caefcfSchristos	dont_strip_reloc on output if there is no .reloc and
269305caefcfSchristos	IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
269405caefcfSchristos
269505caefcfSchristos2010-03-18  Wei Guozhi  <carrot@google.com>
269605caefcfSchristos
269705caefcfSchristos	PR gas/11323
269805caefcfSchristos	* elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
269905caefcfSchristos	R_ARM_GOT_PREL.
270005caefcfSchristos	* reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
270105caefcfSchristos	* bfd-in2.h: Regenerate.
270205caefcfSchristos	* libbfd.h: Regenerate.
270305caefcfSchristos
270405caefcfSchristos2010-03-17  H.J. Lu  <hongjiu.lu@intel.com>
270505caefcfSchristos
270605caefcfSchristos	* reloc.c (BFD_RELOC_SPU_PIC18): Removed.
270705caefcfSchristos	(BFD_RELOC_SPU_STUB): Likewise.
270805caefcfSchristos
270905caefcfSchristos2010-03-17  Jie Zhang  <jie@codesourcery.com>
271005caefcfSchristos
271105caefcfSchristos	* elf.c (assign_file_positions_for_load_sections): Avoid
271205caefcfSchristos	overflow.
271305caefcfSchristos
271405caefcfSchristos2010-03-17  Alan Modra  <amodra@gmail.com>
271505caefcfSchristos
271605caefcfSchristos	PR binutils/11382
271705caefcfSchristos	* plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
271805caefcfSchristos	proper type.
271905caefcfSchristos
272005caefcfSchristos2010-03-17  Alan Modra  <amodra@gmail.com>
272105caefcfSchristos
272205caefcfSchristos	* elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
272305caefcfSchristos
272405caefcfSchristos2010-03-16  Alan Modra  <amodra@gmail.com>
272505caefcfSchristos
272605caefcfSchristos	* elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
272705caefcfSchristos	(ppc64_elf_edit_toc): Set it here.
272805caefcfSchristos	(ha_reloc_match): New function.
272905caefcfSchristos	(ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
273005caefcfSchristos
273105caefcfSchristos2010-03-15  Alan Modra  <amodra@gmail.com>
273205caefcfSchristos
273305caefcfSchristos	* elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
273405caefcfSchristos	* elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
273505caefcfSchristos
273605caefcfSchristos2010-03-14  Alan Modra  <amodra@gmail.com>
273705caefcfSchristos
273805caefcfSchristos	PR ld/11378
273905caefcfSchristos	* elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
274005caefcfSchristos	* elf64-ppc.c (call_check_done): Define.
274105caefcfSchristos	(ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
274205caefcfSchristos	(ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
274305caefcfSchristos	(ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
274405caefcfSchristos	(toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
274505caefcfSchristos	Simplify return logic.  Iterate over all .init and .fini fragments
274605caefcfSchristos	by recursion.  Set makes_toc_func_call here..
274705caefcfSchristos	(ppc64_elf_next_input_section): ..rather than here.
274805caefcfSchristos	(check_pasted_section, ppc64_elf_check_init_fini): New functions.
274905caefcfSchristos
275005caefcfSchristos2010-03-13  Alan Modra  <amodra@gmail.com>
275105caefcfSchristos
275205caefcfSchristos	PR ld/11375
275305caefcfSchristos	* elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
275405caefcfSchristos	function descriptor symbol if there is one, not just for plt stubs.
275505caefcfSchristos	(ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
275605caefcfSchristos
275705caefcfSchristos2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
275805caefcfSchristos
275905caefcfSchristos	* elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
276005caefcfSchristos	version twice.
276105caefcfSchristos	Skip it when constructing def.vd_next.
276205caefcfSchristos
276305caefcfSchristos	* elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
276405caefcfSchristos	bfd_elf32_i386_sol2_vec.
276505caefcfSchristos	(TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
276605caefcfSchristos	(elf32_bed): Redefine to elf32_i386_sol2_bed.
276705caefcfSchristos	(elf_backend_want_plt_sym): Redefine to 1.
276805caefcfSchristos
276905caefcfSchristos	* elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
277005caefcfSchristos	bfd_elf64_x86_64_sol2_vec.
277105caefcfSchristos	(TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
277205caefcfSchristos	(elf64_bed): Redefine to elf64_x86_64_sol2_bed.
277305caefcfSchristos	(elf_backend_want_plt_sym): Redefine to 1.
277405caefcfSchristos
277505caefcfSchristos	* config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
277605caefcfSchristos	bfd_elf32_i386_sol2_vec.
277705caefcfSchristos	Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
277805caefcfSchristos	targ64_selvecs.
277905caefcfSchristos	(x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
278005caefcfSchristos	Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
278105caefcfSchristos	targ_selvecs.
278205caefcfSchristos
278305caefcfSchristos	* configure.in: Handle bfd_elf32_i386_sol2_vec,
278405caefcfSchristos	bfd_elf64_x86_64_sol2_vec.
278505caefcfSchristos	* configure: Regenerate.
278605caefcfSchristos
278705caefcfSchristos	* targets.c (bfd_elf32_i386_sol2_vec): Declare.
278805caefcfSchristos	(bfd_elf64_x86_64_sol2_vec): Declare.
278905caefcfSchristos	(_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
279005caefcfSchristos	bfd_elf64_x86_64_sol2_vec.
279105caefcfSchristos
279205caefcfSchristos2010-03-04  Daniel Jacobowitz  <dan@codesourcery.com>
279305caefcfSchristos
279405caefcfSchristos	* elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
279505caefcfSchristos	sections.
279605caefcfSchristos
279705caefcfSchristos2010-03-04  Alan Modra  <amodra@gmail.com>
279805caefcfSchristos
279905caefcfSchristos	PR 11302
280005caefcfSchristos	* dwarf2.c (read_abbrevs): Return NULL on alloc failures.
280105caefcfSchristos	(read_attribute_value, decode_line_info): Likewise.
280205caefcfSchristos	(add_line_info, read_rangelist): Return FALSE on alloc failures.
280305caefcfSchristos	(arange_add, sort_line_sequences): Likewise.
280405caefcfSchristos	(find_abstract_instance_name): Handle failures from called funcs.
280505caefcfSchristos	(scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
280605caefcfSchristos	(find_line): Realloc to a temp, and handle alloc fail.
280705caefcfSchristos
280805caefcfSchristos2010-03-03  Daniel Jacobowitz  <dan@codesourcery.com>
280905caefcfSchristos
281005caefcfSchristos	* elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
281105caefcfSchristos	a mapping symbol to an empty section.
281205caefcfSchristos
281305caefcfSchristos2010-03-02  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
281405caefcfSchristos
281505caefcfSchristos	* elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
281605caefcfSchristos	return value from the call to _bfd_elf_merge_object_attributes.
281705caefcfSchristos
281805caefcfSchristos2010-03-02  Christophe Lyon  <christophe.lyon@st.com>
281905caefcfSchristos	Alan Modra  <amodra@gmail.com>
282005caefcfSchristos
282105caefcfSchristos	* elf32-arm.c (a8_erratum_fix): Add st_type field to record the
282205caefcfSchristos	destination mode of the a8 stub.
282305caefcfSchristos	(elf32_arm_link_hash_table): Add top_id field.
282405caefcfSchristos	(elf32_arm_link_hash_table_create): Initialize top_id.
282505caefcfSchristos	(arm_type_of_stub): Update prototype, st_type can now be updated
282605caefcfSchristos	by this function. Actual destination address in case of PLT is
282705caefcfSchristos	computed here, to help factorizing code.
282805caefcfSchristos	(elf32_arm_stub_name): Update prototype, use stub_type additional
282905caefcfSchristos	parameter to build stub name.
283005caefcfSchristos	(elf32_arm_get_stub_entry): Update prototype, use stub_type
283105caefcfSchristos	additional parameter to build stub entry.
283205caefcfSchristos	(arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
283305caefcfSchristos	put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
283405caefcfSchristos	Call elf32_arm_final_link_relocate to process all in-stub
283505caefcfSchristos	relocations.
283605caefcfSchristos	(elf32_arm_setup_section_lists): Update top_id.
283705caefcfSchristos	(cortex_a8_erratum_scan): Record stub destination mode.
283805caefcfSchristos	(elf32_arm_size_stubs): Update call to arm_type_of_stub according
283905caefcfSchristos	to new prototype.
284005caefcfSchristos	(elf32_arm_final_link_relocate): Enable processing of in-stub
284105caefcfSchristos	REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
284205caefcfSchristos	needed, enabling code factorization.
284305caefcfSchristos	(elf32_arm_final_link): Process stub sections.
284405caefcfSchristos	(elf32_arm_output_map_sym): Add entry to code/data map.
284505caefcfSchristos
284605caefcfSchristos2010-03-01  David S. Miller  <davem@davemloft.net>
284705caefcfSchristos
284805caefcfSchristos	* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
284905caefcfSchristos	h->def_regular, set h->ref_regular.
285005caefcfSchristos	(allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
285105caefcfSchristos	and dynamic relocations if h->ref_regular.
285205caefcfSchristos
285305caefcfSchristos	* elfxx-sparc.c (struct elf_reloc_map): Delete.
285405caefcfSchristos	(sparc_reloc_map): Delete.
285505caefcfSchristos	(_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
285605caefcfSchristos	relocation type in switch statements.
285705caefcfSchristos
285805caefcfSchristos2010-02-25  Alan Modra  <amodra@gmail.com>
285905caefcfSchristos
286005caefcfSchristos	PR ld/11304
286105caefcfSchristos	* elf.c (_bfd_elf_init_private_section_data): Rename need_group
286205caefcfSchristos	to final_link and invert.  For final link allow some flags to
286305caefcfSchristos	differ.  Don't specially allow flags to be all zero.
286405caefcfSchristos
286505caefcfSchristos2010-02-24  Alan Modra  <amodra@gmail.com>
286605caefcfSchristos
286705caefcfSchristos	PR binutils/10858
286805caefcfSchristos	* elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
286905caefcfSchristos	SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
287005caefcfSchristos	table.
287105caefcfSchristos
287205caefcfSchristos2010-02-23  Andrew Zabolotny  <anpaza@mail.ru>
287305caefcfSchristos
287405caefcfSchristos	PR binutils/11297
287505caefcfSchristos	* elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
287605caefcfSchristos	(avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
287705caefcfSchristos
287805caefcfSchristos2010-02-22  Alan Modra  <amodra@gmail.com>
287905caefcfSchristos
288005caefcfSchristos	* reloc.c (bfd_check_overflow): When forming addrmask, shift
288105caefcfSchristos	fieldmask left by rightshift.
288205caefcfSchristos	(_bfd_relocate_contents): Likewise.  Use rightshift addrmask in all
288305caefcfSchristos	overflow checks.
288405caefcfSchristos
288505caefcfSchristos2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
288605caefcfSchristos
288705caefcfSchristos	* elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
288805caefcfSchristos	STT_GNU_IFUNC on large common symbol.
288905caefcfSchristos
289005caefcfSchristos2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
289105caefcfSchristos
289205caefcfSchristos	* elf32-i386.c (elf_i386_add_symbol_hook): Don't set
289305caefcfSchristos	has_ifunc_symbols if the symbol comes from a shared library.
289405caefcfSchristos	* elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
289505caefcfSchristos	* elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
289605caefcfSchristos	* elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
289705caefcfSchristos	* elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
289805caefcfSchristos	* elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
289905caefcfSchristos
290005caefcfSchristos2010-02-19  Alan Modra  <amodra@gmail.com>
290105caefcfSchristos
290205caefcfSchristos	* elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
290305caefcfSchristos	(_bfd_elf_copy_private_header_data): ..here.
290405caefcfSchristos	* elflink.c (_bfd_elf_size_group_sections): New function.
290505caefcfSchristos	(bfd_elf_size_dynamic_sections): Call it.
290605caefcfSchristos	* elf-bfd.h (_bfd_elf_size_group_sections): Declare.
290705caefcfSchristos	(_bfd_elf_fixup_group_sections): Declare.
290805caefcfSchristos
290905caefcfSchristos2010-02-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
291005caefcfSchristos
291105caefcfSchristos	* elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
291205caefcfSchristos	merging Tag_DIV_use, Tag_MPextension_use, and
291305caefcfSchristos	Tag_MPextension_use_legacy tags.
291405caefcfSchristos
291505caefcfSchristos2010-02-18  Alan Modra  <amodra@gmail.com>
291605caefcfSchristos
291705caefcfSchristos	* elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
291805caefcfSchristos	commit.  Don't write zeros for removed group members.
291905caefcfSchristos	(_bfd_elf_copy_private_header_data): Adjust size of group section
292005caefcfSchristos	when group members are removed by objcopy.
292105caefcfSchristos
292205caefcfSchristos2010-02-15  Dave Korn  <dave.korn.cygwin@gmail.com>
292305caefcfSchristos
292405caefcfSchristos	PR binutils/11280
292505caefcfSchristos	* configure.host (*-*-solaris2.11):  Add host define to select
292605caefcfSchristos	valid default code page for windres/windmc on solaris.
292705caefcfSchristos
292805caefcfSchristos2010-02-15  Nick Clifton  <nickc@redhat.com>
292905caefcfSchristos
293005caefcfSchristos	* po/vi.po: Updated Vietnamese translation.
293105caefcfSchristos
293205caefcfSchristos2010-02-12  Daniel Gutson  <dgutson@codesourcery.com>
293305caefcfSchristos
293405caefcfSchristos	* elf32-arm.c (elf32_arm_output_arch_local_syms): add
293505caefcfSchristos	missing mapping symbol to data only sections.
293605caefcfSchristos
293705caefcfSchristos2010-02-11  David S. Miller  <davem@davemloft.net>
293805caefcfSchristos
293905caefcfSchristos	* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
294005caefcfSchristos	and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
294105caefcfSchristos	symbols.
294205caefcfSchristos	(_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
294305caefcfSchristos	these relocs on global symbols.
294405caefcfSchristos	(gdopoff): New.
294505caefcfSchristos	(_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
294605caefcfSchristos	local symbol references which are not STT_GNU_IFUNC.  Handle
294705caefcfSchristos	relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
294805caefcfSchristos	and deal with negative vs. non-negative values properly.
294905caefcfSchristos
295005caefcfSchristos2010-02-09  Tristan Gingold  <gingold@adacore.com>
295105caefcfSchristos
295205caefcfSchristos	* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
295305caefcfSchristos	non-external relocation.
295405caefcfSchristos
295505caefcfSchristos2010-02-09  Alan Modra  <amodra@gmail.com>
295605caefcfSchristos
295705caefcfSchristos	* elf64-ppc.c (merge_got_entries): Move earlier in file.
295805caefcfSchristos	(allocate_dynrelocs): Merge got entries here if not doing multi-toc.
295905caefcfSchristos	(ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
296005caefcfSchristos	(ppc64_elf_layout_multitoc): Don't resize if we have already
296105caefcfSchristos	merged got entries.
296205caefcfSchristos
296305caefcfSchristos2010-02-09  Michael Holzheu  <holzheu@de.ibm.com>
296405caefcfSchristos
296505caefcfSchristos	* elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
296605caefcfSchristos	elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
296705caefcfSchristos	elfcore_write_s390_prefix): New.
296805caefcfSchristos	* elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
296905caefcfSchristos	elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
297005caefcfSchristos	elfcore_write_s390_prefix): New.
297105caefcfSchristos	(elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
297205caefcfSchristos	NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
297305caefcfSchristos	(elfcore_write_register_note): Handle .reg-s390-timer,
297405caefcfSchristos	.reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
297505caefcfSchristos	.reg-s390-prefix section.
297605caefcfSchristos
297705caefcfSchristos2010-02-09  Alan Modra  <amodra@gmail.com>
297805caefcfSchristos
297905caefcfSchristos	* elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
298005caefcfSchristos	unsigned char.  Update variables and code using them throughout file.
298105caefcfSchristos	(struct ppc_link_hash_entry): Likewise for tls_mask.
298205caefcfSchristos
298305caefcfSchristos	* elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
298405caefcfSchristos
298505caefcfSchristos	* elf64-ppc.c (has_small_toc_reloc): Don't define.
298605caefcfSchristos	(makes_toc_func_call, call_check_in_progress): Shuffle flags.
298705caefcfSchristos	(struct ppc64_elf_obj_tdata): Add has_small_toc_reloc.  Update
298805caefcfSchristos	code setting the flag.
298905caefcfSchristos	(ppc64_elf_next_toc_section): Group big-toc sections in
299005caefcfSchristos	0x80008000 chunks.
299105caefcfSchristos
299205caefcfSchristos2010-02-08  David S. Miller  <davem@davemloft.net>
299305caefcfSchristos
299405caefcfSchristos	* elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
299505caefcfSchristos	srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
299605caefcfSchristos
299705caefcfSchristos	* elfxx-sparc.c (create_got_section): Delete.
299805caefcfSchristos	(_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
299905caefcfSchristos	section creator does that work for us.  Use ->elf.foo instead of
300005caefcfSchristos	->foo where applicable.
300105caefcfSchristos	(_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
300205caefcfSchristos	where applicable.
300305caefcfSchristos	(allocate_dynrelocs): Likewise.
300405caefcfSchristos	(_bfd_sparc_elf_size_dynamic_sections): Likewise.
300505caefcfSchristos	(_bfd_sparc_elf_relocate_section): Likewise.
300605caefcfSchristos	(sparc_vxworks_build_plt_entry): Likewise.
300705caefcfSchristos	(_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
300805caefcfSchristos	(sparc_finish_dyn): Likewise.
300905caefcfSchristos	(sparc_vxworks_finish_exec_plt): Likewise.
301005caefcfSchristos	(sparc_vxworks_finish_shared_plt): Likewise.
301105caefcfSchristos	(_bfd_sparc_elf_finish_dynamic_sections): Likewise.
301205caefcfSchristos
301305caefcfSchristos	* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
301405caefcfSchristos	macros for visibilty and locality checks.
301505caefcfSchristos	(_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
301605caefcfSchristos	(allocate_dynrelocs): Likewise.
301705caefcfSchristos	(_bfd_sparc_elf_relocate_section): Likewise.
301805caefcfSchristos	(_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
301905caefcfSchristos
302005caefcfSchristos	* elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
302105caefcfSchristos	but never used local var 'dynobj'.
302205caefcfSchristos
302305caefcfSchristos	* elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
302405caefcfSchristos	nocopyreloc.
302505caefcfSchristos
302605caefcfSchristos	* reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
302705caefcfSchristos	(BFD_RELOC_SPARC_IRELATIVE): Likewise.
302805caefcfSchristos	* bfd-in2.h: Regenerate.
302905caefcfSchristos	* libbfd.h: Regenerate.
303005caefcfSchristos
303105caefcfSchristos	* elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
303205caefcfSchristos	and loc_hash_memory.
303305caefcfSchristos	(_bfd_sparc_elf_link_hash_table_free): Declare.
303405caefcfSchristos	* elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
303505caefcfSchristos	(elf_backend_add_symbol_hook, elf_backend_post_process_headers,
303605caefcfSchristos	bfd_elf32_bfd_link_hash_table_free): Define.
303705caefcfSchristos	* elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
303805caefcfSchristos	has_ifunc_symbols if STT_GNU_IFUNC.
303905caefcfSchristos	(bfd_elf64_bfd_link_hash_table_free): Define.
304005caefcfSchristos	(elf_backend_post_process_headers): Define always.
304105caefcfSchristos	* elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
304205caefcfSchristos	(sparc_reloc_map): Add entries for new IFUNC relocs.
304305caefcfSchristos	(_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
304405caefcfSchristos	(_bfd_sparc_elf_info_to_howto_ptr): Likewise.
304505caefcfSchristos	(elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
304605caefcfSchristos	elf_sparc_get_local_sym_hash): New.
304705caefcfSchristos	(_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
304805caefcfSchristos	from here...
304905caefcfSchristos	(_bfd_sparc_elf_link_hash_table_create): ... to here.  Allocate
305005caefcfSchristos	local hash table.
305105caefcfSchristos	(_bfd_sparc_elf_link_hash_table_free): New.
305205caefcfSchristos	(create_ifunc_sections): New.
305305caefcfSchristos	(_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
305405caefcfSchristos	and call create_ifunc_sections().  For local STT_GNU_IFUNC symbols
305505caefcfSchristos	cons up a fake local hash table entry for it.  Unconditionally add
305605caefcfSchristos	a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular.  Count
305705caefcfSchristos	dyn relocs for ifunc.
305805caefcfSchristos	(_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
305905caefcfSchristos	(allocate_dynrelocs):  Unconditionally emit a PLT entry when
306005caefcfSchristos	STT_GNU_IFUNC and h->def_regular.  Count GOT dyn relocs for ifunc.
306105caefcfSchristos	(allocate_local_dynrelocs): New function.
306205caefcfSchristos	(_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
306305caefcfSchristos	table.  Emit dynamic relocs to irelplt when not shared.  Treat iplt
306405caefcfSchristos	like splt.
306505caefcfSchristos	(_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
306605caefcfSchristos	(_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
306705caefcfSchristos	plt in iplt/irelplt.
306805caefcfSchristos
306905caefcfSchristos2010-02-08  Richard Sandiford  <r.sandiford@uk.ibm.com>
307005caefcfSchristos
307105caefcfSchristos	* xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
307205caefcfSchristos	max_contents_size, only consider sections whose contents must
307305caefcfSchristos	be swapped in.
307405caefcfSchristos
307505caefcfSchristos2010-02-09  Alan Modra  <amodra@gmail.com>
307605caefcfSchristos
307705caefcfSchristos	* elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
307805caefcfSchristos	(ppc64_elf_size_dynamic_sections): ..and here..
307905caefcfSchristos	(merge_got_entries): ..rather than here.
308005caefcfSchristos
308105caefcfSchristos2010-02-09  Alan Modra  <amodra@gmail.com>
308205caefcfSchristos
308305caefcfSchristos	* elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
308405caefcfSchristos	(has_small_toc_reloc): Define.
308505caefcfSchristos	(ppc64_elf_check_relocs): Set the above flags.
308605caefcfSchristos	(ppc64_elf_edit_opd): Delete obfd param.
308705caefcfSchristos	(ppc64_elf_tls_optimize): Likewise.
308805caefcfSchristos	(ppc64_elf_edit_toc): Likewise.
308905caefcfSchristos	(ppc64_elf_tls_setup): Likewise.  Add no_multi_toc param.
309005caefcfSchristos	* elf64-ppc.h: Update prototypes.
309105caefcfSchristos
309205caefcfSchristos2010-02-08  Alan Modra  <amodra@gmail.com>
309305caefcfSchristos
309405caefcfSchristos	* section.c (struct bfd_section): Delete has_tls_reloc,
309505caefcfSchristos	has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
309605caefcfSchristos	Add sec_flg0 thru sec_flg5.
309705caefcfSchristos	(BFD_FAKE_SECTION): Update for changed flags.
309805caefcfSchristos	* ecoff.c (bfd_debug_section): Likewise.
309905caefcfSchristos	* elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
310005caefcfSchristos	* elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
310105caefcfSchristos	(has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
310205caefcfSchristos	* elf32-xtensa.c (reloc_done): Define.
310305caefcfSchristos	* elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
310405caefcfSchristos	* bfd-in2.h: Regenerate.
310505caefcfSchristos
310605caefcfSchristos2010-02-08  Tristan Gingold  <gingold@adacore.com>
310705caefcfSchristos
310805caefcfSchristos	* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
310905caefcfSchristos	for non-scattered relocations.
311005caefcfSchristos
311105caefcfSchristos2010-02-08  Nathan Sidwell  <nathan@codesourcery.com>
311205caefcfSchristos
311305caefcfSchristos	* elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
311405caefcfSchristos	apuinfo sections, only scan input sections once and reuse the
311505caefcfSchristos	buffer.
311605caefcfSchristos
311705caefcfSchristos2010-02-08  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
311805caefcfSchristos
311905caefcfSchristos	* archures.c (bfd_mach_ppc_titan): Define.
312005caefcfSchristos	* bfd-in2.h: Regenerate.
312105caefcfSchristos	* cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
312205caefcfSchristos
312305caefcfSchristos2010-02-08  Alan Modra  <amodra@gmail.com>
312405caefcfSchristos
312505caefcfSchristos	* elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
312605caefcfSchristos
312705caefcfSchristos2010-02-05  Sterling Augustine  <sterling@tensilica.com>
312805caefcfSchristos
312905caefcfSchristos	* elf.c (assign_file_positions_for_load_sections) Update lma of
313005caefcfSchristos	section	if necessary.  Fixes Bugzilla 11219.
313105caefcfSchristos
313205caefcfSchristos2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
313305caefcfSchristos
313405caefcfSchristos	* elf32-i386.c: Remove trailing white spaces.
313505caefcfSchristos	* elf64-x86-64.c: Likewise.
313605caefcfSchristos
313705caefcfSchristos2010-02-03  Nick Clifton  <nickc@redhat.com>
313805caefcfSchristos
313905caefcfSchristos	* elf-bfd.h (emum elf_object_id): Rename to elf_target_id.  Add
314005caefcfSchristos	entries for other architectures.
314105caefcfSchristos	(struct elf_link_hash_table): Add hash_table_id field.
314205caefcfSchristos	(elf_hash_table_id): New accessor macro.
314305caefcfSchristos	* elflink.c (_bfd_elf_link_hash_table_init): Add target_id
314405caefcfSchristos	parameter.
314505caefcfSchristos	* elf-m10300.c (elf32_mn10300_hash_table): Check table id before
314605caefcfSchristos	returning cast pointer.
314705caefcfSchristos	(elf32_mn10300_link_hash_table_create): Identify new table as
314805caefcfSchristos	containing MN10300 extensions.
314905caefcfSchristos	(mn10300_elf_relax_section): Check pointer returned by
315005caefcfSchristos	elf32_mn10300_hash_table.
315105caefcfSchristos	* elf32-arm.c: Likewise, except using ARM extensions.
315205caefcfSchristos	* elf32-avr.c: Likewise, except using AVR extensions.
315305caefcfSchristos	* elf32-bfin.c: Likewise, except using BFIN extensions.
315405caefcfSchristos	* elf32-cris.c: Likewise, except using CRIS extensions.
315505caefcfSchristos	* elf32-frv.c: Likewise, except using FRV extensions.
315605caefcfSchristos	* elf32-hppa.c: Likewise, except using HPPA32 extensions.
315705caefcfSchristos	* elf32-i386.c: Likewise, except using I386 extensions.
315805caefcfSchristos	* elf32-lm32.c: Likewise, except using LM32 extensions.
315905caefcfSchristos	* elf32-m32r.c: Likewise, except using M32RM extensions.
316005caefcfSchristos	* elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
316105caefcfSchristos	* elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
316205caefcfSchristos	* elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
316305caefcfSchristos	* elf32-m68k.c: Likewise, except using M68K extensions.
316405caefcfSchristos	* elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
316505caefcfSchristos	* elf32-ppc.c: Likewise, except using PPC32 extensions.
316605caefcfSchristos	* elf32-s390.c: Likewise, except using S390 extensions.
316705caefcfSchristos	* elf32-sh.c: Likewise, except using SH extensions.
316805caefcfSchristos	* elf32-spu.c: Likewise, except using SPU extensions.
316905caefcfSchristos	* elf32-xtensa.c: Likewise, except using XTENSA extensions.
317005caefcfSchristos	* elf64-alpha.c: Likewise, except using ALPHA extensions.
317105caefcfSchristos	* elf64-hppa.c: Likewise, except using HPPA64 extensions.
317205caefcfSchristos	* elf64-ppc.c: Likewise, except using PPC64 extensions.
317305caefcfSchristos	* elf64-s390.c: Likewise, except using S390 extensions.
317405caefcfSchristos	* elf64-x86-64.c: Likewise, except using X86_64 extensions.
317505caefcfSchristos	* elfxx-ia64.c: Likewise, except using IA64 extensions.
317605caefcfSchristos	* elfxx-mips.c: Likewise, except using MIPS extensions.
317705caefcfSchristos	* elfxx-sparc.c: Likewise, except using SPARC extensions.
317805caefcfSchristos	* elfxx-sparc.h: Likewise, except using SPARC extensions.
317905caefcfSchristos	* elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
318005caefcfSchristos	redundant structure.
318105caefcfSchristos	(elf32_cr16_hash_table): Delete unused macro.
318205caefcfSchristos	(elf32_cr16_link_hash_traverse): Delete unused macro.
318305caefcfSchristos	* elf32-score.c: Likewise.
318405caefcfSchristos	* elf32-score7.c: Likewise.
318505caefcfSchristos	* elf32-vax.c: Likewise.
318605caefcfSchristos	* elf64-sh64.c: Likewise.
318705caefcfSchristos
318805caefcfSchristos2010-02-03  Alan Modra  <amodra@gmail.com>
318905caefcfSchristos
319005caefcfSchristos	* elf64-ppc.c (struct plt_entry): Move earlier in file.
319105caefcfSchristos	(struct got_entry): Likewise.  Add is_indirect and got.ent fields.
319205caefcfSchristos	(struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
319305caefcfSchristos	Update all uses.
319405caefcfSchristos	(struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
319505caefcfSchristos	Remove no_multi_toc.
319605caefcfSchristos	(update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
319705caefcfSchristos	when allocating a new struct got_entry.
319805caefcfSchristos	(allocate_got): New function, extracted from..
319905caefcfSchristos	(allocate_dynrelocs): ..here.  Abort on got entry in non-ppc64 bfd.
320005caefcfSchristos	(ppc64_elf_size_dynamic_sections): Track got relocs allocated in
320105caefcfSchristos	.reliplt by got_reli_size.  Set owner on ppc64_tlsld_got entries.
320205caefcfSchristos	(ppc64_elf_setup_section_lists): Remove output_bfd param and
320305caefcfSchristos	no_multi_toc, add add_stub_section and layout_sections_again.  Stash
320405caefcfSchristos	new params in htab.  Extract some code to..
320505caefcfSchristos	(ppc64_elf_start_multitoc_partition): ..here.  New function.
320605caefcfSchristos	(ppc64_elf_next_toc_section): Check for linker script errors.  Handle
320705caefcfSchristos	second pass toc scan.
320805caefcfSchristos	(merge_got_entries, merge_global_got, reallocate_got): New functions.
320905caefcfSchristos	(ppc64_elf_reinit_toc): Rename to..
321005caefcfSchristos	(ppc64_elf_finish_multitoc_partition): ..this.
321105caefcfSchristos	(ppc64_elf_layout_multitoc): New function.
321205caefcfSchristos	(ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
321305caefcfSchristos	layout_sections_again params.
321405caefcfSchristos	(ppc64_elf_relocate_section): Handle indirect got entries.
321505caefcfSchristos	* elf64-ppc.h: Update prototypes.  Declare new functions.
321605caefcfSchristos
321705caefcfSchristos2010-02-02  H.J. Lu  <hongjiu.lu@intel.com>
321805caefcfSchristos
321905caefcfSchristos	* elf-bfd.h (elfcore_write_xstatereg): New.
322005caefcfSchristos
322105caefcfSchristos	* elf.c (elfcore_grok_xstatereg): New.
322205caefcfSchristos	(elfcore_write_xstatereg): Likewise.
322305caefcfSchristos	(elfcore_grok_note): Handle NT_X86_XSTATE.
322405caefcfSchristos	(elfcore_write_register_note): Handle .reg-xstate section.
322505caefcfSchristos
322605caefcfSchristos2010-02-01  Tristan Gingold  <gingold@adacore.com>
322705caefcfSchristos
322805caefcfSchristos	* som.c (som_write_ar_hdr): Define this macro.
322905caefcfSchristos
323005caefcfSchristos2010-01-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
323105caefcfSchristos
323205caefcfSchristos	* elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
323305caefcfSchristos	R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
323405caefcfSchristos	linkage table pointer to use the global table pointer if not doing
323505caefcfSchristos	a shared link.
323605caefcfSchristos
323705caefcfSchristos2010-01-29  Joel Brobecker  <brobecker@adacore.com>
323805caefcfSchristos
323905caefcfSchristos	* elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
324005caefcfSchristos	if it has already been set.
324105caefcfSchristos
324205caefcfSchristos2010-01-27  Tristan Gingold  <gingold@adacore.com>
324305caefcfSchristos
324405caefcfSchristos	* vms.h: Remove trailing spaces.
324505caefcfSchristos	(struct hdr_struct): Remove unused hdr_c_cpr field.
324605caefcfSchristos	(enum file_format_enum): Add comments.
324705caefcfSchristos	* vms.c (vms_bfd_print_private_bfd_data): New function that
324805caefcfSchristos	replaces the macro.
324905caefcfSchristos	Remove trailing spaces.
325005caefcfSchristos	* vms-misc.c: Improve comments.
325105caefcfSchristos	(_bfd_vms_get_object_record): Also handle files without pads.
325205caefcfSchristos	* vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
325305caefcfSchristos	* vms-gsd.c (struct flagdescstruct): Make name field const.
325405caefcfSchristos	(gsyflagdesc): Fix typo.
325505caefcfSchristos
325605caefcfSchristos2010-01-27  Alan Modra  <amodra@gmail.com>
325705caefcfSchristos
325805caefcfSchristos	PR ld/11217
325905caefcfSchristos	* elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
326005caefcfSchristos	(ppc64_elf_setup_section_lists): Init them.
326105caefcfSchristos	(ppc64_elf_next_toc_section): Don't partition multi-toc between .got
326205caefcfSchristos	and .toc on the same input file.
326305caefcfSchristos	(ppc64_elf_relocate_section): Correct GOT entry offset.
326405caefcfSchristos
326505caefcfSchristos2010-01-26  Tristan Gingold  <gingold@adacore.com>
326605caefcfSchristos
326705caefcfSchristos	* targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
326805caefcfSchristos	(bfd_target): Add _bfd_write_ar_hdr_fn field.
326905caefcfSchristos	* archive.c (is_bsd44_extended_name): New macro.
327005caefcfSchristos	(_bfd_generic_read_ar_hdr_mag): Use it.  Add extra_size.
327105caefcfSchristos	(bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
327205caefcfSchristos	name.
327305caefcfSchristos	(_bfd_archive_bsd44_construct_extended_name_table): New function.
327405caefcfSchristos	(_bfd_generic_write_ar_hdr): Ditto.
327505caefcfSchristos	(_bfd_bsd44_write_ar_hdr): Ditto.
327605caefcfSchristos	(_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
327705caefcfSchristos	(bsd_write_armap): Adjust firstreal computation.
327805caefcfSchristos	* libbfd-in.h (struct areltdata): Add extra_size field.
327905caefcfSchristos	(_bfd_generic_write_ar_hdr): Add prototype.
328005caefcfSchristos	(_bfd_bsd44_write_ar_hdr): Ditto.
328105caefcfSchristos	(_bfd_write_ar_hdr): Define.
328205caefcfSchristos	(_bfd_noarchive_write_ar_hdr): Ditto.
328305caefcfSchristos	(_bfd_archive_bsd_write_ar_hdr): Ditto.
328405caefcfSchristos	(_bfd_archive_coff_write_ar_hdr): Ditto.
328505caefcfSchristos	(_bfd_archive_bsd44_slurp_armap): Ditto.
328605caefcfSchristos	(_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
328705caefcfSchristos	(_bfd_archive_bsd44_construct_extended_name_table): New prototype.
328805caefcfSchristos	(_bfd_archive_bsd44_truncate_arname): Ditto.
328905caefcfSchristos	(_bfd_archive_bsd44_write_armap): Ditto.
329005caefcfSchristos	(_bfd_archive_bsd44_read_ar_hdr): Ditto.
329105caefcfSchristos	(_bfd_archive_bsd44_write_ar_hdr): Ditto.
329205caefcfSchristos	(_bfd_archive_bsd44_openr_next_archived_file): Ditto.
329305caefcfSchristos	(_bfd_archive_bsd44_get_elt_at_index): Ditto.
329405caefcfSchristos	(_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
329505caefcfSchristos	(_bfd_archive_bsd44_update_armap_timestamp): Ditto.
329605caefcfSchristos	* libbfd.h: Regenerate.
329705caefcfSchristos	* oasys.c (oasys_write_ar_hdr): Define.
329805caefcfSchristos	* libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
329905caefcfSchristos	* ieee.c (ieee_write_ar_hdr): Define.
330005caefcfSchristos	* elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
330105caefcfSchristos	* coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
330205caefcfSchristos	(bfd_pmac_xcoff_backend_data): Ditto.
330305caefcfSchristos	* coff64-rs6000.c (rs6000coff64_vec): Ditto.
330405caefcfSchristos	(bfd_xcoff_aix5_backend_data): Ditto.
330505caefcfSchristos	* coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
330605caefcfSchristos	* aout-target.h (MY_write_ar_hdr): Define it if not defined.
330705caefcfSchristos	* aout-tic30.c (MY_write_ar_hdr): Ditto.
330805caefcfSchristos	* mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
330905caefcfSchristos	(bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
331005caefcfSchristos	(bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
331105caefcfSchristos	(bfd_mach_o_construct_extended_name_table)
331205caefcfSchristos	(bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
331305caefcfSchristos	(bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
331405caefcfSchristos	(bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
331505caefcfSchristos	* mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
331605caefcfSchristos	(bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
331705caefcfSchristos	(bfd_mach_o_construct_extended_name_table)
331805caefcfSchristos	(bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
331905caefcfSchristos	(bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
332005caefcfSchristos	(bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
332105caefcfSchristos	* bfd-in2.h: Regenerate.
332205caefcfSchristos
332305caefcfSchristos2010-01-26  Alan Modra  <amodra@gmail.com>
332405caefcfSchristos	    H.J. Lu  <hongjiu.lu@intel.com>
332505caefcfSchristos
332605caefcfSchristos	PR ld/11218
332705caefcfSchristos	* elflink.c (elf_link_output_extsym): Do not ignore undefined
332805caefcfSchristos	symbols with ref_regular set when gc_sections is active.
332905caefcfSchristos
333005caefcfSchristos2010-01-25  Alan Modra  <amodra@gmail.com>
333105caefcfSchristos
333205caefcfSchristos	PR ld/11217
333305caefcfSchristos	* elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
333405caefcfSchristos	with relocations against undefined weak symbols.
333505caefcfSchristos	(ppc64_elf_relocate_section): Don't optimize calls to undefined
333605caefcfSchristos	weak functions if the symbol is dynamic.
333705caefcfSchristos	(ppc64_elf_relocate_section): Edit tprel tls sequences.
333805caefcfSchristos	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
333905caefcfSchristos	(_bfd_elf_ppc_at_tprel_transform): New function.
334005caefcfSchristos	* bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
334105caefcfSchristos	* bfd-in2.h: Regenerate.
334205caefcfSchristos
334305caefcfSchristos2010-01-23  Richard Sandiford  <r.sandiford@uk.ibm.com>
334405caefcfSchristos
334505caefcfSchristos	* coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
334605caefcfSchristos	(_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
334705caefcfSchristos	* coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
334805caefcfSchristos	bitsize to 1.
334905caefcfSchristos	(xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
335005caefcfSchristos
335105caefcfSchristos2010-01-21  Nick Clifton  <nickc@redhat.com>
335205caefcfSchristos
335305caefcfSchristos	* elflink.c (elf_link_add_object_symbols): Look up name of
335405caefcfSchristos	undefined symbol both before and after versioning has been
335505caefcfSchristos	applied.  Do not bother with symbols that are weakly undefined.
335605caefcfSchristos
335705caefcfSchristos2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
335805caefcfSchristos
335905caefcfSchristos	* elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
336005caefcfSchristos	(bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
336105caefcfSchristos
336205caefcfSchristos2010-01-19  Cary Coutant  <ccoutant@google.com>
336305caefcfSchristos
336405caefcfSchristos	* dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
336505caefcfSchristos
336605caefcfSchristos2010-01-19  Daisuke Hatayama  <d.hatayama@jp.fujitsu.com>
336705caefcfSchristos	    Alan Modra <amodra@gmail.com>
336805caefcfSchristos
336905caefcfSchristos	* elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
337005caefcfSchristos	(elf_object_p): Read e_phnum extension.
337105caefcfSchristos	(elf_write_shdrs_and_ehdr): Write e_phnum extension.
337205caefcfSchristos	* elfcore.h (elf_core_file_p): Read e_phnum extension.  Sanity check
337305caefcfSchristos	that we can read last program header.
337405caefcfSchristos
337505caefcfSchristos2010-01-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
337605caefcfSchristos
337705caefcfSchristos	* elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
337805caefcfSchristos	R_ARM_THM_CALL entry.
337905caefcfSchristos	(elf32_arm_final_link_relocate): Correct calculation of
338005caefcfSchristos	reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
338105caefcfSchristos	or R_ARM_THM_JUMP24 relocation.
338205caefcfSchristos
338305caefcfSchristos2010-01-18  Alan Modra  <amodra@gmail.com>
338405caefcfSchristos
338505caefcfSchristos	PR 11168
338605caefcfSchristos	* coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
338705caefcfSchristos	block past vars in COFF_IMAGE_WITH_PE block.  Report error on more
338805caefcfSchristos	than 32k sections.
338905caefcfSchristos
339005caefcfSchristos2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
339105caefcfSchristos
339205caefcfSchristos	Fix compilation warning on gcc-3.4.
339305caefcfSchristos	* vms-tir.c (start_etir_record, sto_imm): Rename the prototype
339405caefcfSchristos	parameter index to sec_index according to the function definition.
339505caefcfSchristos
339605caefcfSchristos2010-01-13  Chao-ying Fu  <fu@mips.com>
339705caefcfSchristos
339805caefcfSchristos	* elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
339905caefcfSchristos	It is true for all CPUs.
340005caefcfSchristos	(jal_reloc_p): New function.
340105caefcfSchristos	(mips_elf_calculate_relocation): Rename require_jalxp to
340205caefcfSchristos	cross_mode_jump_p.
340305caefcfSchristos	Update comment for CROSS_MODE_JUMP_P.
340405caefcfSchristos	Set up cross_mode_jump_p based on the mode change.
340505caefcfSchristos	(mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
340605caefcfSchristos	Update comment for CROSS_MODE_JUMP_P.
340705caefcfSchristos	Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
340805caefcfSchristos	Use !cross_mode_jump_p to guard conversion.
340905caefcfSchristos	Convert "jr t9" to "b", if possible.
341005caefcfSchristos	(_bfd_mips_elf_relocate_section): Rename require_jalx to
341105caefcfSchristos	cross_mode_jump_p.
341205caefcfSchristos	Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
341305caefcfSchristos	Pass cross_mode_jump_p to call mips_elf_perform_relocation.
341405caefcfSchristos
341505caefcfSchristos2010-01-13  Nick Clifton  <nickc@redhat.com>
341605caefcfSchristos
341705caefcfSchristos	* cpu-m32c.c (m32c_scan): New function.  Ensures that a scan for
341805caefcfSchristos	"m32c" returns the m32c arch_info_struct and not the m16c
341905caefcfSchristos	arch_info_struct.
342005caefcfSchristos	(arch_info_struct): Use the new scan function.
342105caefcfSchristos	(bfd_m32c_arch): Likewise.
342205caefcfSchristos
342305caefcfSchristos2010-01-13  Tristan Gingold  <gingold@adacore.com>
342405caefcfSchristos
342505caefcfSchristos	* config.bfd: Remove duplicated target vector for i386-*-darwin.
342605caefcfSchristos	Appends new arch instead of overriding.
342705caefcfSchristos	Use mach_o_x86_64_vec for x86_64-*-darwin.
342805caefcfSchristos	* configure.in: Add mach_o_x86_64_vec.
342905caefcfSchristos	* configure: Regenerate.
343005caefcfSchristos	* targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
343105caefcfSchristos	* Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
343205caefcfSchristos	(BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
343305caefcfSchristos	* Makefile.in: Regenerate.
343405caefcfSchristos	* mach-o-x86-64.c: New file.
343505caefcfSchristos
343605caefcfSchristos2010-01-13  Tristan Gingold  <gingold@adacore.com>
343705caefcfSchristos
343805caefcfSchristos	* reloc.c: Add MACH_O_X86_64 relocations.
343905caefcfSchristos	* bfd-in2.h: Regenerate.
344005caefcfSchristos	* libbfd.h: Regenerate.
344105caefcfSchristos
344205caefcfSchristos2010-01-13  Tristan Gingold  <gingold@adacore.com>
344305caefcfSchristos
344405caefcfSchristos	* archive.c (normalize): Use lbasename.
344505caefcfSchristos	(bfd_bsd_truncate_arname): Ditto.
344605caefcfSchristos	(bfd_gnu_truncate_arname): Ditto.
344705caefcfSchristos
344805caefcfSchristos2010-01-12  Tristan Gingold  <gingold@adacore.com>
344905caefcfSchristos
345005caefcfSchristos	* makefile.vms (CFLAGS): Turns warnings into informational messages.
345105caefcfSchristos
345205caefcfSchristos2010-01-11  Tristan Gingold  <gingold@adacore.com>
345305caefcfSchristos
345405caefcfSchristos	* mach-o.h: Add x86-64 relocation types.
345505caefcfSchristos
345605caefcfSchristos2010-01-11  Tristan Gingold  <gingold@adacore.com>
345705caefcfSchristos
345805caefcfSchristos	* mach-o.h (bfd_mach_o_backend_data): Add arch field.
345905caefcfSchristos	(bfd_mach_o_set_arch_mach): New prototype.
346005caefcfSchristos	* mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
346105caefcfSchristos	(bfd_mach_o_set_arch_mach): New function.
346205caefcfSchristos	(bfd_mach_o_gen_mkobject): New function.
346305caefcfSchristos	Set TARGET_ARCHITECTURE for the generic back-ends.
346405caefcfSchristos	* mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
346505caefcfSchristos	Check that TARGET_ARCHITECTURE is defined.
346605caefcfSchristos	Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
346705caefcfSchristos	* mach-o-i386.c (TARGET_ARCHITECTURE): Define.
346805caefcfSchristos
346905caefcfSchristos2010-01-11  Tristan Gingold  <gingold@adacore.com>
347005caefcfSchristos
347105caefcfSchristos	* archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
347205caefcfSchristos
347305caefcfSchristos2010-01-11  Nick Clifton  <nickc@redhat.com>
347405caefcfSchristos
347505caefcfSchristos	* elf32-v850.c (v850_elf_perform_relocation): Fix overflow
347605caefcfSchristos	handling of R_V850_HI16_S relocation.
347705caefcfSchristos
347805caefcfSchristos2010-01-11  Alan Modra  <amodra@gmail.com>
347905caefcfSchristos
348005caefcfSchristos	PR 11103
348105caefcfSchristos	* dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
348205caefcfSchristos
348305caefcfSchristos2010-01-11  Alan Modra  <amodra@gmail.com>
348405caefcfSchristos
348505caefcfSchristos	PR 6832
348605caefcfSchristos	* dwarf2.c (struct comp_unit): Add sec_info_ptr.
348705caefcfSchristos	(find_abstract_instance_name): Use it.
348805caefcfSchristos	(parse_comp_unit): Set it.
348905caefcfSchristos
349005caefcfSchristos2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
349105caefcfSchristos
349205caefcfSchristos	* Makefile.in: Regenerate.
349305caefcfSchristos	* configure: Regenerate.
349405caefcfSchristos
349505caefcfSchristos2010-01-08  Tristan Gingold  <gingold@adacore.com>
349605caefcfSchristos
349705caefcfSchristos	* archive.c: Remove bfd_special_undocumented_glue.
349805caefcfSchristos
349905caefcfSchristos2010-01-08  Alan Modra  <amodra@gmail.com>
350005caefcfSchristos
350105caefcfSchristos	PR ld/11133
350205caefcfSchristos	* elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
350305caefcfSchristos	* elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
350405caefcfSchristos	* elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
350505caefcfSchristos
350605caefcfSchristos2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
350705caefcfSchristos
350805caefcfSchristos	PR ld/11138
350905caefcfSchristos	* elflink.c (elf_link_check_versioned_symbol): Don't abort if
351005caefcfSchristos	a symbol referenced by DSO is is defined in a non-shared object
351105caefcfSchristos	and forced local.
351205caefcfSchristos
351305caefcfSchristos2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
351405caefcfSchristos
351505caefcfSchristos	PR ld/11133
351605caefcfSchristos	* elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
351705caefcfSchristos	undefined __start_XXX/__stop_XXX in all input files and set
351805caefcfSchristos	SEC_KEEP.
351905caefcfSchristos
352005caefcfSchristos2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
352105caefcfSchristos
352205caefcfSchristos	PR ld/11143
352305caefcfSchristos	* elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
352405caefcfSchristos
352505caefcfSchristos2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
352605caefcfSchristos
352705caefcfSchristos	* bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
352805caefcfSchristos	before including procfs.h.
352905caefcfSchristos	(BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
353005caefcfSchristos	* configure.in: Added autoconf probe for the pr_fpreg member.
353105caefcfSchristos	* configure: Regenerated.
353205caefcfSchristos	* config.in: Regenerated.
353305caefcfSchristos	* elf.c: Define _STRUCTURE_PROC before including procfs.h.
353405caefcfSchristos
353505caefcfSchristos2010-01-04  Joel Brobecker  <brobecker@adacore.com>
353605caefcfSchristos
353705caefcfSchristos	Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
353805caefcfSchristos	* dwarf2.c (concat_filename): Rename dirname with dir_name
353905caefcfSchristos	to void shadowing the dirname function.
354005caefcfSchristos	Rename subdirname with subdir_name to stay consistent with
354105caefcfSchristos	the new dir_name variable name.
354205caefcfSchristos
354305caefcfSchristos2010-01-04  Edmar Wienskoski  <edmar@freescale.com>
354405caefcfSchristos
354505caefcfSchristos	* archures.c: Add bfd_mach_ppc_e500mc64.
354605caefcfSchristos	* bfd-in2.h: Regenerate.
354705caefcfSchristos	* cpu-powerpc.c (bfd_powerpc_archs): Add entry for
354805caefcfSchristos	bfd_mach_ppc_e500mc64.
354905caefcfSchristos
355005caefcfSchristos2010-01-01  Joel Brobecker  <brobecker@adacore.com>
355105caefcfSchristos
355205caefcfSchristos	Fix -Wshadow warnings (seen on ppc-aix)
355305caefcfSchristos	* xcofflink.c: Replace finfo by flinfo throughout.
355405caefcfSchristos
355505caefcfSchristosFor older changes see ChangeLog-2009
355605caefcfSchristos
3557*5ba6b03cSchristosCopyright (C) 2010 Free Software Foundation, Inc.
3558*5ba6b03cSchristos
3559*5ba6b03cSchristosCopying and distribution of this file, with or without modification,
3560*5ba6b03cSchristosare permitted in any medium without royalty provided the copyright
3561*5ba6b03cSchristosnotice and this notice are preserved.
3562*5ba6b03cSchristos
356305caefcfSchristosLocal Variables:
356405caefcfSchristosmode: change-log
356505caefcfSchristosleft-margin: 8
356605caefcfSchristosfill-column: 74
356705caefcfSchristosversion-control: never
356805caefcfSchristosEnd:
3569