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