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