60d0ecc424f1d744dcec693cedeb61d899452c9f
[external/binutils.git] / bfd / ChangeLog
1 2010-02-18  Alan Modra  <amodra@gmail.com>
2
3         * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
4         commit.  Don't write zeros for removed group members.
5         (_bfd_elf_copy_private_header_data): Adjust size of group section
6         when group members are removed by objcopy.
7
8 2010-02-15  Dave Korn  <dave.korn.cygwin@gmail.com>
9
10         PR binutils/11280
11         * configure.host (*-*-solaris2.11):  Add host define to select
12         valid default code page for windres/windmc on solaris.
13
14 2010-02-15  Nick Clifton  <nickc@redhat.com>
15
16         * po/vi.po: Updated Vietnamese translation.
17
18 2010-02-12  Daniel Gutson  <dgutson@codesourcery.com>
19
20         * elf32-arm.c (elf32_arm_output_arch_local_syms): add
21         missing mapping symbol to data only sections.
22
23 2010-02-11  David S. Miller  <davem@davemloft.net>
24
25         * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
26         and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
27         symbols.
28         (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
29         these relocs on global symbols.
30         (gdopoff): New.
31         (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
32         local symbol references which are not STT_GNU_IFUNC.  Handle
33         relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
34         and deal with negative vs. non-negative values properly.
35
36 2010-02-09  Tristan Gingold  <gingold@adacore.com>
37
38         * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
39         non-external relocation.
40
41 2010-02-09  Alan Modra  <amodra@gmail.com>
42
43         * elf64-ppc.c (merge_got_entries): Move earlier in file.
44         (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
45         (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
46         (ppc64_elf_layout_multitoc): Don't resize if we have already
47         merged got entries.
48
49 2010-02-09  Michael Holzheu  <holzheu@de.ibm.com>
50
51         * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
52         elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
53         elfcore_write_s390_prefix): New.
54         * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
55         elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
56         elfcore_write_s390_prefix): New.
57         (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
58         NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
59         (elfcore_write_register_note): Handle .reg-s390-timer, 
60         .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
61         .reg-s390-prefix section.
62
63 2010-02-09  Alan Modra  <amodra@gmail.com>
64
65         * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
66         unsigned char.  Update variables and code using them throughout file.
67         (struct ppc_link_hash_entry): Likewise for tls_mask.
68
69         * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
70
71         * elf64-ppc.c (has_small_toc_reloc): Don't define.
72         (makes_toc_func_call, call_check_in_progress): Shuffle flags.
73         (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc.  Update
74         code setting the flag.
75         (ppc64_elf_next_toc_section): Group big-toc sections in
76         0x80008000 chunks.
77
78 2010-02-08  David S. Miller  <davem@davemloft.net>
79
80         * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
81         srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
82
83         * elfxx-sparc.c (create_got_section): Delete.
84         (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
85         section creator does that work for us.  Use ->elf.foo instead of
86         ->foo where applicable.
87         (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
88         where applicable.
89         (allocate_dynrelocs): Likewise.
90         (_bfd_sparc_elf_size_dynamic_sections): Likewise.
91         (_bfd_sparc_elf_relocate_section): Likewise.
92         (sparc_vxworks_build_plt_entry): Likewise.
93         (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
94         (sparc_finish_dyn): Likewise.
95         (sparc_vxworks_finish_exec_plt): Likewise.
96         (sparc_vxworks_finish_shared_plt): Likewise.
97         (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
98
99         * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
100         macros for visibilty and locality checks.
101         (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
102         (allocate_dynrelocs): Likewise.
103         (_bfd_sparc_elf_relocate_section): Likewise.
104         (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
105
106         * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
107         but never used local var 'dynobj'.
108
109         * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
110         nocopyreloc.
111
112         * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
113         (BFD_RELOC_SPARC_IRELATIVE): Likewise.
114         * bfd-in2.h: Regenerate.
115         * libbfd.h: Regenerate.
116
117         * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
118         and loc_hash_memory.
119         (_bfd_sparc_elf_link_hash_table_free): Declare.
120         * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
121         (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
122         bfd_elf32_bfd_link_hash_table_free): Define.
123         * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
124         has_ifunc_symbols if STT_GNU_IFUNC.
125         (bfd_elf64_bfd_link_hash_table_free): Define.
126         (elf_backend_post_process_headers): Define always.
127         * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
128         (sparc_reloc_map): Add entries for new IFUNC relocs.
129         (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
130         (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
131         (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
132         elf_sparc_get_local_sym_hash): New.
133         (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
134         from here...
135         (_bfd_sparc_elf_link_hash_table_create): ... to here.  Allocate
136         local hash table.
137         (_bfd_sparc_elf_link_hash_table_free): New.
138         (create_ifunc_sections): New.
139         (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
140         and call create_ifunc_sections().  For local STT_GNU_IFUNC symbols
141         cons up a fake local hash table entry for it.  Unconditionally add
142         a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular.  Count
143         dyn relocs for ifunc.
144         (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
145         (allocate_dynrelocs):  Unconditionally emit a PLT entry when
146         STT_GNU_IFUNC and h->def_regular.  Count GOT dyn relocs for ifunc.
147         (allocate_local_dynrelocs): New function.
148         (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
149         table.  Emit dynamic relocs to irelplt when not shared.  Treat iplt
150         like splt.
151         (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
152         (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
153         plt in iplt/irelplt.
154
155 2010-02-08  Richard Sandiford  <r.sandiford@uk.ibm.com>
156
157         * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
158         max_contents_size, only consider sections whose contents must
159         be swapped in.
160
161 2010-02-09  Alan Modra  <amodra@gmail.com>
162
163         * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
164         (ppc64_elf_size_dynamic_sections): ..and here..
165         (merge_got_entries): ..rather than here.
166
167 2010-02-09  Alan Modra  <amodra@gmail.com>
168
169         * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
170         (has_small_toc_reloc): Define.
171         (ppc64_elf_check_relocs): Set the above flags.
172         (ppc64_elf_edit_opd): Delete obfd param.
173         (ppc64_elf_tls_optimize): Likewise.
174         (ppc64_elf_edit_toc): Likewise.
175         (ppc64_elf_tls_setup): Likewise.  Add no_multi_toc param.
176         * elf64-ppc.h: Update prototypes.
177
178 2010-02-08  Alan Modra  <amodra@gmail.com>
179
180         * section.c (struct bfd_section): Delete has_tls_reloc,
181         has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
182         Add sec_flg0 thru sec_flg5.
183         (BFD_FAKE_SECTION): Update for changed flags.
184         * ecoff.c (bfd_debug_section): Likewise.
185         * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
186         * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
187         (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
188         * elf32-xtensa.c (reloc_done): Define.
189         * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
190         * bfd-in2.h: Regenerate.
191
192 2010-02-08  Tristan Gingold  <gingold@adacore.com>
193
194         * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
195         for non-scattered relocations.
196
197 2010-02-08  Nathan Sidwell  <nathan@codesourcery.com>
198
199         * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
200         apuinfo sections, only scan input sections once and reuse the
201         buffer.
202
203 2010-02-08  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
204
205         * archures.c (bfd_mach_ppc_titan): Define.
206         * bfd-in2.h: Regenerate.
207         * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
208
209 2010-02-08  Alan Modra  <amodra@gmail.com>
210
211         * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
212
213 2010-02-05  Sterling Augustine  <sterling@tensilica.com>
214
215         * elf.c (assign_file_positions_for_load_sections) Update lma of
216         section if necessary.  Fixes Bugzilla 11219.
217
218 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
219
220         * elf32-i386.c: Remove trailing white spaces.
221         * elf64-x86-64.c: Likewise.
222
223 2010-02-03  Nick Clifton  <nickc@redhat.com>
224
225         * elf-bfd.h (emum elf_object_id): Rename to elf_target_id.  Add
226         entries for other architectures.
227         (struct elf_link_hash_table): Add hash_table_id field.
228         (elf_hash_table_id): New accessor macro.
229         * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
230         parameter.
231         * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
232         returning cast pointer.
233         (elf32_mn10300_link_hash_table_create): Identify new table as
234         containing MN10300 extensions.
235         (mn10300_elf_relax_section): Check pointer returned by
236         elf32_mn10300_hash_table.
237         * elf32-arm.c: Likewise, except using ARM extensions.
238         * elf32-avr.c: Likewise, except using AVR extensions.
239         * elf32-bfin.c: Likewise, except using BFIN extensions.
240         * elf32-cris.c: Likewise, except using CRIS extensions.
241         * elf32-frv.c: Likewise, except using FRV extensions.
242         * elf32-hppa.c: Likewise, except using HPPA32 extensions.
243         * elf32-i386.c: Likewise, except using I386 extensions.
244         * elf32-lm32.c: Likewise, except using LM32 extensions.
245         * elf32-m32r.c: Likewise, except using M32RM extensions.
246         * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
247         * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
248         * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
249         * elf32-m68k.c: Likewise, except using M68K extensions.
250         * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
251         * elf32-ppc.c: Likewise, except using PPC32 extensions.
252         * elf32-s390.c: Likewise, except using S390 extensions.
253         * elf32-sh.c: Likewise, except using SH extensions.
254         * elf32-spu.c: Likewise, except using SPU extensions.
255         * elf32-xtensa.c: Likewise, except using XTENSA extensions.
256         * elf64-alpha.c: Likewise, except using ALPHA extensions.
257         * elf64-hppa.c: Likewise, except using HPPA64 extensions.
258         * elf64-ppc.c: Likewise, except using PPC64 extensions.
259         * elf64-s390.c: Likewise, except using S390 extensions.
260         * elf64-x86-64.c: Likewise, except using X86_64 extensions.
261         * elfxx-ia64.c: Likewise, except using IA64 extensions.
262         * elfxx-mips.c: Likewise, except using MIPS extensions.
263         * elfxx-sparc.c: Likewise, except using SPARC extensions.
264         * elfxx-sparc.h: Likewise, except using SPARC extensions.
265         * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
266         redundant structure.
267         (elf32_cr16_hash_table): Delete unused macro.
268         (elf32_cr16_link_hash_traverse): Delete unused macro.
269         * elf32-score.c: Likewise.
270         * elf32-score7.c: Likewise.
271         * elf32-vax.c: Likewise.
272         * elf64-sh64.c: Likewise.
273
274 2010-02-03  Alan Modra  <amodra@gmail.com>
275
276         * elf64-ppc.c (struct plt_entry): Move earlier in file.
277         (struct got_entry): Likewise.  Add is_indirect and got.ent fields.
278         (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
279         Update all uses.
280         (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
281         Remove no_multi_toc.
282         (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
283         when allocating a new struct got_entry.
284         (allocate_got): New function, extracted from..
285         (allocate_dynrelocs): ..here.  Abort on got entry in non-ppc64 bfd.
286         (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
287         .reliplt by got_reli_size.  Set owner on ppc64_tlsld_got entries.
288         (ppc64_elf_setup_section_lists): Remove output_bfd param and
289         no_multi_toc, add add_stub_section and layout_sections_again.  Stash
290         new params in htab.  Extract some code to..
291         (ppc64_elf_start_multitoc_partition): ..here.  New function.
292         (ppc64_elf_next_toc_section): Check for linker script errors.  Handle
293         second pass toc scan.
294         (merge_got_entries, merge_global_got, reallocate_got): New functions.
295         (ppc64_elf_reinit_toc): Rename to..
296         (ppc64_elf_finish_multitoc_partition): ..this.
297         (ppc64_elf_layout_multitoc): New function.
298         (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
299         layout_sections_again params.
300         (ppc64_elf_relocate_section): Handle indirect got entries.
301         * elf64-ppc.h: Update prototypes.  Declare new functions.
302
303 2010-02-02  H.J. Lu  <hongjiu.lu@intel.com>
304
305         * elf-bfd.h (elfcore_write_xstatereg): New.
306
307         * elf.c (elfcore_grok_xstatereg): New.
308         (elfcore_write_xstatereg): Likewise.
309         (elfcore_grok_note): Handle NT_X86_XSTATE.
310         (elfcore_write_register_note): Handle .reg-xstate section.
311
312 2010-02-01  Tristan Gingold  <gingold@adacore.com>
313
314         * som.c (som_write_ar_hdr): Define this macro.
315
316 2010-01-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
317
318         * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
319         R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
320         linkage table pointer to use the global table pointer if not doing
321         a shared link.
322
323 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
324
325         * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
326         if it has already been set.
327
328 2010-01-27  Tristan Gingold  <gingold@adacore.com>
329
330         * vms.h: Remove trailing spaces.
331         (struct hdr_struct): Remove unused hdr_c_cpr field.
332         (enum file_format_enum): Add comments.
333         * vms.c (vms_bfd_print_private_bfd_data): New function that
334         replaces the macro.
335         Remove trailing spaces.
336         * vms-misc.c: Improve comments.
337         (_bfd_vms_get_object_record): Also handle files without pads.
338         * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
339         * vms-gsd.c (struct flagdescstruct): Make name field const.
340         (gsyflagdesc): Fix typo.
341
342 2010-01-27  Alan Modra  <amodra@gmail.com>
343
344         PR ld/11217
345         * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
346         (ppc64_elf_setup_section_lists): Init them.
347         (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
348         and .toc on the same input file.
349         (ppc64_elf_relocate_section): Correct GOT entry offset.
350
351 2010-01-26  Tristan Gingold  <gingold@adacore.com>
352
353         * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
354         (bfd_target): Add _bfd_write_ar_hdr_fn field.
355         * archive.c (is_bsd44_extended_name): New macro.
356         (_bfd_generic_read_ar_hdr_mag): Use it.  Add extra_size.
357         (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
358         name.
359         (_bfd_archive_bsd44_construct_extended_name_table): New function.
360         (_bfd_generic_write_ar_hdr): Ditto.
361         (_bfd_bsd44_write_ar_hdr): Ditto.
362         (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
363         (bsd_write_armap): Adjust firstreal computation.
364         * libbfd-in.h (struct areltdata): Add extra_size field.
365         (_bfd_generic_write_ar_hdr): Add prototype.
366         (_bfd_bsd44_write_ar_hdr): Ditto.
367         (_bfd_write_ar_hdr): Define.
368         (_bfd_noarchive_write_ar_hdr): Ditto.
369         (_bfd_archive_bsd_write_ar_hdr): Ditto.
370         (_bfd_archive_coff_write_ar_hdr): Ditto.
371         (_bfd_archive_bsd44_slurp_armap): Ditto.
372         (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
373         (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
374         (_bfd_archive_bsd44_truncate_arname): Ditto.
375         (_bfd_archive_bsd44_write_armap): Ditto.
376         (_bfd_archive_bsd44_read_ar_hdr): Ditto.
377         (_bfd_archive_bsd44_write_ar_hdr): Ditto.
378         (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
379         (_bfd_archive_bsd44_get_elt_at_index): Ditto.
380         (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
381         (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
382         * libbfd.h: Regenerate.
383         * oasys.c (oasys_write_ar_hdr): Define.
384         * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
385         * ieee.c (ieee_write_ar_hdr): Define.
386         * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
387         * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
388         (bfd_pmac_xcoff_backend_data): Ditto.
389         * coff64-rs6000.c (rs6000coff64_vec): Ditto.
390         (bfd_xcoff_aix5_backend_data): Ditto.
391         * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
392         * aout-target.h (MY_write_ar_hdr): Define it if not defined.
393         * aout-tic30.c (MY_write_ar_hdr): Ditto.
394         * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
395         (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
396         (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
397         (bfd_mach_o_construct_extended_name_table)
398         (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
399         (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
400         (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
401         * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
402         (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
403         (bfd_mach_o_construct_extended_name_table)
404         (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
405         (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
406         (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
407         * bfd-in2.h: Regenerate.
408
409 2010-01-26  Alan Modra  <amodra@gmail.com>
410             H.J. Lu  <hongjiu.lu@intel.com>
411
412         PR ld/11218
413         * elflink.c (elf_link_output_extsym): Do not ignore undefined
414         symbols with ref_regular set when gc_sections is active.
415
416 2010-01-25  Alan Modra  <amodra@gmail.com>
417
418         PR ld/11217
419         * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
420         with relocations against undefined weak symbols.
421         (ppc64_elf_relocate_section): Don't optimize calls to undefined
422         weak functions if the symbol is dynamic.
423         (ppc64_elf_relocate_section): Edit tprel tls sequences.
424         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
425         (_bfd_elf_ppc_at_tprel_transform): New function.
426         * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
427         * bfd-in2.h: Regenerate.
428
429 2010-01-23  Richard Sandiford  <r.sandiford@uk.ibm.com>
430
431         * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
432         (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
433         * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
434         bitsize to 1.
435         (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
436
437 2010-01-21  Nick Clifton  <nickc@redhat.com>
438
439         * elflink.c (elf_link_add_object_symbols): Look up name of
440         undefined symbol both before and after versioning has been
441         applied.  Do not bother with symbols that are weakly undefined.
442
443 2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
444
445         * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
446         (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
447
448 2010-01-19  Cary Coutant  <ccoutant@google.com>
449
450         * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
451
452 2010-01-19  Daisuke Hatayama  <d.hatayama@jp.fujitsu.com>
453             Alan Modra <amodra@gmail.com>
454
455         * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
456         (elf_object_p): Read e_phnum extension.
457         (elf_write_shdrs_and_ehdr): Write e_phnum extension.
458         * elfcore.h (elf_core_file_p): Read e_phnum extension.  Sanity check
459         that we can read last program header.
460
461 2010-01-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
462
463         * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
464         R_ARM_THM_CALL entry.
465         (elf32_arm_final_link_relocate): Correct calculation of
466         reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
467         or R_ARM_THM_JUMP24 relocation.
468
469 2010-01-18  Alan Modra  <amodra@gmail.com>
470
471         PR 11168
472         * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
473         block past vars in COFF_IMAGE_WITH_PE block.  Report error on more
474         than 32k sections.
475
476 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
477
478         Fix compilation warning on gcc-3.4.
479         * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
480         parameter index to sec_index according to the function definition.
481
482 2010-01-13  Chao-ying Fu  <fu@mips.com>
483
484         * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
485         It is true for all CPUs.
486         (jal_reloc_p): New function.
487         (mips_elf_calculate_relocation): Rename require_jalxp to
488         cross_mode_jump_p.
489         Update comment for CROSS_MODE_JUMP_P.
490         Set up cross_mode_jump_p based on the mode change.
491         (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
492         Update comment for CROSS_MODE_JUMP_P.
493         Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
494         Use !cross_mode_jump_p to guard conversion.
495         Convert "jr t9" to "b", if possible.
496         (_bfd_mips_elf_relocate_section): Rename require_jalx to
497         cross_mode_jump_p.
498         Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
499         Pass cross_mode_jump_p to call mips_elf_perform_relocation.
500
501 2010-01-13  Nick Clifton  <nickc@redhat.com>
502
503         * cpu-m32c.c (m32c_scan): New function.  Ensures that a scan for
504         "m32c" returns the m32c arch_info_struct and not the m16c
505         arch_info_struct.
506         (arch_info_struct): Use the new scan function.
507         (bfd_m32c_arch): Likewise.
508
509 2010-01-13  Tristan Gingold  <gingold@adacore.com>
510
511         * config.bfd: Remove duplicated target vector for i386-*-darwin.
512         Appends new arch instead of overriding.
513         Use mach_o_x86_64_vec for x86_64-*-darwin.
514         * configure.in: Add mach_o_x86_64_vec.
515         * configure: Regenerate.
516         * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
517         * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
518         (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
519         * Makefile.in: Regenerate.
520         * mach-o-x86-64.c: New file.
521
522 2010-01-13  Tristan Gingold  <gingold@adacore.com>
523
524         * reloc.c: Add MACH_O_X86_64 relocations.
525         * bfd-in2.h: Regenerate.
526         * libbfd.h: Regenerate.
527
528 2010-01-13  Tristan Gingold  <gingold@adacore.com>
529
530         * archive.c (normalize): Use lbasename.
531         (bfd_bsd_truncate_arname): Ditto.
532         (bfd_gnu_truncate_arname): Ditto.
533
534 2010-01-12  Tristan Gingold  <gingold@adacore.com>
535
536         * makefile.vms (CFLAGS): Turns warnings into informational messages.
537
538 2010-01-11  Tristan Gingold  <gingold@adacore.com>
539
540         * mach-o.h: Add x86-64 relocation types.
541
542 2010-01-11  Tristan Gingold  <gingold@adacore.com>
543
544         * mach-o.h (bfd_mach_o_backend_data): Add arch field.
545         (bfd_mach_o_set_arch_mach): New prototype.
546         * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
547         (bfd_mach_o_set_arch_mach): New function.
548         (bfd_mach_o_gen_mkobject): New function.
549         Set TARGET_ARCHITECTURE for the generic back-ends.
550         * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
551         Check that TARGET_ARCHITECTURE is defined.
552         Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
553         * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
554
555 2010-01-11  Tristan Gingold  <gingold@adacore.com>
556
557         * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
558
559 2010-01-11  Nick Clifton  <nickc@redhat.com>
560
561         * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
562         handling of R_V850_HI16_S relocation.
563
564 2010-01-11  Alan Modra  <amodra@gmail.com>
565
566         PR 11103
567         * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
568
569 2010-01-11  Alan Modra  <amodra@gmail.com>
570
571         PR 6832
572         * dwarf2.c (struct comp_unit): Add sec_info_ptr.
573         (find_abstract_instance_name): Use it.
574         (parse_comp_unit): Set it.
575
576 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
577
578         * Makefile.in: Regenerate.
579         * configure: Regenerate.
580
581 2010-01-08  Tristan Gingold  <gingold@adacore.com>
582
583         * archive.c: Remove bfd_special_undocumented_glue.
584
585 2010-01-08  Alan Modra  <amodra@gmail.com>
586
587         PR ld/11133
588         * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
589         * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
590         * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
591
592 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
593
594         PR ld/11138
595         * elflink.c (elf_link_check_versioned_symbol): Don't abort if
596         a symbol referenced by DSO is is defined in a non-shared object
597         and forced local.
598
599 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
600
601         PR ld/11133
602         * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
603         undefined __start_XXX/__stop_XXX in all input files and set
604         SEC_KEEP.
605
606 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
607
608         PR ld/11143
609         * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
610
611 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
612
613         * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
614         before including procfs.h.
615         (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
616         * configure.in: Added autoconf probe for the pr_fpreg member.
617         * configure: Regenerated.
618         * config.in: Regenerated.
619         * elf.c: Define _STRUCTURE_PROC before including procfs.h.
620
621 2010-01-04  Joel Brobecker  <brobecker@adacore.com>
622
623         Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
624         * dwarf2.c (concat_filename): Rename dirname with dir_name
625         to void shadowing the dirname function.
626         Rename subdirname with subdir_name to stay consistent with
627         the new dir_name variable name.
628
629 2010-01-04  Edmar Wienskoski  <edmar@freescale.com>
630
631         * archures.c: Add bfd_mach_ppc_e500mc64.
632         * bfd-in2.h: Regenerate.
633         * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
634         bfd_mach_ppc_e500mc64.
635
636 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
637
638         Fix -Wshadow warnings (seen on ppc-aix)
639         * xcofflink.c: Replace finfo by flinfo throughout.
640
641 For older changes see ChangeLog-2009
642 \f
643 Local Variables:
644 mode: change-log
645 left-margin: 8
646 fill-column: 74
647 version-control: never
648 End: