1 2010-05-03 Tristan Gingold <gingold@adacore.com>
3 * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
5 (vms_lib_dcx): Adjust for the above change.
7 2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
10 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
12 * elf32-i386.c (elf_i386_relocate_section): Use it.
13 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
15 2010-04-30 Tristan Gingold <gingold@adacore.com>
17 * vms-lib.c (vms_read_block): New function.
18 (vms_traverse_index): Use vms_read_block. Handle long key names.
20 2010-04-30 Tristan Gingold <gingold@adacore.com>
22 * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
24 (struct carsym_mem): New structure.
25 (vms_add_index): New function.
26 (vms_add_indexes_from_list): New function.
27 (vms_traverse_index): Parameter carsym changed to carsym_mem.
28 Code adjusted to handle elfidx.
29 (vms_lib_read_index): Adjusted for vms_traverse_index changes.
30 Parameter NBREL is now a pointer.
31 (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64
33 (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
34 (_bfd_vms_lib_find_symbol): Ditto.
35 (vms_lib_bopen): Fix two typos: return FALSE in case of error,
37 (_bfd_vms_lib_get_module): New function.
38 (_bfd_vms_lib_get_elt_at_index): Rewritten using the above
40 (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
41 (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
42 (vms_write_index): Adjust for structure renamed.
43 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
44 changes of _bfd_vms_lib_find_symbol.
46 2010-04-28 Kai Tietz <kai.tietz@onevision.com>
48 * config.bfd: Correct accidential reverted patch
51 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
53 * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
54 to USE_MINGW64_LEADING_UNDERSCORES.
55 * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
56 * config.bfd: Change underscoring default for x64 mingw
58 * coffcode.h (coff_write_relocs): Add check that dereferenced
59 sym_ptr_ptr isn't NULL.
60 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
61 * configure: Regenerated.
62 * configure.in: Add option '--enable-leading-mingw64-underscores'
63 and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
65 2010-04-27 Nick Clifton <nickc@redhat.com>
68 * coffgen.c (coff_find_nearest_line): Incldue the section address
69 of function name symbols in address comparisons.
71 2010-04-27 Nick Clifton <nickc@redhat.com>
73 * po/fr.po: Updated French translation.
75 2010-04-23 Alan Modra <amodra@gmail.com>
77 * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
78 ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
80 (assign_file_positions_for_load_sections): Modify section in
81 segment warning to ignore overlay vmas.
82 * elf32-spu.c (spu_elf_object_p): Replace use of
83 ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
85 2010-04-22 Nick Clifton <nickc@redhat.com>
87 * po/bfd.pot: Updated by the Translation project.
88 * po/vi.po: Updated Vietnamese translation.
90 2010-04-22 Alan Modra <amodra@gmail.com>
92 * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
93 change. Tidy. Don't error on sections not allocated in segment.
95 2010-04-15 Andrew Haley <aph@redhat.com>
97 * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
99 * bfd-in2.h: Likewise.
100 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to
101 control merging of exidx entries.
103 2010-04-20 Joseph Myers <joseph@codesourcery.com>
105 * elf32-tic6x.h: New.
106 * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
107 * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
108 elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
109 elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
110 elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
111 bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
112 (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
113 elf32_tic6x_relocate_section): Handle REL relocations.
114 (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
116 2010-04-20 Jakub Jelinek <jakub@redhat.com>
118 * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
119 DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
121 2010-04-19 Nick Clifton <nickc@redhat.com>
123 * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
125 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
126 attribute to warned variable. Remove unused val, type and type2
129 2010-04-16 Andreas Schwab <schwab@redhat.com>
131 * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
132 strict-aliasing rules.
134 2010-04-16 Tristan Gingold <gingold@adacore.com>
136 * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
137 (_bfd_vms_get_object_record): Always assume there is a pad byte
140 * vms-lib.c: Add a few comments.
142 2010-04-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
144 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
145 attributes in v2.08 of the ABI.
147 2010-04-15 Alan Modra <amodra@gmail.com>
149 * config.bfd (vax*-*-*vms*): Delete.
151 2010-04-14 Tristan Gingold <gingold@adacore.com>
153 * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
154 vms-tir.lo, vms.lo and add vms-alpha.lo
155 (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
156 vms-tir.c, vms.c and add vms-alpha.c
157 * Makefile.in: Regenerate.
158 * configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
160 * configure: Regenerate.
161 * targets.c (vms_vax_vec): Remove the declaration.
162 (_bfd_target_vector): Remove vms_vax_vec.
163 * vms-alpha.c: New file.
164 * vms-gsd.c: Removed, rewritten in vms-alpha.c
168 * vms-misc.c: Fix indentation and comments. Replace most of
169 #if VMS_DEBUG/vms_debug with vms_debug2.
170 (_bfd_vms_hash_newfunc): Moved to vms-alpha.c
171 (hash_string): Ditto.
172 (_bfd_vms_length_hash_symbol): Ditto.
173 (maybe_adjust_record_pointer_for_object): Ditto.
174 (_bfd_vms_get_object_record): Ditto.
175 (vms_get_remaining_object_record): Ditto.
176 (_bfd_vms_push): Ditto.
177 (_bfd_vms_pop): Ditto.
178 (_bfd_vms_get_header_values): Removed.
179 (_bfd_vms_get_first_record): Removed.
180 (vms_get_remaining_image_record): Removed.
181 (new_symbol): Removed.
182 (_bfd_vms_enter_symbol): Removed.
183 (_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
184 (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd
185 parameter with struct vms_rec_wr.
186 (_bfd_vms_output_push): Removed and replaced by ...
187 (_bfd_vms_output_begin_subrec): ... new function.
188 (_bfd_vms_output_alignment): Replace bfd parameter with
189 struct vms_rec_wr, and adjust.
190 (_bfd_vms_output_check): Ditto
191 (_bfd_vms_output_byte): Ditto.
192 (_bfd_vms_output_short): Ditto.
193 (_bfd_vms_output_long): Ditto.
194 (_bfd_vms_output_quad): Ditto.
195 (_bfd_vms_output_counted): Ditto.
196 (_bfd_vms_output_dump): Ditto.
197 (_bfd_vms_output_fill): Ditto.
198 (_bfd_vms_output_pop): Removed and replaced by ...
199 (_bfd_vms_output_end_subrec): ... new function.
200 (_bfd_vms_output_flush): Removed.
201 (_bfd_vms_output_align): New function.
202 (_bfd_vms_output_end): Add recwr parameter. Adjust for this new
204 (vms_convert_to_var): New function imported from vms.c
205 (vms_convert_to_var_1): Ditto.
206 (vms_convert_to_var_unix_filename): Ditto.
207 (vms_get_module_name): Ditto.
208 (get_vms_time_string): Ditto.
209 (vms_time_to_time_t): Ditto.
210 (vms_rawtime_to_time_t): Ditto.
211 * vms.h: All macros for the VMS file format are now in include/vms.
212 Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
214 (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
215 (struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
216 (struct funcinfo, struct vms_private_data_struct): Ditto.
217 (struct vms_section_data_struct): Ditto.
218 (struct vms_rec_rd, stryct vms_rec_wr): New declarations.
219 (vms_get_module_name, get_vms_time_string): New declarations.
220 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
221 (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
222 (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
223 (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
224 (_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
225 (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
226 (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
227 (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
228 (_bfd_vms_output_fill): Ditto.
229 (bfd_vms_set_section_flags): Ditto.
231 2010-04-14 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
233 * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
234 exit due to merging the same weak symbol to test that the symbols are
237 2010-04-13 Alan Modra <amodra@gmail.com>
239 * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
240 when optimizing high got_tlsgd/ld insns.
242 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
244 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
246 (HAVE_PRSTATUS32_T): Likewise.
248 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
251 * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
253 * config.in: Regenerated.
254 * configure: Likewise.
256 * elf.c: Include CORE_HEADER if it is defined.
258 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
259 Jan Kratochvil <jan.kratochvil@redhat.com>
261 * hosts/x86-64linux.h: New.
263 2010-04-09 Nick Clifton <nickc@redhat.com>
265 * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
266 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
267 variables htab and hdr_info and mark info parameter as unused.
268 * elf.c (prep_headers): Remove unused variable i_phdrp.
269 (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
270 * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
272 * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
273 * verilog.c (verilog_write_section): Remove unused variable
276 2010-04-07 Alan Modra <amodra@gmail.com>
278 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
279 * configure: Regenerate.
281 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
284 * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
286 2010-04-06 Tristan Gingold <gingold@adacore.com>
288 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
290 2010-04-05 Jakub Jelinek <jakub@redhat.com>
292 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
293 provided that it has the expected address size and zero segment
296 * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
297 (struct line_info): Add op_index field, change end_sequence type to
299 (new_line_sorts_after): For the same address compare op_index.
300 (add_line_info): Add op_index argument, store it into the structure.
301 (decode_line_info): Complain about unknown versions of .debug_line.
302 Initialize maximum_ops_per_insn. Add op_index state register and
305 2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
307 * elf32-ppc.c (apuinfo_set): New static var.
308 (ppc_elf_begin_write_processing): Set it here, always create an
309 APUinfo section if there were any in the inputs.
310 (ppc_elf_write_section): Check apuinfo_set.
311 (ppc_elf_final_write_processing): Likewise.
313 2010-04-01 Tristan Gingold <gingold@adacore.com>
315 * vms.h: Include time.h. Add prototypes for vms_get_module_name,
316 vms_time_to_time_t and vms_rawtime_to_time_t.
317 * vms.c (vms_alpha_vec): Add archives support.
318 * vms-misc.c: Include safe-ctype.h
319 (vms_get_module_name): New function.
320 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
321 * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
322 vms_get_module_name function. Use this function.
323 * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
324 * libbfd-in.h: Add prototype for _bfd_append_relative_path.
325 Add prototypes for vms-lib.c
326 * libbfd.h: Regenerate.
327 * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
328 vms-lib.lo to vms_alpha_vec.
329 * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
330 * configure: Regenerate.
331 * bfd.c: Add selective_search field.
332 * bfd-in2.h: Regenerate.
333 * archive.c (append_relative_path): Rename to
334 _bfd_append_relative_path and make it public.
335 (_bfd_get_elt_at_filepos): Adjust for above renaming.
336 * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
337 (BFD32_BACKENDS_CFILES): Add vms-lib.c
338 * Makefile.in: Regenerate.
340 2010-04-01 Jakub Jelinek <jakub@redhat.com>
342 * dwarf2.c (read_attribute_value): Handle CU version 4
343 for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
344 and DW_FORM_flag_present. For unknown form value return NULL.
345 (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
347 (parse_comp_unit): Allow CU version 4.
349 2010-04-01 Hans-Peter Nilsson <hp@axis.com>
351 * elf32-cris.c (cris_elf_relocate_section): Correct first argument
352 to _bfd_elf_get_dynamic_reloc_section.
353 (elf_cris_discard_excess_dso_dynamics): Ditto.
355 2010-03-31 Kai Tietz <kai.tietz@onevision.com>
357 * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
358 * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
360 2010-03-31 Alan Modra <amodra@gmail.com>
362 * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
363 TPREL16_HI and TPREL16_HA insns.
365 2010-03-31 Hans-Peter Nilsson <hp@axis.com>
368 * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
369 assert of empty pcrel_relocs_copied on the direct symbol. Instead
370 of moving the list from the indirect symbol to the direct symbol,
371 merge into any existing list.
372 (cris_elf_check_relocs): Store the original section in the
373 pcrel_relocs_copied list, not the relocation section.
374 (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
375 the relocation section, for reducing its size. Change the
376 BFD_ASSERT into a check for the section being read-only, and only
377 emit warnings and TEXTREL marker when there's an entry for a
380 2010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
382 * elf32-arm.c (using_thumb_only): Handle v6-M.
384 2010-03-26 Alan Modra <amodra@gmail.com>
386 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
387 * bfd-in.h (elf_discarded_section): Clarify comment.
388 * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
389 * bfd-in2.h: Regenerate.
391 2010-03-26 Matt Rice <ratmice@gmail.com>
393 * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
394 as unique in the armap.
396 2010-03-26 Alan Modra <amodra@gmail.com>
399 * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
400 possible stub on branches.
402 2010-03-25 Joseph Myers <joseph@codesourcery.com>
404 * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
405 (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
406 (BFD32_BACKENDS): Add elf32-tic6x.lo.
407 (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
408 * Makefile.in: Regenerate.
409 * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
410 (bfd_archures_list): Update.
411 * config.bfd (tic6x-*-elf): New.
412 * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
414 * configure: Regenerate.
415 * cpu-tic6x.c, elf32-tic6x.c: New.
416 * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
417 BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
418 BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
419 BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
420 BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
421 BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
422 BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
423 BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
424 BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
425 BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
426 BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
427 BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
428 BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
429 * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
430 (_bfd_target_vector): Update.
431 * bfd-in2.h, libbfd.h: Regenerate.
433 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
435 * aout-target.h: Update copyright year.
436 * aout-tic30.c: Likewise.
437 * coff-alpha.c: Likewise.
438 * coff-rs6000.c: Likewise.
439 * coff64-rs6000.c: Likewise.
440 * elf64-mips.c: Likewise.
442 * libecoff.h: Likewise.
443 * mach-o-target.c: Likewise.
444 * mach-o.c: Likewise.
446 * targets.c: Likewise.
448 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
450 * libbfd-in.h: Update copyright year.
452 2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
455 * elflink.c (_bfd_elf_add_default_symbol): Check !executable
458 2010-03-19 Jie Zhang <jie@codesourcery.com>
460 * elf32-arm.c (struct section_list): Remove.
461 (section_list): Remove typedef.
462 (record_section_with_arm_elf_section_data): Remove.
463 (find_arm_elf_section_entry): Remove.
464 (get_arm_elf_section_data): Use is_arm_elf.
465 (unrecord_section_with_arm_elf_section_data): Remove.
466 (elf32_arm_new_section_hook): Don't call
467 record_section_with_arm_elf_section_data.
468 (elf32_arm_write_section): Set mapcount to -1 when
469 the map has been used. Don't call
470 unrecord_section_with_arm_elf_section_data.
471 (unrecord_section_via_map_over_sections): Remove.
472 (elf32_arm_close_and_cleanup): Remove.
473 (elf32_arm_bfd_free_cached_info): Remove.
474 (bfd_elf32_close_and_cleanup): Don't define.
475 (bfd_elf32_bfd_free_cached_info): Don't define.
477 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
480 * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
481 * libcoff.h: Regenerated.
483 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
484 if dont_strip_reloc is set.
485 (_bfd_XX_bfd_copy_private_bfd_data_common): Set
486 dont_strip_reloc on output if there is no .reloc and
487 IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
489 2010-03-18 Wei Guozhi <carrot@google.com>
492 * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
494 * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
495 * bfd-in2.h: Regenerate.
496 * libbfd.h: Regenerate.
498 2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
500 * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
501 (BFD_RELOC_SPU_STUB): Likewise.
503 2010-03-17 Jie Zhang <jie@codesourcery.com>
505 * elf.c (assign_file_positions_for_load_sections): Avoid
508 2010-03-17 Alan Modra <amodra@gmail.com>
511 * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
514 2010-03-17 Alan Modra <amodra@gmail.com>
516 * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
518 2010-03-16 Alan Modra <amodra@gmail.com>
520 * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
521 (ppc64_elf_edit_toc): Set it here.
522 (ha_reloc_match): New function.
523 (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
525 2010-03-15 Alan Modra <amodra@gmail.com>
527 * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
528 * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
530 2010-03-14 Alan Modra <amodra@gmail.com>
533 * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
534 * elf64-ppc.c (call_check_done): Define.
535 (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
536 (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
537 (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
538 (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
539 Simplify return logic. Iterate over all .init and .fini fragments
540 by recursion. Set makes_toc_func_call here..
541 (ppc64_elf_next_input_section): ..rather than here.
542 (check_pasted_section, ppc64_elf_check_init_fini): New functions.
544 2010-03-13 Alan Modra <amodra@gmail.com>
547 * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
548 function descriptor symbol if there is one, not just for plt stubs.
549 (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
551 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
553 * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
555 Skip it when constructing def.vd_next.
557 * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
558 bfd_elf32_i386_sol2_vec.
559 (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
560 (elf32_bed): Redefine to elf32_i386_sol2_bed.
561 (elf_backend_want_plt_sym): Redefine to 1.
563 * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
564 bfd_elf64_x86_64_sol2_vec.
565 (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
566 (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
567 (elf_backend_want_plt_sym): Redefine to 1.
569 * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
570 bfd_elf32_i386_sol2_vec.
571 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
573 (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
574 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
577 * configure.in: Handle bfd_elf32_i386_sol2_vec,
578 bfd_elf64_x86_64_sol2_vec.
579 * configure: Regenerate.
581 * targets.c (bfd_elf32_i386_sol2_vec): Declare.
582 (bfd_elf64_x86_64_sol2_vec): Declare.
583 (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
584 bfd_elf64_x86_64_sol2_vec.
586 2010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
588 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
591 2010-03-04 Alan Modra <amodra@gmail.com>
594 * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
595 (read_attribute_value, decode_line_info): Likewise.
596 (add_line_info, read_rangelist): Return FALSE on alloc failures.
597 (arange_add, sort_line_sequences): Likewise.
598 (find_abstract_instance_name): Handle failures from called funcs.
599 (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
600 (find_line): Realloc to a temp, and handle alloc fail.
602 2010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
604 * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
605 a mapping symbol to an empty section.
607 2010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
609 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
610 return value from the call to _bfd_elf_merge_object_attributes.
612 2010-03-02 Christophe Lyon <christophe.lyon@st.com>
613 Alan Modra <amodra@gmail.com>
615 * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
616 destination mode of the a8 stub.
617 (elf32_arm_link_hash_table): Add top_id field.
618 (elf32_arm_link_hash_table_create): Initialize top_id.
619 (arm_type_of_stub): Update prototype, st_type can now be updated
620 by this function. Actual destination address in case of PLT is
621 computed here, to help factorizing code.
622 (elf32_arm_stub_name): Update prototype, use stub_type additional
623 parameter to build stub name.
624 (elf32_arm_get_stub_entry): Update prototype, use stub_type
625 additional parameter to build stub entry.
626 (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
627 put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
628 Call elf32_arm_final_link_relocate to process all in-stub
630 (elf32_arm_setup_section_lists): Update top_id.
631 (cortex_a8_erratum_scan): Record stub destination mode.
632 (elf32_arm_size_stubs): Update call to arm_type_of_stub according
634 (elf32_arm_final_link_relocate): Enable processing of in-stub
635 REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
636 needed, enabling code factorization.
637 (elf32_arm_final_link): Process stub sections.
638 (elf32_arm_output_map_sym): Add entry to code/data map.
640 2010-03-01 David S. Miller <davem@davemloft.net>
642 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
643 h->def_regular, set h->ref_regular.
644 (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
645 and dynamic relocations if h->ref_regular.
647 * elfxx-sparc.c (struct elf_reloc_map): Delete.
648 (sparc_reloc_map): Delete.
649 (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
650 relocation type in switch statements.
652 2010-02-25 Alan Modra <amodra@gmail.com>
655 * elf.c (_bfd_elf_init_private_section_data): Rename need_group
656 to final_link and invert. For final link allow some flags to
657 differ. Don't specially allow flags to be all zero.
659 2010-02-24 Alan Modra <amodra@gmail.com>
662 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
663 SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
666 2010-02-23 Andrew Zabolotny <anpaza@mail.ru>
669 * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
670 (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
672 2010-02-22 Alan Modra <amodra@gmail.com>
674 * reloc.c (bfd_check_overflow): When forming addrmask, shift
675 fieldmask left by rightshift.
676 (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
679 2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
681 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
682 STT_GNU_IFUNC on large common symbol.
684 2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
686 * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
687 has_ifunc_symbols if the symbol comes from a shared library.
688 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
689 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
690 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
691 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
692 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
694 2010-02-19 Alan Modra <amodra@gmail.com>
696 * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
697 (_bfd_elf_copy_private_header_data): ..here.
698 * elflink.c (_bfd_elf_size_group_sections): New function.
699 (bfd_elf_size_dynamic_sections): Call it.
700 * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
701 (_bfd_elf_fixup_group_sections): Declare.
703 2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
705 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
706 merging Tag_DIV_use, Tag_MPextension_use, and
707 Tag_MPextension_use_legacy tags.
709 2010-02-18 Alan Modra <amodra@gmail.com>
711 * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
712 commit. Don't write zeros for removed group members.
713 (_bfd_elf_copy_private_header_data): Adjust size of group section
714 when group members are removed by objcopy.
716 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
719 * configure.host (*-*-solaris2.11): Add host define to select
720 valid default code page for windres/windmc on solaris.
722 2010-02-15 Nick Clifton <nickc@redhat.com>
724 * po/vi.po: Updated Vietnamese translation.
726 2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
728 * elf32-arm.c (elf32_arm_output_arch_local_syms): add
729 missing mapping symbol to data only sections.
731 2010-02-11 David S. Miller <davem@davemloft.net>
733 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
734 and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
736 (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
737 these relocs on global symbols.
739 (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
740 local symbol references which are not STT_GNU_IFUNC. Handle
741 relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
742 and deal with negative vs. non-negative values properly.
744 2010-02-09 Tristan Gingold <gingold@adacore.com>
746 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
747 non-external relocation.
749 2010-02-09 Alan Modra <amodra@gmail.com>
751 * elf64-ppc.c (merge_got_entries): Move earlier in file.
752 (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
753 (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
754 (ppc64_elf_layout_multitoc): Don't resize if we have already
757 2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
759 * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
760 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
761 elfcore_write_s390_prefix): New.
762 * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
763 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
764 elfcore_write_s390_prefix): New.
765 (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
766 NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
767 (elfcore_write_register_note): Handle .reg-s390-timer,
768 .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
769 .reg-s390-prefix section.
771 2010-02-09 Alan Modra <amodra@gmail.com>
773 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
774 unsigned char. Update variables and code using them throughout file.
775 (struct ppc_link_hash_entry): Likewise for tls_mask.
777 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
779 * elf64-ppc.c (has_small_toc_reloc): Don't define.
780 (makes_toc_func_call, call_check_in_progress): Shuffle flags.
781 (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
782 code setting the flag.
783 (ppc64_elf_next_toc_section): Group big-toc sections in
786 2010-02-08 David S. Miller <davem@davemloft.net>
788 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
789 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
791 * elfxx-sparc.c (create_got_section): Delete.
792 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
793 section creator does that work for us. Use ->elf.foo instead of
794 ->foo where applicable.
795 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
797 (allocate_dynrelocs): Likewise.
798 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
799 (_bfd_sparc_elf_relocate_section): Likewise.
800 (sparc_vxworks_build_plt_entry): Likewise.
801 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
802 (sparc_finish_dyn): Likewise.
803 (sparc_vxworks_finish_exec_plt): Likewise.
804 (sparc_vxworks_finish_shared_plt): Likewise.
805 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
807 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
808 macros for visibilty and locality checks.
809 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
810 (allocate_dynrelocs): Likewise.
811 (_bfd_sparc_elf_relocate_section): Likewise.
812 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
814 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
815 but never used local var 'dynobj'.
817 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
820 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
821 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
822 * bfd-in2.h: Regenerate.
823 * libbfd.h: Regenerate.
825 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
827 (_bfd_sparc_elf_link_hash_table_free): Declare.
828 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
829 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
830 bfd_elf32_bfd_link_hash_table_free): Define.
831 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
832 has_ifunc_symbols if STT_GNU_IFUNC.
833 (bfd_elf64_bfd_link_hash_table_free): Define.
834 (elf_backend_post_process_headers): Define always.
835 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
836 (sparc_reloc_map): Add entries for new IFUNC relocs.
837 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
838 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
839 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
840 elf_sparc_get_local_sym_hash): New.
841 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
843 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
845 (_bfd_sparc_elf_link_hash_table_free): New.
846 (create_ifunc_sections): New.
847 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
848 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
849 cons up a fake local hash table entry for it. Unconditionally add
850 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
851 dyn relocs for ifunc.
852 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
853 (allocate_dynrelocs): Unconditionally emit a PLT entry when
854 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
855 (allocate_local_dynrelocs): New function.
856 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
857 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
859 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
860 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
863 2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
865 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
866 max_contents_size, only consider sections whose contents must
869 2010-02-09 Alan Modra <amodra@gmail.com>
871 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
872 (ppc64_elf_size_dynamic_sections): ..and here..
873 (merge_got_entries): ..rather than here.
875 2010-02-09 Alan Modra <amodra@gmail.com>
877 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
878 (has_small_toc_reloc): Define.
879 (ppc64_elf_check_relocs): Set the above flags.
880 (ppc64_elf_edit_opd): Delete obfd param.
881 (ppc64_elf_tls_optimize): Likewise.
882 (ppc64_elf_edit_toc): Likewise.
883 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
884 * elf64-ppc.h: Update prototypes.
886 2010-02-08 Alan Modra <amodra@gmail.com>
888 * section.c (struct bfd_section): Delete has_tls_reloc,
889 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
890 Add sec_flg0 thru sec_flg5.
891 (BFD_FAKE_SECTION): Update for changed flags.
892 * ecoff.c (bfd_debug_section): Likewise.
893 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
894 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
895 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
896 * elf32-xtensa.c (reloc_done): Define.
897 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
898 * bfd-in2.h: Regenerate.
900 2010-02-08 Tristan Gingold <gingold@adacore.com>
902 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
903 for non-scattered relocations.
905 2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
907 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
908 apuinfo sections, only scan input sections once and reuse the
911 2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
913 * archures.c (bfd_mach_ppc_titan): Define.
914 * bfd-in2.h: Regenerate.
915 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
917 2010-02-08 Alan Modra <amodra@gmail.com>
919 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
921 2010-02-05 Sterling Augustine <sterling@tensilica.com>
923 * elf.c (assign_file_positions_for_load_sections) Update lma of
924 section if necessary. Fixes Bugzilla 11219.
926 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
928 * elf32-i386.c: Remove trailing white spaces.
929 * elf64-x86-64.c: Likewise.
931 2010-02-03 Nick Clifton <nickc@redhat.com>
933 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
934 entries for other architectures.
935 (struct elf_link_hash_table): Add hash_table_id field.
936 (elf_hash_table_id): New accessor macro.
937 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
939 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
940 returning cast pointer.
941 (elf32_mn10300_link_hash_table_create): Identify new table as
942 containing MN10300 extensions.
943 (mn10300_elf_relax_section): Check pointer returned by
944 elf32_mn10300_hash_table.
945 * elf32-arm.c: Likewise, except using ARM extensions.
946 * elf32-avr.c: Likewise, except using AVR extensions.
947 * elf32-bfin.c: Likewise, except using BFIN extensions.
948 * elf32-cris.c: Likewise, except using CRIS extensions.
949 * elf32-frv.c: Likewise, except using FRV extensions.
950 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
951 * elf32-i386.c: Likewise, except using I386 extensions.
952 * elf32-lm32.c: Likewise, except using LM32 extensions.
953 * elf32-m32r.c: Likewise, except using M32RM extensions.
954 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
955 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
956 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
957 * elf32-m68k.c: Likewise, except using M68K extensions.
958 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
959 * elf32-ppc.c: Likewise, except using PPC32 extensions.
960 * elf32-s390.c: Likewise, except using S390 extensions.
961 * elf32-sh.c: Likewise, except using SH extensions.
962 * elf32-spu.c: Likewise, except using SPU extensions.
963 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
964 * elf64-alpha.c: Likewise, except using ALPHA extensions.
965 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
966 * elf64-ppc.c: Likewise, except using PPC64 extensions.
967 * elf64-s390.c: Likewise, except using S390 extensions.
968 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
969 * elfxx-ia64.c: Likewise, except using IA64 extensions.
970 * elfxx-mips.c: Likewise, except using MIPS extensions.
971 * elfxx-sparc.c: Likewise, except using SPARC extensions.
972 * elfxx-sparc.h: Likewise, except using SPARC extensions.
973 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
975 (elf32_cr16_hash_table): Delete unused macro.
976 (elf32_cr16_link_hash_traverse): Delete unused macro.
977 * elf32-score.c: Likewise.
978 * elf32-score7.c: Likewise.
979 * elf32-vax.c: Likewise.
980 * elf64-sh64.c: Likewise.
982 2010-02-03 Alan Modra <amodra@gmail.com>
984 * elf64-ppc.c (struct plt_entry): Move earlier in file.
985 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
986 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
988 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
990 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
991 when allocating a new struct got_entry.
992 (allocate_got): New function, extracted from..
993 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
994 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
995 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
996 (ppc64_elf_setup_section_lists): Remove output_bfd param and
997 no_multi_toc, add add_stub_section and layout_sections_again. Stash
998 new params in htab. Extract some code to..
999 (ppc64_elf_start_multitoc_partition): ..here. New function.
1000 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
1001 second pass toc scan.
1002 (merge_got_entries, merge_global_got, reallocate_got): New functions.
1003 (ppc64_elf_reinit_toc): Rename to..
1004 (ppc64_elf_finish_multitoc_partition): ..this.
1005 (ppc64_elf_layout_multitoc): New function.
1006 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
1007 layout_sections_again params.
1008 (ppc64_elf_relocate_section): Handle indirect got entries.
1009 * elf64-ppc.h: Update prototypes. Declare new functions.
1011 2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
1013 * elf-bfd.h (elfcore_write_xstatereg): New.
1015 * elf.c (elfcore_grok_xstatereg): New.
1016 (elfcore_write_xstatereg): Likewise.
1017 (elfcore_grok_note): Handle NT_X86_XSTATE.
1018 (elfcore_write_register_note): Handle .reg-xstate section.
1020 2010-02-01 Tristan Gingold <gingold@adacore.com>
1022 * som.c (som_write_ar_hdr): Define this macro.
1024 2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1026 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
1027 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
1028 linkage table pointer to use the global table pointer if not doing
1031 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1033 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
1034 if it has already been set.
1036 2010-01-27 Tristan Gingold <gingold@adacore.com>
1038 * vms.h: Remove trailing spaces.
1039 (struct hdr_struct): Remove unused hdr_c_cpr field.
1040 (enum file_format_enum): Add comments.
1041 * vms.c (vms_bfd_print_private_bfd_data): New function that
1043 Remove trailing spaces.
1044 * vms-misc.c: Improve comments.
1045 (_bfd_vms_get_object_record): Also handle files without pads.
1046 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
1047 * vms-gsd.c (struct flagdescstruct): Make name field const.
1048 (gsyflagdesc): Fix typo.
1050 2010-01-27 Alan Modra <amodra@gmail.com>
1053 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
1054 (ppc64_elf_setup_section_lists): Init them.
1055 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
1056 and .toc on the same input file.
1057 (ppc64_elf_relocate_section): Correct GOT entry offset.
1059 2010-01-26 Tristan Gingold <gingold@adacore.com>
1061 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
1062 (bfd_target): Add _bfd_write_ar_hdr_fn field.
1063 * archive.c (is_bsd44_extended_name): New macro.
1064 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
1065 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
1067 (_bfd_archive_bsd44_construct_extended_name_table): New function.
1068 (_bfd_generic_write_ar_hdr): Ditto.
1069 (_bfd_bsd44_write_ar_hdr): Ditto.
1070 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
1071 (bsd_write_armap): Adjust firstreal computation.
1072 * libbfd-in.h (struct areltdata): Add extra_size field.
1073 (_bfd_generic_write_ar_hdr): Add prototype.
1074 (_bfd_bsd44_write_ar_hdr): Ditto.
1075 (_bfd_write_ar_hdr): Define.
1076 (_bfd_noarchive_write_ar_hdr): Ditto.
1077 (_bfd_archive_bsd_write_ar_hdr): Ditto.
1078 (_bfd_archive_coff_write_ar_hdr): Ditto.
1079 (_bfd_archive_bsd44_slurp_armap): Ditto.
1080 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
1081 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
1082 (_bfd_archive_bsd44_truncate_arname): Ditto.
1083 (_bfd_archive_bsd44_write_armap): Ditto.
1084 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
1085 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
1086 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
1087 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
1088 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
1089 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
1090 * libbfd.h: Regenerate.
1091 * oasys.c (oasys_write_ar_hdr): Define.
1092 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
1093 * ieee.c (ieee_write_ar_hdr): Define.
1094 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
1095 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
1096 (bfd_pmac_xcoff_backend_data): Ditto.
1097 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
1098 (bfd_xcoff_aix5_backend_data): Ditto.
1099 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
1100 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
1101 * aout-tic30.c (MY_write_ar_hdr): Ditto.
1102 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
1103 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1104 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1105 (bfd_mach_o_construct_extended_name_table)
1106 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1107 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1108 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
1109 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1110 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1111 (bfd_mach_o_construct_extended_name_table)
1112 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1113 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1114 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
1115 * bfd-in2.h: Regenerate.
1117 2010-01-26 Alan Modra <amodra@gmail.com>
1118 H.J. Lu <hongjiu.lu@intel.com>
1121 * elflink.c (elf_link_output_extsym): Do not ignore undefined
1122 symbols with ref_regular set when gc_sections is active.
1124 2010-01-25 Alan Modra <amodra@gmail.com>
1127 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
1128 with relocations against undefined weak symbols.
1129 (ppc64_elf_relocate_section): Don't optimize calls to undefined
1130 weak functions if the symbol is dynamic.
1131 (ppc64_elf_relocate_section): Edit tprel tls sequences.
1132 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1133 (_bfd_elf_ppc_at_tprel_transform): New function.
1134 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
1135 * bfd-in2.h: Regenerate.
1137 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
1139 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
1140 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
1141 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
1143 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
1145 2010-01-21 Nick Clifton <nickc@redhat.com>
1147 * elflink.c (elf_link_add_object_symbols): Look up name of
1148 undefined symbol both before and after versioning has been
1149 applied. Do not bother with symbols that are weakly undefined.
1151 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1153 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
1154 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
1156 2010-01-19 Cary Coutant <ccoutant@google.com>
1158 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
1160 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
1161 Alan Modra <amodra@gmail.com>
1163 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
1164 (elf_object_p): Read e_phnum extension.
1165 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
1166 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
1167 that we can read last program header.
1169 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1171 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
1172 R_ARM_THM_CALL entry.
1173 (elf32_arm_final_link_relocate): Correct calculation of
1174 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
1175 or R_ARM_THM_JUMP24 relocation.
1177 2010-01-18 Alan Modra <amodra@gmail.com>
1180 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
1181 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
1184 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1186 Fix compilation warning on gcc-3.4.
1187 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
1188 parameter index to sec_index according to the function definition.
1190 2010-01-13 Chao-ying Fu <fu@mips.com>
1192 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
1193 It is true for all CPUs.
1194 (jal_reloc_p): New function.
1195 (mips_elf_calculate_relocation): Rename require_jalxp to
1197 Update comment for CROSS_MODE_JUMP_P.
1198 Set up cross_mode_jump_p based on the mode change.
1199 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
1200 Update comment for CROSS_MODE_JUMP_P.
1201 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
1202 Use !cross_mode_jump_p to guard conversion.
1203 Convert "jr t9" to "b", if possible.
1204 (_bfd_mips_elf_relocate_section): Rename require_jalx to
1206 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
1207 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
1209 2010-01-13 Nick Clifton <nickc@redhat.com>
1211 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
1212 "m32c" returns the m32c arch_info_struct and not the m16c
1214 (arch_info_struct): Use the new scan function.
1215 (bfd_m32c_arch): Likewise.
1217 2010-01-13 Tristan Gingold <gingold@adacore.com>
1219 * config.bfd: Remove duplicated target vector for i386-*-darwin.
1220 Appends new arch instead of overriding.
1221 Use mach_o_x86_64_vec for x86_64-*-darwin.
1222 * configure.in: Add mach_o_x86_64_vec.
1223 * configure: Regenerate.
1224 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
1225 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
1226 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
1227 * Makefile.in: Regenerate.
1228 * mach-o-x86-64.c: New file.
1230 2010-01-13 Tristan Gingold <gingold@adacore.com>
1232 * reloc.c: Add MACH_O_X86_64 relocations.
1233 * bfd-in2.h: Regenerate.
1234 * libbfd.h: Regenerate.
1236 2010-01-13 Tristan Gingold <gingold@adacore.com>
1238 * archive.c (normalize): Use lbasename.
1239 (bfd_bsd_truncate_arname): Ditto.
1240 (bfd_gnu_truncate_arname): Ditto.
1242 2010-01-12 Tristan Gingold <gingold@adacore.com>
1244 * makefile.vms (CFLAGS): Turns warnings into informational messages.
1246 2010-01-11 Tristan Gingold <gingold@adacore.com>
1248 * mach-o.h: Add x86-64 relocation types.
1250 2010-01-11 Tristan Gingold <gingold@adacore.com>
1252 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
1253 (bfd_mach_o_set_arch_mach): New prototype.
1254 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
1255 (bfd_mach_o_set_arch_mach): New function.
1256 (bfd_mach_o_gen_mkobject): New function.
1257 Set TARGET_ARCHITECTURE for the generic back-ends.
1258 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
1259 Check that TARGET_ARCHITECTURE is defined.
1260 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
1261 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
1263 2010-01-11 Tristan Gingold <gingold@adacore.com>
1265 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
1267 2010-01-11 Nick Clifton <nickc@redhat.com>
1269 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
1270 handling of R_V850_HI16_S relocation.
1272 2010-01-11 Alan Modra <amodra@gmail.com>
1275 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
1277 2010-01-11 Alan Modra <amodra@gmail.com>
1280 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
1281 (find_abstract_instance_name): Use it.
1282 (parse_comp_unit): Set it.
1284 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1286 * Makefile.in: Regenerate.
1287 * configure: Regenerate.
1289 2010-01-08 Tristan Gingold <gingold@adacore.com>
1291 * archive.c: Remove bfd_special_undocumented_glue.
1293 2010-01-08 Alan Modra <amodra@gmail.com>
1296 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
1297 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
1298 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
1300 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1303 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
1304 a symbol referenced by DSO is is defined in a non-shared object
1307 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1310 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
1311 undefined __start_XXX/__stop_XXX in all input files and set
1314 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1317 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
1319 2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
1321 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
1322 before including procfs.h.
1323 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
1324 * configure.in: Added autoconf probe for the pr_fpreg member.
1325 * configure: Regenerated.
1326 * config.in: Regenerated.
1327 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
1329 2010-01-04 Joel Brobecker <brobecker@adacore.com>
1331 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
1332 * dwarf2.c (concat_filename): Rename dirname with dir_name
1333 to void shadowing the dirname function.
1334 Rename subdirname with subdir_name to stay consistent with
1335 the new dir_name variable name.
1337 2010-01-04 Edmar Wienskoski <edmar@freescale.com>
1339 * archures.c: Add bfd_mach_ppc_e500mc64.
1340 * bfd-in2.h: Regenerate.
1341 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
1342 bfd_mach_ppc_e500mc64.
1344 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1346 Fix -Wshadow warnings (seen on ppc-aix)
1347 * xcofflink.c: Replace finfo by flinfo throughout.
1349 For older changes see ChangeLog-2009
1355 version-control: never