gdb/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
3e0882af
L
12011-10-08 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/13250
4 * elflink.c (elf_link_add_object_symbols): Preserve the maximum
5 alignment and size for common symbols.
6
d56d55e7
AM
72011-10-08 Alan Modra <amodra@gmail.com>
8
c3df8c14
AM
9 PR ld/13229
10 PR ld/13244
11 * elflink.c (elf_link_add_object_symbols): Don't make IR symbols
12 dynamic.
13
142011-10-08 Alan Modra <amodra@gmail.com>
15
16 PR ld/13229
d56d55e7
AM
17 * elflink.c (elf_link_output_extsym): Strip defined plugin symbols
18 even when strip_discarded is false.
19
07c7ed6d
KT
202011-10-05 Kai Tietz <ktietz@redhat.com>
21
22 * coffgen.c (coff_write_alien_symbol): Don't write
23 symbol for discarded sections, if strip_discarded isn't
24 explicit set to false.
25 (coff_write_native_symbol): Likewise.
26
d4cb0ea0
NC
272011-10-05 DJ Delorie <dj@redhat.com>
28 Nick Clifton <nickc@redhat.com>
29
30 * elf32-rx.c: Add support for PID mode.
31 (rx_elf_relocate_section): Add checks for unsafe PID relocations.
32 Include addend in R_RX_SYM relocations.
33
fc28f9aa
TG
342011-09-30 Tristan Gingold <gingold@adacore.com>
35
36 * dwarf2.c (struct dwarf2_debug): Add field debug_sections.
37 (read_section): Add sec argument. Adjust the code to get section
38 names from it.
39 (read_indirect_string): Adjust call to read_section.
40 (read_abbrevs): Ditto.
41 (decode_line_info): Ditto.
42 (read_debug_ranges): Ditto.
43 (DWARF2_DEBUG_INFO, DWARF2_COMPRESSED_DEBUG_INFO): Remove.
44 (find_debug_info): Add debug_sections parameter. Use it instead
45 the above macros.
46 (place_sections): Get section names from stash.
47 (find_line): Add debug_sections argument. Initialize
48 debug_sections field of stash from it.
49 Adjust calls to find_debug_info.
50 (_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
51 Adjust call to find_line.
52 (_bfd_dwarf2_find_line): Adjust call to find_line.
53 * libcoff-in.h (struct dwarf_debug_section): New declaration.
54 (coff_find_nearest_line_with_names): Likewise.
55 * libcoff.h: Regenerate.
56 * libbfd-in.h (struct dwarf_debug_section): Move declaration.
57 (dwarf_debug_sections): Likewise.
58 (_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
59 * libbfd.h: Regenerate.
60 * elf.c (_bfd_elf_find_nearest_line): Adjust call to
61 _bfd_dwarf2_find_nearest_line.
62 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Ditto.
63 * elf64-alpha.c (elf64_alpha_find_nearest_line): Ditto.
64 * elf32-arm.c (elf32_arm_find_nearest_line): Ditto.
65 * coffgen.c (coff_find_nearest_line_with_names): New function.
66 (coff_find_nearest_line): Calls coff_find_nearest_line_with_names.
67 * coff-rs6000.c (xcoff_debug_sections): New constant.
68 (xcoff_find_nearest_line): New function.
69 (rs6000coff_vec): Use xcoff_find_nearest_line.
70 (pmac_xcoff_vec): Ditto.
71
98528052
AM
722011-09-30 Alan Modra <amodra@gmail.com>
73
74 PR ld/13235
75 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add ha_relocs_not_using_r2.
76 (ppc64_elf_edit_toc): Check HA relocs.
77 (ha_reloc_match): Delete function.
78 (ppc64_elf_relocate_section): Remove delayed HA nop optimization.
79 Instead do it and low part optimization based on
80 ha_relocs_not_using_r2.
81
c227efa6
AM
822011-09-29 Alan Modra <amodra@gmail.com>
83
84 PR ld/13233
85 * elflink.c (_bfd_elf_gc_mark_extra_sections): Mark single member
86 debug and special section groups.
87
d14552ab
L
882011-09-29 H.J. Lu <hongjiu.lu@intel.com>
89
90 PR ld/13195
91 * elflink.c (_bfd_elf_merge_symbol): Don't set dynamic_def when
92 clearing def_dynamic.
93 (elf_link_add_object_symbols): Likewise. Set dynamic_def when
94 setting def_dynamic.
95 (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is
96 versioned.
97
2b914c2b
KT
982011-09-27 Kai Tietz <ktietz@redhat.com>
99
100 * coffcode.h (sec_to_styp_flags): Handle
101 SEC_LINK_DUPLICATES_SAME_CONTENTS, and
102 SEC_LINK_DUPLICATES_SAME_SIZE.
103
7cf3bbff
TG
1042011-09-22 Tristan Gingold <gingold@adacore.com>
105
106 * configure.in: Bump version to 2.22.51
107 * configure: Regenerate.
108
9e8c70f9
DM
1092011-09-21 David S. Miller <davem@davemloft.net>
110
111 * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): New.
112 * elfxx-sparc.h: Declare it.
113 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Call it.
114 * elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise.
115
7ba695a9
TG
1162011-09-21 Tristan Gingold <gingold@adacore.com>
117
118 * mach-o.c (bfd_mach_o_convert_section_name_to_bfd): Add comment.
119 Deals with size limited strings.
120 (bfd_mach_o_build_commands): Initialize more fields.
121
1a766c68
L
1222011-09-15 H.J. Lu <hongjiu.lu@intel.com>
123
124 PR ld/13177
125 * elflink.c (elf_gc_sweep_symbol): Also hide symbols without PLT
126 nor GOT references.
127
fd91d419
L
1282011-09-15 H.J. Lu <hongjiu.lu@intel.com>
129
130 PR ld/12975
131 * bfd-in.h (bfd_elf_size_dynamic_sections): Remove pointer
132 to struct bfd_elf_version_tree.
133
134 * elflink.c (elf_info_failed): Remove verdefs.
135 (_bfd_elf_export_symbol): Updated.
136 _bfd_elf_link_assign_sym_version): Likewise.
137 (bfd_elf_size_dynamic_sections): Remove pointer to struct
138 bfd_elf_version_tree. Updated.
139 (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is hidden
140 by linker script.
141
142 * linker.c (bfd_hide_sym_by_version): New.
143
144 * bfd-in2.h: Regenerated.
145
7b5b197e
L
1462011-09-12 H.J. Lu <hongjiu.lu@intel.com>
147
148 PR ld/13178
149 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Use .got.plt
150 if there are no GOT relocations.
151
e7771322
KT
1522011-09-09 Kai Tietz <ktietz@redhat.com>
153
154 * peicode.h (pe_ILF_build_a_bfd): Don't remove leading underscore
155 for targets without symbol_leading_char.
156
103ae312
NC
1572011-09-08 Bernd Jendrissek <bernd.jendrissek@gmail.com>
158
159 * bfdwin.c (bfd_get_file_window): Fix memory leak.
160
28942f62
AM
1612011-09-07 Alan Modra <amodra@gmail.com>
162
163 PR ld/13131
164 * bfd/elf64-ppc.c (adjust_toc_syms): Ensure ppc64_elf_howto_table
165 is initialized.
166
b140b010
AM
1672011-09-06 Alan Modra <amodra@gmail.com>
168
169 PR ld/13131
170 * elf64-ppc.c (adjust_toc_syms): Delete redundant code.
171 (ppc64_elf_edit_toc): Fix style nit. Report some details
172 on linker failure due to reference in debug or non-alloc
173 sections to optimized away toc entry, and don't abort.
174
7d500b83
CL
1752011-09-01 Christophe Lyon <christophe.lyon@st.com>
176
177 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip excluded
178 sections.
179
7cf80422
NC
1802011-08-26 Nick Clifton <nickc@redhat.com>
181
182 * po/es.po: Updated Spanish translation.
183
af75cb9c
AM
1842011-08-19 Alan Modra <amodra@gmail.com>
185
186 * elf64-ppc.c (ppc64_elf_edit_toc): Ignore can_optimize bit if
187 we haven't seen expected -mcmodel=medium/large code relocs.
188
9d4b6009
TG
1892011-08-18 Tristan Gingold <gingold@adacore.com>
190
191 * mach-o.c (bfd_mach_o_read_segment): Initialize list.
192
72b5104c
TG
1932011-08-17 Tristan Gingold <gingold@adacore.com>
194
195 * mach-o.c (bfd_mach_o_write_section_32): Fix typo.
196
c77ec726
AM
1972011-08-17 Alan Modra <amodra@gmail.com>
198
199 PR ld/12762
200 * bfd-in.h (struct bfd_section_already_linked): Forward declare.
201 (_bfd_handle_already_linked): Declare.
202 * coff-alpha.c (_bfd_ecoff_section_already_linked): Define as
203 _bfd_coff_section_already_linked.
204 * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
205 * coffcode.h (coff_section_already_linked): Likewise.
206 * cofflink.c (coff_link_add_symbols): Revert 2011-07-09 changes.
207 * elf-bfd.h: Likewise.
208 * libbfd-in.h: Likewise.
209 * targets.c: Likewise.
210 * linker.c (bfd_section_already_linked): Likewise.
211 (bfd_section_already_linked_table_lookup): Likewise.
212 (bfd_section_already_linked_table_insert): Likewise.
213 (_bfd_generic_section_already_linked): Likewise. Call
214 _bfd_handle_already_linked.
215 (_bfd_handle_already_linked): New function, split out from..
216 * elflink.c (_bfd_elf_section_already_linked): ..here. Revert
217 2011-07-09 changes. Avoid unnecessary strcmp when matching
218 already_linked_list entries. Match plugin linkonce section.
219 (section_signature): Delete.
220 * coffgen.c (_bfd_coff_section_already_linked): New function.
221 * libcoff-in.h (_bfd_coff_section_already_linked): Declare.
222 * libbfd.h: Regenerate.
223 * libcoff.h: Regenerate.
224 * bfd-in2.h: Regenerate.
225
b3874e1a
AM
2262011-08-14 Alan Modra <amodra@gmail.com>
227
228 * elf32-ppc.c (ppc_elf_select_plt_layout): Force bss-plt when
229 shared and call to _mcount will go via plt.
230
8de848d8
AM
2312011-08-14 Alan Modra <amodra@gmail.com>
232
233 * elf64-ppc.c: Prefix all einfo error strings with "%P: ".
234 * elf32-ppc.c: Likewise.
235 (ppc_elf_select_plt_layout): Use einfo rather than info to report
236 forced bss-plt.
237
64d25c44
L
2382011-08-12 H.J. Lu <hongjiu.lu@intel.com>
239
240 PR ld/13082
241 * elf64-x86-64.c (x86_64_elf_howto_table): Add R_X86_64_RELATIVE64.
242 (elf_x86_64_relocate_section): Treat R_X86_64_64 like R_X86_64_32
243 and zero-extend it to 64bit if addend is zero for x32. Generate
244 R_X86_64_RELATIVE64 for x32.
245
2de70689
MGD
2462011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
247
248 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
249 * bfd-in2.h (bfd_elf32_arm_set_target_relocs): Likewise.
250 * elf32-arm.c (elf32_arm_link_hash_table): New field.
251 (elf232_arm_link_hash_table_create): Initialise new field.
252 (check_use_blx): Change test depending on fix_arm1176.
253 (bfd_elf32_arm_set_target_relocs): Set fix_arm1176 from
254 command line options.
255
5a5cbf72
TG
2562011-08-08 Tristan Gingold <gingold@adacore.com>
257
258 * mach-o.c (struct mach_o_segment_name_xlat): Add comments.
259 (segsec_names_xlat): Reorder elements.
260 (bfd_mach_o_read_section_32): Fix typo.
261 (bfd_mach_o_read_section_64): Fix typo.
262
f1bde64c
TG
2632011-08-08 Tristan Gingold <gingold@adacore.com>
264
265 * mach-o.h (BFD_MACH_O_SEGNAME_SIZE): New macro.
266 (BFD_MACH_O_SECTNAME_SIZE): Ditto.
267 (bfd_mach_o_section): Use them. Add next field.
268 (bfd_mach_o_segment_command): Replace sections array by
269 sect_head and sect_tail.
270 (bfd_mach_o_get_mach_o_section): New macro.
271 (bfd_mach_o_lookup_section): Remove.
272 (bfd_mach_o_new_section_hook): New function.
273 * mach-o.c (bfd_mach_o_normalize_section_name): Use strncmp
274 instead of strcmp.
275 (bfd_mach_o_convert_section_name_to_bfd): Replaces section
276 parameter with segname and sectname parameters. Adjust.
277 (bfd_mach_o_append_section_to_segment): New function. Use a
278 linked list for Mach-O sections.
279 (bfd_mach_o_write_segment_32): Adjust.
280 (bfd_mach_o_write_segment_64): Ditto.
281 (bfd_mach_o_build_commands): Fix comment. Adjust.
282 (bfd_mach_o_flatten_sections): Adjust.
283 (bfd_mach_o_print_section_map): Adjust.
284 (bfd_mach_o_set_section_flags_from_bfd): Ditto.
285 (bfd_mach_o_new_section_hook): New function.
286 (bfd_mach_o_init_section_from_mach_o): Ditto.
287 (bfd_mach_o_read_section_32): Remove section parameter.
288 Return a section instead.
289 (bfd_mach_o_read_section_64): Ditto.
290 (bfd_mach_o_read_section): Ditto.
291 (bfd_mach_o_make_bfd_section): Adjust.
292 (bfd_mach_o_read_segment): Adjust for new profile of
293 bfd_mach_o_read_section.
294 (bfd_mach_o_lookup_section): Remove.
295 * mach-o-target.c (bfd_mach_o_new_section_hook): Remove.
296
edbdea0e
TG
2972011-08-08 Tristan Gingold <gingold@adacore.com>
298
299 * mach-o.h (bfd_mach_o_version_min_command): New structure.
300 (bfd_mach_o_load_command): Add version_min.
301 (mach_o_data_struct): Fix comment.
302 * mach-o.c (bfd_mach_o_read_version_min): New function.
303 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_FUNCTION_STARTS,
304 BFD_MACH_O_LC_VERSION_MIN_MACOSX and
305 BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
306 (bfd_mach_o_get_name_or_null): New function.
307 (bfd_mach_o_get_name): Use the above new one.
308 (bfd_mach_o_load_command_name): Add the above new commands.
309 (bfd_mach_o_bfd_print_private_bfd_data): Display numerically
310 unknown commands. Handle BFD_MACH_O_LC_FUNCTION_STARTS,
311 BFD_MACH_O_LC_VERSION_MIN_MACOSX and
312 BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
313
46d1c23b
TG
3142011-08-08 Tristan Gingold <gingold@adacore.com>
315
316 * mach-o.h: Move size macros to external.h
317 Move reloc macros to reloc.h and x86-64.h.
318 * mach-o-i386.c: Includes mach-o/reloc.h
319 * mach-o-x86-64.c: Ditto and includes mach-o/x86-64.h
320 * mach-o.c: Add includes.
321 (bfd_mach_o_write_header): Use structure from external.h to convert.
322 (bfd_mach_o_write_thread): Ditto.
323 (bfd_mach_o_write_relocs): Ditto.
324 (bfd_mach_o_write_section_32): Ditto.
325 (bfd_mach_o_write_section_64): Ditto.
326 (bfd_mach_o_write_segment_32): Ditto.
327 (bfd_mach_o_write_segment_64): Ditto.
328 (bfd_mach_o_write_symtab): Ditto.
329 (bfd_mach_o_write_contents): Ditto.
330 (bfd_mach_o_read_header): Ditto.
331 (bfd_mach_o_read_section_32): Ditto.
332 (bfd_mach_o_read_section_64): Ditto.
333 (bfd_mach_o_read_symtab_symbol): Ditto.
334 (bfd_mach_o_read_dylinker): Ditto.
335 (bfd_mach_o_read_dylib): Ditto.
336 (bfd_mach_o_read_dysymtab): Ditto.
337 (bfd_mach_o_read_symtab): Ditto.
338 (bfd_mach_o_read_linkedit): Ditto.
339 (bfd_mach_o_read_str): Ditto.
340 (bfd_mach_o_read_dyld_info): Ditto.
341 (bfd_mach_o_read_segment): Ditto.
342 (bfd_mach_o_read_command): Ditto.
343 (bfd_mach_o_archive_p): Ditto.
344 (bfd_mach_o_canonicalize_one_reloc): Ditto. Change the BUF parameter.
345 (bfd_mach_o_canonicalize_relocs): Adjust to call the above function.
346 (bfd_mach_o_read_dysymtab_symbol): Rename BUF variable.
347 (bfd_mach_o_read_uuid): Remove useless cast. Use a macro instead
348 of an hard-coded value.
349
fde33808
TG
3502011-08-08 Tristan Gingold <gingold@adacore.com>
351
352 * mach-o-x86-64.c (bfd_mach_o_x86_64_mkobject): Fix cut-and-past typos.
353 (bfd_mach_o_x86_64_swap_reloc_out): Handle BFD_RELOC_32_PCREL,
354 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64 and
355 BFD_RELOC_MACH_O_X86_64_GOT_LOAD. Share common code.
356
53d58d96
TG
3572011-08-08 Tristan Gingold <gingold@adacore.com>
358
359 * mach-o.c (bfd_mach_o_normalize_section_name): New function.
360 (bfd_mach_o_convert_section_name_to_bfd): Use it.
361 (bfd_mach_o_get_section_type_from_name): New function.
362 (bfd_mach_o_get_section_attribute_from_name): Ditto.
363 * mach-o.h (bfd_mach_o_section): Move bfdsection field at the end.
364 Add comments. Add prototypes for the above new functions.
365
9a66aae0
MK
3662011-08-05 Mark Kettenis <kettenis@gnu.org>
367
368 * netbsd-core.c (netbsd_core_vec): Init match_priority field.
369
d969d15f
AM
3702011-08-05 Alan Modra <amodra@gmail.com>
371
372 * elf64-ppc.c (maybe_strip_output): New function.
373 (ppc64_elf_size_stubs): Use it to strip .branch_lt and .eh_frame.
374
43e1669b
AM
3752011-08-05 Alan Modra <amodra@gmail.com>
376
377 PR ld/12762
378 * elflink.c (_bfd_elf_section_already_linked): Return matched
379 status. Remove COFF comdat section handling.
380 * linker.c (_bfd_generic_section_already_linked): Return matched
381 status. Don't set SEC_GROUP in l_flags for plugin entries.
382 (bfd_section_already_linked): Update prototype.
383 * targets.c (_section_already_linked): Likewise.
384 * elf-bfd.h (_bfd_elf_section_already_linked): Likewise.
385 * libbfd-in.h (_bfd_generic_section_already_linked): Likewise.
386 (_bfd_nolink_section_already_linked): Update.
387 * libbfd.h: Regenerate.
388 * bfd-in2.h: Regenerate.
389
6177242a
AM
3902011-08-05 Alan Modra <amodra@gmail.com>
391
392 * elf32-ppc.c: Include dwarf2.h.
393 (struct ppc_elf_link_hash_table): Add glink_eh_frame.
394 (ppc_elf_create_glink): Create .eh_frame section.
395 (glink_eh_frame_cie): New array.
396 (ppc_elf_size_dynamic_sections): Size glink_eh_frame.
397 (ppc_elf_finish_dynamic_sections): Write glink_eh_frame.
398
f1bb0388
TG
3992011-08-04 Tristan Gingold <gingold@adacore.com>
400
401 * vms-alpha.c (_bfd_vms_write_eeom): Round vms_linkage_index.
402 (_bfd_vms_write_etir): Initialize vms_linkage_index to 0.
403
092d27ff
TG
4042011-08-03 Tristan Gingold <gingold@adacore.com>
405
406 * mach-o.c (bfd_mach_o_canonicalize_symtab): Handle no symbols case.
407 (bfd_mach_o_read_symtab_symbols): Return if no symbols.
408
80cab405
MR
4092011-08-02 Maciej W. Rozycki <macro@codesourcery.com>
410
411 * elfxx-mips.c (check_4byte_branch): Remove function.
412 (check_relocated_bzc): New function.
413 (_bfd_mips_elf_relax_section): Permit the relaxation of LUI
414 instructions that immediately follow a compact branch
415 instruction.
416
c7131b65
AM
4172011-08-02 Alan Modra <amodra@gmail.com>
418
419 * elf64-ppc.c (build_plt_stub): Correct emitted relocs when no
420 plt_static_chain.
421 (ppc_build_one_stub): Adjust get_relocs call to suit..
422 (ppc_size_one_stub): ..and reloc sizing. Correct plt size corner case.
423
d7921315
L
4242011-08-01 H.J. Lu <hongjiu.lu@intel.com>
425
426 PR ld/13048
427 * archures.c (bfd_mach_i386_intel_syntax): New.
428 (bfd_mach_i386_i8086): Updated.
429 (bfd_mach_i386_i386): Likewise.
430 (bfd_mach_x86_64): Likewise.
431 (bfd_mach_x64_32): Likewise.
432 (bfd_mach_i386_i386_intel_syntax): Likewise.
433 (bfd_mach_x86_64_intel_syntax): Likewise.
434 (bfd_mach_x64_32_intel_syntax): Likewise.
435 (bfd_mach_l1om): Likewise.
436 (bfd_mach_l1om_intel_syntax): Likewise.
437 (bfd_mach_k1om): Likewise.
438 (bfd_mach_k1om_intel_syntax): Likewise.
439
440 * bfd-in2.h: Regenerated.
441
442 * cpu-i386.c (bfd_i386_compatible): Check mach instead of
443 bits_per_address.
444 (bfd_x64_32_arch_intel_syntax): Set bits_per_address to 64.
445 (bfd_x64_32_arch): Likewise.
446
447 * elf64-x86-64.c: Include "libiberty.h".
448 (x86_64_elf_howto_table): Append x32 R_X86_64_32.
449 (elf_x86_64_rtype_to_howto): Support x32 R_X86_64_32.
450 (elf_x86_64_reloc_type_lookup): Likewise.
451 (elf_x86_64_reloc_name_lookup): Likewise.
452 (elf_x86_64_relocate_section): Likewise.
453 (elf_x86_64_check_relocs): Allow R_X86_64_64 relocations for x32.
454
f41e5fcc
MR
4552011-07-29 Maciej W. Rozycki <macro@codesourcery.com>
456
457 * elfxx-mips.c (check_br32): Fix return type.
458
c088dedf
MR
4592011-07-29 Maciej W. Rozycki <macro@codesourcery.com>
460
461 * elfxx-mips.c (bz_insn_16): Correct opcode mask.
462
2309ddf2
MR
4632011-07-29 Maciej W. Rozycki <macro@codesourcery.com>
464
465 * elfxx-mips.c: Adjust comments throughout.
466 (mips_elf_relax_delete_bytes): Reshape code.
467 (_bfd_mips_elf_relax_section): Remove check for
468 R_MICROMIPS_GPREL16 relocations. Reshape code.
469
23209a78
RM
4702011-07-28 Roland McGrath <mcgrathr@google.com>
471
a27e4371
RM
472 * elf32-i386.c (NACL_PLT_ENTRY_SIZE, NACLMASK): New macros.
473 (elf_i386_nacl_plt0_entry): New variable.
474 (elf_i386_plt_entry): New variable.
475 (elf_i386_nacl_pic_plt0_entry): New variable.
476 (elf_i386_nacl_pic_plt_entry): New variable.
477 (elf_i386_nacl_plt, elf_i386_nacl_arch_bed): New variables.
478 (elf_backend_arch_data): New macro setting for elf_i386_nacl_vec stanza.
479 (elf_backend_plt_alignment): Likewise.
480
481 * config.bfd: Handle i[3-7]86-*-nacl*.
482 * elf32-i386.c (bfd_elf32_i386_nacl_vec): New backend vector stanza.
483 * targets.c: Support bfd_elf32_i386_nacl_vec.
484 * configure.in: Likewise.
485 * configure: Regenerated.
486
25e762b9
RM
487 * elf32-i386.c (struct elf_i386_plt_layout): New type.
488 (GET_PLT_ENTRY_SIZE): New macro.
489 (elf_i386_plt): New variable.
490 (struct elf_i386_backend_data): New member `plt'.
491 (elf_i386_arch_bed): Add initializer for it.
492 (elf_i386_vxworks_arch_bed): Likewise.
493 (elf_i386_allocate_dynrelocs): Use GET_PLT_ENTRY_SIZE.
494 (elf_i386_plt_sym_val): Likewise.
495 (elf_i386_relocate_section): Likewise.
496 (elf_i386_finish_dynamic_symbol): Likewise.
497 Also use other elf_i386_plt_layout members for PLT details.
498 (elf_i386_finish_dynamic_sections): Likewise.
499
23209a78
RM
500 * elf32-i386.c (struct elf_i386_backend_data): New type.
501 (get_elf_i386_backend_data): New macro.
502 (elf_i386_arch_bed): New variable.
503 (elf_backend_arch_data): New macro.
504 (struct elf_i386_link_hash_table): Remove plt0_pad_byte and is_vxworks.
505 (elf_i386_link_hash_table_create): Don't initialize them.
506 (elf_i386_create_dynamic_sections): Find is_vxworks flags in
507 elf_i386_backend_data, not elf_i386_link_hash_table.
508 (elf_i386_adjust_dynamic_symbol): Likewise.
509 (elf_i386_allocate_dynrelocs): Likewise.
510 (elf_i386_readonly_dynrelocs): Likewise.
511 (elf_i386_size_dynamic_sections): Likewise.
512 (elf_i386_relocate_section): Likewise.
513 (elf_i386_finish_dynamic_symbol): Likewise.
514 (elf_i386_finish_dynamic_sections): Likewise. Same for plt0_pad_byte.
515 (elf_i386_vxworks_link_hash_table_create): Function removed.
516 (elf_i386_vxworks_arch_bed): New variable.
517 (elf_backend_arch_data): New macro in elf32-i386-vxworks stanza.
518
519 * elf-bfd.h (elf_backend_data): New member arch_backend_data.
520 * elfxx-target.h (elf_backend_arch_data): New macro.
521 (elfNN_bed): Use it as initializer for the new member.
522
d91a6875
NC
5232011-07-28 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
524
525 * elf64-hppa.c (elf_hppa_final_link_relocate): Fix handling of out
526 of range branches.
527
4ccf1e31
JJ
5282011-07-26 Jakub Jelinek <jakub@redhat.com>
529
530 * dwarf2.c (dwarf_debug_sections): Add .debug_macro
531 and .zdebug_macro entry.
532 (dwarf_debug_section_enum): Add debug_macro.
533
58d180e8
AM
5342011-07-26 Alan Modra <amodra@gmail.com>
535
6177242a 536 * elf64-ppc.c: Include dwarf2.h.
58d180e8
AM
537 (struct ppc_link_hash_table): Add glink_eh_frame.
538 (create_linkage_sections): Create .eh_frame section.
539 (ppc64_elf_size_dynamic_sections): Arrange to drop unneeded
540 glink_eh_frame.
541 (glink_eh_frame_cie): New array.
542 (ppc64_elf_size_stubs): Size glink_eh_frame.
543 (ppc64_elf_build_stubs): Init glink_eh_frame contents.
544 (ppc64_elf_finish_dynamic_sections): Write glink_eh_frame.
545
18978b27
HPN
5462011-07-25 Hans-Peter Nilsson <hp@bitrange.com>
547
548 PR ld/12815
549 * elf64-mmix.c (struct _mmix_elf_section_data): New members
550 has_warned_bpo and has_warned_pushj.
551 (mmix_final_link_relocate): Remove PARAMS and PTR macros,
552 converting to ISO C. Add new parameter error_message. All
553 callers changed.
554 (mmix_elf_perform_relocation): Ditto.
555 <case R_MMIX_PUSHJ_STUBBABLE, case R_MMIX_BASE_PLUS_OFFSET>:
556 Handle the case where mmix_elf_check_common_relocs has not been
557 called, missing preparations for relocs of the respective type.
558
df58fc94 5592011-07-24 Chao-ying Fu <fu@mips.com>
58d180e8
AM
560 Ilie Garbacea <ilie@mips.com>
561 Maciej W. Rozycki <macro@codesourcery.com>
562 Joseph Myers <joseph@codesourcery.com>
563 Catherine Moore <clm@codesourcery.com>
df58fc94
RS
564 Richard Sandiford <rdsandiford@googlemail.com>
565
566 * archures.c (bfd_mach_mips_micromips): New macro.
567 * cpu-mips.c (I_micromips): New enum value.
568 (arch_info_struct): Add bfd_mach_mips_micromips.
569 * elfxx-mips.h (_bfd_mips_elf_is_target_special_symbol): New
570 prototype.
571 (_bfd_mips_elf_relax_section): Likewise.
572 (_bfd_mips16_elf_reloc_unshuffle): Rename to...
573 (_bfd_mips_elf_reloc_unshuffle): ... this. Handle microMIPS
574 ASE.
575 (_bfd_mips16_elf_reloc_shuffle): Rename to...
576 (_bfd_mips_elf_reloc_shuffle): ... this. Handle microMIPS ASE.
577 (gprel16_reloc_p): Handle microMIPS ASE.
578 (literal_reloc_p): New function.
579 * elf32-mips.c (elf_micromips_howto_table_rel): New variable.
580 (_bfd_mips_elf32_gprel16_reloc): Handle microMIPS ASE.
581 (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle
582 and _bfd_mips_elf_reloc_shuffle changes.
583 (mips_elf_gprel32_reloc): Update comment.
584 (micromips_reloc_map): New variable.
585 (bfd_elf32_bfd_reloc_type_lookup): Handle microMIPS ASE.
586 (mips_elf32_rtype_to_howto): Likewise.
587 (mips_info_to_howto_rel): Likewise.
588 (bfd_elf32_bfd_is_target_special_symbol): Define.
589 (bfd_elf32_bfd_relax_section): Likewise.
590 * elf64-mips.c (micromips_elf64_howto_table_rel): New variable.
591 (micromips_elf64_howto_table_rela): Likewise.
592 (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle
593 and _bfd_mips_elf_reloc_shuffle changes.
594 (micromips_reloc_map): Likewise.
595 (bfd_elf64_bfd_reloc_type_lookup): Handle microMIPS ASE.
596 (bfd_elf64_bfd_reloc_name_lookup): Likewise.
597 (mips_elf64_rtype_to_howto): Likewise.
598 (bfd_elf64_bfd_is_target_special_symbol): Define.
599 * elfn32-mips.c (elf_micromips_howto_table_rel): New variable.
600 (elf_micromips_howto_table_rela): Likewise.
601 (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle
602 and _bfd_mips_elf_reloc_shuffle changes.
603 (micromips_reloc_map): Likewise.
604 (bfd_elf32_bfd_reloc_type_lookup): Handle microMIPS ASE.
605 (bfd_elf32_bfd_reloc_name_lookup): Likewise.
606 (mips_elf_n32_rtype_to_howto): Likewise.
607 (bfd_elf32_bfd_is_target_special_symbol): Define.
608 * elfxx-mips.c (LA25_LUI_MICROMIPS_1): New macro.
609 (LA25_LUI_MICROMIPS_2): Likewise.
610 (LA25_J_MICROMIPS_1, LA25_J_MICROMIPS_2): Likewise.
611 (LA25_ADDIU_MICROMIPS_1, LA25_ADDIU_MICROMIPS_2): Likewise.
612 (TLS_RELOC_P): Handle microMIPS ASE.
613 (mips_elf_create_stub_symbol): Adjust value of stub symbol if
614 target is a microMIPS function.
615 (micromips_reloc_p): New function.
616 (micromips_reloc_shuffle_p): Likewise.
617 (got16_reloc_p, call16_reloc_p): Handle microMIPS ASE.
618 (got_disp_reloc_p, got_page_reloc_p): New functions.
619 (got_ofst_reloc_p): Likewise.
620 (got_hi16_reloc_p, got_lo16_reloc_p): Likewise.
621 (call_hi16_reloc_p, call_lo16_reloc_p): Likewise.
622 (hi16_reloc_p, lo16_reloc_p, jal_reloc_p): Handle microMIPS ASE.
623 (micromips_branch_reloc_p): New function.
624 (tls_gd_reloc_p, tls_ldm_reloc_p): Likewise.
625 (tls_gottprel_reloc_p): Likewise.
626 (_bfd_mips16_elf_reloc_unshuffle): Rename to...
627 (_bfd_mips_elf_reloc_unshuffle): ... this. Handle microMIPS
628 ASE.
629 (_bfd_mips16_elf_reloc_shuffle): Rename to...
630 (_bfd_mips_elf_reloc_shuffle): ... this. Handle microMIPS ASE.
631 (_bfd_mips_elf_lo16_reloc): Handle microMIPS ASE.
632 (mips_tls_got_index, mips_elf_got_page): Likewise.
633 (mips_elf_create_local_got_entry): Likewise.
634 (mips_elf_relocation_needs_la25_stub): Likewise.
635 (mips_elf_calculate_relocation): Likewise.
636 (mips_elf_perform_relocation): Likewise.
637 (_bfd_mips_elf_symbol_processing): Likewise.
638 (_bfd_mips_elf_add_symbol_hook): Likewise.
639 (_bfd_mips_elf_link_output_symbol_hook): Likewise.
640 (mips_elf_add_lo16_rel_addend): Likewise.
641 (_bfd_mips_elf_check_relocs): Likewise.
642 (mips_elf_adjust_addend): Likewise.
643 (_bfd_mips_elf_relocate_section): Likewise.
644 (mips_elf_create_la25_stub): Likewise.
645 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
646 (_bfd_mips_elf_gc_sweep_hook): Likewise.
647 (_bfd_mips_elf_is_target_special_symbol): New function.
648 (mips_elf_relax_delete_bytes): Likewise.
649 (opcode_descriptor): New structure.
650 (RA): New macro.
651 (OP32_SREG, OP32_TREG, OP16_VALID_REG): Likewise.
652 (b_insns_32, bc_insn_32, bz_insn_32, bzal_insn_32): New variables.
653 (beq_insn_32): Likewise.
654 (b_insn_16, bz_insn_16): New variables.
655 (BZC32_REG_FIELD): New macro.
656 (bz_rs_insns_32, bz_rt_insns_32): New variables.
657 (bzc_insns_32, bz_insns_16):Likewise.
658 (BZ16_REG, BZ16_REG_FIELD): New macros.
659 (jal_insn_32_bd16, jal_insn_32_bd32): New variables.
660 (jal_x_insn_32_bd32): Likewise.
661 (j_insn_32, jalr_insn_32): Likewise.
662 (ds_insns_32_bd16, ds_insns_32_bd32): Likewise.
663 (jalr_insn_16_bd16, jalr_insn_16_bd32, jr_insn_16): Likewise.
664 (JR16_REG): New macro.
665 (ds_insns_16_bd16): New variable.
666 (lui_insn): Likewise.
667 (addiu_insn, addiupc_insn): Likewise.
668 (ADDIUPC_REG_FIELD): New macro.
669 (MOVE32_RD, MOVE32_RS): Likewise.
670 (MOVE16_RD_FIELD, MOVE16_RS_FIELD): Likewise.
671 (move_insns_32, move_insns_16): New variables.
672 (nop_insn_32, nop_insn_16): Likewise.
673 (MATCH): New macro.
674 (find_match): New function.
675 (check_br16_dslot, check_br32_dslot): Likewise.
676 (check_br16, check_br32): Likewise.
677 (IS_BITSIZE): New macro.
678 (check_4byte_branch): New function.
679 (_bfd_mips_elf_relax_section): Likewise.
680 (_bfd_mips_elf_merge_private_bfd_data): Disallow linking MIPS16
681 and microMIPS modules together.
682 (_bfd_mips_elf_print_private_bfd_data): Handle microMIPS ASE.
683 * reloc.c (BFD_RELOC_MICROMIPS_7_PCREL_S1): New relocation.
684 (BFD_RELOC_MICROMIPS_10_PCREL_S1): Likewise.
685 (BFD_RELOC_MICROMIPS_16_PCREL_S1): Likewise.
686 (BFD_RELOC_MICROMIPS_GPREL16): Likewise.
687 (BFD_RELOC_MICROMIPS_JMP, BFD_RELOC_MICROMIPS_HI16): Likewise.
688 (BFD_RELOC_MICROMIPS_HI16_S): Likewise.
689 (BFD_RELOC_MICROMIPS_LO16): Likewise.
690 (BFD_RELOC_MICROMIPS_LITERAL): Likewise.
691 (BFD_RELOC_MICROMIPS_GOT16): Likewise.
692 (BFD_RELOC_MICROMIPS_CALL16): Likewise.
693 (BFD_RELOC_MICROMIPS_GOT_HI16): Likewise.
694 (BFD_RELOC_MICROMIPS_GOT_LO16): Likewise.
695 (BFD_RELOC_MICROMIPS_CALL_HI16): Likewise.
696 (BFD_RELOC_MICROMIPS_CALL_LO16): Likewise.
697 (BFD_RELOC_MICROMIPS_SUB): Likewise.
698 (BFD_RELOC_MICROMIPS_GOT_PAGE): Likewise.
699 (BFD_RELOC_MICROMIPS_GOT_OFST): Likewise.
700 (BFD_RELOC_MICROMIPS_GOT_DISP): Likewise.
701 (BFD_RELOC_MICROMIPS_HIGHEST): Likewise.
702 (BFD_RELOC_MICROMIPS_HIGHER): Likewise.
703 (BFD_RELOC_MICROMIPS_SCN_DISP): Likewise.
704 (BFD_RELOC_MICROMIPS_JALR): Likewise.
705 (BFD_RELOC_MICROMIPS_TLS_GD): Likewise.
706 (BFD_RELOC_MICROMIPS_TLS_LDM): Likewise.
707 (BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16): Likewise.
708 (BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16): Likewise.
709 (BFD_RELOC_MICROMIPS_TLS_GOTTPREL): Likewise.
710 (BFD_RELOC_MICROMIPS_TLS_TPREL_HI16): Likewise.
711 (BFD_RELOC_MICROMIPS_TLS_TPREL_LO16): Likewise.
712 * bfd-in2.h: Regenerate.
713 * libbfd.h: Regenerate.
714
7a9068fe
L
7152011-07-22 H.J. Lu <hongjiu.lu@intel.com>
716
717 * Makefile.am (ALL_MACHINES): Add cpu-k1om.lo.
718 (ALL_MACHINES_CFILES): Add cpu-k1om.c.
719 * Makefile.in: Regenerated.
720
721 * archures.c (bfd_architecture): Add bfd_arch_k1om.
722 (bfd_k1om_arch): New.
723 (bfd_archures_list): Add &bfd_k1om_arch.
724 * bfd-in2.h: Regenerated.
725
726 * config.bfd (targ64_selvecs): Add bfd_elf64_k1om_vec if
727 bfd_elf64_x86_64_vec is supported. Add bfd_elf64_k1om_freebsd_vec
728 if bfd_elf64_x86_64_freebsd_vec is supported.
729 (targ_selvecs): Likewise.
730
731 * configure.in: Support bfd_elf64_k1om_vec and
732 bfd_elf64_k1om_freebsd_vec.
733 * configure: Regenerated.
734
735 * cpu-k1om.c: New.
736
737 * elf64-x86-64.c (elf64_k1om_elf_object_p): New.
738 (bfd_elf64_k1om_vec): Likewise.
739 (bfd_elf64_k1om_freebsd_vec): Likewise.
740
741 * targets.c (bfd_elf64_k1om_vec): New.
742 (bfd_elf64_k1om_freebsd_vec): Likewise.
743 (_bfd_target_vector): Add bfd_elf64_k1om_vec and
744 bfd_elf64_k1om_freebsd_vec.
745
156f6ad8
JK
7462011-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
747
748 Fix false coff-go32-exe matches.
749 * coff-i386.c (TARGET_SYM) <_bfd_check_format>: Conditionally use
750 COFF_CHECK_FORMAT.
751 * coff-stgo32.c (go32_check_format): New forward declaration.
752 (COFF_CHECK_FORMAT): New defintion.
753 (go32_check_format): New function.
754
05aecedb
AM
7552011-07-15 Alan Modra <amodra@gmail.com>
756
757 * configure.in: Bump version.
758 * configure: Regenerate.
759
cbde55ab
AM
7602011-07-14 Alan Modra <amodra@gmail.com>
761
762 * linker.c (_bfd_generic_section_already_linked): Set l_flags.
763 * elf-bfd.h (struct already_linked): Forward declare.
764
ec24dc88
AM
7652011-07-14 Alan Modra <amodra@gmail.com>
766
767 * elflink.c (_bfd_elf_fix_symbol_flags): Loop on indirect syms.
768 (_bfd_elf_adjust_dynamic_symbol): Remove FIXME.
769
9df0ef5f
AM
7702011-07-14 Alan Modra <amodra@gmail.com>
771
772 * elf64-ppc.c (struct ppc_link_hash_table): Add plt_static_chain.
773 (build_plt_stub): Add plt_static_chain param, don't load r11 if false.
774 (build_tls_get_addr_stub): Likewise.
775 (ppc_build_one_stub): Update calls to above.
776 (ppc_size_one_stub): Adjust stub size.
777 (ppc64_elf_size_stubs): Add plt_static_chain param, save to htab.
778 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
779
8de863a5
NC
7802011-07-12 Nick Clifton <nickc@redhat.com>
781
782 * elf32-arm.c (elf32_arm_section_flags): Delete.
783 (elf_backend_section_flags): Remove.
784
a92c088a
L
7852011-07-11 H.J. Lu <hongjiu.lu@intel.com>
786
787 PR ld/12982
788 * elflink.c (bfd_elf_size_dynamic_sections): Also skip BFD_PLUGIN
789 when setting stack_flags.
790
ae17ab41
CM
7912011-07-11 Catherine Moore <clm@codesourcery.com>
792
793 * aout-adobe.c (aout_32_bfd_lookup_section_flags): New definition.
794 * aout-target.h (MY_bfd_lookup_section_flags): New definition.
795 * aout-tic30.c (MY_bfd_lookup_section_flags): New definition.
58d180e8 796 * bfd-in2.h: Regenerated.
ae17ab41
CM
797 * bfd.c (bfd_lookup_section_flags): New definition.
798 * binary.c (binary_bfd_lookup_section_flags): New definition.
799 * bout.c (b_out_bfd_lookup_section_flags): New definition.
800 * coff-alpha.c (_bfd_ecoff_bfd_lookup_section_flags): New definition.
801 * coff-mips.c (_bfd_ecoff_bfd_lookup_section_flags): New definition.
802 * coff-rs6000.c (rs6000coff_vec): Include
803 bfd_generic_lookup_section_flags.
804 (pmac_xcoff_vec): Likewise.
805 * coffcode.h (coff_bfd_lookup_section_flags): New definition.
806 * coff64-rs6000.c (rs6000coff64_vec): Include
807 bfd_generic_lookup_section_flags.
808 (aix5coff64_vec): Likewise.
809 * ecoff.c (bfd_debug_section): Initialize flag_info field.
810 * elf-bfd.h (elf_backend_lookup_section_flags_hook): Declare.
811 (bfd_elf_lookup_section_flags): Declare.
812 * elflink.c (bfd_elf_lookup_section_flags): New function.
813 * elfxx-target.h (bfd_elfNN_bfd_lookup_section_flags): Define.
814 (elf_backend_lookup_section_flags_hook): Define.
815 (elf_backend_data): Add elf_backend_lookup_section_flags_hook.
816 * i386msdos.c (msdos_bfd_lookup_section_flags): New define.
817 * i386os9k.c (os9k_bfd_lookup_section_flags): New define.
818 * ieee.c (ieee_bfd_lookup_section_flags): New define.
819 * ihex.c (ihex_bfd_lookup_section_flags): New define.
820 * libbfd-in.h (_bfd_nolink_bfd_lookup_section_flags): Declare.
821 (bfd_generic_lookup_section_flags): Declare.
822 * libbfd.h: Regenerated.
823 * mach-o-target.c (bfd_mach_o_bfd_lookup_section_flags): New.
824 * mmo.c (mmo_bfd_lookup_section_flags): New definition.
825 * nlm-target.h (nlm_bfd_lookup_section_flags): New definition.
826 * oasys.c (oasys_bfd_lookup_section_flags): New definition.
827 * pef.c (bfd_pef_bfd_lookup_section_flags): New definition.
828 * plugin.c (bfd_plugin_bfd_lookup_section_flags): New definition.
829 * ppcboot.c (ppcboot_bfd_lookup_section_flags): New definition.
830 * reloc.c (bfd_generic_lookup_section_flags): New function.
831 * som.c (som_bfd_lookup_section_flags): New definition.
832 * srec.c (srec_bfd_lookup_section_flags): New definition.
833 * targets.c (flag_info): Declare.
834 (NAME##_bfd_lookup_section_flags): Add to LINK jump table.
835 (_bfd_lookup_section_flags): New.
836 * tekhex.c (tekhex_bfd_lookup_section_flags): New definition.
837 * versados.c (versados_bfd_lookup_section_flags): New definition.
838 * vms-alpha.c (alpha_vms_bfd_lookup_section_flag): New definition.
839 * xsym.c (bfd_sym_bfd_lookup_section_flags): New definition.
840
23ebcd30
L
8412011-07-11 H.J. Lu <hongjiu.lu@intel.com>
842
843 PR ld/12978
844 * elfnn-ia64.c (count_dyn_reloc): Fix a typo.
845
0c511000
AM
8462011-07-09 Alan Modra <amodra@gmail.com>
847
848 PR ld/12942
849 * elflink.c (elf_link_add_object_symbols): Use elf_discarded_section
850 rather than kept_section to determine whether a symbol is from
851 a discarded section.
852 * cofflink.c (coff_link_add_symbols): Make symbols from discarded
853 sections appear undefined.
854
8552011-07-09 H.J. Lu <hongjiu.lu@intel.com>
856
857 PR ld/12942
858 * elf-bfd.h (_bfd_elf_section_already_linked): Replace
859 "asection *" with "struct already_linked *".
860 * libbfd-in.h (_bfd_nolink_section_already_linked): Likewise.
861 (_bfd_generic_section_already_linked): Likewise.
862 (bfd_section_already_linked_table_insert): Likewise.
863 (struct already_linked): New.
864 (struct bfd_section_already_linked): Use it.
865 * elflink.c (_bfd_elf_section_already_linked): Replace.
866 "asection *" with "struct already_linked *". Replace the plugin
867 dummy with the LTO output.
868 * linker.c (_bfd_generic_section_already_linked): Likewise.
869 * targets.c (struct already_linked): Add forward declaration.
870 (bfd_target): Replace "struct bfd_section *" with
871 "struct already_linked *" in _section_already_linked.
872 * bfd-in2.h: Regenerate.
873 * libbfd.h: Regenerate.
874
74f26653
TG
8752011-07-06 Tristan Gingold <gingold@adacore.com>
876
877 * mach-o.h: Move loader related definitions to
878 include/mach-o/loader.h. Include it.
879
52cb9dfe
L
8802011-07-05 H.J. Lu <hongjiu.lu@intel.com>
881
882 * elf64-x86-64.c (elf_backend_post_process_headers): Always
883 define to _bfd_elf_set_osabi.
884
9c55345c
TS
8852011-07-03 Samuel Thibault <samuel.thibault@gnu.org>
886 Thomas Schwinge <thomas@schwinge.name>
887
2bb70ae0 888 PR binutils/12913
9c55345c
TS
889 * elf.c (_bfd_elf_set_osabi): Use ELFOSABI_GNU name instead of
890 ELFOSABI_LINUX alias.
891 * elf32-hppa.c: Likewise.
892 * elf32-i370.c: Likewise.
893 * elf64-hppa.c: Likewise.
894
28ede8be
ILT
8952011-07-01 Ian Lance Taylor <iant@google.com>
896
897 * elf32-i386.c (elf_i386_eh_frame_plt): Correct expression: change
898 DW_OP_lit3 to DW_OP_lit2.
899
c79d6685
AM
9002011-07-01 Alan Modra <amodra@gmail.com>
901
902 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Don't look at
903 dyn relocs when called to copy flags for a weak sym.
904 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
905 (ppc64_elf_merge_private_bfd_data): Delete.
906 (bfd_elf64_bfd_merge_private_bfd_data): Define as
907 _bfd_generic_verify_endian_match.
908
dc076558
BS
9092011-06-30 Bernd Schmidt <bernds@codesourcery.com>
910
911 * bfd/elf32-tic6x.c (elf32_tic6x_set_osabi): Also set it if
912 link_info is NULL.
913
25d41743
TG
9142011-06-28 Tristan Gingold <gingold@adacore.com>
915
916 * vms-alpha.c (vms_private_data_struct): Make vms_linkage_index
917 unsigned int.
918 (_bfd_vms_write_etir): Write linkage index from reloc.
919
9b02d212
TG
9202011-06-28 Fawzi Mohamed <fawzi.mohamed@nokia.com>
921
922 * mach-o.c (bfd_mach_o_read_command): Also ignore
923 BFD_MACH_O_LC_ROUTINES_64.
924
a8efca92
TG
9252011-06-27 Tristan Gingold <gingold@adacore.com>
926
927 * vms-alpha.c (_bfd_vms_write_etir): Use 'section' to get current
928 section target index.
929
20ee8bc9
NC
9302011-06-27 Nick Clifton <nickc@redhat.com>
931
932 * cisco-core.c (cisco_core_little_vec): Add initialization of
933 match_priority field.
934
4c95ab76
TG
9352011-06-27 Tristan Gingold <gingold@adacore.com>
936
937 * cache.c: Include bfd_stdint.h.
938 (cache_bmmap): Change profile. Return region start and size.
939 * bfdio.c (struct bfd_iovec): Change bmmap profile.
940 (bfd_mmap): Change profile and adjust. Update comment.
941 (memory_bmmap): Change profile.
942 * opncls.c (opncls_bmmap): Change profile.
943 * vms-lib.c (vms_lib_bmmap): Likewise.
944 * libbfd.h: Regenerate.
945 * bfd-in2.h: Regenerate.
946
62a35308
TG
9472011-06-27 Tristan Gingold <gingold@adacore.com>
948
949 * vms-misc.c (vms_time_to_time_t): Adjust overflow detection.
950 Add comment.
951
5d430399
L
9522011-06-25 H.J. Lu <hongjiu.lu@intel.com>
953
954 * elf64-x86-64.c (elf_backend_post_process_headers): Don't
955 define for FreeBSD/x86-64 nor FreeBSD/L1OM. Define for L1OM.
956
332ce62b
JK
9572011-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
958
959 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Initialize
960 PLT_EH_FRAME.
961 * elf32-i386.c (elf_i386_link_hash_table): Likewise.
962
7dbf3b76
RH
9632011-06-24 Richard Henderson <rth@redhat.com>
964
965 PR ld/12928
966 * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Recover the
967 tlsgd insn before swapping adjacent insns.
968
d120eec2
TG
9692011-06-24 Tristan Gingold <gingold@adacore.com>
970
971 * vms-alpha.c (alpha_vms_slurp_relocs): Add a guard for relocs in the
972 absolute section.
973
1e951488
AM
9742011-06-24 Alan Modra <amodra@gmail.com>
975
976 PR ld/12921
977 * elf.c (assign_file_positions_for_load_sections): Don't align
978 sh_offset for all SHT_NOBITS sections here, just .tbss sections
979 that don't get a PT_LOAD.
980
b68593b9
KK
9812011-06-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
982
983 * elf32-sh.c (sh_elf_relocate_section): Allow R_SH_TLS_LE_32 for PIE.
984 (sh_elf_check_relocs): Likewise.
985
e366eeae
RH
9862011-06-22 Richard Henderson <rth@redhat.com>
987
988 * elf64-alpha.c (elf64_alpha_check_relocs): No dynamic reloc for
989 TPREL in a PIE image.
990 (alpha_dynamic_entries_for_reloc): Likewise.
991 (elf64_alpha_relocate_section): Allow TPREL in PIE images.
992 (elf64_alpha_relax_got_load): Likewise.
993
9ec0c936
RR
9942011-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
995
c79d6685
AM
996 * elf32-arm.c (elf32_arm_final_link_relocate): Allow R_ARM_TLS_LE32
997 for PIE.
9ec0c936 998
3a5dbfb2
AM
9992011-06-22 Alan Modra <amodra@gmail.com>
1000
1001 * elflink.c (_bfd_elf_merge_symbol): Allow type changes for
1002 plugin symbols. Fix segfault on linker scrip defined syms.
1003
e41b3a13
JJ
10042011-06-20 Jakub Jelinek <jakub@redhat.com>
1005
1006 PR ld/12570
1007 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Allow no relocations
1008 at all for linker created .eh_frame sections.
1009 (_bfd_elf_discard_section_eh_frame): Handle linker created
1010 .eh_frame sections with no relocations.
1011 * elf64-x86-64.c: Include dwarf2.h.
1012 (elf_x86_64_eh_frame_plt): New variable.
1013 (PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
1014 PLT_FDE_LEN_OFFSET): Define.
1015 (struct elf_x86_64_link_hash_table): Add plt_eh_frame field.
1016 (elf_x86_64_create_dynamic_sections): Create and fill in
1017 .eh_frame section for .plt section.
1018 (elf_x86_64_size_dynamic_sections): Write .plt section size
1019 into .eh_frame FDE covering .plt section.
1020 (elf_x86_64_finish_dynamic_sections): Write .plt section
1021 start into .eh_frame FDE covering .plt section. Call
1022 _bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
1023 (elf_backend_plt_alignment): Define to 4.
1024 * elf32-i386.c: Include dwarf2.h.
1025 (elf_i386_eh_frame_plt): New variable.
1026 (PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
1027 PLT_FDE_LEN_OFFSET): Define.
1028 (struct elf_i386_link_hash_table): Add plt_eh_frame field.
1029 (elf_i386_create_dynamic_sections): Create and fill in
1030 .eh_frame section for .plt section.
1031 (elf_i386_size_dynamic_sections): Write .plt section size
1032 into .eh_frame FDE covering .plt section.
1033 (elf_i386_finish_dynamic_sections): Write .plt section
1034 start into .eh_frame FDE covering .plt section. Call
1035 _bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
1036 (elf_backend_plt_alignment): Define to 4.
1037
8b778942
L
10382011-06-19 H.J. Lu <hongjiu.lu@intel.com>
1039
1040 * elf64-x86-64.c (elf_backend_post_process_headers): Defined
1041 for x32.
1042
8fd79e71
L
10432011-06-16 H.J. Lu <hongjiu.lu@intel.com>
1044
1045 * elf64-x86-64.c: Include <stdarg.h> and CORE_HEADER if
1046 CORE_HEADER is defined.
1047 (elf_x86_64_write_core_note): New.
1048 (elf_backend_write_core_note): Likewise.
1049
1050 * hosts/x86-64linux.h (uint64_t): New.
1051 (user_regsx32_struct): Likewise.
1052 (elf_gregx32_t): Likewise.
1053 (ELF_NGREGX32): Likewise.
1054 (elf_gregsetx32_t): Likewise.
1055 (elf_prstatusx32): Likewise.
1056 (prstatusx32_t): Likewise.
1057 (user_fpregs32_struct): Removed.
1058 (user_fpxregs32_struct): Likewise.
1059 (user32): Likewise.
1060 (elf_fpregset32_t): Likewise.
1061 (elf_fpxregset32_t): Likewise.
1062 (prgregset32_t): Likewise.
1063 (prfpregset32_t): Likewise.
1064
bcd823f1
L
10652011-06-16 H.J. Lu <hongjiu.lu@intel.com>
1066
1067 * elf64-x86-64.c (elf_x86_64_grok_prstatus): Support x32.
1068 (elf_x86_64_grok_psinfo): Likewise.
1069
a06c7d5a
NC
10702011-06-16 Nick Clifton <nickc@redhat.com>
1071
1072 * elf.c (elf_find_function): Fail if not provided with a symbol
1073 table.
1074
faa9a424
UW
10752011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1076
1077 * elf-bfd.h (elfcore_write_arm_vfp): Add prototype.
1078 * elf.c (elfcore_grok_arm_vfp): New function.
1079 (elfcore_grok_note): Call it to handle NT_ARM_VFP notes.
1080 (elfcore_write_arm_vfp): New function.
1081 (elfcore_write_register_note): Call it to handle .reg-arm-vfp.
1082
48f4b4f5
RH
10832011-06-14 Richard Henderson <rth@redhat.com>
1084
1085 * elf64-alpha.c (elf64_alpha_copy_indirect_symbol): Rename from
1086 elf64_alpha_merge_ind_symbols; adjust for the generic interface.
1087 (elf64_alpha_always_size_sections): Don't call
1088 elf64_alpha_merge_ind_symbols.
1089 (elf_backend_copy_indirect_symbol): New.
1090
4d16d575
AM
10912011-06-14 Alan Modra <amodra@gmail.com>
1092
1093 PR ld/12887
1094 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Check sec_info_type
1095 before doing anything.
1096 (_bfd_elf_discard_section_eh_frame): Likewise.
1097
1e24d83c
AM
10982011-06-14 Alan Modra <amodra@gmail.com>
1099
1100 * Makefile.am: Formatting.
1101 * Makefile.in: Regenerate.
1102 * configure.in (bfd_elf64_tilegx_vec): Add elfxx-tilegx.lo.
1103 * po/SRC-POTFILES.in: Regnerate.
1104
e4d34ace
AM
11052011-06-14 Alan Modra <amodra@gmail.com>
1106
1107 * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Don't use PTR.
1108 (allocate_dynrelocs, readonly_dynrelocs): Replace PTR with void *.
1109 Don't handle warning symbols here.
1110 * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): As above.
1111 (allocate_dynrelocs, readonly_dynrelocs): As above.
1112
7f6ab9f8
AM
11132011-06-14 Alan Modra <amodra@gmail.com>
1114
1115 PR ld/12851
1116 * elflink.c (_bfd_elf_gc_mark_extra_sections): New function.
1117 (elf_gc_sweep): Don't treat debug and sections like .comment
1118 specially here.
1119 (bfd_elf_gc_sections): Treat note sections as gc roots only when
1120 not part of a group. Always call gc_mark_extra_sections.
1121 * elf-bfd.h (_bfd_elf_gc_mark_extra_sections): Declare.
1122 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Default to
1123 _bfd_elf_gc_mark_extra_sections.
1124 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Call
1125 _bfd_elf_gc_mark_extra_sections.
1126 * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): Likewise.
1127
09d9a62a
NC
11282011-06-13 Nick Clifton <nickc@redhat.com>
1129
1130 * elf32-tilepro.c (tilepro_elf_check_relocs): Delete unused local
1131 variable 'local_got_offsets'.
1132 * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
1133 (tilegx_finish_dyn): Delete unused local variable 'abi_64_p'.
1134
aa137e4d
NC
11352011-06-13 Walter Lee <walt@tilera.com>
1136
1137 * Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo.
1138 (ALL_MACHINE_CFILES): Add cpu-tilegx.c and cpu-tilepro.c.
1139 (BFD32_BACKENDS): Add elf32-tilegx.lo, elf32-tilepro.lo,
1140 and elfxx-tilegx.lo.
1141 (BFD32_BACKENDS_CFILES): Add elf32-tilegx.c elf32-tilepro.c, and
1142 elfxx-tilegx.c.
1143 (BFD64_BACKENDS): Add elf64-tilegx.lo.
1144 (BFD64_BACKENDS_CFILES): Add elf64-tilegx.c.
1145 * Makefile.in: Regenerate.
1146 * arctures.c (bfd_architecture): Define bfd_arch_tilepro,
1147 bfd_arch_tilegx, bfd_mach_tilepro, bfd_mach_tilegx.
1148 (bfd_arch_info): Add bfd_tilegx_arch, bfd_tilepro_arch.
1149 (bfd_archures_list): Add bfd_tilegx_arch, bfd_tilepro_arch.
1150 bfd-in2.h: Regenerate.
1151 * config.bfd: Handle tilegx-*-* and tilepro-*-*.
1152 * configure.in: Handle bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
1153 and bfd_elf64_tilegx_vec.
1154 * configure: Regenerate.
1155 * elf-bfd.h (enum elf_target_id): Define TILEGX_ELF_DATA and
1156 TILEPRO_ELF_DATA.
1157 * libbfd.h: Regenerate.
1158 * reloc.c: Add BFD_RELOC_TILEPRO_{COPY, GLOB_DAT, JMP_SLOT,
1159 RELATIVE, BROFF_X1, JOFFLONG_X1, JOFFLONG_X1_PLT, IMM8_X0,
1160 IMM8_Y0, IMM8_X1, IMM8_Y1, DEST_IMM8_X1, MT_IMM15_X1, MF_IMM15_X1,
1161 IMM16_X0, IMM16_X1, IMM16_X0_LO, IMM16_X1_LO, IMM16_X0_HI,
1162 IMM16_X1_HI, IMM16_X0_HA, IMM16_X1_HA, IMM16_X0_PCREL,
1163 IMM16_X1_PCREL, IMM16_X0_LO_PCREL, IMM16_X1_LO_PCREL,
1164 IMM16_X0_HI_PCREL, IMM16_X1_HI_PCREL, IMM16_X0_HA_PCREL,
1165 IMM16_X1_HA_PCREL, IMM16_X0_GOT, IMM16_X1_GOT, IMM16_X0_GOT_LO,
1166 IMM16_X1_GOT_LO, IMM16_X0_GOT_HI, IMM16_X1_GOT_HI,
1167 IMM16_X0_GOT_HA, IMM16_X1_GOT_HA, MMSTART_X0, MMEND_X0,
1168 MMSTART_X1, MMEND_X1, SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1,
1169 IMM16_X0_TLS_GD, IMM16_X1_TLS_GD, IMM16_X0_TLS_GD_LO,
1170 IMM16_X1_TLS_GD_LO, IMM16_X0_TLS_GD_HI, IMM16_X1_TLS_GD_HI,
1171 IMM16_X0_TLS_GD_HA, IMM16_X1_TLS_GD_HA, IMM16_X0_TLS_IE,
1172 IMM16_X1_TLS_IE, IMM16_X0_TLS_IE_LO, IMM16_X1_TLS_IE_LO,
1173 IMM16_X0_TLS_IE_HI, IMM16_X1_TLS_IE_HI, IMM16_X0_TLS_IE_HA,
1174 IMM16_X1_TLS_IE_HA, TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
1175 Add BFD_RELOC_TILEGX_{HW0, HW1, HW2, HW3, HW0_LAST, HW1_LAST,
1176 HW2_LAST, COPY, GLOB_DAT, JMP_SLOT, RELATIVE, BROFF_X1,
1177 JUMPOFF_X1, JUMPOFF_X1_PLT, IMM8_X0, IMM8_Y0, IMM8_X1, IMM8_Y1,
1178 DEST_IMM8_X1, MT_IMM14_X1, MF_IMM14_X1, MMSTART_X0, MMEND_X0,
1179 SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1, IMM16_X0_HW0,
1180 IMM16_X1_HW0, IMM16_X0_HW1, IMM16_X1_HW1, IMM16_X0_HW2,
1181 IMM16_X1_HW2, IMM16_X0_HW3, IMM16_X1_HW3, IMM16_X0_HW0_LAST,
1182 IMM16_X1_HW0_LAST, IMM16_X0_HW1_LAST, IMM16_X1_HW1_LAST,
1183 IMM16_X0_HW2_LAST, IMM16_X1_HW2_LAST, IMM16_X0_HW0_PCREL,
1184 IMM16_X1_HW0_PCREL, IMM16_X0_HW1_PCREL, IMM16_X1_HW1_PCREL,
1185 IMM16_X0_HW2_PCREL, IMM16_X1_HW2_PCREL, IMM16_X0_HW3_PCREL,
1186 IMM16_X1_HW3_PCREL, IMM16_X0_HW0_LAST_PCREL,
1187 IMM16_X1_HW0_LAST_PCREL, IMM16_X0_HW1_LAST_PCREL,
1188 IMM16_X1_HW1_LAST_PCREL, IMM16_X0_HW2_LAST_PCREL,
1189 IMM16_X1_HW2_LAST_PCREL, IMM16_X0_HW0_GOT, IMM16_X1_HW0_GOT,
1190 IMM16_X0_HW1_GOT, IMM16_X1_HW1_GOT, IMM16_X0_HW2_GOT,
1191 IMM16_X1_HW2_GOT, IMM16_X0_HW3_GOT, IMM16_X1_HW3_GOT,
1192 IMM16_X0_HW0_LAST_GOT, IMM16_X1_HW0_LAST_GOT,
1193 IMM16_X0_HW1_LAST_GOT, IMM16_X1_HW1_LAST_GOT,
1194 IMM16_X0_HW2_LAST_GOT, IMM16_X1_HW2_LAST_GOT, IMM16_X0_HW0_TLS_GD,
1195 IMM16_X1_HW0_TLS_GD, IMM16_X0_HW1_TLS_GD, IMM16_X1_HW1_TLS_GD,
1196 IMM16_X0_HW2_TLS_GD, IMM16_X1_HW2_TLS_GD, IMM16_X0_HW3_TLS_GD,
1197 IMM16_X1_HW3_TLS_GD, IMM16_X0_HW0_LAST_TLS_GD,
1198 IMM16_X1_HW0_LAST_TLS_GD, IMM16_X0_HW1_LAST_TLS_GD,
1199 IMM16_X1_HW1_LAST_TLS_GD, IMM16_X0_HW2_LAST_TLS_GD,
1200 IMM16_X1_HW2_LAST_TLS_GD, IMM16_X0_HW0_TLS_IE,
1201 IMM16_X1_HW0_TLS_IE, IMM16_X0_HW1_TLS_IE, IMM16_X1_HW1_TLS_IE,
1202 IMM16_X0_HW2_TLS_IE, IMM16_X1_HW2_TLS_IE, IMM16_X0_HW3_TLS_IE,
1203 IMM16_X1_HW3_TLS_IE, IMM16_X0_HW0_LAST_TLS_IE,
1204 IMM16_X1_HW0_LAST_TLS_IE, IMM16_X0_HW1_LAST_TLS_IE,
1205 IMM16_X1_HW1_LAST_TLS_IE, IMM16_X0_HW2_LAST_TLS_IE,
1206 IMM16_X1_HW2_LAST_TLS_IE, TLS_DTPMOD64, TLS_DTPOFF64, TLS_TPOFF64,
1207 TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
1208 * targets.c (bfd_elf32_tilegx_vec): Declare.
1209 (bfd_elf32_tilepro_vec): Declare.
1210 (bfd_elf64_tilegx_vec): Declare.
1211 (bfd_target_vector): Add bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
1212 and bfd_elf64_tilegx_vec.
1213 * cpu-tilegx.c: New file.
1214 * cpu-tilepro.c: New file.
1215 * elf32-tilepro.h: New file.
1216 * elf32-tilepro.c: New file.
1217 * elf32-tilegx.c: New file.
1218 * elf32-tilegx.h: New file.
1219 * elf64-tilegx.c: New file.
1220 * elf64-tilegx.h: New file.
1221 * elfxx-tilegx.c: New file.
1222 * elfxx-tilegx.h: New file.
1223
7686d77d
AM
12242011-06-13 Alan Modra <amodra@gmail.com>
1225
1226 * linker.c (bfd_link_hash_traverse): Follow warning symbol link.
1227 (_bfd_generic_link_write_global_symbol, fix_syms): Don't handle
1228 warning symbols here.
1229 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
1230 * elf32-arm.c (allocate_dynrelocs_for_symbol,
1231 elf32_arm_readonly_dynrelocs): Likewise.
1232 * elf32-bfin.c (bfin_discard_copies): Likewise.
1233 * elf32-cris.c (elf_cris_adjust_gotplt_to_got,
1234 elf_cris_discard_excess_dso_dynamics,
1235 elf_cris_discard_excess_program_dynamics): Likewise.
1236 * elf32-hppa.c (allocate_plt_static, allocate_dynrelocs,
1237 clobber_millicode_symbols, readonly_dynrelocs): Likewise.
1238 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
1239 * elf32-i386.c (elf_i386_allocate_dynrelocs,
1240 elf_i386_readonly_dynrelocs): Likewise.
1241 * elf32-lm32.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
1242 * elf32-m32c.c (m32c_relax_plt_check, m32c_relax_plt_realloc): Likewise.
1243 * elf32-m32r.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
1244 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
1245 * elf32-microblaze.c (allocate_dynrelocs): Likewise.
1246 * elf32-ppc.c (allocate_dynrelocs, maybe_set_textrel): Likewise.
1247 * elf32-s390.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
1248 * elf32-score.c (score_elf_sort_hash_table_f): Likewise.
1249 * elf32-score7.c (score_elf_sort_hash_table_f): Likewise.
1250 * elf32-sh.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
1251 * elf32-tic6x.c (elf32_tic6x_allocate_dynrelocs,
1252 elf32_tic6x_readonly_dynrelocs): Likewise.
1253 * elf32-vax.c (elf_vax_discard_copies): Likewise.
1254 * elf32-xstormy16.c (xstormy16_relax_plt_check,
1255 xstormy16_relax_plt_realloc): Likewise.
1256 * elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Likewise.
1257 * elf64-alpha.c (elf64_alpha_output_extsym,
1258 elf64_alpha_calc_got_offsets_for_symbol,
1259 elf64_alpha_calc_dynrel_sizes, elf64_alpha_size_rela_got_1): Likewise.
1260 * elf64-hppa.c (elf64_hppa_mark_exported_functions,
1261 allocate_global_data_opd, elf64_hppa_mark_milli_and_exported_functions,
1262 elf_hppa_unmark_useless_dynamic_symbols,
1263 elf_hppa_remark_useless_dynamic_symbols): Likewise.
1264 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref, func_desc_adjust,
1265 adjust_opd_syms, adjust_toc_syms, allocate_dynrelocs,
1266 readonly_dynrelocs, merge_global_got, reallocate_got,
1267 undo_symbol_twiddle): Likewise.
1268 * elf64-s390.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
1269 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
1270 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs,
1271 elf_x86_64_readonly_dynrelocs): Likewise.
1272 * elflink.c (elf_link_renumber_hash_table_dynsyms,
1273 elf_link_renumber_local_hash_table_dynsyms, _bfd_elf_export_symbol,
1274 _bfd_elf_link_find_version_dependencies,
1275 _bfd_elf_link_assign_sym_version, _bfd_elf_adjust_dynamic_symbol,
1276 _bfd_elf_link_sec_merge_syms, elf_adjust_dynstr_offsets,
1277 elf_collect_hash_codes, elf_collect_gnu_hash_codes,
1278 elf_renumber_gnu_hash_syms, elf_gc_sweep_symbol,
1279 elf_gc_propagate_vtable_entries_used,
1280 elf_gc_smash_unused_vtentry_relocs, bfd_elf_gc_mark_dynamic_ref_symbol,
1281 elf_gc_allocate_got_offsets): Likewise.
1282 * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free,
1283 elfNN_ia64_global_dyn_sym_thunk): Likewise.
1284 * elfxx-mips.c (mips_elf_check_symbols, mips_elf_output_extsym,
1285 mips_elf_sort_hash_table_f, allocate_dynrelocs): Likewise.
1286 * elfxx-sparc.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
1287 * i386linux.c (linux_tally_symbols): Likewise.
1288 * m68klinux.c (linux_tally_symbols): Likewise.
1289 * sparclinux.c (linux_tally_symbols): Likewise.
1290 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
1291 * xcofflink.c (xcoff_post_gc_symbol): Likewise.
1292
1293 * elflink.c (elf_link_output_extsym): Make it a bfd_hash_traverse
1294 function. Update all callers.
1295 * aoutx.h (aout_link_write_other_symbol): Likewise.
1296 * pdp11.c (aout_link_write_other_symbol): Likewise.
1297 * cofflink.c (_bfd_coff_write_global_sym): Likewise.
1298 * ecoff.c (ecoff_link_write_external): Likewise.
1299 * xcofflink.c (xcoff_write_global_symbol): Likewise.
1300 * vms-alpha.c (alpha_vms_link_output_symbol): Likewise. Handle
1301 warning symbols.
1302 * ecoff.c (ecoff_link_hash_traverse): Delete.
1303 * coff-ppc.c (ppc_bfd_coff_final_link): Use bfd_hash_traverse for
1304 _bfd_coff_write_global_sym.
1305 * libcoff-in.h (_bfd_coff_write_global_sym): Update prototype.
1306 * libcoff.h: Regenerate.
1307
894891db
NC
13082011-06-10 Nick Clifton <nickc@redhat.com>
1309
1310 * elflink.c (_bfd_elf_link_create_dynamic_sections): If the
1311 backend does not provide a function for creating dynamic sections
1312 then fail.
1313 (bfd_elf_final_link): Issue a warning message if a dynamic section
1314 has the SHT_NOTE type.
1315 (bfd_elf_final_link): Do not look for dynamic strings in a section
1316 that does not have the SHT_STRTAB type or the name .dynstr.
1317 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Fail if the got
1318 section is not in the output binary.
1319 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Likewise.
1320
d17fe7b7
TG
13212011-06-09 Tristan Gingold <gingold@adacore.com>
1322
1323 * elfnn-ia64.c (elfNN_ia64_relax_section, elfNN_ia64_choose_gp)
1324 (elfNN_ia64_relocate_section, elfNN_vms_object_p): Remove trailing
1325 spaces.
1326
8076289e
TG
13272011-06-09 Tristan Gingold <gingold@adacore.com>
1328
1329 * bfd.c (bfd_get_sign_extend_vma): Handle aixcoff.
1330
ba85c43e
NC
13312011-06-09 Nick Clifton <nickc@redhat.com>
1332
1333 PR ld/12845
1334 * elf.c (_bfd_elf_init_private_section_data): Add an assertion
1335 that the output section has an allocated bfd_elf_section_data
1336 structure.
1337 * elfxx-mips.c (mips_elf_check_symbols): Do not create a stub for
1338 symbols in sections that have been removed by garbage collection.
1339
adc7571d
L
13402011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1341
1342 * elf64-x86-64.c (elf_x86_64_check_relocs): Allow R_X86_64_64
1343 relocations in SEC_DEBUGGING sections when building shared
1344 libraries.
1345
24007750
L
13462011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1347
1348 PR ld/12851
1349 * elflink.c (elf_gc_sweep): Don't check SHT_NOTE sections here.
1350 (bfd_elf_gc_sections): Also check SHT_NOTE sections.
1351
e79064fe
TG
13522011-06-08 Tristan Gingold <gingold@adacore.com>
1353
1354 * makefile.vms (OBJS): Add elfxx-ia64.obj
1355 Remove vax case.
1356
d3aeb6ee
AM
13572011-06-08 Alan Modra <amodra@gmail.com>
1358
1359 * aix386-core.c, * cisco-core.c, * hpux-core.c, * osf-core.c,
1360 * sco5-core.c: Init match_priority field.
1361
2a41f396
AM
13622011-06-08 Alan Modra <amodra@gmail.com>
1363
1364 * elflink.c (_bfd_elf_archive_symbol_lookup): Follow warning and
1365 indirect links here.
1366
1d859532
JB
13672011-06-07 Joel Brobecker <brobecker@adacore.com>
1368
1369 * irix-core.c (irix_core_vec): Add match_priority field.
1370
0aabe54e
AM
13712011-06-06 Alan Modra <amodra@gmail.com>
1372
1373 * targets.c (bfd_target): Make ar_max_namelen an unsigned char.
1374 Add match_priority.
1375 * configure.in: Bump bfd version.
1376 * elfcode.h (elf_object_p): Delete hacks preventing match of
1377 EM_NONE and ELFOSABI_NONE targets when a better match exists.
1378 * elfxx-target.h (elf_match_priority): Define and use.
1379 * format.c (bfd_check_format_matches): Use target match_priority
1380 to choose best of multiple matching targets. In cases with multiple
1381 matches rerun _bfd_check_format if we don't choose the last match.
1382 * aout-adobe.c, * aout-arm.c, * aout-target.h, * aout-tic30.c,
1383 * binary.c, * bout.c, * coff-alpha.c, * coff-i386.c, * coff-i860.c,
1384 * coff-i960.c, * coff-ia64.c, * coff-mips.c, * coff-or32.c,
1385 * coff-ppc.c, * coff-rs6000.c, * coff-sh.c, * coff-tic30.c,
1386 * coff-tic54x.c, * coff-x86_64.c, * coff64-rs6000.c, * coffcode.h,
1387 * i386msdos.c, * i386os9k.c, * ieee.c, * ihex.c, * mach-o-target.c,
1388 * mipsbsd.c, * mmo.c, * nlm-target.h, * oasys.c, * pdp11.c,
1389 * pe-mips.c, * pef.c, * plugin.c, * ppcboot.c, * som.c, * srec.c,
1390 * tekhex.c, * trad-core.c, * verilog.c, * versados.c, * vms-alpha.c,
1391 * vms-lib.c, * xsym.c: Init match_priority field.
1392 * configure: Regenerate.
1393 * bfd-in2.h: Regenerate.
1394
70b554c9
L
13952011-06-04 H.J. Lu <hongjiu.lu@intel.com>
1396
1397 PR ld/12842
1398 * elfcode.h (elf_object_p): Revert the last change.
1399
d50ec8a7
AM
14002011-06-04 Alan Modra <amodra@gmail.com>
1401
1402 * archures.c (bfd_arch_get_compatible): If one arch is unknown,
1403 return the other arch.
1404 * elfcode.h (elf_object_p): Allow explicit match to generic ELF
1405 target.
1406
164a5cb7
NC
14072011-06-03 Bertram Felgenhauer <bertram.felgenhauer@gmail.com>
1408
1409 PR ld/12682
1410 * hash.c (higher_primer_number): Add more, small, prime numbers.
1411 (bfd_hash_set_default_size): Likewise.
1412
cc643b88
NC
14132011-06-02 Nick Clifton <nickc@redhat.com>
1414
1415 * coff-mcore.c: Fix spelling typo.
1416 * coff-stgo32.c: Likewise.
1417 * elf32-arm.c: Likewise.
1418 * elf32-avr.c: Likewise.
1419 * elf-m68hc1x.c: Likewise.
1420 * elf32-mcore.c: Likewise.
1421 * elf32-mep.c: Likewise.
1422 * elf32-mt.c: Likewise.
1423 * elf32-ppc.c: Likewise.
1424 * elf32-xtensa.c: Likewise.
1425 * elf64-ppc.c: Likewise.
1426 * elfxx-mips.c: Likewise.
1427 * netbsd.h: Likewise.
1428 * nlmcode.h: Likewise.
1429 * vms-alpha.c: Likewise.
1430 * po/bfd.pot: Regenerate.
1431 * po/SRC-POTFILES.in: Regenerate.
1432
4c422395
DD
14332011-06-01 DJ Delorie <dj@redhat.com>
1434
1435 * config.bfd: Add bfd_elf32_rx_be_ns_vec.
1436 * target.c: Likewise.
1437 * configure.in: Likewise.
1438 * configure.in: Regenerate.
1439 * elf32-rx.c: Add elf32-rx-be-ns target.
1440 (rx_elf_object_p): Never allow the be-ns target by default,
1441 only allow it if the user requests it.
1442
4b819e1f
L
14432011-06-01 H.J. Lu <hongjiu.lu@intel.com>
1444
1445 * elf32-i386.c (elf_i386_size_dynamic_sections): Properly warn
1446 relocation in readonly section in a shared object.
1447 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
1448
74ce8de7
NC
14492011-05-31 Nick Clifton <nickc@redhat.com>
1450
1451 * archive.c (adjust_relative_path): Fix comment to prevent it
1452 corrupting the auto-generated bfd.h.
1453
63e1a0fc
PB
14542011-05-31 Paul Brook <paul@codesourcery.com>
1455
1456 * elf32-arm.c (elf32_arm_final_link_relocate): Only do bl conversion
1457 for known functions.
1458 (elf32_arm_swap_symbol_in): Only set ST_BRANCH_TO_ARM for function
1459 symbols.
1460
12352d3f
PB
14612011-05-31 Paul Brook <paul@codesourcery.com>
1462
1463 * elf32-arm.c (arm_stub_is_thumb): Add
1464 arm_stub_long_branch_v4t_thumb_tls_pic.
1465 (elf32_arm_final_link_relocate): TLS stubs are always ARM.
1466 Handle Thumb stubs.
1467
c4948609
NC
14682011-05-27 Nick Clifton <nickc@redhat.com>
1469
1470 PR binutils/12710
1471 * archive.c (_bfd_get_elt_at_filepos): Set correct error value if
1472 unable to read a file pointed to by an entry in a thin archive.
1473 (adjust_relative_path): Use lrealpath to canonicalize paths.
1474 Handle the case where the reference path is above the current
1475 path in the directory tree.
1476
6769d501
L
14772011-05-26 H.J. Lu <hongjiu.lu@intel.com>
1478
1479 PR ld/12809
1480 * elf64-x86-64.c (elf_x86_64_relocate_section): Handle
1481 R_X86_64_TPOFF64 in executable.
1482
2676a7d9
AM
14832011-05-26 Alan Modra <amodra@gmail.com>
1484
1485 * elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Remove most of comment.
1486 * elflink.c (_bfd_elf_symbol_refs_local_p): Expand
1487 local_protected comment.
1488
cbe79dfe
TG
14892011-05-25 Tristan Gingold <gingold@adacore.com>
1490
1491 * configure.in (bfd_elf32_ia64_big_vec, bfd_elf32_ia64_hpux_big_vec)
1492 (bfd_elf64_ia64_big_vec, bfd_elf64_ia64_hpux_big_vec)
1493 (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_vms_vec): Add elfxx-ia64.lo
1494 * Makefile.am (BFD64_BACKENDS): Add elfxx-ia64.lo
1495 (BFD64_BACKENDS_CFILES): Add elfxx-ia64.c
1496 (elf32-ia64.c): Created from elfnn-ia64.c
1497 (elf64-ia64.c): Likewise.
1498 * elfxx-ia64.h: New file.
1499 * elfxx-ia64.c: Split with elfnn-ia64.c. Keep only the following
1500 functions.Includes elfxx-ia64.h.
1501 (elfNN_ia64_reloc): Renames to ia64_elf_reloc. Adjust error message.
1502 (IA64_HOWTO): Adjust.
1503 (lookup_howto): Renames to ia64_elf_lookup_howto. Make it public.
1504 (elfNN_ia64_reloc_type_lookup): Renames to
1505 ia64_elf_reloc_type_lookup. Make it public. Adjust calls.
1506 (elfNN_ia64_reloc_name_lookup): Renames to
1507 ia64_elf_reloc_name_lookup. Make it public.
1508 (elfNN_ia64_relax_br): Renames to ia64_elf_relax_br. Make it public.
1509 (elfNN_ia64_relax_brl): Renames to ia64_elf_relax_brl. Make it
1510 public.
1511 (elfNN_ia64_relax_ldxmov): Renames to ia64_elf_relax_ldxmov.
1512 Move it and make it public. Move prototype to elfxx-ia64.h
1513 (elfNN_ia64_install_value): Renames to ia64_elf_install_value.
1514 Move prototype to elfxx-ia64.h
1515 * elfnn-ia64.c: New file, split from elfxx-ia64.c.
1516 (elfNN_ia64_info_to_howto): Adjust calls.
1517 (elfNN_ia64_relax_section): Adjust calls.
1518 (count_dyn_reloc): Fix typo.
1519 (elfNN_ia64_relocate_section): Adjust calls.
1520 (elfNN_ia64_finish_dynamic_symbol): Likewise.
1521 (bfd_elfNN_bfd_reloc_type_lookup)
1522 (bfd_elfNN_bfd_reloc_name_lookup): Adjust macros.
1523 * configure: Regenerate.
1524 * Makefile.in: Regenerate.
1525
1ce74905
DD
15262011-05-23 DJ Delorie <dj@redhat.com>
1527
1528 * elf32-rx.c (rx_elf_object_p): When reading an RX object in, undo
1529 the vma/lma swapping done in elf32_rx_modify_program_headers.
1530
997fbe36
NC
15312011-05-23 Nick Clifton <nickc@redhat.com>
1532
1533 * elf-m10300.c (mn10300_elf_mkobject): New function.
1534 (bfd_elf32_mkobject): Define.
1535
6061a67d
AM
15362011-05-23 Alan Modra <amodra@gmail.com>
1537
1538 * elf-bfd.h: Comment typo fix.
1539 * elf32-ppc.c (struct ppc_elf_dyn_relocs): Delete. Replace with
1540 struct elf_dyn_relocs throughout.
1541 * elf64-ppc.c (struct ppc_dyn_relocs): Likewise.
1542
25f53a85
AM
15432011-05-23 Alan Modra <amodra@gmail.com>
1544
1545 * elf32-frv.c: Use info->callbacks->einfo throughout file in linker
1546 functions rather than warning callback or _bfd_error_handler.
1547 * elf32-ppc.c: Likewise.
1548 * elf64-ppc.c: Likewise.
1549 * elf32-ppc.c (ppc_elf_tls_optimize): Use %H in __tls_get_addr lost
1550 arg error.
1551 * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
1552
6de6a7fe
AM
15532011-05-23 Alan Modra <amodra@gmail.com>
1554
1555 PR 12763
1556 * elf.c (assign_file_positions_for_load_sections): Set sh_offset for
1557 .tbss, and page align same for all SHT_NOBITS sections.
1558
86b2281f
AM
15592011-05-21 Alan Modra <amodra@gmail.com>
1560
1561 PR 12763
1562 * elf.c (_bfd_elf_make_section_from_shdr): Set up TLS section LMAs
1563 from PT_TLS header.
1564 (_bfd_elf_map_sections_to_segments): Don't create a final PT_LOAD
1565 segment if just for .tbss.
1566 (assign_file_positions_for_load_sections): Don't report "can't
1567 allocate in segment" errors for .tbss.
1568 (assign_file_positions_for_non_load_sections): Don't set p_filesz
1569 from SHT_NOBITS section filepos.
1570
4a732032
BS
15712011-05-20 Bernd Schmidt <bernds@codesourcery.com>
1572
1573 * elf32-tic6x.c (elf32_tic6x_howto_table): Add entries for
1574 R_C6000_PCR_H16 and R_C6000_PCR_L16.
1575 (elf32_tic6x_relocate_section): Handle them.
1576
dd98f8d2
NC
15772011-05-18 Nick Clifton <nickc@redhat.com>
1578
1579 PR ld/12761
1580 * elflink.c (elf_link_add_object_symbols): Process .gnu.warning
1581 sections when building shared libraries.
1582
9c489990
NC
15832011-05-18 Rafał Krypa <r.krypa@samsung.com>
1584
1585 PR ld/12778
1586 * elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic
1587 reloc pointer.
1588
5ccfed9b
TG
15892011-05-18 Tristan Gingold <gingold@adacore.com>
1590
1591 * xcofflink.c (xcoff_link_add_symbols): Handle C_DWARF symbols.
1592 (xcoff_sweep): Always keep dwarf sections.
1593 (xcoff_link_input_bfd): Handle dwarf symbols and sections.
1594
85645aed
TG
15952011-05-18 Tristan Gingold <gingold@adacore.com>
1596
1597 * libxcoff.h (struct xcoff_dwsect_name): New type.
1598 (XCOFF_DWSECT_NBR_NAMES): New macro.
1599 (xcoff_dwsect_names): Declare.
1600 * coffcode.h (sec_to_styp_flags): Handle xcoff dwarf sections.
1601 (styp_to_sec_flags): Ditto.
1602 (coff_new_section_hook): Ditto.
1603 (coff_slurp_symbol_table): Handle C_DWARF and C_INFO.
1604 * coff-rs6000.c (xcoff_dwsect_name): New variable.
1605
84bff83f
NC
16062011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
1607
1608 PR ld/12759
1609 * elf32-rx.c (ignore_lma): New variable.
1610 (bfd_elf32_rx_set_target_flags): Add ignore_lma parameter.
1611 (rx_modify_program_headers): Only copy the LMA into the VMA if
1612 ignore_lma is true.
1613
16d96b5b
AM
16142011-05-17 Alan Modra <amodra@gmail.com>
1615
1616 PR ld/12760
1617 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Adjust "notice" call.
1618 * elflink.c (elf_link_add_object_symbols): Likewise.
1619 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
1620
41e04eaa
AM
16212011-05-16 Alan Modra <amodra@gmail.com>
1622
1623 * linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak.
1624
77c56f44
RS
16252011-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1626
1627 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Record both local and
1628 global GOT entries for GOT_PAGE relocations against global symbols.
1629
2a616379
BS
16302011-05-13 Bernd Schmidt <bernds@codesourcery.com>
1631
1632 * config.bfd (tic6x-*-elf, tic6x-*-uclinux): New.
1633 (tic6x-*-*): Replaced by these.
1634 * elf32-tic6x.c (elf32_tic6x_set_osabi): New static function.
1635 (elf32_tic6x_check_relocs): Create dynamic sections if -shared.
1636 (elf_backend_relocs_compatible, elf_backend_post_process_headers):
1637 Define.
1638 (elf32_bed, TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM,
1639 TARGET_BIG_NAME, ELF_OSABI): Redefine twice, and include
1640 "elf32-target.h" two more times.
1641 * configure.in: Handle bfd_elf32_tic6x_linux_be_vec,
1642 bfd_elf32_tic6x_linux_le_vec, bfd_elf32_tic6x_elf_be_vec and
1643 bfd_elf32_tic6x_elf_le_vec.
1644 * configure: Regenerate.
1645
3ac5406b
JB
16462011-05-13 Jan Beulich <jbeulich@novell.com>
1647
1648 * config.bfd: Add targets x86_64-*-pe and x86_64-*-pep.
1649
335e41d4
JK
16502011-05-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1651
1652 * config.in: Regenerated.
1653 * configure: Regenerated.
1654 * configure.in: New tests for HAVE_PRPSINFO_T_PR_PID,
1655 HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID and
1656 HAVE_PSINFO32_T_PR_PID.
1657 * elf.c (elfcore_grok_psinfo): Protect reading psinfo.pr_pid by
1658 HAVE_PRPSINFO_T_PR_PID, HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID
1659 and HAVE_PSINFO32_T_PR_PID.
1660 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T_PR_PID): New redefinition.
1661
bc989cdc
JK
16622011-05-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1663
1664 * elf.c (elfcore_grok_psinfo): Initialize CORE_PID for both native and
1665 32bit psinfo.
1666 * elf32-ppc.c (ppc_elf_grok_psinfo): Initialize core_pid.
1667 * elf64-ppc.c (ppc64_elf_grok_psinfo): Likewise.
1668
fbd9ad90
PB
16692011-05-09 Paul Brook <paul@codesourcery.com>
1670
1671 * bfd-in.h (elf32_tic6x_fix_exidx_coverage): Add prototype.
1672 * bfd-in2.h: Regenerate.
1673 * elf32-tic6x.c: Include limits.h.
1674 (tic6x_unwind_edit_type, tic6x_unwind_table_edit,
1675 _tic6x_elf_section_data): New.
1676 (elf32_tic6x_section_data): Define.
1677 (elf32_tic6x_new_section_hook): Allocate target specific data.
1678 (elf32_tic6x_add_unwind_table_edit): New function.
1679 (get_tic6x_elf_section_data, elf32_tic6x_adjust_exidx_size,
1680 elf32_tic6x_insert_cantunwind_after, elf32_tic6x_add_low31,
1681 elf32_tic6x_copy_exidx_entry): New functions.
1682 (elf_backend_write_section): Define.
1683
1bce6bd8
PB
16842011-05-09 Paul Brook <paul@codesourcery.com>
1685
1686 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name,
1687 elf32_tic6x_fake_sections): New functions.
1688 (elf_backend_fake_sections): Define.
1689
9cf0e282
PB
16902011-05-09 Paul Brook <paul@codesourcery.com>
1691
1692 * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): New function.
1693 (elf_backend_gc_mark_extra_sections): Define.
1694
730035f7
DK
16952011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
1696
1697 PR ld/12365
1698 * cofflink.c (bfd_coff_link_input_bfd): Check for and warn about
1699 references to symbols defined in discarded sections.
1700
88e59394
DK
17012011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
1702
1703 PR ld/12365
1704 * coffgen.c (coff_write_symbol): Assume input section is its own
1705 output section if output_section member not set.
1706 (coff_write_alien_symbol): Likewise.
1707
310fd250
L
17082011-05-07 H.J. Lu <hongjiu.lu@intel.com>
1709
1710 PR ld/12730
1711 * elf.c (_bfd_elf_section_offset): Check SEC_ELF_REVERSE_COPY.
1712
1713 * elflink.c (elf_link_input_bfd): Reverse copy .ctors/.dtors
41e04eaa 1714 sections if needed.
310fd250
L
1715
1716 * section.c (SEC_ELF_REVERSE_COPY): New.
1717 * bfd-in2.h: Regenerated.
1718
70778fc7
AM
17192011-05-07 Anders Kaseorg <andersk@ksplice.com>
1720
1721 PR 12739
1722 * libbfd.c (bfd_get_8, bfd_get_signed_8): Use const cast.
1723 * bfd-in2.h: Regenerate.
1724
8185f55c
TG
17252011-05-06 Tristan Gingold <gingold@adacore.com>
1726
1727 * vms-alpha.c (evax_section_flags): Remove SEC_IN_MEMORY.
1728 (_bfd_vms_slurp_egsd): Rename old_flags to vms_flags. Handle
1729 any code section. Add comments.
1730 (alpha_vms_object_p): Use void * instead of PTR.
1731 (alpha_vms_create_eisd_for_section): Fix test for setting DZRO.
1732 (build_module_list): Guard against no DST section. Add comments.
1733 (alpha_vms_link_output_symbol): Discard undefined symbols.
1734 (alpha_vms_get_section_contents): Simply memcpy if the section was
1735 already loaded. Fix typo.
1736 (vms_new_section_hook): Use void * instead of PTR.
1737 (vms_alpha_vec): Ditto.
1738
7d24e6a6
RS
17392011-05-06 Richard Sandiford <richard.sandiford@linaro.org>
1740
1741 * elf32-arm.c (cortex_a8_erratum_scan): If the stub is a Thumb
1742 branch to a PLT entry, redirect it to the PLT's Thumb entry point.
1743
c6a8f6e0
BS
17442011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1745
1746 * elf32-tic6x.c (elf32_tic6x_final_link): New function.
1747 (elf32_tic6x_merge_attributes): Do not warn for PID or PIC
1748 mismatch. Choose the lower of the two values.
1749 (bfd_elf32_bfd_final_link): New macro.
1750
7f41df2e
TG
17512011-04-28 Tristan Gingold <gingold@adacore.com>
1752
1753 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Adjust for x_file.
1754 (bfd_xcoff_swap_aux_out): Ditto.
1755 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Ditto.
1756 (bfd_xcoff64_swap_aux_out): Ditto.
1757
9507a174
AM
17582011-05-04 Alan Modra <amodra@gmail.com>
1759
1760 PR ld/12727
1761 * elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear
1762 was_undefined on dot-symbols.
1763
2fbb87f6
PB
17642011-05-03 Paul Brook <paul@codesourcery.com>
1765
1766
1767 * elf32-tic6x.c (elf32_tic6x_howto_table,
1768 elf32_tic6x_howto_table_rel, (elf32_tic6x_gc_sweep_hook,
1769 elf32_tic6x_relocate_section, elf32_tic6x_check_relocs):
1770 Add R_C6000_EHTYPE.
1771
9d4057ee
AM
17722011-05-01 Alan Modra <amodra@gmail.com>
1773
1774 PR ld/12718
1775 * elf32-i386.c (elf_i386_check_relocs): Ensure dynobj set before
1776 creating ifunc sections.
1777 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1778
71e7aa7d
L
17792011-04-30 H.J. Lu <hongjiu.lu@intel.com>
1780
1781 * elf64-x86-64.c (elf_x86_64_merge_symbol): Correct parameter
1782 names.
1783
b5dee4ea
TT
17842011-04-28 Tom Tromey <tromey@redhat.com>
1785
1786 * bfdio.c (memory_bstat): Pass correct size to memset.
1787
e4c93b56
MF
17882011-04-28 Mike Frysinger <vapier@gentoo.org>
1789
1790 * dwarf2.c (dwarf_debug_sections): Mark const.
1791 * elf.c (special_sections): Likewise.
1792 * libbfd-in.h (dwarf_debug_sections): Likewise.
1793 * libbfd.h: Regenerate.
1794
72b016b4
NC
17952011-04-26 Kai Tietz <ktietz@redhat.com>
1796
1797 * coffcode.h (sec_to_styp_flags): Allow linkonce for
1798 debugging sections.
1799
4964e065
TG
18002011-04-26 Tristan Gingold <gingold@adacore.com>
1801
1802 * coff64-rs6000.c: Convert to ISO-C. Remove PARAMS and PTR macros.
1803
35ed3f94
AM
18042011-04-24 Alan Modra <amodra@gmail.com>
1805
1806 PR ld/12365
1807 PR ld/12696
1808 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call.
1809 * linker.c (_bfd_link_hash_newfunc): Clear bitfields.
1810 (_bfd_generic_link_add_one_symbol): Update "notice" call.
1811 * elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when
1812 it is a redef of an IR symbol in a real BFD.
1813
b70321a2
L
18142011-04-22 H.J. Lu <hongjiu.lu@intel.com>
1815
1816 * elf32-i386.c (elf_i386_readonly_dynrelocs): Warn relocation
1817 in readonly section in a shared object.
1818 (elf_i386_size_dynamic_sections): Likewise.
1819 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
1820 (elf_x86_64_size_dynamic_sections): Likewise.
1821
aa715242
L
18222011-04-21 H.J. Lu <hongjiu.lu@intel.com>
1823
1824 PR ld/12694
1825 * elf32-i386.c (elf_i386_readonly_dynrelocs): Skip local IFUNC
1826 symbols.
1827 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
1828
f6df62c8
L
18292011-04-21 H.J. Lu <hongjiu.lu@intel.com>
1830
1831 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Return false
1832 on dynamic symbol error.
1833 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
1834
4bbd5a24
TG
18352011-04-20 Tristan Gingold <gingold@adacore.com>
1836
1837 * config.bfd (alpha*-*-*vms*, ia64*-*-*vms*): Define targ_selvecs.
1838
8ad17b3a
AM
18392011-04-20 Alan Modra <amodra@gmail.com>
1840
1841 * hash.c (bfd_default_hash_table_size): Make it an unsigned long.
1842 (bfd_hash_table_init_n): Overflow checking.
1843 (bfd_hash_set_default_size): Return current size. Take unsigned long
1844 arg. Add 65537 to hash_size primes.
1845 * bfd-in.h (bfd_hash_set_default_size): Update prototype.
1846 * bfd-in2.h: Regenerate.
1847
1b0df531
JK
18482011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1849
1850 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
1851 memmove elements.
1852
595213d4
AM
18532011-04-20 Alan Modra <amodra@gmail.com>
1854
9e6619e2
AM
1855 * libbfd.c (bfd_log2): Do return rounded up value.
1856 * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Replace bfd_log2
1857 call with expanded old round down version of the function.
1858
595213d4
AM
1859 * archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
1860 * elflink.c (elf_link_add_object_symbols): Delete redundant code.
1861
02d00247
AM
18622011-04-20 Alan Modra <amodra@gmail.com>
1863
1864 PR ld/12365
1865 * elfcode.h (elf_slurp_symbol_table): Put common plugin IR symbols
1866 in their own common section.
1867 * elflink.c (elf_link_add_object_symbols): Likewise.
1868 * linker.c (generic_link_check_archive_element): Don't lose flags
1869 if common section is pre-existing.
1870 (_bfd_generic_link_add_one_symbol): Likewise.
1871
24f58f47
AM
18722011-04-20 Alan Modra <amodra@gmail.com>
1873
1874 PR ld/12365
1875 * elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls.
1876 * linker.c (_bfd_generic_link_add_one_symbol): Likewise. Call
1877 multiple_definition regardless of allow_multiple_definition.
1878 * simple.c (simple_dummy_multiple_definition): Update.
1879 * xcofflink.c (xcoff_link_add_symbols): Update multiple_definition
1880 calls.
1881
417236c0
TG
18822011-04-18 Tristan Gingold <gingold@adacore.com>
1883
1884 * coff-rs6000.c: Convert to ISO-C. Remove PARAMS macro.
1885
901f1d17
AM
18862011-04-18 Alan Modra <amodra@gmail.com>
1887
1888 PR ld/12365
1889 PR ld/12672
1890 * bfd.c (BFD_PLUGIN): Define.
1891 (BFD_FLAGS_SAVED, BFD_FLAGS_FOR_BFD_USE_MASK): Add BFD_PLUGIN.
1892 * bfd-in2.h: Regenerate.
1893 * elflink.c (elf_link_output_extsym): Strip undefined plugin syms.
1894 * opncls.c (bfd_make_readable): Don't lose original bfd flags.
1895
63524580
JK
18962011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1897
1898 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
1899 SEC_LOAD.
1900
e21e5835
NC
19012011-04-15 Sergio Durigan Junior <sergiodj@redhat.com>
1902
1903 * elf-bfd.h (struct sdt_note): New struct.
1904 (struct elf_obj_tdata) <sdt_note_head>: New field.
1905 * elf.c (elfobj_grok_stapsdt_note_1): New function.
1906 (elfobj_grok_stapsdt_note): Likewise.
1907 (elf_parse_notes): Added code to treat SystemTap note
1908 sections.
1909
6452a567
RH
19102011-04-12 Richard Henderson <rth@redhat.com>
1911
1912 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not
1913 exclude empty .got sections.
1914
2a750708
L
19152011-04-11 H.J. Lu <hongjiu.lu@intel.com>
1916
1917 * elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound
1918 array access for BFD_RELOC_386_IRELATIVE.
1919
2123f9ad
BS
19202011-04-11 Bernd Schmidt <bernds@codesourcery.com>
1921
1922 * elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field.
1923
f64b2e8d
NC
19242011-04-11 Mark Wielaard <mjw@redhat.com>
1925
1926 PR 10549
1927 * elf-bfd.h (has_ifunc_symbols): Renamed to has_gnu_symbols.
1928 (has_gnu_symbols): Renamed from has_ifunc_symbols.
1929 * elf.c (_bfd_elf_set_osabi): Use new has_gnu_symbols name.
1930 * elf32-arm.c (elf32_arm_add_symbol_hook): Set has_gnu_symbols
1931 also if STB_GNU_UNIQUE symbol binding was seen.
1932 * elf32-i386.c (elf_i386_add_symbol_hook): Likewise.
1933 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
1934 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
1935 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
1936 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
1937 * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
1938
e57278ef
AM
19392011-04-11 Alan Modra <amodra@gmail.com>
1940
1941 * bfd-in.h (bfd_get_section_limit): Don't use rawsize with output
1942 sections.
1943 * libbfd.c (_bfd_generic_get_section_contents): Likewise.
1944 (_bfd_generic_get_section_contents_in_window): Likewise.
1945 * section.c (bfd_get_section_contents): Likewise.
1946 * compress.c (bfd_get_full_section_contents): Likewise.
1947 * elf32-rx.c (rx_final_link): Ignore rawsize.
1948 * elf32-microblaze.c (microblaze_elf_relocate_section): Use correct
1949 bfd with bfd_get_section_limit.
1950 * elfxx-ia64.c (elfNN_ia64_choose_gp): Add "final" parameter. Use
1951 os->size during final link. Update callers.
1952 * bfd-in2.h: Regenerate.
1953
e2ece73c
RS
19542011-04-10 Richard Sandiford <rdsandiford@googlemail.com>
1955
1956 PR ld/12637
1957 * elfxx-mips.c (mips_elf_merge_got_with): Use arg->global_count
1958 as the number of global entries when merging with the primary GOT.
1959
9f973f28
L
19602011-04-09 H.J. Lu <hongjiu.lu@intel.com>
1961
1962 * elf32-i386.c: Update copyright year.
1963 * elf64-x86-64.c: Likewise.
1964
21e68916
KT
19652011-04-09 Kai Tietz <ktietz@redhat.com>
1966
1967 * peXXigen.c (_bfd_XXi_final_link_postscripte): Sort pdata in temporary
1968 buffer and use rawsize for sorting.
1969 * coffcode.h (coff_compute_section_file_positions): Set rawsize
1970 before doing alignment.
1971
62d78908
L
19722011-04-09 H.J. Lu <hongjiu.lu@intel.com>
1973
1974 * elf32-i386.c (elf_i386_relocate_section): Return relocation
1975 error on unsupported relocation.
1976 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1977
2351cae0
L
19782011-04-09 H.J. Lu <hongjiu.lu@intel.com>
1979
1980 PR binutils/12657
1981 * hosts/x86-64linux.h (elf_prstatus32): Replace __pid_t with
1982 pid_t.
1983
959b0961
L
19842011-04-08 H.J. Lu <hongjiu.lu@intel.com>
1985
1986 PR ld/12654
1987 * elf32-i386.c (elf_i386_relocate_section): Check !executable
1988 instead of shared for R_386_TLS_LDO_32.
1989
33b54431
TG
19902011-04-08 Tristan Gingold <gingold@adacore.com>
1991
1992 * Makefile.am (SOURCE_HFILES): Remove xcoff-target.h
1993 * coff-pmac: Remove
1994 * xcoff-target.h: Remove
1995 * Makefile.in: Regenerate.
1996
5d8e6b4d
CC
19972011-04-07 Cary Coutant <ccoutant@google.com>
1998
1999 * dwarf2.c (scan_unit_for_symbols): Check for DW_AT_specification.
2000
44e87ece 20012011-04-07 Paul Brook <paul@codesourcery.com>
33b54431 2002
44e87ece
PB
2003 * elf32-tic6x.c (elf32_tic6x_howto_table): R_C6000_PREL31 is
2004 pc-relative.
2005 (elf32_tic6x_howto_table_rel): Ditto.
2006 (elf32_tic6x_relocate_section): Implement R_C6000_PREL31.
2007 (elf32_tic6x_check_relocs): Ditto.
2008
8c5fc800
JM
20092011-04-06 Joseph Myers <joseph@codesourcery.com>
2010
2011 * config.bfd (thumb-*-oabi): Don't handle in list of obsolete
2012 targets.
2013 (strongarm*, thumb*, xscale*): Remove architectures.
2014 (strongarm-*-kaos*, thumb-*-coff, thumb-*-elf, thumb-epoc-pe*,
2015 thumb-*-pe*, strongarm-*-elf, strongarm-*-coff, xscale-*-elf,
2016 xscale-*-coff): Remove targets.
2017
6f8027ae
TG
20182011-04-01 Tristan Gingold <gingold@adacore.com>
2019
2020 * elfxx-ia64.c: include bfd_stdint.h
2021
c89ce65c
JK
20222011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2023
2024 * elf32-tic6x.c (elf32_tic6x_relocate_section): Remove unused variable
2025 dynobj and its initialization.
2026
545f57c6
TG
20272011-03-31 Tristan Gingold <gingold@adacore.com>
2028
2029 * makefile.vms (DEFS): Add HAVE_bfd_elf64_ia64_vms_vec.
2030 * configure.com: Set BFD_HOST_64BIT_LONG_LONG and
2031 BFD_HOST_LONG_LONG to 1.
2032
083faca9
TG
20332011-03-31 Tristan Gingold <gingold@adacore.com>
2034
2035 * vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning.
2036 (_bfd_vms_write_etir): Ditto.
2037 (_bfd_vms_slurp_etir): Avoid to use intptr_t
2038 * configure.com: Generate bfd_stdint.h
2039
ac145307
BS
20402011-03-31 Bernd Schmidt <bernds@codesourcery.com>
2041
2042 * elf32-tic6x.h (struct elf32_tic6x_params): New.
2043 (elf32_tic6x_setup): Declare.
2044 * elf32-tic6x.c: Include <limits.h>.
2045 (ELF_DYNAMIC_LINKER, DEFAULT_STACK_SIZE, PLT_ENTRY_SIZE): Define.
2046 (struct elf32_tic6x_link_hash_table, struct elf32_link_hash_entry):
2047 New structures.
2048 (elf32_tic6x_link_hash_table, is_tic6x_elf): New macros.
2049 (tic6x_elf_scom_section, tic6x_elf_scom_symbol,
2050 tic6x_elf_scom_symbol_ptr): New static variables.
2051 (elf32_tic6x_howto_table, elf32_tic6x_howto_table_rel,
2052 elf32_tic6x_reloc_map): Add R_C6000_JUMP_SLOT, R_C6000_EHTYPE,
2053 R_C6000_PCR_H16 and R_C6000_PCR_L16.
2054 (elf32_tic6x_link_hash_newfunc, elf32_tic6x_link_hash_table_create,
2055 elf32_tic6x_link_hash_table_free, elf32_tic6x_setup,
2056 elf32_tic6x_using_dsbt, elf32_tic6x_install_rela,
2057 elf32_tic6x_create_dynamic_sections, elf32_tic6x_make_got_dynreloc,
2058 elf32_tic6x_finish_dynamic_symbol, elf32_tic6x_gc_sweep_hook,
2059 elf32_tic6x_adjust_dynamic_symbol): New static functions.
2060 (elf32_tic6x_relocate_section): For R_C6000_PCR_S21, convert branches
2061 to weak symbols as required by the ABI.
2062 Handle GOT and DSBT_INDEX relocs, and copy relocs to the output file
2063 as needed when generating DSBT output.
2064 (elf32_tic6x_check_relocs, elf32_tic6x_add_symbol_hook,
2065 elf32_tic6x_symbol_processing, elf32_tic6x_section_from_bfd_section,
2066 elf32_tic6x_allocate_dynrelocs, elf32_tic6x_size_dynamic_sections,
2067 elf32_tic6x_always_size_sections, elf32_tic6x_modify_program_headers,
2068 elf32_tic6x_finish_dynamic_sections, elf32_tic6x_plt_sym_val,
2069 elf32_tic6x_copy_private_data, elf32_tic6x_link_omit_section_dynsym):
2070 New static functions.
2071 (ELF_MAXPAGESIZE): Define to 0x1000.
2072 (bfd_elf32_bfd_copy_private_bfd_data,
2073 bfd_elf32_bfd_link_hash_table_create,
2074 bfd_elf32_bfd_link_hash_table_free, elf_backend_can_refcount,
2075 elf_backend_want_got_plt, elf_backend_want_dynbss,
2076 elf_backend_plt_readonly, elf_backend_got_header_size,
2077 elf_backend_gc_sweep_hook, elf_backend_modify_program_headers,
2078 elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
2079 elf_backend_check_relocs, elf_backend_add_symbol_hook,
2080 elf_backend_symbol_processing, elf_backend_link_output_symbol_hook,
2081 elf_backend_section_from_bfd_section,
2082 elf_backend_finish_dynamic_symbol, elf_backend_always_size_sections,
2083 elf32_tic6x_size_dynamic_sections, elf_backend_finish_dynamic_sections,
2084 elf_backend_omit_section_dynsym, elf_backend_plt_sym_val): Define.
2085
2086 * bfd/reloc.c (BFD_RELOC_C6000_JUMP_SLOT, BFD_RELOC_C6000_EHTYPE,
2087 BFD_RELOC_C6000_PCR_H16, BFD_RELOC_C6000_PCR_S16): Add.
2088 * bfd/bfd-in2.h: Regenerate.
2089 * bfd/libbfd.h: Regenerate.
2090 * config.bfd: Accept tic6x-*-* instead of tic6x-*-elf.
2091
53dd76d3
TG
20922011-03-31 Tristan Gingold <gingold@adacore.com>
2093
2094 * coffcode.h (coff_slurp_symbol_table): Silently discard C_NULL
2095 entry on xcoff when value is C_NULL_VALUE.
2096
20972011-03-31 Tristan Gingold <gingold@adacore.com>
2040caca
TG
2098
2099 * libcoff-in.h (exec_hdr): Remove.
2100 * libcoff.h: Regenerate.
2101
3a294fa7
NC
21022011-03-30 Nick Clifton <nickc@redhat.com>
2103
2104 * po/da.po: Updated Danish translation.
2105
e117360e
RH
21062011-03-29 Richard Henderson <rth@redhat.com>
2107
2108 * elf64-alpha.c (elf64_alpha_gc_mark_hook): New.
2109 (elf64_alpha_gc_sweep_hook): New.
2110 (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): New.
2111 (elf_backend_can_gc_sections): New.
2112
5b806d27
NC
21132011-03-26 John Marino <binutils@marino.st>
2114
2115 * config.bfd: Add x86_64-*-dragonfly*, fix i386-*-dragonfly*.
2116 * configure.in: Delete unused bfd_elf32_i386_dragonfly_vec.
2117 * configure: Regenerate.
2118
b42adabf
NC
21192011-03-25 Michael Snyder <msnyder@vmware.com>
2120
2121 * coffcode.h (coff_set_alignment_hook): Check return of bfd_seek.
2122
a283ff93
TG
21232011-03-25 Tristan Gingold <gingold@adacore.com>
2124
2125 * vms-alpha.c (_bfd_vms_find_nearest_dst_line): Allow the use
2126 of find_nearest_line on object files.
2127
cf6b8767
TG
21282011-03-25 Tristan Gingold <gingold@adacore.com>
2129
2130 * vms-alpha.c (evax_section_flags): Make $CODE$ section read-only.
2131 Minor reordering.
2132 (alpha_vms_create_eisd_for_section): Make code sections read-only.
2133
663a1470
AM
21342011-03-24 Alan Modra <amodra@gmail.com>
2135
2136 * elf32-ppc.c (ppc_elf_tls_optimize): Catch more cases where
2137 old-style __tls_get_addr calls without marker relocs don't match
2138 their arg setup insn one for one. If such mismatches are found
2139 report the reloc and don't do any tls optimization.
2140 * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
2141
dc80f6ae
EW
21422011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
2143
2144 * bfd-in2.h: Regenerate.
2145
8cc66334
EW
21462011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
2147
2148 * archures.c: Add AVR XMEGA architecture information.
2149 * cpu-avr.c (arch_info_struct): Likewise.
2150 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
2151 (elf32_avr_object_p): Likewise.
2152
34e77a92
RS
21532011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
2154
2155 * reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
2156 * bfd-in2.h: Regenerate.
2157 * elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
2158 to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
2159 entry.
2160 (elf32_arm_howto_from_type): Update accordingly.
2161 (elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
2162 (elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
2163 (arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
2164 with an extra noncall_refcount field.
2165 (arm_local_iplt_info): New structure.
2166 (elf_arm_obj_tdata): Add local_iplt.
2167 (elf32_arm_local_iplt): New accessor macro.
2168 (elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
2169 plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
2170 Change tls_type to a bitfield and add is_iplt.
2171 (elf32_arm_link_hash_newfunc): Update accordingly.
2172 (elf32_arm_allocate_local_sym_info): New function.
2173 (elf32_arm_create_local_iplt): Likewise.
2174 (elf32_arm_get_plt_info): Likewise.
2175 (elf32_arm_plt_needs_thumb_stub_p): Likewise.
2176 (elf32_arm_get_local_dynreloc_list): Likewise.
2177 (create_ifunc_sections): Likewise.
2178 (elf32_arm_copy_indirect_symbol): Update after the changes to
2179 elf32_arm_link_hash_entry. Assert the is_iplt has not yet been set.
2180 (arm_type_of_stub): Add an st_type argument. Use elf32_arm_get_plt_info
2181 to get PLT information. Assert that all STT_GNU_IFUNC references
2182 are turned into PLT references.
2183 (arm_build_one_stub): Pass the symbol type to
2184 elf32_arm_final_link_relocate.
2185 (elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
2186 (elf32_arm_allocate_irelocs): New function.
2187 (elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
2188 all R_ARM_IRELATIVE.
2189 (elf32_arm_allocate_plt_entry): New function.
2190 (elf32_arm_populate_plt_entry): Likewise.
2191 (elf32_arm_final_link_relocate): Add an st_type parameter.
2192 Set srelgot to null for static objects. Use separate variables
2193 to record which st_value and st_type should be used when generating
2194 a dynamic relocation. Use elf32_arm_get_plt_info to find the
2195 symbol's PLT information, setting has_iplt_entry, splt,
2196 plt_offset and gotplt_offset accordingly. Check whether
2197 STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
2198 the relocation target accordingly. Broaden assert to include
2199 .iplts. Don't set sreloc for static relocations. Assert that
2200 we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
2201 and R_ARM_ABS32_NOI. Generate R_ARM_IRELATIVE relocations instead
2202 of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
2203 symbol. Pass the symbol type to arm_type_of_stub. Conditionally
2204 resolve GOT references to the .igot.plt entry.
2205 (elf32_arm_relocate_section): Update the call to
2206 elf32_arm_final_link_relocate.
2207 (elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
2208 information. Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
2209 relocations in shared libraries and relocatable executables.
2210 Count non-call PLT references. Use elf32_arm_get_local_dynreloc_list
2211 to get the list of dynamic relocations for a local symbol.
2212 (elf32_arm_check_relocs): Always create ifunc sections. Set isym
2213 at the same time as setting h. Use elf32_arm_allocate_local_sym_info
2214 to allocate local symbol information. Treat R_ARM_REL32 and
2215 R_ARM_REL32_NOI as call relocations in shared libraries and
2216 relocatable executables. Record PLT information for local
2217 STT_GNU_IFUNC functions as well as global functions. Count
2218 non-call PLT references. Use elf32_arm_get_local_dynreloc_list
2219 to get the list of dynamic relocations for a local symbol.
2220 (elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
2221 Don't remove STT_GNU_IFUNC PLTs unless all references have been
2222 removed. Update after the changes to elf32_arm_link_hash_entry.
2223 (allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
2224 entries should live in .plt or .iplt. Check whether the .igot.plt
2225 and .got entries can be combined. Use elf32_arm_allocate_plt_entry
2226 to allocate .plt and .(i)got.plt entries. Detect which .got
2227 entries will need R_ARM_IRELATIVE relocations and use
2228 elf32_arm_allocate_irelocs to allocate them. Likewise other
2229 non-.got dynamic relocations.
2230 (elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
2231 and dynamic relocations for local STT_GNU_IFUNC symbols.
2232 Check whether the .igot.plt and .got entries can be combined.
2233 Detect which .got entries will need R_ARM_IRELATIVE relocations
2234 and use elf32_arm_allocate_irelocs to allocate them. Use stashed
2235 section pointers intead of strcmp checks. Handle iplt and igotplt.
2236 (elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
2237 to fill in .plt, .got.plt and .rel(a).plt entries. Point
2238 STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
2239 resolve to it.
2240 (elf32_arm_output_plt_map_1): New function, split out from
2241 elf32_arm_output_plt_map. Handle .iplt entries. Use
2242 elf32_arm_plt_needs_thumb_stub_p.
2243 (elf32_arm_output_plt_map): Call it.
2244 (elf32_arm_output_arch_local_syms): Add mapping symbols for
2245 local .iplt entries.
2246 (elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
2247 (elf32_arm_swap_symbol_out): Likewise.
2248 (elf32_arm_add_symbol_hook): New function.
2249 (elf_backend_add_symbol_hook): Define for all targets.
2250
35fc36a8
RS
22512011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
2252
2253 * elf-bfd.h (elf_link_hash_entry): Add target_internal.
2254 * elf.c (swap_out_syms): Set st_target_internal for each
2255 Elf_Internal_Sym.
2256 * elfcode.h (elf_swap_symbol_in): Likewise.
2257 * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
2258 * elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
2259 * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
2260 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
2261 * elflink.c (elf_link_output_extsym): Likewise.
2262 (bfd_elf_final_link): Likewise.
2263 (elf_link_add_object_symbols): Copy st_target_internal
2264 to the hash table if we see a definition.
2265 (_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
2266 * elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
2267 a branch_type field.
2268 (a8_erratum_fix, a8_erratum_reloc): Likewise.
2269 (arm_type_of_stub): Replace actual_st_type with an
2270 actual_branch_type parameter.
2271 (arm_build_one_stub): Use branch types rather than st_types to
2272 determine the type of branch.
2273 (cortex_a8_erratum_scan): Likewise.
2274 (elf32_arm_size_stubs): Likewise.
2275 (bfd_elf32_arm_process_before_allocation): Likewise.
2276 (allocate_dynrelocs_for_symbol): Likewise.
2277 (elf32_arm_finish_dynamic_sections): Likewise.
2278 (elf32_arm_final_link_relocate): Replace sym_flags parameter with
2279 a branch_type parameter.
2280 (elf32_arm_relocate_section): Update call accordingly.
2281 (elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
2282 (elf32_arm_output_map_sym): Initialize st_target_internal.
2283 (elf32_arm_output_stub_sym): Likewise.
2284 (elf32_arm_symbol_processing): Delete.
2285 (elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
2286 Use st_target_internal to record the branch type.
2287 (elf32_arm_swap_symbol_out): Use st_target_internal to test for
2288 Thumb functions.
2289 (elf32_arm_is_function_type): Delete.
2290 (elf_backend_symbol_processing): Likewise.
2291 (elf_backend_is_function_type): Likewise.
2292
cbc704f3
RS
22932011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
2294
2295 * elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
2296 (elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
2297 into the PLT block.
2298
f6e32f6d
RS
22992011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
2300
2301 * elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
2302 may_need_local_target_p and may_become_dynamic_p to classify
2303 the relocation type. Don't check info->symbolic or h->def_regular
2304 when deciding whether to record a potential dynamic reloc.
2305 Don't treat potential dynamic relocs as PLT references.
2306 (elf32_arm_gc_sweep_hook): Update to match. Assert that we don't
2307 try to make the PLT reference count go negative.
2308
b436d854
RS
23092011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
2310
2311 * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
2312 GOT entry here, rather than leaving it to finish_dynamic_symbol.
2313 Only create a dynamic relocation for local references if
2314 info->shared.
2315 (allocate_dynrelocs_for_symbol): Update dynamic relocation
2316 allocation accordingly.
2317 (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
2318
47beaa6a
RS
23192011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
2320
2321 * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
2322 (elf32_arm_add_dynreloc): Likewise.
2323 (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
2324 to allocate dynamic relocations.
2325 (elf32_arm_size_dynamic_sections): Likewise.
2326 (allocate_dynrelocs): Likewise. Rename to
2327 allocate_dynrelocs_for_symbol.
2328 (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
2329 create dynamic relocations.
2330 (elf32_arm_finish_dynamic_symbol): Likewise.
2331
52bc799a
L
23322011-03-12 H.J. Lu <hongjiu.lu@intel.com>
2333
2334 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
2335 x32 GD->IE and GD->LE transitions.
2336 (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
2337 and LD->LE transitions.
2338
e11840f9
AM
23392011-03-10 Alan Modra <amodra@gmail.com>
2340
2341 * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
2342 for LO_DS error message and correct multiple.
2343
aa374f67
AM
23442011-03-10 Alan Modra <amodra@gmail.com>
2345
2346 * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
2347 (ppc64_elf_link_just_syms): New function.
2348 (opd_entry_value): Don't assume big-endian host.
2349 (get_r2off): New function.
2350 (ppc_build_one_stub, ppc_size_one_stub): Use it here.
2351
d59a60e9
MS
23522011-03-06 Michael Snyder <msnyder@vmware.com>
2353
4281caad
MS
2354 * compress.c (bfd_compress_section_contents): Check for out of mem.
2355
17672001
MS
2356 * elf64-x86-64.c (elf_x86_64_relocate_section): Document
2357 that case statement falls through intentionally.
2358
d59a60e9
MS
2359 * elf32-i386.c (elf_i386_relocate_section): Document fall through.
2360
0e29e6e8
AM
23612011-03-04 Alan Modra <amodra@gmail.com>
2362
2363 * archive.c (bsd_write_armap): Don't call stat in deterministic
2364 mode, and don't use st_mtime if stat returns error.
2365
eb00922a
MS
23662011-03-03 Michael Snyder <msnyder@vmware.com>
2367
08c13595
MS
2368 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
2369
d543c50d
MS
2370 * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
2371
c38eb2a6
MS
2372 * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
2373 (aout_link_write_other_symbol): Missing break statement.
2374
8ecc1f20
MS
2375 * dwarf2.c (scan_unit_for_symbols): Stop memory leak.
2376
eb00922a
MS
2377 * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
2378
4a4c5f25
L
23792011-03-03 H.J. Lu <hongjiu.lu@intel.com>
2380
2381 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
2382 x32 IE->LE transition.
2383 (elf_x86_64_relocate_section): Likewise.
2384
ddcf1fcf
BS
23852011-03-02 Bernd Schmidt <bernds@codesourcery.com>
2386
aa374f67
AM
2387 * elflink.c (is_reloc_section): Remove function.
2388 (get_dynamic_reloc_section_name): Construct string manually.
ddcf1fcf 2389
007d6189
KT
23902011-02-28 Kai Tietz <kai.tietz@onevision.com>
2391
2392 * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
2393 (adjust_relative_path): Likewise.
2394 (_bfd_construct_extended_name_table): Likewise.
2395 * corefile.c (generic_core_file_matches_executable_p): Likewise.
2396 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
2397 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
2398 * elf32-spu.c (sort_bfds): Likewise.
2399 (spu_elf_auto_overlay): Likewise.
2400 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
2401 * xcofflink.c (xcoff_set_import_path): Likewise.
2402 * xtensa-isa.c (xtensa_regfile_lookup): Likewise.
2403 (xtensa_regfile_lookup_shortname): Likewise.
2404
8616ad89
AM
24052011-02-28 Alan Modra <amodra@gmail.com>
2406
2407 PR 12513
2408 * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
2409 stringsize. Properly sanity check symdef_count. Remove redundant
2410 bfd_release.
2411
80549d04
RÁE
24122011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
2413
2414 * plugin.c (bfd_plugin_object_p): Correctly set the filesize
2415 and handle claim_file seeking. Only try to load the plugin once.
2416
93b3ac75
AS
24172011-02-22 Andreas Schwab <schwab@redhat.com>
2418
2419 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
2420 relocation read the value from the second GOT slot.
2421
6fa052f0
TG
24222011-02-15 Tristan Gingold <gingold@adacore.com>
2423
2424 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
2425
28be611c
AM
24262011-02-15 Alan Modra <amodra@gmail.com>
2427
2428 * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
2429 toc relocs. Fuss over free(NULL).
2430
93252b1c
MF
24312011-02-14 Mike Frysinger <vapier@gentoo.org>
2432
2433 * elflink.c (bfd_elf_size_dynamic_sections): Add
2434 bfd_get_symbol_leading_char to the start of newname.
2435
822ce8ee
RW
24362011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2437
2438 * configure: Regenerate.
2439
425b145b
AM
24402011-02-09 Alan Modra <amodra@gmail.com>
2441
2442 * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
2443 we are done. When optimising large toc, check that a global
2444 symbol on a toc reloc is defined in a kept section.
2445
82f2dbf7
NC
24462011-02-08 Nick Clifton <nickc@redhat.com>
2447
2448 PR binutils/12467
2449 * elf.c (assign_file_positions_for_load_sections): Set the program
2450 header offset and entry size to zero if there are no program
2451 headers.
2452
df22d223
AM
24532011-02-08 Alan Modra <amodra@gmail.com>
2454
2455 * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
2456 local_syms when looking for local symbols in .toc.
2457
6683a28d
AM
24582011-02-01 Alan Modra <amodra@gmail.com>
2459
2460 * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
2461 for toc pointer on any section having makes_toc_func_call set.
2462 (check_pasted_section): Ensure pasted .init/.fini fragments use
2463 the same toc if any has makes_toc_func_call set.
2464
5240d94d
JM
24652011-01-28 Joseph Myers <joseph@codesourcery.com>
2466
2467 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
2468 field.
2469
ed88c97e
RS
24702011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
2471
2472 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
2473 common sections too.
2474
1a0c107f
L
24752011-01-18 H.J. Lu <hongjiu.lu@intel.com>
2476
04449d86
L
2477 * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
2478 Solaris target.
1a0c107f 2479
d68cd58c
NC
24802011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
2481
2482 Fix compilation for mingw64.
2483 * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
2484 typecast to avoid warning.
2485 * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
2486 usage.
2487 * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
2488 of long for pointer to avoid warning.
2489 (elfNN_ia64_relax_brl): Idem.
2490 (elfNN_ia64_install_value): Idem.
2491 * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
2492
da17376b
RS
24932011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
2494
2495 * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
2496 h->needs_plt when deciding whether to record a possible dynamic reloc.
2497
1e81e12b
RS
24982011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
2499
2500 * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
2501 dynamic relocs for the removed section.
2502
d1534d16
L
25032011-01-15 H.J. Lu <hongjiu.lu@intel.com>
2504
2505 * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
2506 relocations.
2507
248775ba
L
25082011-01-14 H.J. Lu <hongjiu.lu@intel.com>
2509
2510 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
2511 (elf_x86_64_link_hash_table_create): Set pointer_r_type.
2512 (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
2513 for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
2514 R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
2515 (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
2516 for ILP32.
2517
4a97a0e5
AM
25182011-01-14 Alan Modra <amodra@gmail.com>
2519
2520 * bfd.c (bfd_perror): Flush stdout before and stderr after printing
2521 error.
2522 (_bfd_default_error_handler): Likewise.
2523 * elf.c (print_segment_map): Likewise.
2524 * libbfd.c (warn_deprecated): Likewise.
2525 * som.c (som_sizeof_headers): No need to do so here.
2526 * coff-i860.c: Replace use of printf for error messages with
2527 _bfd_error_handler.
2528 * coff-ppc.c: Likewise.
2529 * coff-sh.c: Likewise.
2530 * elf32-bfin.c: Likewise.
2531 * elf32-dlx.c: Likewise.
2532 * elf32-mep.c: Likewise.
2533 * elf32-v850.c: Likewise.
2534 * mach-o.c: Likewise.
2535 * pef.c: Likewise.
2536
82e96e07
L
25372011-01-13 H.J. Lu <hongjiu.lu@intel.com>
2538
2539 * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
2540 swap_reloca_out.
2541 (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
2542 (elf_x86_64_check_relocs): Align relocation section to 4 byte
2543 for 32bit.
2544 (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
2545 ELF_ST_TYPE.
2546 (elf_x86_64_finish_dynamic_symbol): Updated.
2547 (elf_x86_64_finish_dynamic_sections): Don't use
2548 Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
2549 bfd_elf64_swap_dyn_out.
2550
e6a6bb22
AM
25512011-01-14 J. Park <grassman@gmail.com>
2552
2553 PR ld/12339
2554 * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
2555 following bfd_link_hash_warning symbol link.
2556
0855e32b
NS
25572011-01-10 Nathan Sidwell <nathan@codesourcery.com>
2558 Glauber de Oliveira Costa <glommer@gmail.com>
2559
2560 * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
2561 BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
2562 BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
2563 relocations.
2564 * libbfd.h: Rebuilt.
2565 * bfd-in2.h: Rebuilt.
2566 * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
2567 (elf32_arm_reloc_map): Likewise.
2568 (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
2569 (elf32_arm_stub_long_branch_any_tls_pic,
2570 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
2571 (DEF_STUBS): Add new stubs.
2572 (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
2573 (elf32_arm_local_tlsdesc_gotent): New.
2574 (GOT_TLS_GDESC): New mask.
2575 (GOT_TLS_GD_ANY): Define.
2576 (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
2577 (elf32_arm_compute_jump_table_size): New.
2578 (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
2579 num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
2580 sgotplt_jump_table_size fields.
2581 (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
2582 (elf32_arm_link_hash_table_create): Initialize new fields.
2583 (arm_type_of_stub): Check TLS desc relocs too.
2584 (elf32_arm_stub_name): TLS desc relocs can be shared.
2585 (elf32_arm_tls_transition): Determine relaxation.
2586 (arm_stub_required_alignment): Add tls stubs.
2587 (elf32_arm_size_stubs): Likewise.
2588 (elf32_arm_tls_relax): Perform TLS relaxing.
2589 (elf32_arm_final_link_relocate): Process TLS DESC relocations.
2590 (IS_ARM_TLS_GNU_RELOC): New.
2591 (IS_ARM_TLS_RELOC): Use it.
2592 (elf32_arm_relocate_section): Perform TLS relaxing.
2593 (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
2594 desc relocations.
2595 (allocate_dynrelocs): Allocate tls desc relcoations.
2596 (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
2597 symbols.
2598 (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
2599 got slots.
2600 (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
2601 symbol.
2602 (elf32_arm_finish_dynamic_symbol): Adjust.
2603 (arm_put_trampoline): New.
2604 (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
2605 trampolines.
2606 (elf_backend_always_size_sections): Define.
2607
7be86737
L
26082011-01-06 H.J. Lu <hongjiu.lu@intel.com>
2609
2610 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
2611
ae428b57 26122011-01-06 H.J. Lu <hongjiu.lu@intel.com>
3db2e7dd
L
2613
2614 PR ld/12366
2615 PR ld/12371
2616 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
2617 handle symbols marked with regular reference, but not non-GOT
2618 reference when building shared library.
2619
2620 * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
2621 local and global STT_GNU_IFUNC symols when building shared
2622 library.
2623 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
2624
9689e3a3
DD
26252011-01-05 DJ Delorie <dj@redhat.com>
2626
2627 * reloc.c: Add BFD_RELOC_RX_OP_NEG.
2628 * libbfd.h: Regenerate.
2629 * bfd-in2.h: Regenerate.
2630 * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
2631
889a4d3e
L
26322011-01-03 H.J. Lu <hongjiu.lu@intel.com>
2633
2634 * cpu-i386.c (bfd_i386_compatible): New.
2635 (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
2636 with bfd_i386_compatible.
2637 (bfd_x86_64_arch_intel_syntax): Likewise.
2638 (bfd_i386_arch_intel_syntax): Likewise.
2639 (i8086_arch): Likewise.
2640 (bfd_x64_32_arch): Likewise.
2641 (bfd_x86_64_arch): Likewise.
2642 (bfd_i386_arch): Likewise.
2643
9e9e0820 2644For older changes see ChangeLog-2010
56882138
AM
2645\f
2646Local Variables:
2647mode: change-log
2648left-margin: 8
2649fill-column: 74
2650version-control: never
2651End:
This page took 0.689989 seconds and 4 git commands to generate.