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