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