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