bfd/
[binutils-gdb.git] / bfd / ChangeLog
1 2010-11-05 Tristan Gingold <gingold@adacore.com>
2
3 * po/bfd.pot: Regenerate
4
5 2010-11-05 Tristan Gingold <gingold@adacore.com>
6
7 * configure.in: Bump version to 2.21.51
8 * configure: Regenerate.
9
10 2010-11-04 Maciej W. Rozycki <macro@codesourcery.com>
11
12 PR ld/10144
13 * elfxx-mips.c (_bfd_mips_elf_check_relocs)
14 [R_MIPS_32, R_MIPS_REL32, R_MIPS_64]: Ignore relocs from
15 SEC_DEBUGGING sections.
16
17 2010-11-04 Tristan Gingold <gingold@adacore.com>
18
19 * vms-lib.c (vms_write_index): Fix thinko: reverse the loop.
20 Use bfd_zmalloc instead of bfd_malloc. Fix comment.
21
22 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
23
24 * coffcode.h (GNU_LINKONCE_WT): New.
25 (sec_to_styp_flags): Add handling of new debug
26 section.
27 (styp_to_sec_flags): Likewise.
28
29 2010-11-04 Tristan Gingold <gingold@adacore.com>
30
31 * makefile.vms (CFLAGS): Make badalias warnings informational.
32 * vms-lib.c (vms_lib_bread): Avoid arithmetic on void pointer.
33
34 2010-11-04 Joseph Myers <joseph@codesourcery.com>
35
36 * elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
37 _bfd_elf_merge_unknown_attribute_list): New.
38 * elf-bfd.h (struct elf_backend_data): Add
39 obj_attrs_handle_unknown.
40 (_bfd_elf_merge_unknown_attribute_low,
41 _bfd_elf_merge_unknown_attribute_list): Declare.
42 * elf32-arm.c (elf32_arm_obj_attrs_handle_unknown): New. Split
43 out from elf32_arm_merge_eabi_attributes.
44 (elf32_arm_merge_eabi_attributes): Use
45 _bfd_elf_merge_unknown_attribute_low and
46 _bfd_elf_merge_unknown_attribute_list.
47 (elf_backend_obj_attrs_handle_unknown): Define.
48 * elfxx-target.h (elf_backend_obj_attrs_handle_unknown): Define.
49 (elfNN_bed): Update initializer.
50
51 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
52
53 * bfd.c (BFD_FLAGS_FOR_BFD_USE_MASK): New.
54 * bfd-in2.h: Regenerated.
55
56 2010-11-02 Joseph Myers <joseph@codesourcery.com>
57
58 * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Except for
59 Tag_ABI_compatibility, treat odd tags as strings and even ones as
60 integers.
61 (elf32_tic6x_obj_attrs_order, elf32_tic6x_tag_to_array_alignment,
62 elf32_tic6x_array_alignment_to_tag): New.
63 (elf32_tic6x_merge_attributes): Handle more attributes. Set type
64 for merged attributes.
65 (elf_backend_obj_attrs_order): Define.
66
67 2010-10-29 Maciej W. Rozycki <macro@codesourcery.com>
68
69 * elfxx-mips.c (mips_elf_calculate_relocation): Fix a typo.
70
71 2010-10-29 Pawel Sikora <pluto@pld-linux.org>
72
73 PR binutils/12075
74 * compress.c (bfd_compress_section_contents): Use uLong on
75 compressed_size.
76
77 2010-10-29 Joseph Myers <joseph@codesourcery.com>
78
79 * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check
80 Tag_ABI_compatibility not Tag_compatibility.
81 (elf32_tic6x_merge_attributes): Update compatibility attribute
82 name in comment. Return FALSE if merging common attributes fails.
83
84 2010-10-29 Nick Clifton <nickc@redhat.com>
85
86 PR bintils/6962
87 * coffcode.h (handle_COMDAT): Only check the base type when
88 looking for a section symbol.
89
90 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
91 Cary Coutant <ccoutant@google.com>
92
93 * archive.c (bfd_openr_next_archived_file): Copy BFD_COMPRESS
94 and BFD_DECOMPRESS.
95
96 * bfd.c (BFD_COMPRESS): New.
97 (BFD_DECOMPRESS): Likewise.
98 (BFD_FLAGS_SAVED): Likewise.
99 (bfd_preserve_save): Replace BFD_IN_MEMORY with BFD_FLAGS_SAVED.
100
101 * compress.c (bfd_uncompress_section_contents): Removed.
102 (get_uncompressed_size): New.
103 (decompress_contents): Likewise.
104 (bfd_compress_section_contents): Likewise.
105 (bfd_get_full_section_contents): Likewise.
106 (bfd_is_section_compressed): Likewise.
107 (bfd_init_section_decompress_status): Likewise.
108 (bfd_init_section_compress_status): Likewise.
109
110 * dwarf2.c (dwarf_debug_sections): New.
111 (dwarf_debug_section_enum): Likewise.
112 (read_section): Remove section_name and compressed_section_name.
113 Add dwarf_debug_section_enum. Try compressed debug section.
114 (read_indirect_string): Updated.
115 (read_abbrevs): Likewise.
116 (decode_line_info): Likewise.
117 (read_debug_ranges): Likewise.
118 (find_line): Updated.
119
120 * ecoff.c (bfd_debug_section): Add compress_status and
121 compressed_size.
122
123 * elf.c (_bfd_elf_make_section_from_shdr): Call
124 bfd_is_section_compressed to check if a DWARF debug section is
125 compressed. Call bfd_init_section_compress_status or
126 bfd_init_section_decompress_status if needed.
127
128 * elflink.c (elf_link_input_bfd): Replace bfd_get_section_contents
129 with bfd_get_full_section_contents.
130 * merge.c (_bfd_add_merge_section): Likewise.
131 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
132 * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
133
134 * elfxx-target.h (TARGET_BIG_SYM): Allow BFD_COMPRESS and
135 BFD_DECOMPRESS.
136 (TARGET_LITTLE_SYM): Likewise.
137
138 * libbfd-in.h (dwarf_debug_section): New.
139 (dwarf_debug_sections): Likewise.
140
141 * libbfd.c (_bfd_generic_get_section_contents): Issue an error
142 when getting contents on compressed/decompressed section.
143
144 * section.c (COMPRESS_SECTION_NONE): New.
145 (COMPRESS_SECTION_DONE): Likewise.
146 (DECOMPRESS_SECTION_SIZED): Likewise.
147 (BFD_FAKE_SECTION): Add compress_status and compressed_size.
148 (bfd_malloc_and_get_section): Replace bfd_get_section_contents
149 with bfd_get_full_section_contents.
150
151 * bfd-in2.h: Regenerated.
152 * libbfd.h: Likewise.
153
154 2010-10-29 Bernd Schmidt <bernds@codesourcery.com>
155 Joseph Myers <joseph@codesourcery.com>
156
157 * elf32-tic6x.c (elf32_tic6x_merge_attributes): Check for mismatch
158 of DSBT attributes.
159
160 2010-10-25 Daniel Jacobowitz <dan@codesourcery.com>
161
162 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Always call
163 _bfd_clear_contents. Pass it the input section.
164 * libbfd-in.h (_bfd_clear_contents): Add input_section argument.
165 * libbfd.h: Regenerate.
166 * reloc.c (_bfd_clear_contents): Take input_section argument.
167 Use non-zero for .debug_ranges.
168 (bfd_generic_get_relocated_section_conten): Update _bfd_clear_contents
169 call.
170
171 * elf32-arm.c (elf32_arm_relocate_section): Use
172 RELOC_AGAINST_DISCARDED_SECTION.
173 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
174 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
175 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
176 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
177 * elf32-bfin.c (bfin_relocate_section): Likewise.
178 (bfinfdpic_relocate_section): Likewise.
179 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
180 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
181 * elf32-cris.c (cris_elf_relocate_section): Likewise.
182 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
183 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
184 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
185 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
186 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
187 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
188 * elf32-i370.c (i370_elf_relocate_section): Likewise.
189 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
190 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
191 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
192 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
193 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
194 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
195 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
196 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
197 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
198 * elf32-mep.c (mep_elf_relocate_section): Likewise.
199 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
200 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
201 * elf32-mt.c (mt_elf_relocate_section): Likewise.
202 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
203 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
204 * elf32-rx.c (rx_elf_relocate_section): Likewise.
205 * elf32-s390.c (elf_s390_relocate_section): Likewise.
206 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
207 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
208 * elf32-sh.c (sh_elf_relocate_section): Likewise.
209 * elf32-spu.c (spu_elf_relocate_section): Likewise.
210 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
211 * elf32-v850.c (v850_elf_relocate_section): Likewise.
212 * elf32-vax.c (elf_vax_relocate_section): Likewise.
213 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
214 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
215 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
216 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
217 (elf64_alpha_relocate_section): Likewise.
218 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
219 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
220 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
221 * elf64-s390.c (elf_s390_relocate_section): Likewise.
222 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
223 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
224 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
225 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
226
227 2010-10-25 Nathan Sidwell <nathan@codesourcery.com>
228
229 * elf32-tic6x.c: Add attribution.
230
231 2010-10-25 Alan Modra <amodra@gmail.com>
232
233 * elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
234 var warning at -O3.
235
236 2010-10-25 Alan Modra <amodra@gmail.com>
237
238 * opncls.c (bfd_alloc, bfd_zalloc): Don't mark internal.
239 * libbfd-in.h (bfd_alloc, bfd_zalloc): Don't declare here.
240 * libbfd.h: Regenerate
241 * bfd-in2.h: Regenerate.
242
243 2010-10-25 Alan Modra <amodra@gmail.com>
244
245 * opncls.c (_bfd_id_counter): Rename to bfd_id_counter.
246 (bfd_reserved_id_counter, bfd_use_reserved_id): New vars.
247 (_bfd_new_bfd): Use negative id when bfd_use_reserved_id.
248 (bfd_create): Doc fix.
249 * bfd-in2.h: Regenerate.
250
251 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
252
253 * elfxx-sparc.c (tpoff): Define bed, static_tls_size.
254 Consider static_tls_alignment.
255
256 * elf32-sparc.c (TARGET_BIG_SYM): Redefine to
257 bfd_elf32_sparc_sol2_vec.
258 (TARGET_BIG_NAME): Redefine to elf32-sparc-sol2.
259 (elf32_bed): Redefine to elf32_sparc_sol2_bed.
260 (elf_backend_static_tls_alignment): Redefine to 8.
261 Include elf32-target.h.
262 (elf_backend_static_tls_alignment): Undef again for VxWorks.
263
264 * elf64-sparc.c (TARGET_BIG_SYM): Redefine to
265 bfd_elf64_sparc_sol2_vec.
266 (TARGET_BIG_NAME): Redefine to elf64-sparc-sol2.
267 (ELF_OSABI): Undef.
268 (elf64_bed): Redefine to elf64_sparc_sol2_bed.
269 (elf_backend_static_tls_alignment): Redefine to 16.
270 Include elf64-target.h.
271
272 * config.bfd (sparc-*-solaris2.[0-6]): Split from sparc-*-elf*.
273 Set targ_defvec to bfd_elf32_sparc_sol2_vec.
274 [BFD64] (sparc-*-solaris2*): Set targ_defvec to
275 bfd_elf32_sparc_sol2_vec.
276 Replace bfd_elf64_sparc_vec by bfd_elf64_sparc_sol2_vec in
277 targ_selvecs.
278
279 * configure.in: Handle bfd_elf32_sparc_sol2_vec,
280 bfd_elf64_sparc_sol2_vec.
281 * configure: Regenerate.
282
283 * targets.c (bfd_elf32_sparc_sol2_vec): Declare.
284 (bfd_elf64_sparc_sol2_vec): Declare.
285 (_bfd_target_vector): Add bfd_elf32_sparc_sol2_vec,
286 bfd_elf64_sparc_sol2_vec.
287
288 2010-10-21 Joseph Myers <joseph@codesourcery.com>
289
290 * elf32-tic6x.c (elf32_tic6x_merge_arch_attributes): Update for
291 attribute renaming.
292 (elf_backend_obj_attrs_section): Change to ".c6xabi.attributes".
293
294 2010-10-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
295
296 * elf-bfd.h (struct elf_backend_data): New member
297 static_tls_alignment.
298 * elfxx-target.h (elf_backend_static_tls_alignment): Provide
299 default.
300 (elfNN_bed): Initialize static_tls_alignment.
301 * elflink.c (bfd_elf_final_link): Don't round end of TLS section
302 if static TLS has special alignment requirements.
303 * elf32-i386.c (elf_i386_tpoff): Define bed, static_tls_size.
304 Consider static_tls_alignment.
305 (elf_backend_static_tls_alignment): Redefine for Solaris 2.
306 Undef again for VxWorks.
307 * elf64-x86-64.c (elf64_x86_64_tpoff): Define bed,
308 static_tls_size.
309 Consider static_tls_alignment.
310 (elf_backend_static_tls_alignment): Redefine for Solaris 2.
311 Undef again for Intel L1OM.
312
313 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
314
315 Apply LD plugin patch series (part 6/6).
316 * aoutx.h (aout_link_check_ar_symbols): Take new "subsbfd" reference
317 parameter and pass it when invoking add_archive_element callback.
318 (aout_link_check_archive_element): Handle substitute bfd if it
319 was set during add_archive_element callback in the above.
320 * cofflink.c (coff_link_check_ar_symbols): Take new "subsbfd" reference
321 parameter and pass it when invoking add_archive_element callback.
322 (coff_link_check_archive_element): Handle substitute bfd if it
323 was set during add_archive_element callback in the above.
324 * ecoff.c (read_ext_syms_and_strs): New function holds symbol-reading
325 code factored-out from ecoff_link_check_archive_element.
326 (reread_ext_syms_and_strs): Clear old symbols and call it.
327 (ecoff_link_check_archive_element): Use the above. Handle substitute
328 BFD if one is set by add_archive_element callback.
329 (ecoff_link_add_archive_symbols): Likewise allow bfd substitution.
330 * elflink.c (elf_link_add_archive_symbols): Likewise.
331 * linker.c (generic_link_check_archive_element): Likewise.
332 * pdp11.c (aout_link_check_ar_symbols): Take new "subsbfd" reference
333 parameter and pass it when invoking add_archive_element callback.
334 (aout_link_check_archive_element): Handle substitute bfd if it was
335 set during add_archive_element callback in the above.
336 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Handle substitute
337 BFD if one is set by add_archive_element callback.
338 * xcofflink.c (xcoff_link_check_dynamic_ar_symbols): Take new "subsbfd"
339 reference parameter and pass it when invoking add_archive_element
340 callback.
341 (xcoff_link_check_ar_symbols): Likewise.
342 (xcoff_link_check_archive_element): Handle bfd substitution if it was
343 set by callback in the above.
344
345 2010-10-11 Alan Modra <amodra@gmail.com>
346
347 * elf32-frv.c (elf32_frv_relocate_section): Set "name" for global syms.
348 (elf32_frvfdpic_finish_dynamic_sections): Don't crash on
349 __ROFIXUP_END__ defined in shared lib.
350
351 2010-10-11 Thomas Schwinge <thomas@codesourcery.com>
352
353 * elf32-arm.c (elf32_arm_final_link_relocate)
354 (elf32_arm_relocate_section): Handle relocations against STN_UNDEF.
355
356 2010-10-11 Dave Korn <dave.korn.cygwin@gmail.com>
357
358 * elflink.c (_bfd_elf_link_output_relocs): Delete unused variable
359 "output_rel_hdr".
360
361 2010-10-09 John Tytgat <john@bass-software.com>
362
363 * reloc.c (BFD_RELOC_ARM_HVC): Add.
364 * libbfd.h: Regenerate.
365
366 2010-10-08 Kai Tietz <kai.tietz@onevision.com>
367
368 * pei-x86_64.c (find_next_xdata_or_end): Removed.
369 (pex64_dump_xdata): Remove arguments stop, onaline,
370 and pdata. New argument endx. Print term "none"
371 instead of misleading "CFA".
372 (sort_xdata_arr): New function.
373 (pex64_bfd_print_pdata): Use binary search/sort for unwind-RVAs
374 instead of searching quadratic.
375
376 2010-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
377 Alan Modra <amodra@gmail.com>
378
379 Fix build with -DDEBUG=7
380 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Remove call
381 to deleted function elf_symbol_flags. Add typecast to avoid warning.
382 * elf32-rx.c (dump_symbol) : Rename to..
383 (rx_dump_symbol): ..this to avoid link errors.
384 * elflink.c (elf_link_input_bfd): Add typecast to avoid warnings.
385 (bfd_elf_perform_complex_relocation): Likewise.
386 * elf32-xtensa.c (print_action_list): Likewise.
387
388 2010-10-06 Nathan Sidwell <nathan@codesourcery.com>
389
390 * elf32-arm.c (elf32_arm_stub_long_branch_any_arm_pic,
391 elf32_arm_stub_long_branch_any_arm_pic): Use a consistent name for
392 ip/r12.
393 (arm_type_of_stub): Remove superfluous braces.
394
395 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
396
397 * elf-bfd.h (struct bfd_elf_section_reloc_data): New structure.
398 (struct bfd_elf_section_data): New members REL and RELA; delete
399 members REL_HDR, REL_HDR2, REL_COUNT, REL_COUNT2, REL_IDX,
400 REL_IDX2, REL_HASHES.
401 (_bfd_elf_init_reloc_shdr): Adjust declaration.
402 (_bfd_elf_single_rel_hdr): Declare.
403 (RELOC_AGAINST_DISCARDED_SECTION): Use it.
404 * elf.c (bfd_section_from_shdr): Adjusted to match changes in
405 data structures.
406 (_bfd_elf_init_reloc_shdr): New arg RELDATA. Remove arg REL_HDR.
407 All callers changed. Allocate memory for the Elf_Internal_Shdr
408 structure.
409 (_bfd_elf_single_rel_hdr): New function.
410 (struct fake_section_arg): New structure.
411 (elf_fake_section): Expect to see a pointer to it in the third
412 argument. If doing a relocatable link, allocate both REL and RELA
413 sections as needed.
414 (assign_section_numbers): Adjusted to match changes in
415 data structures.
416 (_bfd_elf_compute_section_file_positions): Call elf_fake_sections
417 with a struct fake_section_args argument.
418 * elfcode.h (elf_write_relocs): Adjusted to match changes in
419 data structures.
420 (elf_slurp_reloc_table): Likewise.
421 * elflink.c (_bfd_elf_link_read_relocs): Likewise.
422 (_bfd_elf_link_size_reloc_section): Remove arg REL_HDR, replace with
423 RELDATA. Remove argument O. All callers changed. Remove code to
424 discover the right rel_hdr and count.
425 (_bfd_elf_link_output_relocs): Adjusted to match changes in
426 data structures.
427 (elf_link_adjust_relocs): Remove args REL_HDR, COUNT and REL_HASH;
428 replace with RELDATA. All callers changed.
429 (elf_link_input_bfd): Correctly generate rel_hash data when both
430 REL and RELA sections are present.
431 (elf_reloc_link_order): Adjusted to match changes in
432 data structures.
433 (bfd_elf_final_link): Simplify code to count relocs. Free the
434 hashes array for both REL and RELA.
435 (get_dynamic_reloc_section_name): Use _bfd_elf_single_reloc_hdr
436 * elf32-m32r.c (m32r_elf_fake_sections, elf_backend_fake_sections):
437 Delete.
438 * elf32-tic6x.c (elf32_tic6x_fake_sections, elf_backend_fake_sections):
439 Delete.
440 (elf32_tic6x_rel_relocation_p): Adjusted to match changes in
441 data structures.
442 * elf32-microblaze.c (microblaze_elf_check_relocs): Use
443 _bfd_elf_single_rel_hdr.
444 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
445 * elf32-spu.c (spu_elf_relocate_section): Likewise.
446 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
447 * elf64-hppa.c (get_reloc_section): Likewise.
448 * elf64-mips.c (mips_elf64_slurp_reloc_table): Adjusted to match
449 changes in data structures.
450 (mips_elf64_write_relocs): Use _bfd_elf_single_rel_hdr.
451 * elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
452 (ppc64_elf_edit_toc): Likewise.
453 (get_relocs): Adjusted to match changes in data structures.
454 Allocate an Elf_Internal_Shdr structure if necessary.
455 (ppc64_elf_finish_dynamic_sections): Use _bfd_elf_single_rel_hdr.
456 * elf64-sparc.c (elf64_sparc_slurp_reloc_table): Adjusted to match
457 changes in data structures.
458 * elfxx-ia64.c (get_reloc_section): Use _bfd_elf_single_rel_hdr.
459 * elfxx-mips.c (MIPS_RELOC_RELA_P): Remove macro.
460 (mips_elf_rel_relocation_p): Adjusted to match changes in data
461 structures.
462 (_bfd_mips_elf_relocate_section): Use mips_elf_rel_relocation_p rather
463 than MIPS_RELOC_RELOCA_P.
464 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use
465 _bfd_elf_single_rel_hdr.
466 (_bfd_sparc_elf_relocate_section): Likewise.
467
468 2010-10-01 Thomas Schwinge <thomas@codesourcery.com>
469
470 * elf32-arm.c (elf32_arm_size_stubs): Don't choke on local symbols in
471 SHN_UNDEF, SHN_ABS, SHN_COMMON.
472
473 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
474
475 PR ld/11812
476 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't
477 allocate .got.plt section if there are no GOT nor PLT
478 entries and there is no refeence to _GLOBAL_OFFSET_TABLE_.
479 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Li.kewise.
480
481 * elflink.c (_bfd_elf_define_linkage_sym): Clear non_elf.
482
483 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
484
485 * configure: Regenerate.
486
487 2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
488
489 * elf32-arm.c, elf32-cris.c, elf32-hppa.c, elf32-i370.c, elf32-m32r.c,
490 elf32-m68k.c, elf32-microblaze.c, elf32-ppc.c, elf32-score.c,
491 elf32-score7.c, elf32-sh.c, elf32-vax.c, elf32-xtensa.c, elf64-alpha.c,
492 elf64-hppa.c, elf64-mips.c, elf64-ppc.c, elf64-sparc.c, elfcode.h,
493 elflink.c, elfxx-ia64.c, elfxx-mips.c: Use STN_UNDEF when referring to
494 the zero symbol index.
495
496 * elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index
497 to STN_UNDEF, not SHN_UNDEF.
498
499 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
500
501 * elf32-tic6x.c (elf32_tic6x_fake_sections): New function.
502 (elf_backend_fake_sections): Define.
503
504 2010-09-23 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
505
506 * bfd-in2.h (BFD_RELOC_ARM_HVC): New enum value.
507
508 2010-09-23 Alan Modra <amodra@gmail.com>
509
510 * cpu-d10v.c: Make bits_per_address 18 for all arch_info entries.
511
512 2010-09-23 Alan Modra <amodra@gmail.com>
513
514 * elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC
515 difference between input and output section.
516
517 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
518
519 * coffcode.h (sec_to_styp_flags): Adjust debug
520 sections to be conform to pe-coff specification
521 and avoid marking them as excluded.
522 (styp_to_sec_flags): Doing reverse mapping.
523
524 * peXXigen.c (_bfd_XXi_final_link_postscript): Add handling for
525 setting IAT directory entry.
526
527 2010-09-20 Richard Henderson <rth@redhat.com>
528
529 * elf64-alpha.c (elf64_alpha_howto_table): Use bfd_elf_generic_reloc.
530
531 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
532
533 * elfxx-mips.c (mips_elf_link_hash_entry): Add got_only_for_calls.
534 (mips_elf_link_hash_newfunc): Initialize it.
535 (mips_elf_record_global_got_symbol): Add a for_call parameter.
536 (mips_elf_count_got_symbols): Check SYMBOL_CALLS_LOCAL rather
537 than SYMBOL_REFERENCES_LOCAL if the GOT entry is only used for calls.
538 Try to remove .got entries in favour of .got.plt entries on VxWorks.
539 (_bfd_mips_elf_check_relocs): Do not try to avoid allocating
540 a global GOT entry for VxWorks calls. Update uses of
541 mips_elf_record_global_got_symbol.
542 (allocate_dynrelocs): Set got_only_for_calls to false if the GOT
543 entry is used for dynamic relocations.
544
545 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
546
547 * elfxx-mips.c (mips_got_entry): Adjust commentary.
548 (mips_elf_create_local_got_entry): If given a symbol, check that it
549 has been assigned to the local part of the GOT.
550 (mips_elf_count_got_symbols): Take the bfd_link_info as argument
551 instead of the master GOT. Put all locally-binding symbols in
552 the local area.
553 (mips_elf_make_got_per_bfd): Use global_got_area to decide whether
554 a symbol lives in the local or global area.
555 (mips_elf_local_relocation_p): Remove check_forced argument and
556 retain only the !check_forced behavior.
557 (mips_elf_calculate_relocation): Adjust call accordingly.
558 Use global_got_area to decide whether an output relocation
559 should be local or global. Explicitly decay R_MIPS_GOT_PAGE
560 into R_MIPS_GOT_DISP where appropriate. Fix selection of
561 local vs. global semantics for R_MIPS*_26. Remove redundant
562 reevaluation of what is stored in was_local_p.
563 (mips_elf_create_dynamic_relocation): Use global_got_area to decide
564 whether the relocation should be against a global or local symbol.
565 (mips_elf_lay_out_got): Update the GOT traversal after the above
566 change to mips_elf_count_got_symbols.
567 (mips_elf_adjust_addend): Adjust call to mips_elf_local_relocation_p.
568 (_bfd_mips_elf_relocate_section): Likewise.
569 (_bfd_mips_elf_finish_dynamic_symbol): Use global_got_area to decide
570 whether the symbol has a global got entry.
571 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
572
573 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
574
575 * elfxx-mips.c (allocate_dynrelocs): Don't add relocation symbols
576 to the global GOT on VxWorks.
577
578 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
579
580 * elfxx-mips.c (_bfd_mips_elf_check_relocs): On VxWorks,
581 exclude __GOTT_BASE__ and __GOTT_INDEX__ from the warning
582 about HI/LO relocations in shared objects.
583
584 2010-09-16 Alan Modra <amodra@gmail.com>
585
586 * elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc
587 sections.
588 (spu_elf_create_sections): Mark .fixup with SEC_LINKER_CREATED and
589 set dynobj.
590 (spu_elf_finish_dynamic_sections): New function.
591 (elf_backend_finish_dynamic_sections): Define.
592
593 2010-09-16 Alan Modra <amodra@gmail.com>
594
595 * elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD.
596 * elflink.c (elf_link_input_bfd): Likewise.
597
598 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
599
600 * pei-x86_64.c (pex64_get_unwind_info): Reorgnized.
601 (pex64_get_scope_entry): Removed.
602 (find_next_xdata_or_end): New helper.
603 (pex64_dump_xdata): Reworked.
604 (pex64_bfd_print_pdata): Add checking for
605 valid pdata sorting and values. Reworked
606 output.
607
608 2010-09-15 H.J. Lu <hongjiu.lu@intel.com>
609
610 PR binutils/12004
611 * plugin.c (bfd_plugin_object_p): Handle NULL iostream.
612
613 2010-09-14 Kai Tietz <kai.tietz@onevision.com>
614
615 * pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
616 .rdata, .data, and .text partial matched section names.
617 * pei-x86_64.c: Likewise.
618
619 * peXXigen.c (sort_x64_pdata): New helper.
620 (_bfd_XXi_final_link_postscript): Do pdata sorting.
621
622 2010-09-09 H.J. Lu <hongjiu.lu@intel.com>
623
624 PR ld/11998
625 * elf.c (assign_file_positions_for_load_sections): Don't warn
626 zero LMA adjustment.
627
628 2010-09-09 Bernd Schmidt <bernds@codesourcery.com>
629
630 * elflink.c (bfd_elf_final_link): Correct calculation of
631 max_external_reloc_size.
632
633 2010-09-07 Alan Modra <amodra@gmail.com>
634 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
635
636 * peXXigen.c: Whitespace.
637 (pe_print_idata): Correct section limit calculations. Tidy array
638 indexing.
639 (_bfd_XX_print_ce_compressed_pdata): Don't leak memory.
640
641 2010-09-02 Richard Henderson <rth@redhat.com>
642
643 * config.bfd (x86_64-*-mingw*): Select 32-bit pei vectors too.
644
645 2010-09-01 Pedro Alves <pedro@codesourcery.com>
646
647 * netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
648 (netbsd_core_file_pid): ... this.
649
650 2010-09-01 Tristan Gingold <gingold@adacore.com>
651
652 * coffcode.h (coff_slurp_line_table): Add a cast.
653 (coff_slurp_reloc_table): Ditto.
654
655 2010-08-30 Gunther Nikl <gnikl@users.sourceforge.net>
656
657 * cisco-core.c (cisco_core_file_pid): Define.
658
659 2010-08-30 Alan Modra <amodra@gmail.com>
660
661 PR binutils/11953
662 * elf.c (copy_elf_program_header): Calculate map->header_size
663 from lowest_section, not first_section. Validate program
664 header p_paddr against section lma. Find lowest_section in
665 second loop over headers.
666
667 2010-08-28 Alan Modra <amodra@gmail.com>
668
669 * elflink.c (_bfd_elf_dynamic_symbol_p): Rename param. Make
670 common syms local.
671 (_bfd_elf_symbol_refs_local_p): Expand comment.
672 (elf_link_output_extsym): Fix style nit.
673
674 2010-08-26 Nathan Sidwell <nathan@codesourcery.com>
675
676 * elf32-arm.c (elf32_arm_final_link): Process stub sections
677 exactly once.
678
679 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
680
681 PR ld/11939
682 * elflink.c (elf_link_add_object_symbols): Don't set
683 unique_global for non-ELF hash link table.
684
685 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
686
687 PR ld/11944
688 * elf-bfd.h (elf_backend_data): Add target_id.
689 (bfd_elf_make_generic_object): Renamed to ...
690 (bfd_elf_make_object): This.
691
692 * elf.c (bfd_elf_make_generic_object): Removed.
693 (bfd_elf_make_object): New.
694 (bfd_elf_mkcorefile): Really treat it as an object file.
695
696 * elf-m10300.c (ELF_TARGET_ID): New.
697 * elf32-arm.c (ELF_TARGET_ID): Likewise.
698 * elf32-bfin.c (ELF_TARGET_ID): Likewise.
699 * elf32-cris.c (ELF_TARGET_ID): Likewise.
700 * elf32-frv.c (ELF_TARGET_ID): Likewise.
701 * elf32-i386.c (ELF_TARGET_ID): Likewise.
702 * elf32-lm32.c (ELF_TARGET_ID): Likewise.
703 * elf32-m32r.c (ELF_TARGET_ID): Likewise.
704 * elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
705 * elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
706 * elf32-m68k.c (ELF_TARGET_ID): Likewise.
707 * elf32-microblaze.c (ELF_TARGET_ID): Likewise.
708 * elf32-ppc.c (ELF_TARGET_ID): Likewise.
709 * elf32-s390.c (ELF_TARGET_ID): Likewise.
710 * elf32-sh.c (ELF_TARGET_ID): Likewise.
711 * elf32-sparc.c (ELF_TARGET_ID): Likewise.
712 * elf32-spu.c (ELF_TARGET_ID): Likewise.
713 * elf32-tic6x.c (ELF_TARGET_ID): Likewise.
714 * elf32-xtensa.c (ELF_TARGET_ID): Likewise.
715 * elf64-alpha.c (ELF_TARGET_ID): Likewise.
716 * elf64-hppa.c (ELF_TARGET_ID): Likewise.
717 * elf64-ppc.c (ELF_TARGET_ID): Likewise.
718 * elf64-s390.c (ELF_TARGET_ID): Likewise.
719 * elf64-x86-64.c (ELF_TARGET_ID): Likewise.
720 * elfxx-ia64.c (ELF_TARGET_ID): Likewise.
721
722 * elf32-hppa.c (elf32_hppa_mkobject): Removed.
723 (bfd_elf32_mkobject): Likewise.
724 (ELF_TARGET_ID): New.
725
726 * elf32-mips.c (ELF_TARGET_ID): New.
727 (bfd_elf32_mkobject): Removed.
728
729 * elf64-mips.c (ELF_TARGET_ID): New.
730 (bfd_elf64_mkobject): Removed.
731
732 * elfn32-mips.c (ELF_TARGET_ID): New.
733 (bfd_elf32_mkobject): Removed.
734
735 * elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
736 * elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.
737
738 * elfxx-target.h (bfd_elfNN_mkobject): Default to
739 bfd_elf_make_object.
740 (ELF_TARGET_ID): New. Default to GENERIC_ELF_DATA.
741 (elfNN_bed): Initialize target_id.
742
743 2010-08-25 Julian Brown <julian@codesourcery.com>
744
745 * elf32-arm.c (arm_stub_required_alignment): New.
746 (arm_build_one_stub): Use above to partition stubs.
747 (make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
748 arm_stub_a8_veneer_b_cond.
749
750 2010-08-25 Alan Modra <amodra@gmail.com>
751
752 * aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
753 * aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
754 * aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
755 * coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
756 * elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
757 * reloc.c (bfd_default_reloc_type_lookup): Likewise.
758 * riscix.c (riscix_reloc_type_lookup): Likewise.
759
760 2010-08-25 Alan Modra <amodra@gmail.com>
761
762 * elf.c (_bfd_elf_map_sections_to_segments): Don't load program
763 headers if any loaded section wraps the address space. Simplify
764 ~(m-1) to -m. Use lma rather than vma when determining whether
765 note sections are adjacent.
766
767 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
768
769 PR ld/11933
770 * elflink.c (elf_link_add_object_symbols): Don't check relocation
771 if input ELF object ID doesn't match output.
772
773 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
774
775 * configure: Regenerate.
776
777 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
778
779 * merge.c (sec_merge_emit): Revert the last checkin.
780
781 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
782
783 * elf32-sh.c (sh_elf_relocate_section): Handle non-ELF output
784 BFD.
785
786 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
787
788 * elf32-m68k.c (bfd_elf_m68k_set_target_options): Don't set GOT
789 options unless an m68k hash table has been found.
790
791 2010-08-20 Nick Clifton <nickc@redhat.com>
792
793 * merge.c (sec_merge_emit): Do not zero pad sections that do not
794 have an alignment.
795
796 2010-08-18 Pedro Alves <pedro@codesourcery.com>
797
798 PR corefile/8210
799
800 * bfd-in2.h: Regenerate.
801 * corefile.c (bfd_core_file_pid): New.
802
803 * targets.c (BFD_JUMP_TABLE_CORE): Add NAME##_core_file_pid.
804 (struct bfd_target) <_core_file_pid>: New.
805
806 * libbfd-in.h (_bfd_nocore_core_file_pid): Declare.
807 * libbfd.c (_bfd_nocore_core_file_pid): New.
808
809 * elf-bfd.h (bfd_elf32_core_file_pid, bfd_elf64_core_file_pid):
810 Declare.
811 * elfcode.h (elf_core_file_pid): New define.
812 * elfcore.h (elf_core_file_pid): New function.
813
814 * elf.c (elfcore_make_pid): Rewrite.
815 (elfcore_grok_prstatus): Only set core_pid if not set yet.
816 (elfcore_grok_prstatus) [!HAVE_PRSTATUS_T_PR_WHO]: Fallback to
817 getting the lwpid from prstat.pr_pid.
818
819 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Write the LWPID to
820 elf_tdata's core_lwpid instead of to core_pid.
821 (elf64_x86_64_grok_psinfo): Extract the the main process's PID,
822 and store it in elf_tdata's core_pid field.
823 * elf32-i386.c (elf_i386_grok_prstatus): Write the LWPID to
824 elf_tdata's core_lwpid instead of to core_pid.
825 (elf_i386_grok_psinfo): Extract the the main process's PID, and
826 store it in elf_tdata's core_pid field.
827
828 * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Write the LWPID
829 to elf_tdata's core_lwpid instead of to core_pid.
830 * elf32-arm.c (elf32_arm_nabi_grok_prstatus): Write the LWPID to
831 elf_tdata's core_lwpid instead of to core_pid.
832 * elf32-cris.c (cris_elf_grok_prstatus): Write the LWPID to
833 elf_tdata's core_lwpid instead of to core_pid.
834 * elf32-frv.c (elf32_frv_grok_prstatus): Write the LWPID to
835 elf_tdata's core_lwpid instead of to core_pid.
836 * elf32-hppa.c (elf32_hppa_grok_prstatus): Write the LWPID to
837 elf_tdata's core_lwpid instead of to core_pid.
838 * elf32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
839 elf_tdata's core_lwpid instead of to core_pid.
840 * elf32-ppc.c (ppc_elf_grok_prstatus): Write the LWPID to
841 elf_tdata's core_lwpid instead of to core_pid.
842 * elf32-s390.c (elf_s390_grok_prstatus): Write the LWPID to
843 elf_tdata's core_lwpid instead of to core_pid.
844 * elf32-score.c (s3_bfd_score_elf_grok_prstatus): Write the LWPID
845 to elf_tdata's core_lwpid instead of to core_pid.
846 * elf32-score7.c (s7_bfd_score_elf_grok_prstatus): Write the LWPID
847 to elf_tdata's core_lwpid instead of to core_pid.
848 * elf32-sh.c (elf32_shlin_grok_prstatus): Write the LWPID to
849 elf_tdata's core_lwpid instead of to core_pid.
850 * elf32-xtensa.c (elf_xtensa_grok_prstatus): Write the LWPID to
851 elf_tdata's core_lwpid instead of to core_pid.
852 * elf64-hppa.c (elf64_hppa_grok_prstatus): Write the LWPID to
853 elf_tdata's core_lwpid instead of to core_pid.
854 * elf64-mips.c (elf64_mips_grok_prstatus): Write the LWPID to
855 elf_tdata's core_lwpid instead of to core_pid.
856 * elf64-ppc.c (ppc64_elf_grok_prstatus): Write the LWPID to
857 elf_tdata's core_lwpid instead of to core_pid.
858 * elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
859 elf_tdata's core_lwpid instead of to core_pid.
860
861 * plugin.c (bfd_plugin_core_file_pid): New function.
862 * aout-target.h (MY_core_file_pid): Define.
863 * aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
864 * coff-rs6000.c (coff_core_file_pid): New define.
865 (rs6000coff_vec, pmac_xcoff_vec): Use BFD_JUMP_TABLE_CORE.
866 * coff64-rs6000.c (coff_core_file_pid): New define.
867 (rs6000coff64_vec): Use BFD_JUMP_TABLE_CORE.
868 (xcoff64_core_file_pid): New define.
869 (aix5coff64_vec): Use BFD_JUMP_TABLE_CORE.
870 * mach-o-target.c (bfd_mach_o_core_file_pid): New define.
871 * aix386-core.c (aix386_core_file_pid): New define.
872 * hppabsd-core.c (hppabsd_core_core_file_pid): New define.
873 * hpux-core.c (hpux_core_core_file_pid): New define.
874 * irix-core.c (irix_core_core_file_pid): New define.
875 * lynx-core.c (lynx_core_file_pid): New define.
876 * osf-core.c (osf_core_core_file_pid): New define.
877 * ptrace-core.c (ptrace_unix_core_file_pid): New define.
878 * sco5-core.c (sco5_core_file_pid): New define.
879 * xcoff-target.h (coff_core_file_pid): New define.
880 * netbsd-core.c (netbsd_core_core_file_pid): New define.
881
882 2010-08-13 H.J. Lu <hongjiu.lu@intel.com>
883
884 PR ld/11913
885 * elf32-i386.c (elf_i386_finish_dynamic_sections): Check if
886 .got.plt section is discarded.
887 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Likewise.
888
889 2010-08-13 Nathan Sidwell <nathan@codesourcery.com>
890
891 * elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B
892 variant.
893
894 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
895
896 PR binutils/11909
897 * Makefile.am (coff-tic4x.lo): New. Disable -Werror.
898 (coff-tic54x.lo): Likewise.
899 * Makefile.in: Regenerated.
900
901 2010-08-12 Todd Veldhuizen <todd.veldhuizen@logicblox.com>
902
903 PR ld/11843
904 * elflink.c (compute_bucket_count): Avoid futile long searches for
905 the best bucket size.
906
907 2010-08-09 Richard Henderson <rth@redhat.com>
908
909 PR ld/11891
910 * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Disallow relaxing
911 to tlshi/lo until pos0 and pos1 are adjacent. Use the destination
912 register from the tldgd insn.
913
914 2010-08-09 Catherine Moore <clm@codesourcery.com>
915
916 * elfxx-mips.c (mips_elf_perform_relocation): Improve
917 interlinking error message.
918
919 2010-08-06 Alan Modra <amodra@gmail.com>
920
921 * elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.
922 (ppc64_elf_relocate_section): Nop out high part insn of large toc
923 code sequence when the high part of offset is zero.
924
925 2010-08-04 Tristan Gingold <gingold@adacore.com>
926
927 * vms-alpha.c (alpha_vms_build_fixups): Write the EICP.
928 (alpha_vms_bfd_final_link): Explicitly forbid relocatable links.
929 Clear the SEC_RELOC flag.
930
931 2010-08-04 Tristan Gingold <gingold@adacore.com>
932
933 * vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable
934 sections with relocs.
935 (alpha_vms_add_fixup_lp): Set SEC_RELOC flag.
936 (alpha_vms_add_fixup_ca): Ditto.
937 (alpha_vms_add_fixup_qr): Ditto.
938 Add comments.
939
940 2010-08-04 Tristan Gingold <gingold@adacore.com>
941
942 * vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make
943 CODE sections writable.
944
945 2010-08-04 Tristan Gingold <gingold@adacore.com>
946
947 * vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ...
948 (alpha_vms_add_fixup_lr): ... this for consistency.
949 (alpha_vms_add_qw_fixup): Removed.
950 Fix some comments.
951 (vms_get_symbol_info): Adjust type for unknown sections.
952
953 2010-08-04 Tristan Gingold <gingold@adacore.com>
954
955 * vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute
956 section for any absolute section. Remove some debugging code.
957
958 2010-08-03 DJ Delorie <dj@redhat.com>
959
960 * elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.
961
962 2010-08-03 Tristan Gingold <gingold@adacore.com>
963
964 * vms-misc.c (vms_convert_to_var): Make it static.
965 (_bfd_vms_convert_to_var_unix_filename): Make it public.
966
967 2010-08-03 Tristan Gingold <gingold@adacore.com>
968
969 * makefile.vms (OBJS): Update list.
970
971 2010-08-03 Tristan Gingold <gingold@adacore.com>
972
973 * vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS
974 nor SEC_RELOC for empty sections.
975
976 2010-08-03 Tristan Gingold <gingold@adacore.com>
977
978 * vms-alpha.c (evax_section_flags): Fix flags for absolute
979 section. Remove useless parenthesis.
980
981 2010-08-03 Tristan Gingold <gingold@adacore.com>
982
983 * vms-lib.c (vms_lib_bread_raw): Change type of BUF argument.
984 (vms_lib_bread, vms_lib_bopen): Adjust.
985
986 2010-08-02 Alan Modra <amodra@gmail.com>
987
988 PR 11866
989 * elf.c (assign_file_positions_for_load_sections): Use p_vaddr to
990 calculate off_adjust rather than first section vma.
991
992 2010-07-30 H.J. Lu <hongjiu.lu@intel.com>
993
994 * elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.
995
996 2010-07-30 Anthony Green <green@moxielogic.com>
997
998 * config.bfd (targ_cpu): Add moxie-*-rtems support.
999
1000 2010-07-29 Alan Modra <amodra@gmail.com>
1001
1002 * elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in
1003 .toc section, even when none are used in relocs.
1004
1005 2010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
1006
1007 * elfxx-mips.h: Include "elf/mips.h".
1008 (gprel16_reloc_p): New static inline function.
1009 * elfxx-mips.c (_bfd_mips_elf_check_relocs)
1010 [R_MIPS16_GOT16, R_MIPS_GOT16, R_MIPS_GOT_HI16, R_MIPS_GOT_LO16]:
1011 Use got16_reloc_p.
1012 (_bfd_mips_elf_relocate_section)[bfd_reloc_overflow]: Use
1013 gprel16_reloc_p.
1014 * elf32-mips.c (mips_info_to_howto_rel): Likewise.
1015 * elfn32-mips.c (mips_info_to_howto_rel): Likewise.
1016
1017 2010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
1018
1019 * elf64-mips.c (mips_elf64_howto_table_rela)
1020 [R_MIPS_TLS_DTPMOD64]: Clear partial_inplace.
1021 [R_MIPS_TLS_DTPREL64, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
1022 [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
1023 [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL64]: Likewise.
1024 [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
1025 * elfn32-mips.c (elf_mips_howto_table_rela)
1026 [R_MIPS_TLS_DTPMOD32]: Likewise.
1027 [R_MIPS_TLS_DTPREL32, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
1028 [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
1029 [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL32]: Likewise.
1030 [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
1031
1032 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
1033 Ina Pandit <ina.pandit@kpitcummins.com>
1034
1035 * archures.c (DESCRIPTION): Define bfd_mach_v850e2 and
1036 bfd_mach_v850e2v3.
1037 * reloc.c (bfd_architecture): Define bfd_mach_v850e2 and
1038 bfd_mach_v850e2v3.
1039 (BFD_RELOC_V850_16_PCREL, BFD_RELOC_V850_17_PCREL,
1040 BFD_RELOC_V850_22_PCREL, BFD_RELOC_V850_23,
1041 BFD_RELOC_V850_32_PCREL, BFD_RELOC_V850_32_ABS,
1042 BFD_RELOC_V850_16_SPLIT_OFFSET, BFD_RELOC_V850_16_S1,
1043 BFD_RELOC_V850_LO16_SPLIT_OFFSET, BFD_RELOC_V850_SDA_15_16_OFFSET,
1044 BFD_RELOC_V850_ZDA_16_16_OFFSET, BFD_RELOC_V850_CALLT_15_16_OFFSET,
1045 BFD_RELOC_V850_32_GOTPCREL, BFD_RELOC_V850_16_GOT,
1046 BFD_RELOC_V850_32_GOT, BFD_RELOC_V850_22_PLT_PCREL,
1047 BFD_RELOC_V850_32_PLT_PCREL, BFD_RELOC_V850_COPY,
1048 BFD_RELOC_V850_GLOB_DAT, BFD_RELOC_V850_JMP_SLOT,
1049 BFD_RELOC_V850_RELATIVE, BFD_RELOC_V850_16_GOTOFF,
1050 BFD_RELOC_V850_32_GOTOFF, BFD_RELOC_V850_CODE,
1051 BFD_RELOC_V850_DATA): New relocations for V850 target.
1052 * config.bfd: Match all v850 targets.
1053 * cpu-v850.c (arch_info_struct): Define V850e2 and V850e2v3.
1054 * elf32-v850.c (v850_elf_check_relocs): Check the newly added
1055 relocations.
1056 (v850_elf_perform_relocation ): Update the newly added
1057 relocations.
1058 (v850_elf_howto_t): Update the specifications of added
1059 relocations.
1060 (v850_elf_reloc_map): Update the relocation mappings.
1061 (v850_elf_final_link_relocate): Maps added relocation into the
1062 appropriate howto structure.
1063 (v850_elf_object_p): Add support for V850E2 and V850E2V3.
1064 (v850_elf_final_write_processing): Likewise.
1065 (v850_elf_merge_private_bfd_data): Likewise.
1066 (v850_elf_print_private_bfd_data): Likewise.
1067 * libbfd.h: Regenerate.
1068 * bfd-in2.h: Regenerate.
1069
1070 2010-07-23 Alan Modra <amodra@gmail.com>
1071
1072 * archive.c (_bfd_archive_bsd44_construct_extended_name_table):
1073 Correct format specifier.
1074
1075 2010-07-22 Alan Modra <amodra@gmail.com>
1076
1077 * ecoff.c: Don't include aout/ranlib.h.
1078 (_bfd_ecoff_slurp_armap): Use correct struct for ardata->symdefs.
1079 (_bfd_ecoff_write_armap): Output ar_date and ar_size using
1080 _bfd_ar_spacepad.
1081
1082 2010-07-22 Alan Modra <amodra@gmail.com>
1083
1084 * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
1085 relocs.
1086
1087 2010-07-20 Alan Modra <amodra@gmail.com>
1088
1089 * elf.c (assign_file_positions_for_load_sections): Check that
1090 zero size sections are allocated in segments too.
1091 (assign_file_positions_for_non_load_sections): Warn if zero
1092 size alloc sections are found here.
1093 (copy_elf_program_header): Don't drop zero size sections from
1094 segment map.
1095 (copy_private_bfd_data): Check for changes in zero size sections.
1096
1097 2010-07-17 Alan Modra <amodra@gmail.com>
1098
1099 * elf.c (_bfd_elf_map_sections_to_segments): Force new segment
1100 for sections with overlapping LMAs.
1101 (assign_file_positions_for_load_sections): Catch overlap for
1102 sections that wrap around the address space. Replace a
1103 warning that duplicates ld's --check-sections error with a
1104 warning that lma has been adjusted for overlapping sections.
1105
1106 2010-07-14 Cary Coutant <ccoutant@google.com>
1107
1108 PR ld/11817
1109 * dwarf2.c (read_section): Revert patch for compressed debug sections.
1110 (find_line): Likewise.
1111 (read_and_uncompress_section): Remove.
1112
1113 2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
1114
1115 PR ld/11812
1116 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't
1117 allocate .got.plt section if there are no GOT nor PLT
1118 entries.
1119 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
1120
1121 2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
1122
1123 PR ld/11791
1124 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Support
1125 garbage collection against STT_GNU_IFUNC symbols.
1126
1127 * elf32-i386.c (elf_i386_get_local_sym_hash): Don't set
1128 elf.plt.offset/elf.got.offset to -1.
1129 (elf_i386_tls_transition): Skip TLS transition for functions.
1130 (elf_i386_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
1131
1132 * elf64-x86-64.c (elf64_x86_64_get_local_sym_hash): Don't set
1133 elf.plt.offset/elf.got.offset to -1.
1134 (elf64_x86_64_tls_transition): Skip TLS transition for functions.
1135 (elf64_x86_64_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
1136
1137 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
1138
1139 * elf32-i386.c (elf_i386_check_relocs): Re-indent.
1140 (elf_i386_relocate_section): Likewise.
1141
1142 2010-07-06 H.J. Lu <hongjiu.lu@intel.com>
1143
1144 * dwarf2.c (add_line_info): Initialize prev_line.
1145
1146 2010-07-06 Alan Modra <amodra@gmail.com>
1147
1148 * elf32-ppc.c (ppc_elf_relax_section): Insert branch around
1149 trampolines only for .init and .fini sections.
1150
1151 2010-07-05 Alan Modra <amodra@gmail.com>
1152
1153 * elf32-ppc.c: Formatting.
1154 (ppc_elf_finish_dynamic_sections): Don't make plt_entry var static.
1155
1156 2010-07-03 Cary Coutant <ccoutant@google.com>
1157
1158 * compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED.
1159 * dwarf2.c (read_and_uncompress_section): New function.
1160 (read_section): Call it.
1161 (find_line): Likewise.
1162
1163 2010-07-01 Alan Modra <amodra@gmail.com>
1164
1165 * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
1166 than SYMBOL_REFERENCES_LOCAL.
1167 (ppc64_elf_relocate_section): Likewise.
1168
1169 2010-07-01 Alan Modra <amodra@gmail.com>
1170
1171 * elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.
1172
1173 2010-06-29 Alan Modra <amodra@gmail.com>
1174
1175 * cpu-maxq.c: Delete file.
1176 * coff-maxq.c: Delete file.
1177 * Makefile.am: Remove references to maxq.
1178 * archures.c: Likewise.
1179 * coffcode.h: Likewise.
1180 * configure.in: Likewise.
1181 * targets.c: Likewise.
1182 * config.bfd: Move maxq from obsolete to removed.
1183 * Makefile.in: Regenerate.
1184 * bfd-in2.h: Regenerate.
1185 * configure: Regenerate.
1186 * libbfd.h: Regenerate.
1187 * po/SRC-POTFILES.in: Regenerate.
1188
1189 2010-06-28 Alan Modra <amodra@gmail.com>
1190
1191 * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
1192 to silence gcc warning.
1193
1194 2010-06-27 Alan Modra <amodra@gmail.com>
1195
1196 * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
1197 (group_sections): Likewise.
1198
1199 2010-06-27 Alan Modra <amodra@gmail.com>
1200
1201 * bout.c (aligncode): Delete set but unused variables.
1202 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
1203 * coff-ppc.c (ppc_record_toc_entry): Likewise.
1204 (coff_ppc_relocate_section): Likewise.
1205 * coff-rs6000.c (xcoff_complain_overflow_bitfield_func): Likewise.
1206 * elf-m10200.c (mn10200_elf_relax_delete_bytes): Likewise.
1207 * elf-m10300.c (mn10300_elf_final_link_relocate): Likewise.
1208 (mn10300_elf_relax_section): Likewise.
1209 * elf32-arm.c (arm_build_one_stub, arm_size_one_stub): Likewise.
1210 (record_vfp11_erratum_veneer): Likewise.
1211 (bfd_elf32_arm_vfp11_erratum_scan): Likewise.
1212 (elf32_arm_final_link_relocate): Likewise.
1213 (elf32_arm_check_relocs, arm_map_one_stub): Likewise.
1214 * elf32-avr.c (elf32_avr_relax_delete_bytes): Likewise.
1215 (elf32_avr_relax_section): Likewise.
1216 (avr_mark_stub_not_to_be_necessary): Likewise.
1217 * elf32-bfin.c (_bfin_create_got_section): Likewise.
1218 * elf32-cr16.c (cr16_elf_final_link_relocate): Likewise.
1219 (elf32_cr16_relax_delete_bytes): Likewise.
1220 * elf32-cr16c.c (cr16c_elf_final_link_relocate): Likewise.
1221 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
1222 * elf32-crx.c (elf32_crx_relax_delete_bytes): Likewise.
1223 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
1224 (elf32_h8_relax_delete_bytes): Likewise.
1225 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1226 * elf32-i370.c (i370_elf_check_relocs): Likewise.
1227 (elf_relocate_section): Likewise.
1228 * elf32-ip2k.c (adjust_all_relocations): Likewise.
1229 (ip2k_elf_relax_section): Likewise.
1230 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1231 (lm32_elf_check_relocs): Likewise.
1232 (lm32_elf_finish_dynamic_sections): Likewise.
1233 (lm32_elf_finish_dynamic_symbol): Likewise.
1234 * elf32-m32c.c (m32c_offset_for_reloc): Likewise.
1235 (m32c_elf_relax_delete_bytes): Likewise.
1236 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
1237 (m32r_elf_finish_dynamic_sections): Likewise.
1238 (m32r_elf_check_relocs, m32r_elf_fake_sections): Likewise.
1239 * elf32-m68hc11.c (m68hc11_elf_relax_section): Likewise.
1240 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1241 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
1242 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
1243 (microblaze_elf_check_relocs): Likewise.
1244 (microblaze_elf_finish_dynamic_symbol): Likewise.
1245 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
1246 * elf32-ppc.c (ppc_elf_tls_optimize): Likewise.
1247 * elf32-rx.c (rx_elf_relocate_section): Likewise.
1248 (elf32_rx_relax_delete_bytes, rx_offset_for_reloc): Likewise.
1249 (elf32_rx_relax_section): Likewise.
1250 * elf32-score.c (score_elf_got_offset_from_index): Likewise.
1251 (score_elf_final_link_relocate): Likewise.
1252 (s3_bfd_score_elf_relocate_section): Likewise.
1253 * elf32-score7.c (score_elf_got_offset_from_index): Likewise.
1254 (s7_bfd_score_elf_relocate_section): Likewise.
1255 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1256 * elf32-spu.c (spu_elf_relocate_section): Likewise.
1257 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1258 (find_remembered_hi16s_reloc): Likewise.
1259 * elf32-vax.c (elf32_vax_merge_private_bfd_data): Likewise.
1260 (elf_vax_relocate_section): Likewise.
1261 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1262 * elf32-xtensa.c (xlate_offset_with_removed_text): Likewise.
1263 (move_literal): Likewise.
1264 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
1265 (elf64_hppa_check_relocs): Likewise.
1266 (elf64_hppa_finish_dynamic_symbol): Likewise.
1267 (elf64_hppa_relocate_section): Likewise.
1268 * elf64-mmix.c (mmix_elf_reloc, mmix_elf_relax_section): Likewise.
1269 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1270 (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Likewise.
1271 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
1272 (elfNN_vms_section_from_shdr): Likewise.
1273 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1274 (_bfd_sparc_elf_relocate_section): Likewise.
1275 * hp300hpux.c (slurp_symbol_table): Likewise.
1276 * i386lynx.c (swap_std_reloc_out, swap_std_reloc_in): Likewise.
1277 * mach-o.c (bfd_mach_o_write_thread): Likewise.
1278 * mmo.c (mmo_scan, mmo_write_symbols_and_terminator): Likewise.
1279 * nlm32-sparc.c (nlm_sparc_read_reloc): Likewise.
1280 * pdp11.c (pdp11_aout_link_input_section): Likewise.
1281 (aout_link_input_section, aout_link_input_bfd): Likewise.
1282 * pe-mips.c (mips_swap_reloc_out): Likewise.
1283 (coff_pe_mips_relocate_section): Likewise.
1284 * som.c (som_bfd_ar_write_symbol_stuff): Likewise.
1285 * vms-alpha.c (_bfd_vms_slurp_egsd): Likewise.
1286 * xsym.c (bfd_sym_fetch_type_information_table_ent): Likewise.
1287
1288 * coff-i860.c (i860_reloc_processing): Avoid set but unused warning.
1289 * coffcode.h (coff_compute_section_file_positions): Likewise.
1290 (coff_slurp_reloc_table): Likewise.
1291 * cpu-arm.c (arm_check_note): Likewise.
1292 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Likewise.
1293 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1294 * elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Likewise.
1295 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1296 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
1297 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1298 * elf32-sh64.c (_bfd_sh_align_load_span): Likewise.
1299 * ieee.c (parse_expression): Likewise.
1300 (ieee_slurp_external_symbols, drop_int): Likewise.
1301 * peXXigen.c (pe_print_pdata): Likewise.
1302 * versados.c (process_esd): Likewise.
1303
1304 2010-06-25 Tristan Gingold <gingold@adacore.com>
1305
1306 * vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with
1307 its flags. Create an absolute section if needed.
1308
1309 2010-06-25 Tristan Gingold <gingold@adacore.com>
1310
1311 * vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of
1312 sections. Mark .vmsdebug section as SEC_DEBUGGING. Do not create
1313 dummy psect anymore. Adjust.
1314 (_bfd_vms_write_eeom): Adjust (use target_index instead of index)
1315 (_bfd_vms_write_etir): Ditto.
1316 (start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of
1317 section name. Adjust.
1318
1319 2010-06-25 Tristan Gingold <gingold@adacore.com>
1320
1321 * vms-alpha.c (alpha_vms_write_exec): Set linktime field.
1322
1323 2010-06-25 Alan Modra <amodra@gmail.com>
1324
1325 * elf64-ppc.c (toc_skip_enum): Define.
1326 (ppc64_elf_edit_toc): Use two low bits of skip array as markers.
1327 Optimize largetoc sequences.
1328 (adjust_toc_syms): Update for skip array change.
1329 (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT.
1330
1331 2010-06-25 Alan Modra <amodra@gmail.com>
1332
1333 * elf64-ppc.c (is_static_defined): New function.
1334 (get_tls_mask, ppc_type_of_stub): Use it here.
1335 (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input.
1336 (ppc64_elf_tls_setup): Typo fix.
1337 (adjust_toc_syms): Correctly handle symbols defined past the end
1338 of the toc. Move syms on removed entries to next entry rather
1339 than to start of toc.
1340 (ppc64_elf_edit_toc): Likewise. Ensure we only attempt to
1341 edit ppc64 input. Allocate one extra word in skip array.
1342 Honour info->keep_memory when reading relocs if we can.
1343 Adjust toc relocs after adjusting symbols.
1344
1345 2010-06-23 Nathan Sidwell <nathan@codesourcery.com>
1346
1347 * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
1348 when scaning map.
1349
1350 2010-06-17 Tristan Gingold <gingold@adacore.com>
1351
1352 * Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ...
1353 (BFD64_BACKENDS_CFILES): ... here.
1354 (BFD32_BACKENDS): Move vms-alpha.lo to ...
1355 (BFD64_BACKENDS): ... here.
1356 * Makefile.in: Regenerate.
1357
1358 2010-06-15 Joseph Myers <joseph@codesourcery.com>
1359
1360 * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2.
1361 * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type,
1362 elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes,
1363 elf32_tic6x_merge_private_bfd_data): New.
1364 (bfd_elf32_bfd_merge_private_bfd_data,
1365 elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section,
1366 elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor):
1367 Define.
1368 * elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare.
1369
1370 2010-06-15 Joseph Myers <joseph@codesourcery.com>
1371
1372 * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
1373 (struct elf_backend_data): Update comment on obj_attrs_order.
1374 * elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
1375 _bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
1376 instead of hardcoded 4.
1377 * elf32-arm.c (elf32_arm_obj_attrs_order): Use
1378 LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
1379 instead of hardcoded 4 and 5.
1380 (elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
1381 instead of hardcoded 4.
1382
1383 2010-06-14 Kevin Buettner <kevinb@redhat.com>
1384
1385 * elf32-h8300.c (elf_symbol_leading_char): Define.
1386
1387 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1388
1389 * vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
1390
1391 2010-06-11 Tristan Gingold <gingold@adacore.com>
1392
1393 * vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
1394 sections to 0.
1395
1396 2010-06-11 Tristan Gingold <gingold@adacore.com>
1397
1398 * vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.
1399
1400 2010-06-11 Tristan Gingold <gingold@adacore.com>
1401
1402 * vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
1403 Adjust cast.
1404 (_bfd_vms_output_dump): Make DATA argument const, adjust cast.
1405 * vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
1406 * vms-alpha.c (evax_section_flags): Make it const.
1407 (vms_secflag_by_name): Remove unused ABFD argument.
1408 Make SECTION_FLAGS and NAME arguments const. Clarify comment.
1409 (vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
1410 (_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
1411 (_bfd_vms_write_egsd): Remove useless cast.
1412
1413 2010-06-10 Tristan Gingold <gingold@adacore.com>
1414
1415 * config.bfd: Remove #if/#endif so that som can be compiled on any
1416 host.
1417 * targets.c (_bfd_target_vector): Remove #if/#endif so that som
1418 can be used on any host.
1419
1420 2010-06-10 Tristan Gingold <gingold@adacore.com>
1421
1422 * som.c: Can now be compiled on any host.
1423 Include bfd headers instead of system one.
1424 (som_compute_checksum): Parameter is now a pointer to a
1425 som_external_header structure. Adjust.
1426 (struct section_to_type): Field section is now const.
1427 (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional
1428 definition.
1429 (R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto.
1430 (R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto.
1431 (som_swap_clock_in, som_swap_clock_out): New functions.
1432 (som_swap_header_in, som_swap_header_out): Likewise.
1433 (som_swap_space_dictionary_in): Likewise.
1434 (som_swap_space_dictionary_out): Likewise.
1435 (som_swap_subspace_dictionary_in): Likewise.
1436 (som_swap_subspace_dictionary_record_out): Likewise.
1437 (som_swap_aux_id_in, som_swap_aux_id_out): Likewise.
1438 (som_swap_string_auxhdr_out): Likewise.
1439 (som_swap_compilation_unit_out): Likewise.
1440 (som_swap_exec_auxhdr_in): Likewise.
1441 (som_swap_exec_auxhdr_out): Likewise.
1442 (som_swap_lst_header_in): Likewise.
1443 (som_object_setup): Adjust parameter type using bfd types.
1444 (setup_sections): Likewise. Ditto for object file types.
1445 Use intermediate variables for external representation and use the
1446 swap functions to convert.
1447 (som_object_p): Ditto. Remove #ifdef/#endif on always defined
1448 macros.
1449 (som_prep_headers): Likewise.
1450 (som_write_symbol_strings): Likewise.
1451 (som_begin_writing): Likewise.
1452 (som_finish_writing): Likewise.
1453 (som_build_and_write_symbol_table): Likewise.
1454 (bfd_section_from_som_symbol): Likewise.
1455 (som_slurp_symbol_table): Likewise.
1456 (som_bfd_print_private_bfd_data): Likewise.
1457 (bfd_som_attach_aux_hdr): Likewise. Clear the padding.
1458 (bfd_som_attach_compilation_unit): Likewise.
1459 (som_bfd_count_ar_symbols): Likewise.
1460 (som_bfd_fill_in_ar_symbols): Likewise.
1461 (som_slurp_armap): Likewise.
1462 (som_bfd_ar_write_symbol_stuff): Likewise.
1463 (som_write_armap): Likewise. Use _bfd_ar_spacepad instead of
1464 sprintf to write header fields.
1465 * som.h: Include bfd headers instead of system one.
1466 (FILE_HDR_SIZE, AUX_HDR_SIZE): Removed.
1467 (struct somdata): Use bfd structures instead of system ones.
1468 (struct som_section_data_struct): Likewise.
1469 (struct som_subspace_dictionary_record): Removed (now in
1470 include/som/internal.h)
1471
1472 2010-06-10 Tristan Gingold <gingold@adacore.com>
1473
1474 * targets.c (bfd_target_list): Remove hp/ux compiler work-around
1475 as bfd requires an ANSI-C compiler.
1476
1477 2010-06-09 Tristan Gingold <gingold@adacore.com>
1478
1479 * bfdio.c (bfd_bread): Fix the code to prevent reading past the
1480 end of archive members.
1481
1482 2010-06-08 Tristan Gingold <gingold@adacore.com>
1483
1484 * som.c (som_bfd_free_cached_info): Do not free relocations as
1485 they were allocated with bfd_zalloc.
1486
1487 2010-06-08 Tristan Gingold <gingold@adacore.com>
1488
1489 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
1490 for the first block.
1491
1492 2010-06-08 Tristan Gingold <gingold@adacore.com>
1493
1494 * vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
1495 * libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
1496 * libbfd.h: Regenerate.
1497 * elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
1498 (bfd_elfNN_mkarchive): Ditto.
1499
1500 2010-06-02 Tristan Gingold <gingold@adacore.com>
1501
1502 * vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
1503
1504 2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1505
1506 * configure: Regenerate.
1507
1508 2010-06-01 Tristan Gingold <gingold@adacore.com>
1509
1510 * vms-alpha.c (struct vms_private_data_struct): Add
1511 transfer_address field. Remove unused dst_info field.
1512 (alpha_vms_write_exec): Use transfer_address.
1513 (_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE.
1514 (alpha_vms_bfd_final_link): Set transfer_address.
1515
1516 2010-05-31 Tristan Gingold <gingold@adacore.com>
1517
1518 * vms-lib.c (credat_lo, credat_hi): New fields.
1519 (vms_read_block): Adjust comments.
1520 (vms_write_block): New function.
1521 (_bfd_vms_lib_archive_p): Decode majorid once. Replace some
1522 hard-coded values with constants. Set credat_lo and credat_hi.
1523 (_bfd_vms_lib_mkarchive): Add argument kind.
1524 Set ver, mhd_size and type according to kind.
1525 (_bfd_vms_lib_alpha_mkarchive): New function.
1526 (struct lib_index): Renamed from struct vms_index
1527 (lib_index_cmp): Renamed from vms_index_cmp. Adjusted.
1528 (get_idxlen): Type of idx argument adjusted. Add is_elfidx
1529 argument and handle it.
1530 (vms_write_index): Adjust argument idx. Handle elf indexes.
1531 (_bfd_vms_lib_build_map): Adjust type of arguments modules and res.
1532 (_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and
1533 use it. Handle elf indexes. Set credat.
1534 * libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ...
1535 (_bfd_vms_lib_alpha_mkarchive): ... this.
1536 * libbfd.h: Regenerated.
1537 * vms-alpha.c (vms_alpha_vec): Adjust after previous renaming.
1538
1539 2010-05-28 Sterling Augustine <sterling@tensilica.com>
1540
1541 * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
1542 of code to change the bits in the instructions to match the changes
1543 in the relocations. Declare dest_addr and sym_sec to help.
1544
1545 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1546
1547 Workaround GCC PR middle-end/4210.
1548 * vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2]
1549 and val[3].
1550
1551 2010-05-27 Tristan Gingold <gingold@adacore.com>
1552
1553 * vms-misc.c: Define __NEW_STARLET. Remove trailing spaces.
1554 (VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros.
1555 (vms_time_to_time_t): Use them instead of local const.
1556 (vms_time_t_to_vms_time): New function.
1557 (vms_get_time): Likewise.
1558 (vms_raw_get_time): Likewise.
1559 * vms.h (vms_time_t_to_vms_time): New declaration.
1560 (vms_get_time): Likewise.
1561 (vms_raw_get_time): Likewise.
1562
1563 2010-05-26 Tristan Gingold <gingold@adacore.com>
1564
1565 * vms-alpha.c: Update comments.
1566 (alpha_vms_write_exec): Set lnkflags. Write the GST.
1567 (alpha_vms_link_output_symbol): New function.
1568 (alpha_vms_bfd_final_link): Generate the VMS symbol table.
1569 Set dst_section private field.
1570 (alpha_vms_bfd_final_link): Remove code that set dst_section.
1571
1572 2010-05-26 Tristan Gingold <gingold@adacore.com>
1573
1574 * bfdio.c: Declare and define _bfd_memory_iovec.
1575 (bfd_bread): Move code for BFD_IN_MEMORY...
1576 (bfd_bwrite): ... Ditto ...
1577 (bfd_tell): ... Ditto ...
1578 (bfd_flush): ... Ditto ...
1579 (bfd_stat): ... Ditto ...
1580 (bfd_seek): ... Ditto ...
1581 (bfd_get_size): ... Ditto ...
1582 (bfd_mmap): ... Ditto ...
1583 (memory_bread): ... to these new functions.
1584 (memory_bwrite): Ditto.
1585 (memory_btell): Ditto.
1586 (memory_bseek): Ditto.
1587 (memory_bflush): Ditto.
1588 (memory_bstat): Ditto.
1589 (memory_bmmap): Ditto.
1590 (memory_bclose): New function.
1591 * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
1592 * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
1593 * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
1594 (bfd_make_writable): Use _bfd_memory_iovec.
1595 * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
1596 * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
1597 _bfd_memory_iovec.
1598 (alpha_ecoff_openr_next_archived_file): Use proxy_origin
1599 instead of origin.
1600 * libbfd.h: Regenerate.
1601
1602 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
1603 Joseph Myers <joseph@codesourcery.com>
1604 Andrew Stubbs <ams@codesourcery.com>
1605
1606 * config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
1607 bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
1608 * configure.in: Handle FDPIC vectors.
1609 * elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
1610 * elf32-sh.c (DEFAULT_STACK_SIZE): Define.
1611 (SYMBOL_FUNCDESC_LOCAL): Define. Use it instead of
1612 SYMBOL_REFERENCES_LOCAL for function descriptors.
1613 (fdpic_object_p): New.
1614 (sh_reloc_map): Add FDPIC and movi20 relocations.
1615 (sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
1616 range.
1617 (struct elf_sh_plt_info): Add got20 and short_plt. Update all
1618 definitions.
1619 (FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
1620 (fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
1621 (FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
1622 (fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
1623 (fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
1624 New.
1625 (get_plt_info): Handle FDPIC.
1626 (MAX_SHORT_PLT): Define.
1627 (get_plt_index, get_plt_offset): Handle short_plt.
1628 (union gotref): New.
1629 (struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
1630 got_type and adjust all uses. Add GOT_FUNCDESC.
1631 (struct sh_elf_obj_tdata): Add local_funcdesc. Rename
1632 local_got_tls_type to local_got_type.
1633 (sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type. All
1634 users changed.
1635 (sh_elf_local_funcdesc): Define.
1636 (struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
1637 and srofixup.
1638 (sh_elf_link_hash_newfunc): Initialize new fields.
1639 (sh_elf_link_hash_table_create): Set fdpic_p.
1640 (sh_elf_omit_section_dynsym): New.
1641 (create_got_section): Create .got.funcdesc, .rela.got.funcdesc
1642 and .rofixup.
1643 (allocate_dynrelocs): Allocate local function descriptors and space
1644 for R_SH_FUNCDESC-related relocations, and for rofixups.
1645 Handle GOT_FUNCDESC. Create fixups. Handle GOT entries which
1646 require function descriptors.
1647 (sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
1648 (sh_elf_modify_program_headers): New.
1649 (sh_elf_size_dynamic_sections): Allocate function descriptors for
1650 local symbols. Allocate .got.funcdesc contents. Allocate rofixups.
1651 Handle local GOT entries of type GOT_FUNCDESC. Create fixups for
1652 local GOT entries. Ensure that FDPIC libraries always have a PLTGOT
1653 entry in the .dynamic section.
1654 (sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
1655 (sh_elf_add_rofixup, sh_elf_osec_to_segment)
1656 (sh_elf_osec_readonly_p, install_movi20_field): New functions.
1657 (sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
1658 R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC. Use sh_elf_got_offset
1659 and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_. Add rofixup
1660 read-only section warnings. Handle undefined weak symbols. Generate
1661 fixups for R_SH_DIR32 and GOT entries. Check for cross-segment
1662 relocations and clear EF_SH_PIC. Handle 20-bit relocations.
1663 Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
1664 (sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
1665 R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
1666 Handle 20-bit relocations.
1667 (sh_elf_copy_indirect_symbol): Copy function descriptor reference
1668 counts.
1669 (sh_elf_check_relocs): Handle new relocations. Make symbols
1670 dynamic for FDPIC relocs. Account for rofixups. Error for FDPIC
1671 symbol mismatches. Allocate a GOT for R_SH_DIR32. Allocate fixups
1672 for R_SH_DIR32.
1673 (sh_elf_copy_private_data): Copy PT_GNU_STACK size.
1674 (sh_elf_merge_private_data): Copy initial flags. Do not clobber
1675 non-mach flags. Set EF_SH_PIC for FDPIC. Reject FDPIC mismatches.
1676 (sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
1677 here. Rename sgot to sgotplt and srel to srelplt. Handle short_plt,
1678 FDPIC descriptors, and got20. Create R_SH_FUNCDESC_VALUE for FDPIC.
1679 Use install_movi20_field. Rename srel to srelgot. Always generate
1680 R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
1681 (sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
1682 Do not fill in reserved GOT entries for FDPIC. Correct DT_PLTGOT.
1683 Rename sgot to sgotplt. Assert that the right number of rofixups
1684 and dynamic relocations were allocated.
1685 (sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
1686 (elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
1687 (elf_backend_can_make_relative_eh_frame)
1688 (elf_backend_can_make_lsda_relative_eh_frame)
1689 (elf_backend_encode_eh_address): Define.
1690 (TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
1691 (TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
1692 Redefine for FDPIC vector.
1693 * reloc.c: Add SH FDPIC and movi20 relocations.
1694 * targets.c (_bfd_target_vector): Add FDPIC vectors.
1695 * configure, bfd-in2.h, libbfd.h: Regenerated.
1696
1697 2010-05-25 Jay Krell <jay.krell@cornell.edu>
1698
1699 PR ld/11624
1700 * archive.c (_bfd_calloc_wrapper): New function.
1701 (_bfd_add_bfd_to_archive_cache): Use it.
1702
1703 * configure.in: Add alpha*-*-*vms* to list of natives.
1704 * configure: Regenerate.
1705
1706 * vms-misc.c: Define globalref if necessary.
1707 (vms_convert_to_var_unix_filename): Rename to
1708 _bfd_vms_convert_to_var_unix_filename and export.
1709 * vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename.
1710 * vms-alpha.c (vms_close_and_cleanup): Update invocation of
1711 vms_convert_to_var_unix_filename.
1712
1713 2010-05-24 Tristan Gingold <gingold@adacore.com>
1714
1715 * vms-alpha.c (add_symbol_entry): New function extrated from ...
1716 (add_symbol): ... adjusted.
1717
1718 2010-05-24 Tristan Gingold <gingold@adacore.com>
1719
1720 * vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
1721 (alpha_vms_write_exec): Add a comment.
1722 (_bfd_vms_write_egsd): Ditto.
1723 (alpha_vms_convert_symbol): Remove a blank line.
1724
1725 2010-05-21 Tristan Gingold <gingold@adacore.com>
1726
1727 * vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
1728 for the GST.
1729
1730 2010-05-21 Tristan Gingold <gingold@adacore.com>
1731
1732 * vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and
1733 SEC_LOAD if isect has data.
1734 (vms_get_symbol_info): Refine the condition for 'T' type.
1735
1736 2010-05-18 Tristan Gingold <gingold@adacore.com>
1737
1738 * vms-alpha.c (_bfd_vms_write_emh): New function.
1739 (_bfd_vms_write_lmn): New function.
1740 (_bfd_vms_write_eeom): Moved.
1741 (hash_string): Likewise.
1742 (_bfd_vms_length_hash_symbol): Likewise.
1743 (_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
1744 and _bfd_vms_write_lmn, and call these functions.
1745
1746 2010-05-18 Tristan Gingold <gingold@adacore.com>
1747
1748 * vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
1749 Add details in the messages.
1750 (evax_bfd_print_image): Change message.
1751
1752 2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
1753
1754 PR gas/11600
1755 * elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
1756 (elf_fake_sections): Likewise.
1757
1758 * elf32-i370.c (i370_elf_section_from_shdr): Don't handle
1759 SHF_EXCLUDE here.
1760 * elf32-ppc.c (ppc_elf_fake_sections): Likewise.
1761
1762 2010-05-17 Tristan Gingold <gingold@adacore.com>
1763
1764 * vms-alpha.c: Include esgps.h and eidc.h.
1765 (_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
1766 (evax_bfd_print_egsd_flags): New function, extracted from ...
1767 (evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags. Handles
1768 EGSD__C_SPSC and EGSD__C_IDC.
1769
1770 2010-05-14 Tristan Gingold <gingold@adacore.com>
1771
1772 * vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
1773 (_bfd_vms_get_object_record): Handle align byte only in the
1774 foreign case.
1775
1776 2010-05-14 Tristan Gingold <gingold@adacore.com>
1777
1778 * vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
1779 * libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
1780 * libbfd.h: Regenerate.
1781 * configure.in (havevecs): Define HAVE_all_vecs when
1782 --enable-targets=all is set. Use AC_SUBST on it.
1783 (tdefaults): Do not add havevecs.
1784 (bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
1785 * configure: Regenerate.
1786 * Makefile.am (HAVEVECS): New variable.
1787 (INCLUDES): Add HAVEVECS.
1788 * Makefile.in: Regenerate.
1789 * elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
1790 target is selected. Add #ifdef/#endif around vms specific code.
1791 (bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
1792 bfd_elfNN_archive_slurp_extended_name_table,
1793 bfd_elfNN_archive_construct_extended_name_table,
1794 bfd_elfNN_archive_truncate_arname,
1795 bfd_elfNN_archive_write_armap,
1796 bfd_elfNN_archive_read_ar_hdr,
1797 bfd_elfNN_archive_write_ar_hdr,
1798 bfd_elfNN_archive_openr_next_archived_file,
1799 bfd_elfNN_archive_get_elt_at_index,
1800 bfd_elfNN_archive_generic_stat_arch_elt,
1801 bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
1802
1803 2010-05-11 Jie Zhang <jie@codesourcery.com>
1804
1805 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
1806 Tag_ABI_HardFP_use correctly.
1807
1808 2010-05-11 Alan Modra <amodra@gmail.com>
1809
1810 * coffcode.h (coff_write_object_contents): Enclose all occurrences
1811 of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
1812
1813 2010-05-07 Daniel Jacobowitz <dan@codesourcery.com>
1814
1815 * elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
1816 sym_name to improve packing.
1817 (cortex_a8_erratum_scan): Check for PLT entries.
1818 (elf32_arm_size_stubs): Save the target symbol for a8 relocs.
1819
1820 2010-05-07 Tristan Gingold <gingold@adacore.com>
1821
1822 * Makefile.in: Regenerate with automake 1.11.1.
1823 * aclocal.m4: Ditto.
1824
1825 2010-05-05 Nick Clifton <nickc@redhat.com>
1826
1827 * po/es.po: Updated Spanish translation.
1828
1829 2010-05-03 Tristan Gingold <gingold@adacore.com>
1830
1831 * vms-lib.c (vms_lib_bopen): Fix the size threshold to read
1832 selective_search flag.
1833 Add comments.
1834 * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
1835 before output_has_begun is set.
1836
1837 2010-05-03 Tristan Gingold <gingold@adacore.com>
1838
1839 * vms-alpha.c: Add comments.
1840 (struct vms_private_data_struct): Remove image_autoextend field.
1841 (dst_check_allocation): Removed.
1842 (image_write): Remove call to dst_check_allocation.
1843 (vms_slurp_debug): Do not set image_autoextend. Adjust section
1844 size.
1845 (_bfd_vms_slurp_object_records): Remove useless new_type variable.
1846 (alpha_vms_write_exec): Use dst_section to get the dst section.
1847 Write the dmt section.
1848 (evax_bfd_print_image): Also print the dst size in hexa. Fix typo.
1849 (alpha_vms_read_sections_content): Do not set image_autoextend.
1850 (alpha_vms_bfd_final_link): Generate the dst.
1851
1852 2010-05-03 Tristan Gingold <gingold@adacore.com>
1853
1854 * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
1855 next array.
1856 (vms_lib_dcx): Adjust for the above change.
1857
1858 2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
1859
1860 PR ld/11542
1861 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
1862
1863 * elf32-i386.c (elf_i386_relocate_section): Use it.
1864 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1865
1866 2010-04-30 Tristan Gingold <gingold@adacore.com>
1867
1868 * vms-lib.c (vms_read_block): New function.
1869 (vms_traverse_index): Use vms_read_block. Handle long key names.
1870
1871 2010-04-30 Tristan Gingold <gingold@adacore.com>
1872
1873 * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
1874 and syms removed.
1875 (struct carsym_mem): New structure.
1876 (vms_add_index): New function.
1877 (vms_add_indexes_from_list): New function.
1878 (vms_traverse_index): Parameter carsym changed to carsym_mem.
1879 Code adjusted to handle elfidx.
1880 (vms_lib_read_index): Adjusted for vms_traverse_index changes.
1881 Parameter NBREL is now a pointer.
1882 (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64
1883 archives.
1884 (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
1885 (_bfd_vms_lib_find_symbol): Ditto.
1886 (vms_lib_bopen): Fix two typos: return FALSE in case of error,
1887 check MHD id.
1888 (_bfd_vms_lib_get_module): New function.
1889 (_bfd_vms_lib_get_elt_at_index): Rewritten using the above
1890 function.
1891 (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
1892 (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
1893 (vms_write_index): Adjust for structure renamed.
1894 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
1895 changes of _bfd_vms_lib_find_symbol.
1896
1897 2010-04-28 Kai Tietz <kai.tietz@onevision.com>
1898
1899 * config.bfd: Correct accidential reverted patch
1900 about vax*-*-*vms*.
1901
1902 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
1903
1904 * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
1905 to USE_MINGW64_LEADING_UNDERSCORES.
1906 * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
1907 * config.bfd: Change underscoring default for x64 mingw
1908 to false.
1909 * coffcode.h (coff_write_relocs): Add check that dereferenced
1910 sym_ptr_ptr isn't NULL.
1911 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
1912 * configure: Regenerated.
1913 * configure.in: Add option '--enable-leading-mingw64-underscores'
1914 and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
1915
1916 2010-04-27 Nick Clifton <nickc@redhat.com>
1917
1918 PR binutils/11512
1919 * coffgen.c (coff_find_nearest_line): Incldue the section address
1920 of function name symbols in address comparisons.
1921
1922 2010-04-27 Nick Clifton <nickc@redhat.com>
1923
1924 * po/fr.po: Updated French translation.
1925
1926 2010-04-23 Alan Modra <amodra@gmail.com>
1927
1928 * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
1929 ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
1930 throughout file.
1931 (assign_file_positions_for_load_sections): Modify section in
1932 segment warning to ignore overlay vmas.
1933 * elf32-spu.c (spu_elf_object_p): Replace use of
1934 ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
1935
1936 2010-04-22 Nick Clifton <nickc@redhat.com>
1937
1938 * po/bfd.pot: Updated by the Translation project.
1939 * po/vi.po: Updated Vietnamese translation.
1940
1941 2010-04-22 Alan Modra <amodra@gmail.com>
1942
1943 * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
1944 change. Tidy. Don't error on sections not allocated in segment.
1945
1946 2010-04-15 Andrew Haley <aph@redhat.com>
1947
1948 * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
1949 merge_exidx_entries.
1950 * bfd-in2.h: Likewise.
1951 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to
1952 control merging of exidx entries.
1953
1954 2010-04-20 Joseph Myers <joseph@codesourcery.com>
1955
1956 * elf32-tic6x.h: New.
1957 * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
1958 * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
1959 elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
1960 elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
1961 elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
1962 bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
1963 (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
1964 elf32_tic6x_relocate_section): Handle REL relocations.
1965 (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
1966
1967 2010-04-20 Jakub Jelinek <jakub@redhat.com>
1968
1969 * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
1970 DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
1971
1972 2010-04-19 Nick Clifton <nickc@redhat.com>
1973
1974 * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
1975 arhdrpos variable.
1976 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
1977 attribute to warned variable. Remove unused val, type and type2
1978 variables.
1979
1980 2010-04-16 Andreas Schwab <schwab@redhat.com>
1981
1982 * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
1983 strict-aliasing rules.
1984
1985 2010-04-16 Tristan Gingold <gingold@adacore.com>
1986
1987 * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
1988 (_bfd_vms_get_object_record): Always assume there is a pad byte
1989 for alignment.
1990
1991 * vms-lib.c: Add a few comments.
1992
1993 2010-04-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1994
1995 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
1996 attributes in v2.08 of the ABI.
1997
1998 2010-04-15 Alan Modra <amodra@gmail.com>
1999
2000 * config.bfd (vax*-*-*vms*): Delete.
2001
2002 2010-04-14 Tristan Gingold <gingold@adacore.com>
2003
2004 * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
2005 vms-tir.lo, vms.lo and add vms-alpha.lo
2006 (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
2007 vms-tir.c, vms.c and add vms-alpha.c
2008 * Makefile.in: Regenerate.
2009 * configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
2010 Remove vms_vax_vec.
2011 * configure: Regenerate.
2012 * targets.c (vms_vax_vec): Remove the declaration.
2013 (_bfd_target_vector): Remove vms_vax_vec.
2014 * vms-alpha.c: New file.
2015 * vms-gsd.c: Removed, rewritten in vms-alpha.c
2016 * vms-hdr.c: Ditto.
2017 * vms-tir.c: Ditto.
2018 * vms.c: Ditto.
2019 * vms-misc.c: Fix indentation and comments. Replace most of
2020 #if VMS_DEBUG/vms_debug with vms_debug2.
2021 (_bfd_vms_hash_newfunc): Moved to vms-alpha.c
2022 (hash_string): Ditto.
2023 (_bfd_vms_length_hash_symbol): Ditto.
2024 (maybe_adjust_record_pointer_for_object): Ditto.
2025 (_bfd_vms_get_object_record): Ditto.
2026 (vms_get_remaining_object_record): Ditto.
2027 (_bfd_vms_push): Ditto.
2028 (_bfd_vms_pop): Ditto.
2029 (_bfd_vms_get_header_values): Removed.
2030 (_bfd_vms_get_first_record): Removed.
2031 (vms_get_remaining_image_record): Removed.
2032 (new_symbol): Removed.
2033 (_bfd_vms_enter_symbol): Removed.
2034 (_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
2035 (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd
2036 parameter with struct vms_rec_wr.
2037 (_bfd_vms_output_push): Removed and replaced by ...
2038 (_bfd_vms_output_begin_subrec): ... new function.
2039 (_bfd_vms_output_alignment): Replace bfd parameter with
2040 struct vms_rec_wr, and adjust.
2041 (_bfd_vms_output_check): Ditto
2042 (_bfd_vms_output_byte): Ditto.
2043 (_bfd_vms_output_short): Ditto.
2044 (_bfd_vms_output_long): Ditto.
2045 (_bfd_vms_output_quad): Ditto.
2046 (_bfd_vms_output_counted): Ditto.
2047 (_bfd_vms_output_dump): Ditto.
2048 (_bfd_vms_output_fill): Ditto.
2049 (_bfd_vms_output_pop): Removed and replaced by ...
2050 (_bfd_vms_output_end_subrec): ... new function.
2051 (_bfd_vms_output_flush): Removed.
2052 (_bfd_vms_output_align): New function.
2053 (_bfd_vms_output_end): Add recwr parameter. Adjust for this new
2054 parameter.
2055 (vms_convert_to_var): New function imported from vms.c
2056 (vms_convert_to_var_1): Ditto.
2057 (vms_convert_to_var_unix_filename): Ditto.
2058 (vms_get_module_name): Ditto.
2059 (get_vms_time_string): Ditto.
2060 (vms_time_to_time_t): Ditto.
2061 (vms_rawtime_to_time_t): Ditto.
2062 * vms.h: All macros for the VMS file format are now in include/vms.
2063 Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
2064 have been removed.
2065 (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
2066 (struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
2067 (struct funcinfo, struct vms_private_data_struct): Ditto.
2068 (struct vms_section_data_struct): Ditto.
2069 (struct vms_rec_rd, stryct vms_rec_wr): New declarations.
2070 (vms_get_module_name, get_vms_time_string): New declarations.
2071 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
2072 (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
2073 (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
2074 (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
2075 (_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
2076 (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
2077 (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
2078 (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
2079 (_bfd_vms_output_fill): Ditto.
2080 (bfd_vms_set_section_flags): Ditto.
2081
2082 2010-04-14 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2083
2084 * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
2085 exit due to merging the same weak symbol to test that the symbols are
2086 actually weak.
2087
2088 2010-04-13 Alan Modra <amodra@gmail.com>
2089
2090 * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
2091 when optimizing high got_tlsgd/ld insns.
2092
2093 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
2094
2095 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
2096 define.
2097 (HAVE_PRSTATUS32_T): Likewise.
2098
2099 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
2100
2101 PR corefiles/11467
2102 * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
2103 for x86_64-*-linux*.
2104 * config.in: Regenerated.
2105 * configure: Likewise.
2106
2107 * elf.c: Include CORE_HEADER if it is defined.
2108
2109 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
2110 Jan Kratochvil <jan.kratochvil@redhat.com>
2111
2112 * hosts/x86-64linux.h: New.
2113
2114 2010-04-09 Nick Clifton <nickc@redhat.com>
2115
2116 * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
2117 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
2118 variables htab and hdr_info and mark info parameter as unused.
2119 * elf.c (prep_headers): Remove unused variable i_phdrp.
2120 (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
2121 * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
2122 as unused.
2123 * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
2124 * verilog.c (verilog_write_section): Remove unused variable
2125 address.
2126
2127 2010-04-07 Alan Modra <amodra@gmail.com>
2128
2129 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
2130 * configure: Regenerate.
2131
2132 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
2133
2134 PR ld/11434
2135 * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
2136
2137 2010-04-06 Tristan Gingold <gingold@adacore.com>
2138
2139 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
2140
2141 2010-04-05 Jakub Jelinek <jakub@redhat.com>
2142
2143 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
2144 provided that it has the expected address size and zero segment
2145 length.
2146
2147 * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
2148 (struct line_info): Add op_index field, change end_sequence type to
2149 unsigned char.
2150 (new_line_sorts_after): For the same address compare op_index.
2151 (add_line_info): Add op_index argument, store it into the structure.
2152 (decode_line_info): Complain about unknown versions of .debug_line.
2153 Initialize maximum_ops_per_insn. Add op_index state register and
2154 track it.
2155
2156 2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
2157
2158 * elf32-ppc.c (apuinfo_set): New static var.
2159 (ppc_elf_begin_write_processing): Set it here, always create an
2160 APUinfo section if there were any in the inputs.
2161 (ppc_elf_write_section): Check apuinfo_set.
2162 (ppc_elf_final_write_processing): Likewise.
2163
2164 2010-04-01 Tristan Gingold <gingold@adacore.com>
2165
2166 * vms.h: Include time.h. Add prototypes for vms_get_module_name,
2167 vms_time_to_time_t and vms_rawtime_to_time_t.
2168 * vms.c (vms_alpha_vec): Add archives support.
2169 * vms-misc.c: Include safe-ctype.h
2170 (vms_get_module_name): New function.
2171 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
2172 * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
2173 vms_get_module_name function. Use this function.
2174 * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
2175 * libbfd-in.h: Add prototype for _bfd_append_relative_path.
2176 Add prototypes for vms-lib.c
2177 * libbfd.h: Regenerate.
2178 * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
2179 vms-lib.lo to vms_alpha_vec.
2180 * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
2181 * configure: Regenerate.
2182 * bfd.c: Add selective_search field.
2183 * bfd-in2.h: Regenerate.
2184 * archive.c (append_relative_path): Rename to
2185 _bfd_append_relative_path and make it public.
2186 (_bfd_get_elt_at_filepos): Adjust for above renaming.
2187 * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
2188 (BFD32_BACKENDS_CFILES): Add vms-lib.c
2189 * Makefile.in: Regenerate.
2190
2191 2010-04-01 Jakub Jelinek <jakub@redhat.com>
2192
2193 * dwarf2.c (read_attribute_value): Handle CU version 4
2194 for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
2195 and DW_FORM_flag_present. For unknown form value return NULL.
2196 (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
2197 like DW_FORM_block.
2198 (parse_comp_unit): Allow CU version 4.
2199
2200 2010-04-01 Hans-Peter Nilsson <hp@axis.com>
2201
2202 * elf32-cris.c (cris_elf_relocate_section): Correct first argument
2203 to _bfd_elf_get_dynamic_reloc_section.
2204 (elf_cris_discard_excess_dso_dynamics): Ditto.
2205
2206 2010-03-31 Kai Tietz <kai.tietz@onevision.com>
2207
2208 * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
2209 * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
2210
2211 2010-03-31 Alan Modra <amodra@gmail.com>
2212
2213 * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
2214 TPREL16_HI and TPREL16_HA insns.
2215
2216 2010-03-31 Hans-Peter Nilsson <hp@axis.com>
2217
2218 PR ld/11458
2219 * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
2220 assert of empty pcrel_relocs_copied on the direct symbol. Instead
2221 of moving the list from the indirect symbol to the direct symbol,
2222 merge into any existing list.
2223 (cris_elf_check_relocs): Store the original section in the
2224 pcrel_relocs_copied list, not the relocation section.
2225 (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
2226 the relocation section, for reducing its size. Change the
2227 BFD_ASSERT into a check for the section being read-only, and only
2228 emit warnings and TEXTREL marker when there's an entry for a
2229 read-only section.
2230
2231 2010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2232
2233 * elf32-arm.c (using_thumb_only): Handle v6-M.
2234
2235 2010-03-26 Alan Modra <amodra@gmail.com>
2236
2237 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
2238 * bfd-in.h (elf_discarded_section): Clarify comment.
2239 * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
2240 * bfd-in2.h: Regenerate.
2241
2242 2010-03-26 Matt Rice <ratmice@gmail.com>
2243
2244 * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
2245 as unique in the armap.
2246
2247 2010-03-26 Alan Modra <amodra@gmail.com>
2248
2249 PR ld/11375
2250 * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
2251 possible stub on branches.
2252
2253 2010-03-25 Joseph Myers <joseph@codesourcery.com>
2254
2255 * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
2256 (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
2257 (BFD32_BACKENDS): Add elf32-tic6x.lo.
2258 (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
2259 * Makefile.in: Regenerate.
2260 * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
2261 (bfd_archures_list): Update.
2262 * config.bfd (tic6x-*-elf): New.
2263 * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
2264 New.
2265 * configure: Regenerate.
2266 * cpu-tic6x.c, elf32-tic6x.c: New.
2267 * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
2268 BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
2269 BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
2270 BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
2271 BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
2272 BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
2273 BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
2274 BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
2275 BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
2276 BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
2277 BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
2278 BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
2279 BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
2280 * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
2281 (_bfd_target_vector): Update.
2282 * bfd-in2.h, libbfd.h: Regenerate.
2283
2284 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
2285
2286 * aout-target.h: Update copyright year.
2287 * aout-tic30.c: Likewise.
2288 * coff-alpha.c: Likewise.
2289 * coff-rs6000.c: Likewise.
2290 * coff64-rs6000.c: Likewise.
2291 * elf64-mips.c: Likewise.
2292 * ieee.c: Likewise.
2293 * libecoff.h: Likewise.
2294 * mach-o-target.c: Likewise.
2295 * mach-o.c: Likewise.
2296 * oasys.c: Likewise.
2297 * targets.c: Likewise.
2298
2299 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
2300
2301 * libbfd-in.h: Update copyright year.
2302
2303 2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
2304
2305 PR ld/11413
2306 * elflink.c (_bfd_elf_add_default_symbol): Check !executable
2307 instead of shared.
2308
2309 2010-03-19 Jie Zhang <jie@codesourcery.com>
2310
2311 * elf32-arm.c (struct section_list): Remove.
2312 (section_list): Remove typedef.
2313 (record_section_with_arm_elf_section_data): Remove.
2314 (find_arm_elf_section_entry): Remove.
2315 (get_arm_elf_section_data): Use is_arm_elf.
2316 (unrecord_section_with_arm_elf_section_data): Remove.
2317 (elf32_arm_new_section_hook): Don't call
2318 record_section_with_arm_elf_section_data.
2319 (elf32_arm_write_section): Set mapcount to -1 when
2320 the map has been used. Don't call
2321 unrecord_section_with_arm_elf_section_data.
2322 (unrecord_section_via_map_over_sections): Remove.
2323 (elf32_arm_close_and_cleanup): Remove.
2324 (elf32_arm_bfd_free_cached_info): Remove.
2325 (bfd_elf32_close_and_cleanup): Don't define.
2326 (bfd_elf32_bfd_free_cached_info): Don't define.
2327
2328 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
2329
2330 PR binutils/11396
2331 * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
2332 * libcoff.h: Regenerated.
2333
2334 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
2335 if dont_strip_reloc is set.
2336 (_bfd_XX_bfd_copy_private_bfd_data_common): Set
2337 dont_strip_reloc on output if there is no .reloc and
2338 IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
2339
2340 2010-03-18 Wei Guozhi <carrot@google.com>
2341
2342 PR gas/11323
2343 * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
2344 R_ARM_GOT_PREL.
2345 * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
2346 * bfd-in2.h: Regenerate.
2347 * libbfd.h: Regenerate.
2348
2349 2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
2350
2351 * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
2352 (BFD_RELOC_SPU_STUB): Likewise.
2353
2354 2010-03-17 Jie Zhang <jie@codesourcery.com>
2355
2356 * elf.c (assign_file_positions_for_load_sections): Avoid
2357 overflow.
2358
2359 2010-03-17 Alan Modra <amodra@gmail.com>
2360
2361 PR binutils/11382
2362 * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
2363 proper type.
2364
2365 2010-03-17 Alan Modra <amodra@gmail.com>
2366
2367 * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
2368
2369 2010-03-16 Alan Modra <amodra@gmail.com>
2370
2371 * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
2372 (ppc64_elf_edit_toc): Set it here.
2373 (ha_reloc_match): New function.
2374 (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
2375
2376 2010-03-15 Alan Modra <amodra@gmail.com>
2377
2378 * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
2379 * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
2380
2381 2010-03-14 Alan Modra <amodra@gmail.com>
2382
2383 PR ld/11378
2384 * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
2385 * elf64-ppc.c (call_check_done): Define.
2386 (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
2387 (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
2388 (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
2389 (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
2390 Simplify return logic. Iterate over all .init and .fini fragments
2391 by recursion. Set makes_toc_func_call here..
2392 (ppc64_elf_next_input_section): ..rather than here.
2393 (check_pasted_section, ppc64_elf_check_init_fini): New functions.
2394
2395 2010-03-13 Alan Modra <amodra@gmail.com>
2396
2397 PR ld/11375
2398 * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
2399 function descriptor symbol if there is one, not just for plt stubs.
2400 (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
2401
2402 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2403
2404 * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
2405 version twice.
2406 Skip it when constructing def.vd_next.
2407
2408 * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
2409 bfd_elf32_i386_sol2_vec.
2410 (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
2411 (elf32_bed): Redefine to elf32_i386_sol2_bed.
2412 (elf_backend_want_plt_sym): Redefine to 1.
2413
2414 * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
2415 bfd_elf64_x86_64_sol2_vec.
2416 (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
2417 (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
2418 (elf_backend_want_plt_sym): Redefine to 1.
2419
2420 * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
2421 bfd_elf32_i386_sol2_vec.
2422 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
2423 targ64_selvecs.
2424 (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
2425 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
2426 targ_selvecs.
2427
2428 * configure.in: Handle bfd_elf32_i386_sol2_vec,
2429 bfd_elf64_x86_64_sol2_vec.
2430 * configure: Regenerate.
2431
2432 * targets.c (bfd_elf32_i386_sol2_vec): Declare.
2433 (bfd_elf64_x86_64_sol2_vec): Declare.
2434 (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
2435 bfd_elf64_x86_64_sol2_vec.
2436
2437 2010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
2438
2439 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
2440 sections.
2441
2442 2010-03-04 Alan Modra <amodra@gmail.com>
2443
2444 PR 11302
2445 * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
2446 (read_attribute_value, decode_line_info): Likewise.
2447 (add_line_info, read_rangelist): Return FALSE on alloc failures.
2448 (arange_add, sort_line_sequences): Likewise.
2449 (find_abstract_instance_name): Handle failures from called funcs.
2450 (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
2451 (find_line): Realloc to a temp, and handle alloc fail.
2452
2453 2010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2454
2455 * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
2456 a mapping symbol to an empty section.
2457
2458 2010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2459
2460 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
2461 return value from the call to _bfd_elf_merge_object_attributes.
2462
2463 2010-03-02 Christophe Lyon <christophe.lyon@st.com>
2464 Alan Modra <amodra@gmail.com>
2465
2466 * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
2467 destination mode of the a8 stub.
2468 (elf32_arm_link_hash_table): Add top_id field.
2469 (elf32_arm_link_hash_table_create): Initialize top_id.
2470 (arm_type_of_stub): Update prototype, st_type can now be updated
2471 by this function. Actual destination address in case of PLT is
2472 computed here, to help factorizing code.
2473 (elf32_arm_stub_name): Update prototype, use stub_type additional
2474 parameter to build stub name.
2475 (elf32_arm_get_stub_entry): Update prototype, use stub_type
2476 additional parameter to build stub entry.
2477 (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
2478 put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
2479 Call elf32_arm_final_link_relocate to process all in-stub
2480 relocations.
2481 (elf32_arm_setup_section_lists): Update top_id.
2482 (cortex_a8_erratum_scan): Record stub destination mode.
2483 (elf32_arm_size_stubs): Update call to arm_type_of_stub according
2484 to new prototype.
2485 (elf32_arm_final_link_relocate): Enable processing of in-stub
2486 REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
2487 needed, enabling code factorization.
2488 (elf32_arm_final_link): Process stub sections.
2489 (elf32_arm_output_map_sym): Add entry to code/data map.
2490
2491 2010-03-01 David S. Miller <davem@davemloft.net>
2492
2493 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
2494 h->def_regular, set h->ref_regular.
2495 (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
2496 and dynamic relocations if h->ref_regular.
2497
2498 * elfxx-sparc.c (struct elf_reloc_map): Delete.
2499 (sparc_reloc_map): Delete.
2500 (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
2501 relocation type in switch statements.
2502
2503 2010-02-25 Alan Modra <amodra@gmail.com>
2504
2505 PR ld/11304
2506 * elf.c (_bfd_elf_init_private_section_data): Rename need_group
2507 to final_link and invert. For final link allow some flags to
2508 differ. Don't specially allow flags to be all zero.
2509
2510 2010-02-24 Alan Modra <amodra@gmail.com>
2511
2512 PR binutils/10858
2513 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
2514 SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
2515 table.
2516
2517 2010-02-23 Andrew Zabolotny <anpaza@mail.ru>
2518
2519 PR binutils/11297
2520 * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
2521 (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
2522
2523 2010-02-22 Alan Modra <amodra@gmail.com>
2524
2525 * reloc.c (bfd_check_overflow): When forming addrmask, shift
2526 fieldmask left by rightshift.
2527 (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
2528 overflow checks.
2529
2530 2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
2531
2532 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
2533 STT_GNU_IFUNC on large common symbol.
2534
2535 2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
2536
2537 * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
2538 has_ifunc_symbols if the symbol comes from a shared library.
2539 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
2540 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
2541 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
2542 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
2543 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
2544
2545 2010-02-19 Alan Modra <amodra@gmail.com>
2546
2547 * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
2548 (_bfd_elf_copy_private_header_data): ..here.
2549 * elflink.c (_bfd_elf_size_group_sections): New function.
2550 (bfd_elf_size_dynamic_sections): Call it.
2551 * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
2552 (_bfd_elf_fixup_group_sections): Declare.
2553
2554 2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2555
2556 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
2557 merging Tag_DIV_use, Tag_MPextension_use, and
2558 Tag_MPextension_use_legacy tags.
2559
2560 2010-02-18 Alan Modra <amodra@gmail.com>
2561
2562 * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
2563 commit. Don't write zeros for removed group members.
2564 (_bfd_elf_copy_private_header_data): Adjust size of group section
2565 when group members are removed by objcopy.
2566
2567 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
2568
2569 PR binutils/11280
2570 * configure.host (*-*-solaris2.11): Add host define to select
2571 valid default code page for windres/windmc on solaris.
2572
2573 2010-02-15 Nick Clifton <nickc@redhat.com>
2574
2575 * po/vi.po: Updated Vietnamese translation.
2576
2577 2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
2578
2579 * elf32-arm.c (elf32_arm_output_arch_local_syms): add
2580 missing mapping symbol to data only sections.
2581
2582 2010-02-11 David S. Miller <davem@davemloft.net>
2583
2584 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
2585 and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
2586 symbols.
2587 (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
2588 these relocs on global symbols.
2589 (gdopoff): New.
2590 (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
2591 local symbol references which are not STT_GNU_IFUNC. Handle
2592 relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
2593 and deal with negative vs. non-negative values properly.
2594
2595 2010-02-09 Tristan Gingold <gingold@adacore.com>
2596
2597 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
2598 non-external relocation.
2599
2600 2010-02-09 Alan Modra <amodra@gmail.com>
2601
2602 * elf64-ppc.c (merge_got_entries): Move earlier in file.
2603 (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
2604 (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
2605 (ppc64_elf_layout_multitoc): Don't resize if we have already
2606 merged got entries.
2607
2608 2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
2609
2610 * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
2611 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
2612 elfcore_write_s390_prefix): New.
2613 * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
2614 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
2615 elfcore_write_s390_prefix): New.
2616 (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
2617 NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
2618 (elfcore_write_register_note): Handle .reg-s390-timer,
2619 .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
2620 .reg-s390-prefix section.
2621
2622 2010-02-09 Alan Modra <amodra@gmail.com>
2623
2624 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
2625 unsigned char. Update variables and code using them throughout file.
2626 (struct ppc_link_hash_entry): Likewise for tls_mask.
2627
2628 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
2629
2630 * elf64-ppc.c (has_small_toc_reloc): Don't define.
2631 (makes_toc_func_call, call_check_in_progress): Shuffle flags.
2632 (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
2633 code setting the flag.
2634 (ppc64_elf_next_toc_section): Group big-toc sections in
2635 0x80008000 chunks.
2636
2637 2010-02-08 David S. Miller <davem@davemloft.net>
2638
2639 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
2640 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
2641
2642 * elfxx-sparc.c (create_got_section): Delete.
2643 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
2644 section creator does that work for us. Use ->elf.foo instead of
2645 ->foo where applicable.
2646 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
2647 where applicable.
2648 (allocate_dynrelocs): Likewise.
2649 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
2650 (_bfd_sparc_elf_relocate_section): Likewise.
2651 (sparc_vxworks_build_plt_entry): Likewise.
2652 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
2653 (sparc_finish_dyn): Likewise.
2654 (sparc_vxworks_finish_exec_plt): Likewise.
2655 (sparc_vxworks_finish_shared_plt): Likewise.
2656 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
2657
2658 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
2659 macros for visibilty and locality checks.
2660 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
2661 (allocate_dynrelocs): Likewise.
2662 (_bfd_sparc_elf_relocate_section): Likewise.
2663 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
2664
2665 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
2666 but never used local var 'dynobj'.
2667
2668 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
2669 nocopyreloc.
2670
2671 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
2672 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
2673 * bfd-in2.h: Regenerate.
2674 * libbfd.h: Regenerate.
2675
2676 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
2677 and loc_hash_memory.
2678 (_bfd_sparc_elf_link_hash_table_free): Declare.
2679 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
2680 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
2681 bfd_elf32_bfd_link_hash_table_free): Define.
2682 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
2683 has_ifunc_symbols if STT_GNU_IFUNC.
2684 (bfd_elf64_bfd_link_hash_table_free): Define.
2685 (elf_backend_post_process_headers): Define always.
2686 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
2687 (sparc_reloc_map): Add entries for new IFUNC relocs.
2688 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
2689 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
2690 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
2691 elf_sparc_get_local_sym_hash): New.
2692 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
2693 from here...
2694 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
2695 local hash table.
2696 (_bfd_sparc_elf_link_hash_table_free): New.
2697 (create_ifunc_sections): New.
2698 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
2699 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
2700 cons up a fake local hash table entry for it. Unconditionally add
2701 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
2702 dyn relocs for ifunc.
2703 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
2704 (allocate_dynrelocs): Unconditionally emit a PLT entry when
2705 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
2706 (allocate_local_dynrelocs): New function.
2707 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
2708 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
2709 like splt.
2710 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
2711 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
2712 plt in iplt/irelplt.
2713
2714 2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
2715
2716 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
2717 max_contents_size, only consider sections whose contents must
2718 be swapped in.
2719
2720 2010-02-09 Alan Modra <amodra@gmail.com>
2721
2722 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
2723 (ppc64_elf_size_dynamic_sections): ..and here..
2724 (merge_got_entries): ..rather than here.
2725
2726 2010-02-09 Alan Modra <amodra@gmail.com>
2727
2728 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
2729 (has_small_toc_reloc): Define.
2730 (ppc64_elf_check_relocs): Set the above flags.
2731 (ppc64_elf_edit_opd): Delete obfd param.
2732 (ppc64_elf_tls_optimize): Likewise.
2733 (ppc64_elf_edit_toc): Likewise.
2734 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
2735 * elf64-ppc.h: Update prototypes.
2736
2737 2010-02-08 Alan Modra <amodra@gmail.com>
2738
2739 * section.c (struct bfd_section): Delete has_tls_reloc,
2740 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
2741 Add sec_flg0 thru sec_flg5.
2742 (BFD_FAKE_SECTION): Update for changed flags.
2743 * ecoff.c (bfd_debug_section): Likewise.
2744 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
2745 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
2746 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
2747 * elf32-xtensa.c (reloc_done): Define.
2748 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
2749 * bfd-in2.h: Regenerate.
2750
2751 2010-02-08 Tristan Gingold <gingold@adacore.com>
2752
2753 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
2754 for non-scattered relocations.
2755
2756 2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
2757
2758 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
2759 apuinfo sections, only scan input sections once and reuse the
2760 buffer.
2761
2762 2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2763
2764 * archures.c (bfd_mach_ppc_titan): Define.
2765 * bfd-in2.h: Regenerate.
2766 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
2767
2768 2010-02-08 Alan Modra <amodra@gmail.com>
2769
2770 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
2771
2772 2010-02-05 Sterling Augustine <sterling@tensilica.com>
2773
2774 * elf.c (assign_file_positions_for_load_sections) Update lma of
2775 section if necessary. Fixes Bugzilla 11219.
2776
2777 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
2778
2779 * elf32-i386.c: Remove trailing white spaces.
2780 * elf64-x86-64.c: Likewise.
2781
2782 2010-02-03 Nick Clifton <nickc@redhat.com>
2783
2784 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
2785 entries for other architectures.
2786 (struct elf_link_hash_table): Add hash_table_id field.
2787 (elf_hash_table_id): New accessor macro.
2788 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
2789 parameter.
2790 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
2791 returning cast pointer.
2792 (elf32_mn10300_link_hash_table_create): Identify new table as
2793 containing MN10300 extensions.
2794 (mn10300_elf_relax_section): Check pointer returned by
2795 elf32_mn10300_hash_table.
2796 * elf32-arm.c: Likewise, except using ARM extensions.
2797 * elf32-avr.c: Likewise, except using AVR extensions.
2798 * elf32-bfin.c: Likewise, except using BFIN extensions.
2799 * elf32-cris.c: Likewise, except using CRIS extensions.
2800 * elf32-frv.c: Likewise, except using FRV extensions.
2801 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
2802 * elf32-i386.c: Likewise, except using I386 extensions.
2803 * elf32-lm32.c: Likewise, except using LM32 extensions.
2804 * elf32-m32r.c: Likewise, except using M32RM extensions.
2805 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
2806 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
2807 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
2808 * elf32-m68k.c: Likewise, except using M68K extensions.
2809 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
2810 * elf32-ppc.c: Likewise, except using PPC32 extensions.
2811 * elf32-s390.c: Likewise, except using S390 extensions.
2812 * elf32-sh.c: Likewise, except using SH extensions.
2813 * elf32-spu.c: Likewise, except using SPU extensions.
2814 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
2815 * elf64-alpha.c: Likewise, except using ALPHA extensions.
2816 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
2817 * elf64-ppc.c: Likewise, except using PPC64 extensions.
2818 * elf64-s390.c: Likewise, except using S390 extensions.
2819 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
2820 * elfxx-ia64.c: Likewise, except using IA64 extensions.
2821 * elfxx-mips.c: Likewise, except using MIPS extensions.
2822 * elfxx-sparc.c: Likewise, except using SPARC extensions.
2823 * elfxx-sparc.h: Likewise, except using SPARC extensions.
2824 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
2825 redundant structure.
2826 (elf32_cr16_hash_table): Delete unused macro.
2827 (elf32_cr16_link_hash_traverse): Delete unused macro.
2828 * elf32-score.c: Likewise.
2829 * elf32-score7.c: Likewise.
2830 * elf32-vax.c: Likewise.
2831 * elf64-sh64.c: Likewise.
2832
2833 2010-02-03 Alan Modra <amodra@gmail.com>
2834
2835 * elf64-ppc.c (struct plt_entry): Move earlier in file.
2836 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
2837 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
2838 Update all uses.
2839 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
2840 Remove no_multi_toc.
2841 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
2842 when allocating a new struct got_entry.
2843 (allocate_got): New function, extracted from..
2844 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
2845 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
2846 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
2847 (ppc64_elf_setup_section_lists): Remove output_bfd param and
2848 no_multi_toc, add add_stub_section and layout_sections_again. Stash
2849 new params in htab. Extract some code to..
2850 (ppc64_elf_start_multitoc_partition): ..here. New function.
2851 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
2852 second pass toc scan.
2853 (merge_got_entries, merge_global_got, reallocate_got): New functions.
2854 (ppc64_elf_reinit_toc): Rename to..
2855 (ppc64_elf_finish_multitoc_partition): ..this.
2856 (ppc64_elf_layout_multitoc): New function.
2857 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
2858 layout_sections_again params.
2859 (ppc64_elf_relocate_section): Handle indirect got entries.
2860 * elf64-ppc.h: Update prototypes. Declare new functions.
2861
2862 2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
2863
2864 * elf-bfd.h (elfcore_write_xstatereg): New.
2865
2866 * elf.c (elfcore_grok_xstatereg): New.
2867 (elfcore_write_xstatereg): Likewise.
2868 (elfcore_grok_note): Handle NT_X86_XSTATE.
2869 (elfcore_write_register_note): Handle .reg-xstate section.
2870
2871 2010-02-01 Tristan Gingold <gingold@adacore.com>
2872
2873 * som.c (som_write_ar_hdr): Define this macro.
2874
2875 2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2876
2877 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
2878 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
2879 linkage table pointer to use the global table pointer if not doing
2880 a shared link.
2881
2882 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2883
2884 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
2885 if it has already been set.
2886
2887 2010-01-27 Tristan Gingold <gingold@adacore.com>
2888
2889 * vms.h: Remove trailing spaces.
2890 (struct hdr_struct): Remove unused hdr_c_cpr field.
2891 (enum file_format_enum): Add comments.
2892 * vms.c (vms_bfd_print_private_bfd_data): New function that
2893 replaces the macro.
2894 Remove trailing spaces.
2895 * vms-misc.c: Improve comments.
2896 (_bfd_vms_get_object_record): Also handle files without pads.
2897 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
2898 * vms-gsd.c (struct flagdescstruct): Make name field const.
2899 (gsyflagdesc): Fix typo.
2900
2901 2010-01-27 Alan Modra <amodra@gmail.com>
2902
2903 PR ld/11217
2904 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
2905 (ppc64_elf_setup_section_lists): Init them.
2906 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
2907 and .toc on the same input file.
2908 (ppc64_elf_relocate_section): Correct GOT entry offset.
2909
2910 2010-01-26 Tristan Gingold <gingold@adacore.com>
2911
2912 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
2913 (bfd_target): Add _bfd_write_ar_hdr_fn field.
2914 * archive.c (is_bsd44_extended_name): New macro.
2915 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
2916 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
2917 name.
2918 (_bfd_archive_bsd44_construct_extended_name_table): New function.
2919 (_bfd_generic_write_ar_hdr): Ditto.
2920 (_bfd_bsd44_write_ar_hdr): Ditto.
2921 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
2922 (bsd_write_armap): Adjust firstreal computation.
2923 * libbfd-in.h (struct areltdata): Add extra_size field.
2924 (_bfd_generic_write_ar_hdr): Add prototype.
2925 (_bfd_bsd44_write_ar_hdr): Ditto.
2926 (_bfd_write_ar_hdr): Define.
2927 (_bfd_noarchive_write_ar_hdr): Ditto.
2928 (_bfd_archive_bsd_write_ar_hdr): Ditto.
2929 (_bfd_archive_coff_write_ar_hdr): Ditto.
2930 (_bfd_archive_bsd44_slurp_armap): Ditto.
2931 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
2932 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
2933 (_bfd_archive_bsd44_truncate_arname): Ditto.
2934 (_bfd_archive_bsd44_write_armap): Ditto.
2935 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
2936 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
2937 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
2938 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
2939 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
2940 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
2941 * libbfd.h: Regenerate.
2942 * oasys.c (oasys_write_ar_hdr): Define.
2943 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
2944 * ieee.c (ieee_write_ar_hdr): Define.
2945 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
2946 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
2947 (bfd_pmac_xcoff_backend_data): Ditto.
2948 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
2949 (bfd_xcoff_aix5_backend_data): Ditto.
2950 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
2951 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
2952 * aout-tic30.c (MY_write_ar_hdr): Ditto.
2953 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
2954 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
2955 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
2956 (bfd_mach_o_construct_extended_name_table)
2957 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
2958 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
2959 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
2960 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
2961 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
2962 (bfd_mach_o_construct_extended_name_table)
2963 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
2964 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
2965 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
2966 * bfd-in2.h: Regenerate.
2967
2968 2010-01-26 Alan Modra <amodra@gmail.com>
2969 H.J. Lu <hongjiu.lu@intel.com>
2970
2971 PR ld/11218
2972 * elflink.c (elf_link_output_extsym): Do not ignore undefined
2973 symbols with ref_regular set when gc_sections is active.
2974
2975 2010-01-25 Alan Modra <amodra@gmail.com>
2976
2977 PR ld/11217
2978 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
2979 with relocations against undefined weak symbols.
2980 (ppc64_elf_relocate_section): Don't optimize calls to undefined
2981 weak functions if the symbol is dynamic.
2982 (ppc64_elf_relocate_section): Edit tprel tls sequences.
2983 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2984 (_bfd_elf_ppc_at_tprel_transform): New function.
2985 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
2986 * bfd-in2.h: Regenerate.
2987
2988 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
2989
2990 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
2991 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
2992 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
2993 bitsize to 1.
2994 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
2995
2996 2010-01-21 Nick Clifton <nickc@redhat.com>
2997
2998 * elflink.c (elf_link_add_object_symbols): Look up name of
2999 undefined symbol both before and after versioning has been
3000 applied. Do not bother with symbols that are weakly undefined.
3001
3002 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3003
3004 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
3005 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
3006
3007 2010-01-19 Cary Coutant <ccoutant@google.com>
3008
3009 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
3010
3011 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
3012 Alan Modra <amodra@gmail.com>
3013
3014 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
3015 (elf_object_p): Read e_phnum extension.
3016 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
3017 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
3018 that we can read last program header.
3019
3020 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3021
3022 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
3023 R_ARM_THM_CALL entry.
3024 (elf32_arm_final_link_relocate): Correct calculation of
3025 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
3026 or R_ARM_THM_JUMP24 relocation.
3027
3028 2010-01-18 Alan Modra <amodra@gmail.com>
3029
3030 PR 11168
3031 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
3032 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
3033 than 32k sections.
3034
3035 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3036
3037 Fix compilation warning on gcc-3.4.
3038 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
3039 parameter index to sec_index according to the function definition.
3040
3041 2010-01-13 Chao-ying Fu <fu@mips.com>
3042
3043 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
3044 It is true for all CPUs.
3045 (jal_reloc_p): New function.
3046 (mips_elf_calculate_relocation): Rename require_jalxp to
3047 cross_mode_jump_p.
3048 Update comment for CROSS_MODE_JUMP_P.
3049 Set up cross_mode_jump_p based on the mode change.
3050 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
3051 Update comment for CROSS_MODE_JUMP_P.
3052 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
3053 Use !cross_mode_jump_p to guard conversion.
3054 Convert "jr t9" to "b", if possible.
3055 (_bfd_mips_elf_relocate_section): Rename require_jalx to
3056 cross_mode_jump_p.
3057 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
3058 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
3059
3060 2010-01-13 Nick Clifton <nickc@redhat.com>
3061
3062 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
3063 "m32c" returns the m32c arch_info_struct and not the m16c
3064 arch_info_struct.
3065 (arch_info_struct): Use the new scan function.
3066 (bfd_m32c_arch): Likewise.
3067
3068 2010-01-13 Tristan Gingold <gingold@adacore.com>
3069
3070 * config.bfd: Remove duplicated target vector for i386-*-darwin.
3071 Appends new arch instead of overriding.
3072 Use mach_o_x86_64_vec for x86_64-*-darwin.
3073 * configure.in: Add mach_o_x86_64_vec.
3074 * configure: Regenerate.
3075 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
3076 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
3077 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
3078 * Makefile.in: Regenerate.
3079 * mach-o-x86-64.c: New file.
3080
3081 2010-01-13 Tristan Gingold <gingold@adacore.com>
3082
3083 * reloc.c: Add MACH_O_X86_64 relocations.
3084 * bfd-in2.h: Regenerate.
3085 * libbfd.h: Regenerate.
3086
3087 2010-01-13 Tristan Gingold <gingold@adacore.com>
3088
3089 * archive.c (normalize): Use lbasename.
3090 (bfd_bsd_truncate_arname): Ditto.
3091 (bfd_gnu_truncate_arname): Ditto.
3092
3093 2010-01-12 Tristan Gingold <gingold@adacore.com>
3094
3095 * makefile.vms (CFLAGS): Turns warnings into informational messages.
3096
3097 2010-01-11 Tristan Gingold <gingold@adacore.com>
3098
3099 * mach-o.h: Add x86-64 relocation types.
3100
3101 2010-01-11 Tristan Gingold <gingold@adacore.com>
3102
3103 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
3104 (bfd_mach_o_set_arch_mach): New prototype.
3105 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
3106 (bfd_mach_o_set_arch_mach): New function.
3107 (bfd_mach_o_gen_mkobject): New function.
3108 Set TARGET_ARCHITECTURE for the generic back-ends.
3109 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
3110 Check that TARGET_ARCHITECTURE is defined.
3111 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
3112 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
3113
3114 2010-01-11 Tristan Gingold <gingold@adacore.com>
3115
3116 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
3117
3118 2010-01-11 Nick Clifton <nickc@redhat.com>
3119
3120 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
3121 handling of R_V850_HI16_S relocation.
3122
3123 2010-01-11 Alan Modra <amodra@gmail.com>
3124
3125 PR 11103
3126 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
3127
3128 2010-01-11 Alan Modra <amodra@gmail.com>
3129
3130 PR 6832
3131 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
3132 (find_abstract_instance_name): Use it.
3133 (parse_comp_unit): Set it.
3134
3135 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3136
3137 * Makefile.in: Regenerate.
3138 * configure: Regenerate.
3139
3140 2010-01-08 Tristan Gingold <gingold@adacore.com>
3141
3142 * archive.c: Remove bfd_special_undocumented_glue.
3143
3144 2010-01-08 Alan Modra <amodra@gmail.com>
3145
3146 PR ld/11133
3147 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
3148 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
3149 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
3150
3151 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
3152
3153 PR ld/11138
3154 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
3155 a symbol referenced by DSO is is defined in a non-shared object
3156 and forced local.
3157
3158 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
3159
3160 PR ld/11133
3161 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
3162 undefined __start_XXX/__stop_XXX in all input files and set
3163 SEC_KEEP.
3164
3165 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
3166
3167 PR ld/11143
3168 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
3169
3170 2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
3171
3172 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
3173 before including procfs.h.
3174 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
3175 * configure.in: Added autoconf probe for the pr_fpreg member.
3176 * configure: Regenerated.
3177 * config.in: Regenerated.
3178 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
3179
3180 2010-01-04 Joel Brobecker <brobecker@adacore.com>
3181
3182 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
3183 * dwarf2.c (concat_filename): Rename dirname with dir_name
3184 to void shadowing the dirname function.
3185 Rename subdirname with subdir_name to stay consistent with
3186 the new dir_name variable name.
3187
3188 2010-01-04 Edmar Wienskoski <edmar@freescale.com>
3189
3190 * archures.c: Add bfd_mach_ppc_e500mc64.
3191 * bfd-in2.h: Regenerate.
3192 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
3193 bfd_mach_ppc_e500mc64.
3194
3195 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3196
3197 Fix -Wshadow warnings (seen on ppc-aix)
3198 * xcofflink.c: Replace finfo by flinfo throughout.
3199
3200 For older changes see ChangeLog-2009
3201 \f
3202 Local Variables:
3203 mode: change-log
3204 left-margin: 8
3205 fill-column: 74
3206 version-control: never
3207 End: