Fix toplevel configure --enable-multilib handling.
[binutils.git] / bfd / ChangeLog
blobbdefe2a7a73a3da59d6ffd9eb4b120ad68c16730
1 2010-03-31  Hans-Peter Nilsson  <hp@axis.com>
3         PR ld/11458
4         * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
5         assert of empty pcrel_relocs_copied on the direct symbol.  Instead
6         of moving the list from the indirect symbol to the direct symbol,
7         merge into any existing list.
8         (cris_elf_check_relocs): Store the original section in the
9         pcrel_relocs_copied list, not the relocation section.
10         (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
11         the relocation section, for reducing its size.  Change the
12         BFD_ASSERT into a check for the section being read-only, and only
13         emit warnings and TEXTREL marker when there's an entry for a
14         read-only section.
16 2010-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
18         * elf32-arm.c (using_thumb_only): Handle v6-M.
20 2010-03-26  Alan Modra  <amodra@gmail.com>
22         * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
23         * bfd-in.h (elf_discarded_section): Clarify comment.
24         * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
25         * bfd-in2.h: Regenerate.
27 2010-03-26  Matt Rice  <ratmice@gmail.com>
29         * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
30         as unique in the armap.
32 2010-03-26  Alan Modra  <amodra@gmail.com>
34         PR ld/11375
35         * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
36         possible stub on branches.
38 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
40         * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
41         (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
42         (BFD32_BACKENDS): Add elf32-tic6x.lo.
43         (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
44         * Makefile.in: Regenerate.
45         * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
46         (bfd_archures_list): Update.
47         * config.bfd (tic6x-*-elf): New.
48         * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
49         New.
50         * configure: Regenerate.
51         * cpu-tic6x.c, elf32-tic6x.c: New.
52         * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
53         BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
54         BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
55         BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
56         BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
57         BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
58         BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
59         BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
60         BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
61         BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
62         BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
63         BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
64         BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
65         * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
66         (_bfd_target_vector): Update.
67         * bfd-in2.h, libbfd.h: Regenerate.
69 2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
71         * aout-target.h: Update copyright year.
72         * aout-tic30.c: Likewise.
73         * coff-alpha.c: Likewise.
74         * coff-rs6000.c: Likewise.
75         * coff64-rs6000.c: Likewise.
76         * elf64-mips.c: Likewise.
77         * ieee.c: Likewise.
78         * libecoff.h: Likewise.
79         * mach-o-target.c: Likewise.
80         * mach-o.c: Likewise.
81         * oasys.c: Likewise.
82         * targets.c: Likewise.
84 2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
86         * libbfd-in.h: Update copyright year.
88 2010-03-21  H.J. Lu  <hongjiu.lu@intel.com>
90         PR ld/11413
91         * elflink.c (_bfd_elf_add_default_symbol): Check !executable
92         instead of shared.
94 2010-03-19  Jie Zhang  <jie@codesourcery.com>
96         * elf32-arm.c (struct section_list): Remove.
97         (section_list): Remove typedef.
98         (record_section_with_arm_elf_section_data): Remove.
99         (find_arm_elf_section_entry): Remove.
100         (get_arm_elf_section_data): Use is_arm_elf.
101         (unrecord_section_with_arm_elf_section_data): Remove.
102         (elf32_arm_new_section_hook): Don't call
103         record_section_with_arm_elf_section_data.
104         (elf32_arm_write_section): Set mapcount to -1 when
105         the map has been used. Don't call
106         unrecord_section_with_arm_elf_section_data.
107         (unrecord_section_via_map_over_sections): Remove.
108         (elf32_arm_close_and_cleanup): Remove.
109         (elf32_arm_bfd_free_cached_info): Remove.
110         (bfd_elf32_close_and_cleanup): Don't define.
111         (bfd_elf32_bfd_free_cached_info): Don't define.
113 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
115         PR binutils/11396
116         * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
117         * libcoff.h: Regenerated.
119         * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
120         if dont_strip_reloc is set.
121         (_bfd_XX_bfd_copy_private_bfd_data_common): Set
122         dont_strip_reloc on output if there is no .reloc and
123         IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
125 2010-03-18  Wei Guozhi  <carrot@google.com>
127         PR gas/11323
128         * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
129         R_ARM_GOT_PREL.
130         * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
131         * bfd-in2.h: Regenerate.
132         * libbfd.h: Regenerate.
134 2010-03-17  H.J. Lu  <hongjiu.lu@intel.com>
136         * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
137         (BFD_RELOC_SPU_STUB): Likewise.
139 2010-03-17  Jie Zhang  <jie@codesourcery.com>
141         * elf.c (assign_file_positions_for_load_sections): Avoid
142         overflow.
144 2010-03-17  Alan Modra  <amodra@gmail.com>
146         PR binutils/11382
147         * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
148         proper type.
150 2010-03-17  Alan Modra  <amodra@gmail.com>
152         * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
154 2010-03-16  Alan Modra  <amodra@gmail.com>
156         * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
157         (ppc64_elf_edit_toc): Set it here.
158         (ha_reloc_match): New function.
159         (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
161 2010-03-15  Alan Modra  <amodra@gmail.com>
163         * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
164         * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
166 2010-03-14  Alan Modra  <amodra@gmail.com>
168         PR ld/11378
169         * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
170         * elf64-ppc.c (call_check_done): Define.
171         (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
172         (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
173         (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
174         (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
175         Simplify return logic.  Iterate over all .init and .fini fragments
176         by recursion.  Set makes_toc_func_call here..
177         (ppc64_elf_next_input_section): ..rather than here.
178         (check_pasted_section, ppc64_elf_check_init_fini): New functions.
180 2010-03-13  Alan Modra  <amodra@gmail.com>
182         PR ld/11375
183         * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
184         function descriptor symbol if there is one, not just for plt stubs.
185         (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
187 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
189         * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
190         version twice.
191         Skip it when constructing def.vd_next.
193         * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
194         bfd_elf32_i386_sol2_vec.
195         (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
196         (elf32_bed): Redefine to elf32_i386_sol2_bed.
197         (elf_backend_want_plt_sym): Redefine to 1.
199         * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
200         bfd_elf64_x86_64_sol2_vec.
201         (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
202         (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
203         (elf_backend_want_plt_sym): Redefine to 1.
205         * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
206         bfd_elf32_i386_sol2_vec.
207         Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
208         targ64_selvecs.
209         (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
210         Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
211         targ_selvecs.
213         * configure.in: Handle bfd_elf32_i386_sol2_vec,
214         bfd_elf64_x86_64_sol2_vec.
215         * configure: Regenerate.
217         * targets.c (bfd_elf32_i386_sol2_vec): Declare.
218         (bfd_elf64_x86_64_sol2_vec): Declare.
219         (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
220         bfd_elf64_x86_64_sol2_vec.
222 2010-03-04  Daniel Jacobowitz  <dan@codesourcery.com>
224         * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
225         sections.
227 2010-03-04  Alan Modra  <amodra@gmail.com>
229         PR 11302
230         * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
231         (read_attribute_value, decode_line_info): Likewise.
232         (add_line_info, read_rangelist): Return FALSE on alloc failures.
233         (arange_add, sort_line_sequences): Likewise.
234         (find_abstract_instance_name): Handle failures from called funcs.
235         (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
236         (find_line): Realloc to a temp, and handle alloc fail.
238 2010-03-03  Daniel Jacobowitz  <dan@codesourcery.com>
240         * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
241         a mapping symbol to an empty section.
243 2010-03-02  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
245         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
246         return value from the call to _bfd_elf_merge_object_attributes.
248 2010-03-02  Christophe Lyon  <christophe.lyon@st.com>
249         Alan Modra  <amodra@gmail.com>
251         * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
252         destination mode of the a8 stub.
253         (elf32_arm_link_hash_table): Add top_id field.
254         (elf32_arm_link_hash_table_create): Initialize top_id.
255         (arm_type_of_stub): Update prototype, st_type can now be updated
256         by this function. Actual destination address in case of PLT is
257         computed here, to help factorizing code.
258         (elf32_arm_stub_name): Update prototype, use stub_type additional
259         parameter to build stub name.
260         (elf32_arm_get_stub_entry): Update prototype, use stub_type
261         additional parameter to build stub entry.
262         (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
263         put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
264         Call elf32_arm_final_link_relocate to process all in-stub
265         relocations.
266         (elf32_arm_setup_section_lists): Update top_id.
267         (cortex_a8_erratum_scan): Record stub destination mode.
268         (elf32_arm_size_stubs): Update call to arm_type_of_stub according
269         to new prototype.
270         (elf32_arm_final_link_relocate): Enable processing of in-stub
271         REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
272         needed, enabling code factorization.
273         (elf32_arm_final_link): Process stub sections.
274         (elf32_arm_output_map_sym): Add entry to code/data map.
276 2010-03-01  David S. Miller  <davem@davemloft.net>
278         * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
279         h->def_regular, set h->ref_regular.
280         (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
281         and dynamic relocations if h->ref_regular.
283         * elfxx-sparc.c (struct elf_reloc_map): Delete.
284         (sparc_reloc_map): Delete.
285         (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
286         relocation type in switch statements.
288 2010-02-25  Alan Modra  <amodra@gmail.com>
290         PR ld/11304
291         * elf.c (_bfd_elf_init_private_section_data): Rename need_group
292         to final_link and invert.  For final link allow some flags to
293         differ.  Don't specially allow flags to be all zero.
295 2010-02-24  Alan Modra  <amodra@gmail.com>
297         PR binutils/10858
298         * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
299         SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
300         table.
302 2010-02-23  Andrew Zabolotny  <anpaza@mail.ru>
304         PR binutils/11297
305         * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
306         (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
308 2010-02-22  Alan Modra  <amodra@gmail.com>
310         * reloc.c (bfd_check_overflow): When forming addrmask, shift
311         fieldmask left by rightshift.
312         (_bfd_relocate_contents): Likewise.  Use rightshift addrmask in all
313         overflow checks.
315 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
317         * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
318         STT_GNU_IFUNC on large common symbol.
320 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
322         * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
323         has_ifunc_symbols if the symbol comes from a shared library.
324         * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
325         * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
326         * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
327         * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
328         * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
330 2010-02-19  Alan Modra  <amodra@gmail.com>
332         * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
333         (_bfd_elf_copy_private_header_data): ..here.
334         * elflink.c (_bfd_elf_size_group_sections): New function.
335         (bfd_elf_size_dynamic_sections): Call it.
336         * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
337         (_bfd_elf_fixup_group_sections): Declare.
339 2010-02-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
341         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
342         merging Tag_DIV_use, Tag_MPextension_use, and
343         Tag_MPextension_use_legacy tags.
345 2010-02-18  Alan Modra  <amodra@gmail.com>
347         * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
348         commit.  Don't write zeros for removed group members.
349         (_bfd_elf_copy_private_header_data): Adjust size of group section
350         when group members are removed by objcopy.
352 2010-02-15  Dave Korn  <dave.korn.cygwin@gmail.com>
354         PR binutils/11280
355         * configure.host (*-*-solaris2.11):  Add host define to select
356         valid default code page for windres/windmc on solaris.
358 2010-02-15  Nick Clifton  <nickc@redhat.com>
360         * po/vi.po: Updated Vietnamese translation.
362 2010-02-12  Daniel Gutson  <dgutson@codesourcery.com>
364         * elf32-arm.c (elf32_arm_output_arch_local_syms): add
365         missing mapping symbol to data only sections.
367 2010-02-11  David S. Miller  <davem@davemloft.net>
369         * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
370         and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
371         symbols.
372         (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
373         these relocs on global symbols.
374         (gdopoff): New.
375         (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
376         local symbol references which are not STT_GNU_IFUNC.  Handle
377         relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
378         and deal with negative vs. non-negative values properly.
380 2010-02-09  Tristan Gingold  <gingold@adacore.com>
382         * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
383         non-external relocation.
385 2010-02-09  Alan Modra  <amodra@gmail.com>
387         * elf64-ppc.c (merge_got_entries): Move earlier in file.
388         (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
389         (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
390         (ppc64_elf_layout_multitoc): Don't resize if we have already
391         merged got entries.
393 2010-02-09  Michael Holzheu  <holzheu@de.ibm.com>
395         * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
396         elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
397         elfcore_write_s390_prefix): New.
398         * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
399         elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
400         elfcore_write_s390_prefix): New.
401         (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
402         NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
403         (elfcore_write_register_note): Handle .reg-s390-timer,
404         .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
405         .reg-s390-prefix section.
407 2010-02-09  Alan Modra  <amodra@gmail.com>
409         * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
410         unsigned char.  Update variables and code using them throughout file.
411         (struct ppc_link_hash_entry): Likewise for tls_mask.
413         * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
415         * elf64-ppc.c (has_small_toc_reloc): Don't define.
416         (makes_toc_func_call, call_check_in_progress): Shuffle flags.
417         (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc.  Update
418         code setting the flag.
419         (ppc64_elf_next_toc_section): Group big-toc sections in
420         0x80008000 chunks.
422 2010-02-08  David S. Miller  <davem@davemloft.net>
424         * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
425         srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
427         * elfxx-sparc.c (create_got_section): Delete.
428         (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
429         section creator does that work for us.  Use ->elf.foo instead of
430         ->foo where applicable.
431         (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
432         where applicable.
433         (allocate_dynrelocs): Likewise.
434         (_bfd_sparc_elf_size_dynamic_sections): Likewise.
435         (_bfd_sparc_elf_relocate_section): Likewise.
436         (sparc_vxworks_build_plt_entry): Likewise.
437         (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
438         (sparc_finish_dyn): Likewise.
439         (sparc_vxworks_finish_exec_plt): Likewise.
440         (sparc_vxworks_finish_shared_plt): Likewise.
441         (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
443         * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
444         macros for visibilty and locality checks.
445         (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
446         (allocate_dynrelocs): Likewise.
447         (_bfd_sparc_elf_relocate_section): Likewise.
448         (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
450         * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
451         but never used local var 'dynobj'.
453         * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
454         nocopyreloc.
456         * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
457         (BFD_RELOC_SPARC_IRELATIVE): Likewise.
458         * bfd-in2.h: Regenerate.
459         * libbfd.h: Regenerate.
461         * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
462         and loc_hash_memory.
463         (_bfd_sparc_elf_link_hash_table_free): Declare.
464         * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
465         (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
466         bfd_elf32_bfd_link_hash_table_free): Define.
467         * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
468         has_ifunc_symbols if STT_GNU_IFUNC.
469         (bfd_elf64_bfd_link_hash_table_free): Define.
470         (elf_backend_post_process_headers): Define always.
471         * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
472         (sparc_reloc_map): Add entries for new IFUNC relocs.
473         (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
474         (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
475         (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
476         elf_sparc_get_local_sym_hash): New.
477         (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
478         from here...
479         (_bfd_sparc_elf_link_hash_table_create): ... to here.  Allocate
480         local hash table.
481         (_bfd_sparc_elf_link_hash_table_free): New.
482         (create_ifunc_sections): New.
483         (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
484         and call create_ifunc_sections().  For local STT_GNU_IFUNC symbols
485         cons up a fake local hash table entry for it.  Unconditionally add
486         a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular.  Count
487         dyn relocs for ifunc.
488         (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
489         (allocate_dynrelocs):  Unconditionally emit a PLT entry when
490         STT_GNU_IFUNC and h->def_regular.  Count GOT dyn relocs for ifunc.
491         (allocate_local_dynrelocs): New function.
492         (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
493         table.  Emit dynamic relocs to irelplt when not shared.  Treat iplt
494         like splt.
495         (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
496         (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
497         plt in iplt/irelplt.
499 2010-02-08  Richard Sandiford  <r.sandiford@uk.ibm.com>
501         * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
502         max_contents_size, only consider sections whose contents must
503         be swapped in.
505 2010-02-09  Alan Modra  <amodra@gmail.com>
507         * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
508         (ppc64_elf_size_dynamic_sections): ..and here..
509         (merge_got_entries): ..rather than here.
511 2010-02-09  Alan Modra  <amodra@gmail.com>
513         * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
514         (has_small_toc_reloc): Define.
515         (ppc64_elf_check_relocs): Set the above flags.
516         (ppc64_elf_edit_opd): Delete obfd param.
517         (ppc64_elf_tls_optimize): Likewise.
518         (ppc64_elf_edit_toc): Likewise.
519         (ppc64_elf_tls_setup): Likewise.  Add no_multi_toc param.
520         * elf64-ppc.h: Update prototypes.
522 2010-02-08  Alan Modra  <amodra@gmail.com>
524         * section.c (struct bfd_section): Delete has_tls_reloc,
525         has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
526         Add sec_flg0 thru sec_flg5.
527         (BFD_FAKE_SECTION): Update for changed flags.
528         * ecoff.c (bfd_debug_section): Likewise.
529         * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
530         * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
531         (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
532         * elf32-xtensa.c (reloc_done): Define.
533         * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
534         * bfd-in2.h: Regenerate.
536 2010-02-08  Tristan Gingold  <gingold@adacore.com>
538         * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
539         for non-scattered relocations.
541 2010-02-08  Nathan Sidwell  <nathan@codesourcery.com>
543         * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
544         apuinfo sections, only scan input sections once and reuse the
545         buffer.
547 2010-02-08  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
549         * archures.c (bfd_mach_ppc_titan): Define.
550         * bfd-in2.h: Regenerate.
551         * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
553 2010-02-08  Alan Modra  <amodra@gmail.com>
555         * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
557 2010-02-05  Sterling Augustine  <sterling@tensilica.com>
559         * elf.c (assign_file_positions_for_load_sections) Update lma of
560         section if necessary.  Fixes Bugzilla 11219.
562 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
564         * elf32-i386.c: Remove trailing white spaces.
565         * elf64-x86-64.c: Likewise.
567 2010-02-03  Nick Clifton  <nickc@redhat.com>
569         * elf-bfd.h (emum elf_object_id): Rename to elf_target_id.  Add
570         entries for other architectures.
571         (struct elf_link_hash_table): Add hash_table_id field.
572         (elf_hash_table_id): New accessor macro.
573         * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
574         parameter.
575         * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
576         returning cast pointer.
577         (elf32_mn10300_link_hash_table_create): Identify new table as
578         containing MN10300 extensions.
579         (mn10300_elf_relax_section): Check pointer returned by
580         elf32_mn10300_hash_table.
581         * elf32-arm.c: Likewise, except using ARM extensions.
582         * elf32-avr.c: Likewise, except using AVR extensions.
583         * elf32-bfin.c: Likewise, except using BFIN extensions.
584         * elf32-cris.c: Likewise, except using CRIS extensions.
585         * elf32-frv.c: Likewise, except using FRV extensions.
586         * elf32-hppa.c: Likewise, except using HPPA32 extensions.
587         * elf32-i386.c: Likewise, except using I386 extensions.
588         * elf32-lm32.c: Likewise, except using LM32 extensions.
589         * elf32-m32r.c: Likewise, except using M32RM extensions.
590         * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
591         * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
592         * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
593         * elf32-m68k.c: Likewise, except using M68K extensions.
594         * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
595         * elf32-ppc.c: Likewise, except using PPC32 extensions.
596         * elf32-s390.c: Likewise, except using S390 extensions.
597         * elf32-sh.c: Likewise, except using SH extensions.
598         * elf32-spu.c: Likewise, except using SPU extensions.
599         * elf32-xtensa.c: Likewise, except using XTENSA extensions.
600         * elf64-alpha.c: Likewise, except using ALPHA extensions.
601         * elf64-hppa.c: Likewise, except using HPPA64 extensions.
602         * elf64-ppc.c: Likewise, except using PPC64 extensions.
603         * elf64-s390.c: Likewise, except using S390 extensions.
604         * elf64-x86-64.c: Likewise, except using X86_64 extensions.
605         * elfxx-ia64.c: Likewise, except using IA64 extensions.
606         * elfxx-mips.c: Likewise, except using MIPS extensions.
607         * elfxx-sparc.c: Likewise, except using SPARC extensions.
608         * elfxx-sparc.h: Likewise, except using SPARC extensions.
609         * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
610         redundant structure.
611         (elf32_cr16_hash_table): Delete unused macro.
612         (elf32_cr16_link_hash_traverse): Delete unused macro.
613         * elf32-score.c: Likewise.
614         * elf32-score7.c: Likewise.
615         * elf32-vax.c: Likewise.
616         * elf64-sh64.c: Likewise.
618 2010-02-03  Alan Modra  <amodra@gmail.com>
620         * elf64-ppc.c (struct plt_entry): Move earlier in file.
621         (struct got_entry): Likewise.  Add is_indirect and got.ent fields.
622         (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
623         Update all uses.
624         (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
625         Remove no_multi_toc.
626         (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
627         when allocating a new struct got_entry.
628         (allocate_got): New function, extracted from..
629         (allocate_dynrelocs): ..here.  Abort on got entry in non-ppc64 bfd.
630         (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
631         .reliplt by got_reli_size.  Set owner on ppc64_tlsld_got entries.
632         (ppc64_elf_setup_section_lists): Remove output_bfd param and
633         no_multi_toc, add add_stub_section and layout_sections_again.  Stash
634         new params in htab.  Extract some code to..
635         (ppc64_elf_start_multitoc_partition): ..here.  New function.
636         (ppc64_elf_next_toc_section): Check for linker script errors.  Handle
637         second pass toc scan.
638         (merge_got_entries, merge_global_got, reallocate_got): New functions.
639         (ppc64_elf_reinit_toc): Rename to..
640         (ppc64_elf_finish_multitoc_partition): ..this.
641         (ppc64_elf_layout_multitoc): New function.
642         (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
643         layout_sections_again params.
644         (ppc64_elf_relocate_section): Handle indirect got entries.
645         * elf64-ppc.h: Update prototypes.  Declare new functions.
647 2010-02-02  H.J. Lu  <hongjiu.lu@intel.com>
649         * elf-bfd.h (elfcore_write_xstatereg): New.
651         * elf.c (elfcore_grok_xstatereg): New.
652         (elfcore_write_xstatereg): Likewise.
653         (elfcore_grok_note): Handle NT_X86_XSTATE.
654         (elfcore_write_register_note): Handle .reg-xstate section.
656 2010-02-01  Tristan Gingold  <gingold@adacore.com>
658         * som.c (som_write_ar_hdr): Define this macro.
660 2010-01-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
662         * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
663         R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
664         linkage table pointer to use the global table pointer if not doing
665         a shared link.
667 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
669         * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
670         if it has already been set.
672 2010-01-27  Tristan Gingold  <gingold@adacore.com>
674         * vms.h: Remove trailing spaces.
675         (struct hdr_struct): Remove unused hdr_c_cpr field.
676         (enum file_format_enum): Add comments.
677         * vms.c (vms_bfd_print_private_bfd_data): New function that
678         replaces the macro.
679         Remove trailing spaces.
680         * vms-misc.c: Improve comments.
681         (_bfd_vms_get_object_record): Also handle files without pads.
682         * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
683         * vms-gsd.c (struct flagdescstruct): Make name field const.
684         (gsyflagdesc): Fix typo.
686 2010-01-27  Alan Modra  <amodra@gmail.com>
688         PR ld/11217
689         * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
690         (ppc64_elf_setup_section_lists): Init them.
691         (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
692         and .toc on the same input file.
693         (ppc64_elf_relocate_section): Correct GOT entry offset.
695 2010-01-26  Tristan Gingold  <gingold@adacore.com>
697         * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
698         (bfd_target): Add _bfd_write_ar_hdr_fn field.
699         * archive.c (is_bsd44_extended_name): New macro.
700         (_bfd_generic_read_ar_hdr_mag): Use it.  Add extra_size.
701         (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
702         name.
703         (_bfd_archive_bsd44_construct_extended_name_table): New function.
704         (_bfd_generic_write_ar_hdr): Ditto.
705         (_bfd_bsd44_write_ar_hdr): Ditto.
706         (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
707         (bsd_write_armap): Adjust firstreal computation.
708         * libbfd-in.h (struct areltdata): Add extra_size field.
709         (_bfd_generic_write_ar_hdr): Add prototype.
710         (_bfd_bsd44_write_ar_hdr): Ditto.
711         (_bfd_write_ar_hdr): Define.
712         (_bfd_noarchive_write_ar_hdr): Ditto.
713         (_bfd_archive_bsd_write_ar_hdr): Ditto.
714         (_bfd_archive_coff_write_ar_hdr): Ditto.
715         (_bfd_archive_bsd44_slurp_armap): Ditto.
716         (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
717         (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
718         (_bfd_archive_bsd44_truncate_arname): Ditto.
719         (_bfd_archive_bsd44_write_armap): Ditto.
720         (_bfd_archive_bsd44_read_ar_hdr): Ditto.
721         (_bfd_archive_bsd44_write_ar_hdr): Ditto.
722         (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
723         (_bfd_archive_bsd44_get_elt_at_index): Ditto.
724         (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
725         (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
726         * libbfd.h: Regenerate.
727         * oasys.c (oasys_write_ar_hdr): Define.
728         * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
729         * ieee.c (ieee_write_ar_hdr): Define.
730         * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
731         * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
732         (bfd_pmac_xcoff_backend_data): Ditto.
733         * coff64-rs6000.c (rs6000coff64_vec): Ditto.
734         (bfd_xcoff_aix5_backend_data): Ditto.
735         * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
736         * aout-target.h (MY_write_ar_hdr): Define it if not defined.
737         * aout-tic30.c (MY_write_ar_hdr): Ditto.
738         * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
739         (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
740         (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
741         (bfd_mach_o_construct_extended_name_table)
742         (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
743         (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
744         (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
745         * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
746         (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
747         (bfd_mach_o_construct_extended_name_table)
748         (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
749         (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
750         (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
751         * bfd-in2.h: Regenerate.
753 2010-01-26  Alan Modra  <amodra@gmail.com>
754             H.J. Lu  <hongjiu.lu@intel.com>
756         PR ld/11218
757         * elflink.c (elf_link_output_extsym): Do not ignore undefined
758         symbols with ref_regular set when gc_sections is active.
760 2010-01-25  Alan Modra  <amodra@gmail.com>
762         PR ld/11217
763         * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
764         with relocations against undefined weak symbols.
765         (ppc64_elf_relocate_section): Don't optimize calls to undefined
766         weak functions if the symbol is dynamic.
767         (ppc64_elf_relocate_section): Edit tprel tls sequences.
768         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
769         (_bfd_elf_ppc_at_tprel_transform): New function.
770         * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
771         * bfd-in2.h: Regenerate.
773 2010-01-23  Richard Sandiford  <r.sandiford@uk.ibm.com>
775         * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
776         (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
777         * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
778         bitsize to 1.
779         (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
781 2010-01-21  Nick Clifton  <nickc@redhat.com>
783         * elflink.c (elf_link_add_object_symbols): Look up name of
784         undefined symbol both before and after versioning has been
785         applied.  Do not bother with symbols that are weakly undefined.
787 2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
789         * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
790         (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
792 2010-01-19  Cary Coutant  <ccoutant@google.com>
794         * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
796 2010-01-19  Daisuke Hatayama  <d.hatayama@jp.fujitsu.com>
797             Alan Modra <amodra@gmail.com>
799         * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
800         (elf_object_p): Read e_phnum extension.
801         (elf_write_shdrs_and_ehdr): Write e_phnum extension.
802         * elfcore.h (elf_core_file_p): Read e_phnum extension.  Sanity check
803         that we can read last program header.
805 2010-01-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
807         * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
808         R_ARM_THM_CALL entry.
809         (elf32_arm_final_link_relocate): Correct calculation of
810         reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
811         or R_ARM_THM_JUMP24 relocation.
813 2010-01-18  Alan Modra  <amodra@gmail.com>
815         PR 11168
816         * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
817         block past vars in COFF_IMAGE_WITH_PE block.  Report error on more
818         than 32k sections.
820 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
822         Fix compilation warning on gcc-3.4.
823         * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
824         parameter index to sec_index according to the function definition.
826 2010-01-13  Chao-ying Fu  <fu@mips.com>
828         * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
829         It is true for all CPUs.
830         (jal_reloc_p): New function.
831         (mips_elf_calculate_relocation): Rename require_jalxp to
832         cross_mode_jump_p.
833         Update comment for CROSS_MODE_JUMP_P.
834         Set up cross_mode_jump_p based on the mode change.
835         (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
836         Update comment for CROSS_MODE_JUMP_P.
837         Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
838         Use !cross_mode_jump_p to guard conversion.
839         Convert "jr t9" to "b", if possible.
840         (_bfd_mips_elf_relocate_section): Rename require_jalx to
841         cross_mode_jump_p.
842         Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
843         Pass cross_mode_jump_p to call mips_elf_perform_relocation.
845 2010-01-13  Nick Clifton  <nickc@redhat.com>
847         * cpu-m32c.c (m32c_scan): New function.  Ensures that a scan for
848         "m32c" returns the m32c arch_info_struct and not the m16c
849         arch_info_struct.
850         (arch_info_struct): Use the new scan function.
851         (bfd_m32c_arch): Likewise.
853 2010-01-13  Tristan Gingold  <gingold@adacore.com>
855         * config.bfd: Remove duplicated target vector for i386-*-darwin.
856         Appends new arch instead of overriding.
857         Use mach_o_x86_64_vec for x86_64-*-darwin.
858         * configure.in: Add mach_o_x86_64_vec.
859         * configure: Regenerate.
860         * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
861         * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
862         (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
863         * Makefile.in: Regenerate.
864         * mach-o-x86-64.c: New file.
866 2010-01-13  Tristan Gingold  <gingold@adacore.com>
868         * reloc.c: Add MACH_O_X86_64 relocations.
869         * bfd-in2.h: Regenerate.
870         * libbfd.h: Regenerate.
872 2010-01-13  Tristan Gingold  <gingold@adacore.com>
874         * archive.c (normalize): Use lbasename.
875         (bfd_bsd_truncate_arname): Ditto.
876         (bfd_gnu_truncate_arname): Ditto.
878 2010-01-12  Tristan Gingold  <gingold@adacore.com>
880         * makefile.vms (CFLAGS): Turns warnings into informational messages.
882 2010-01-11  Tristan Gingold  <gingold@adacore.com>
884         * mach-o.h: Add x86-64 relocation types.
886 2010-01-11  Tristan Gingold  <gingold@adacore.com>
888         * mach-o.h (bfd_mach_o_backend_data): Add arch field.
889         (bfd_mach_o_set_arch_mach): New prototype.
890         * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
891         (bfd_mach_o_set_arch_mach): New function.
892         (bfd_mach_o_gen_mkobject): New function.
893         Set TARGET_ARCHITECTURE for the generic back-ends.
894         * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
895         Check that TARGET_ARCHITECTURE is defined.
896         Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
897         * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
899 2010-01-11  Tristan Gingold  <gingold@adacore.com>
901         * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
903 2010-01-11  Nick Clifton  <nickc@redhat.com>
905         * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
906         handling of R_V850_HI16_S relocation.
908 2010-01-11  Alan Modra  <amodra@gmail.com>
910         PR 11103
911         * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
913 2010-01-11  Alan Modra  <amodra@gmail.com>
915         PR 6832
916         * dwarf2.c (struct comp_unit): Add sec_info_ptr.
917         (find_abstract_instance_name): Use it.
918         (parse_comp_unit): Set it.
920 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
922         * Makefile.in: Regenerate.
923         * configure: Regenerate.
925 2010-01-08  Tristan Gingold  <gingold@adacore.com>
927         * archive.c: Remove bfd_special_undocumented_glue.
929 2010-01-08  Alan Modra  <amodra@gmail.com>
931         PR ld/11133
932         * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
933         * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
934         * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
936 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
938         PR ld/11138
939         * elflink.c (elf_link_check_versioned_symbol): Don't abort if
940         a symbol referenced by DSO is is defined in a non-shared object
941         and forced local.
943 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
945         PR ld/11133
946         * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
947         undefined __start_XXX/__stop_XXX in all input files and set
948         SEC_KEEP.
950 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
952         PR ld/11143
953         * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
955 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
957         * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
958         before including procfs.h.
959         (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
960         * configure.in: Added autoconf probe for the pr_fpreg member.
961         * configure: Regenerated.
962         * config.in: Regenerated.
963         * elf.c: Define _STRUCTURE_PROC before including procfs.h.
965 2010-01-04  Joel Brobecker  <brobecker@adacore.com>
967         Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
968         * dwarf2.c (concat_filename): Rename dirname with dir_name
969         to void shadowing the dirname function.
970         Rename subdirname with subdir_name to stay consistent with
971         the new dir_name variable name.
973 2010-01-04  Edmar Wienskoski  <edmar@freescale.com>
975         * archures.c: Add bfd_mach_ppc_e500mc64.
976         * bfd-in2.h: Regenerate.
977         * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
978         bfd_mach_ppc_e500mc64.
980 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
982         Fix -Wshadow warnings (seen on ppc-aix)
983         * xcofflink.c: Replace finfo by flinfo throughout.
985 For older changes see ChangeLog-2009
987 Local Variables:
988 mode: change-log
989 left-margin: 8
990 fill-column: 74
991 version-control: never
992 End: