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