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