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