]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/ChangeLog
Fix spelling typos.
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
1 2017-07-18 Nick Clifton <nickc@redhat.com>
2
3 PR 21775
4 * coff-sh.c: Fix spelling typos.
5 * compress.c: Likewise.
6 * cpu-pdp11.c: Likewise.
7 * ecofflink.c: Likewise.
8 * elf-m10300.c: Likewise.
9 * elf.c: Likewise.
10 * elf32-arm.c: Likewise.
11 * elf32-m68k.c: Likewise.
12 * elf32-nds32.c: Likewise.
13 * elf32-ppc.c: Likewise.
14 * elf32-sh.c: Likewise.
15 * elf32-v850.c: Likewise.
16 * elf64-ppc.c: Likewise.
17 * elf64-x86-64.c: Likewise.
18 * elflink.c: Likewise.
19 * elfnn-aarch64.c: Likewise.
20 * elfxx-mips.c: Likewise.
21 * som.c: Likewise.
22 * sunos.c: Likewise.
23 * vms-alpha.c: Likewise.
24 * xcofflink.c: Likewise.
25
26 2017-07-18 Nick Clifton <nickc@redhat.com>
27
28 PR binutils/21781
29 * coffcode.h (handle_COMDAT): Replace abort with an error message
30 and return.
31
32 2017-07-17 H.J. Lu <hongjiu.lu@intel.com>
33
34 PR ld/21782
35 * elf64-x86-64.c (elf_x86_64_relocate_section): Limit PIC check
36 to shared library.
37
38 2017-07-17 H.J. Lu <hongjiu.lu@intel.com>
39
40 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
41
42 2017-07-16 Alan Modra <amodra@gmail.com>
43
44 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimize
45 __tls_index GOT entries when using __tls_get_addr_opt stub.
46 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
47
48 2017-07-12 Alan Modra <amodra@gmail.com>
49
50 * po/es.po: Update from translationproject.org/latest/bfd/.
51 * po/fi.po: Likewise.
52 * po/fr.po: Likewise.
53 * po/id.po: Likewise.
54 * po/ja.po: Likewise.
55 * po/ro.po: Likewise.
56 * po/ru.po: Likewise.
57 * po/sr.po: Likewise.
58 * po/sv.po: Likewise.
59 * po/tr.po: Likewise.
60 * po/uk.po: Likewise.
61 * po/vi.po: Likewise.
62 * po/zh_CN.po: Likewise.
63 * po/hr.po: New file from translationproject.org.
64 * configure.ac (ALL_LINGUAS): Add hr. Sort.
65 * configure: Regenerate.
66
67 2017-07-12 Nick Clifton <nickc@redhat.com>
68
69 Fix compile time warnings using gcc 7.1.1.
70 * elf32-xtensa.c (elf_xtensa_get_plt_section): Increase length of
71 plt_name buffer.
72 (elf_xtensa_get_gotplt_section): Increase length of got_name
73 buffer.
74 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add a
75 default return of FALSE.
76 * mach-o-i386.c (bfd_mach_o_i386_canonicalize_one_reloc): Add a
77 default return of FALSE.
78
79 2017-07-12 Alan Modra <amodra@gmail.com>
80
81 * binary.c (binary_set_section_contents): Don't print filepos in
82 error message.
83 (coff_write_object_contents): Cast size_t for error message.
84 (coff_slurp_line_table): Don't use bfd_vma symndx.
85 (coff_slurp_reloc_table): Remove unneeded cast.
86 * dwarf2.c (read_section): Cast bfd_int64_t to long long for
87 error message.
88 (find_abstract_instance_name): Likewise.
89 * elf32-arm.c (arm_type_of_stub): Correct error arg order.
90 (bfd_elf32_arm_stm32l4xx_erratum_scan): Don't cast error arg.
91 (elf32_arm_check_relocs): Make r_symndx an int.
92 * elf32-cris.c (cris_elf_check_relocs): Delete extraneous %s in
93 format string.
94 * elf32-metag.c (elf_metag_relocate_section): Delete extra error
95 message arg.
96 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Rewrite bogus
97 error message.
98 * elf32-i386.c (elf_i386_check_relocs): Make r_symndx an int.
99 * elf32-s390.c (elf_s390_check_relocs): Likewise.
100 * elf32-tic6x.c (elf32_tic6x_check_relocs): Likewise.
101 * elf32-tilepro.c (tilepro_elf_check_relocs): Likewise.
102 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
103 * elf64-s390.c (elf_s390_check_relocs): Likewise.
104 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
105 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Likewise.
106 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
107 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
108 * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
109 * elf64-mmix.c (_bfd_mmix_after_linker_allocation): Cast size_t args
110 and use %lu for error message.
111 * elflink.c (elf_link_adjust_relocs): Delete extra error message arg.
112 * mmo.c (mmo_scan): Make stab_loc a file_ptr. Cast expression for
113 error message.
114
115 * elf32-arm.c (elf32_arm_tls_relax): Correct format string and args
116 in error message.
117 (elf32_arm_final_link_relocate): Likewise.
118 * coff-arm.c (bfd_arm_process_before_allocation): Likewise.
119 * coffcode.h (styp_to_sec_flags): Likewise.
120 * cofflink.c (_bfd_coff_write_global_sym): Likewise.
121 * ecoff.c (_bfd_ecoff_slurp_symbol_table): Likewise.
122 * elf32-arc.c (arc_elf_merge_private_bfd_data): Likewise.
123 * elf32-bfin.c (bfinfdpic_check_relocs): Likewise.
124 (elf32_bfin_merge_private_bfd_data): Likewise.
125 * elf32-cris.c (cris_elf_relocate_section): Likewise.
126 * elf32-frv.c (frv_elf_merge_private_bfd_data): Likewise.
127 * elf32-i370.c (i370_elf_merge_private_bfd_data): Likewise.
128 (i370_elf_relocate_section): Likewise.
129 * elf32-iq2000.c (iq2000_elf_merge_private_bfd_data): Likewise.
130 * elf32-m32c.c (m32c_elf_merge_private_bfd_data): Likewise.
131 * elf32-m68hc1x.c (_bfd_m68hc11_elf_merge_private_bfd_data): Likewise.
132 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
133 * elf32-mep.c (mep_elf_merge_private_bfd_data): Likewise.
134 * elf32-mt.c (mt_elf_merge_private_bfd_data): Likewise.
135 * elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise.
136 * elfxx-mips.c (mips_elf_merge_obj_e_flags): Likewise.
137 (_bfd_mips_elf_merge_private_bfd_data): Likewise.
138 * ieee.c (ieee_write_id, read_id): Likewise.
139 * mach-o.c (bfd_mach_o_write_contents): Likewise.
140 (bfd_mach_o_layout_commands, bfd_mach_o_read_section_32): Likewise.
141 (bfd_mach_o_read_section_64, bfd_mach_o_read_symtab_symbol): Likewise.
142 (bfd_mach_o_read_command, bfd_mach_o_header_p): Likewise.
143 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Likewise.
144 * stabs.c (_bfd_link_section_stabs): Likewise.
145
146 * coff-arm.c (coff_arm_relocate_section): Use L modifier in error
147 format.
148 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
149 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
150 * coff-rs6000.c (xcoff_reloc_type_toc): Likewise.
151 * coff-sh.c (sh_relax_section): Likewise.
152 (sh_relax_delete_bytes, sh_swap_insns): Likewise.
153 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
154 * coffcode.h (coff_slurp_reloc_table): Likewise.
155 * coffgen.c (_bfd_coff_get_external_symbols): Likewise.
156 (_bfd_coff_read_string_table): Likewise.
157 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
158 * compress.c (bfd_get_full_section_contents): Likewise.
159 * dwarf2.c (read_formatted_entries, decode_line_info): Likewise.
160 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
161 * elf.c (bfd_elf_string_from_elf_section): Likewise.
162 * elf32-arc.c (arc_special_overflow_checks): Likewise.
163 * elf32-arm.c (elf32_arm_tls_relax): Likewise.
164 (elf32_arm_final_link_relocate, elf32_arm_relocate_section): Likewise.
165 (elf32_arm_write_section): Likewise.
166 * elf32-bfin.c (bfin_relocate_section): Likewise.
167 (bfinfdpic_relocate_section): Likewise.
168 * elf32-hppa.c (hppa_build_one_stub): Likewise.
169 (final_link_relocate, elf32_hppa_relocate_section): Likewise.
170 * elf32-i386.c (elf_i386_tls_transition): Likewise.
171 (elf_i386_relocate_section): Likewise.
172 * elf32-ip2k.c (ip2k_final_link_relocate): Likewise.
173 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Likewise.
174 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
175 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
176 * elf32-metag.c (elf_metag_relocate_section): Likewise.
177 * elf32-nds32.c (unrecognized_reloc_msg): Likewise.
178 (nds32_elf_relax_longcall1, nds32_elf_relax_longcall2): Likewise.
179 (nds32_elf_relax_longcall3, nds32_elf_relax_longjump1): Likewise.
180 (nds32_elf_relax_longjump2, nds32_elf_relax_longjump3): Likewise.
181 (nds32_elf_relax_longcall4, nds32_elf_relax_longcall5): Likewise.
182 (nds32_elf_relax_longcall6, nds32_elf_relax_longjump4): Likewise.
183 (nds32_elf_relax_longjump5, nds32_elf_relax_longjump6): Likewise.
184 (nds32_elf_relax_longjump7, nds32_elf_relax_loadstore): Likewise.
185 (nds32_elf_relax_ptr, nds32_elf_ex9_build_hash_table): Likewise.
186 * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
187 * elf32-rx.c (UNSAFE_FOR_PID): Likewise.
188 * elf32-s390.c (invalid_tls_insn, elf_s390_relocate_section): Likewise.
189 * elf32-score.c (s3_bfd_score_elf_check_relocs): Likewise.
190 * elf32-score7.c (s7_bfd_score_elf_check_relocs): Likewise.
191 * elf32-sh.c (sh_elf_relax_section): Likewise.
192 (sh_elf_relax_delete_bytes, sh_elf_swap_insns): Likewise.
193 (sh_elf_relocate_section): Likewise.
194 * elf32-sh64.c (shmedia_prepare_reloc): Likewise.
195 * elf32-spu.c (spu_elf_relocate_section): Likewise.
196 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
197 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
198 * elf32-v850.c (v850_elf_relax_section): Likewise.
199 * elf32-vax.c (elf_vax_check_relocs): Likewise.
200 (elf_vax_relocate_section): Likewise.
201 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
202 (extend_ebb_bounds_forward, extend_ebb_bounds_backward): Likewise.
203 (compute_text_actions, compute_ebb_proposed_actions): Likewise.
204 (do_fix_for_relocatable_link): Likewise.
205 * elf64-alpha.c (elf64_alpha_relax_got_load): Likewise.
206 (elf64_alpha_relax_with_lituse): Likewise.
207 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Likewise.
208 (elf_hppa_final_link_relocate): Likewise.
209 * elf64-ia64-vms.c (elf64_ia64_relax_section): Likewise.
210 (elf64_ia64_choose_gp, elf64_ia64_relocate_section): Likewise.
211 (elf64_vms_link_add_object_symbols): Likewise.
212 * elf64-mmix.c (mmix_elf_perform_relocation): Likewise.
213 (mmix_final_link_relocate): Likewise.
214 * elf64-s390.c (invalid_tls_insn): Likewise.
215 (elf_s390_relocate_section): Likewise.
216 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
217 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
218 (elf_x86_64_relocate_section): Likewise.
219 * elfcode.h (elf_slurp_symbol_table): Likewise.
220 * elfcore.h (elf_core_file_p): Likewise.
221 * elflink.c (elf_link_read_relocs_from_section): Likewise.
222 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
223 (elfNN_aarch64_relocate_section): Likewise.
224 * elfnn-ia64.c (elfNN_ia64_relax_section): Likewise.
225 (elfNN_ia64_choose_gp, elfNN_ia64_relocate_section): Likewise.
226 * elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
227 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
228 (_bfd_mips_elf_relocate_section): Likewise.
229 (_bfd_mips_elf_finish_dynamic_symbol, mips_finish_exec_plt): Likewise.
230 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
231 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
232 * ieee.c (ieee_slurp_external_symbols): Likewise.
233 * ihex.c (ihex_write_object_content): Likewise.
234 * mach-o.c (bfd_mach_o_build_exec_seg_command): Likewise.
235 * merge.c (_bfd_merged_section_offset): Likewise.
236 * mmo.c (mmo_write_loc_chunk): Likewise.
237 (mmo_write_object_contents): Likewise.
238 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Likewise.
239 * stabs.c (_bfd_link_section_stabs): Likewise.
240 * xcofflink.c (xcoff_link_add_symbols, xcoff_find_tc0): Likewise.
241
242 2017-07-11 Alan Modra <amodra@gmail.com>
243
244 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo.
245
246 2017-07-11 Alan Modra <amodra@gmail.com>
247
248 * elf32-ppc.c (ppc_elf_relocate_section): Emit "unexpected
249 instruction" error using _bfd_error_handler, not einfo.
250
251 2017-07-10 Nick Clifton <nickc@redhat.com>
252
253 * coffcode.h (coff_slurp_symbol_table): Do not include an entry
254 for C_AIX_WEAKEXT if it has the same value as C_WEAKEXT.
255
256 2017-07-07 John Baldwin <jhb@FreeBSD.org>
257
258 * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO.
259
260 2017-07-07 Alan Modra <amodra@gmail.com>
261
262 * coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT.
263
264 2017-07-07 Alan Modra <amodra@gmail.com>
265
266 * bfd.c (_doprnt): Replace "L" with "ll" when printing bfd_vma
267 as long long. Move code replacing "ll" with "I64", and simplify.
268
269 2017-07-06 H.J. Lu <hongjiu.lu@intel.com>
270
271 * bfd.c (_doprnt): Convert 'L' to 'l' when setting wide_width
272 to 1.
273
274 2017-07-05 H.J. Lu <hongjiu.lu@intel.com>
275
276 * dwarf2.c (line_info_add_include_dir_stub): Replace time with
277 xtime.
278 (line_info_add_file_name): Likewise.
279 (decode_line_info): Likewise.
280
281 2017-07-04 Tristan Gingold <gingold@adacore.com>
282
283 * version.m4: Bump version to 2.29.51
284 * configure: Regenerate.
285
286 2017-07-04 Jiong Wang <jiong.wang@arm.com>
287
288 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Remove the
289 sanity check at the head of this function.
290
291 2017-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
292
293 * dwarf2.c (struct dwarf2_debug): Add fields dwarf_line_str_buffer and
294 dwarf_line_str_size.
295 (struct attr_abbrev): Add field implicit_const.
296 (dwarf_debug_sections): Add .debug_line_str.
297 (enum dwarf_debug_section_enum): Add debug_line_str and debug_max.
298 (dwarf_debug_section_assert): Add static assertion.
299 (read_indirect_line_string): New.
300 (read_abbrevs): Support DW_FORM_implicit_const.
301 (is_str_attr): Support DW_FORM_line_strp.
302 (read_attribute_value): Support DW_FORM_line_strp and
303 DW_FORM_implicit_const.
304 (read_attribute): Support DW_FORM_implicit_const.
305 (line_info_add_include_dir, line_info_add_include_dir_stub):
306 (line_info_add_file_name, read_formatted_entries): New.
307 (decode_line_info, parse_comp_unit): Support DWARF 5.
308 (_bfd_dwarf2_cleanup_debug_info): Free dwarf_line_str_buffer.
309
310 2017-07-03 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
311
312 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove the
313 abort statement that was put for symbols that are not dynamic.
314
315 2017-07-03 Tristan Gingold <gingold@adacore.com>
316
317 * po/bfd.pot: Regenerate
318
319 2017-07-03 Alan Modra <amodra@gmail.com>
320
321 * bfd.c (_doprnt): Rewrite "ll" and "L" modifiers to "I64" for
322 __MSVCRT__. Support "L" modifier for bfd_vma. Formatting.
323 * elf.c (setup_group): Use "Lx" to print sh_size.
324 (_bfd_elf_setup_sections): Remove unnecessary cast and print
325 unknown section type in hex.
326 (copy_special_section_fields): Style fix.
327 (bfd_section_from_shdr): Correct format for sh_link. Use a
328 common error message for all the variants of unrecognized
329 section types.
330 (assign_file_positions_for_load_sections): Use "Lx" for lma
331 adjust error message.
332 (assign_file_positions_for_non_load_sections): Formatting.
333 (rewrite_elf_program_header): Formatting. Use "Lx" for
334 bfd_vma values in error messages.
335 * elfcode.h (elf_slurp_reloc_table_from_section): Cast
336 ELF_R_SYM value to type expected by format.
337 * elflink.c (elf_link_read_relocs_from_section): Use "Lx"
338 in error messages.
339 (elf_link_add_object_symbols): Use "Lu" for symbol sizes.
340 (elf_link_input_bfd): Use "Lx" for r_info.
341 (bfd_elf_gc_record_vtinherit): Use "Lx" for offset.
342
343 2017-07-03 Alan Modra <amodra@gmail.com>
344
345 * bfd.c (bfd_scan_vma): Don't use long long unless HAVE_LONG_LONG.
346 * coff-rs6000.c (FMT20): Handle hosts with 64-bit long and
347 Microsoft C library variant of long long format specifier.
348 (PRINT20): Cast value to bfd_uint64_t not long long.
349 * coffcode.h (coff_print_aux): Use BFD_VMA_FMT.
350 * coff-x86_64.c (coff_amd64_reloc): Use bfd_uint64_t rather than
351 long long. Don't cast to bfd_vma.
352 * elf32-score.c (score3_bfd_getl48): Likewise.
353 * vms-alpha.c (_bfd_vms_slurp_eisd): Likewise.
354
355 2017-07-03 Alan Modra <amodra@gmail.com>
356
357 * elf.c (_bfd_elf_print_private_bfd_data): Use BFD_VMA_FMT to
358 print d_tag.
359 (bfd_elf_print_symbol): Don't cast symbol->flags.
360 (_bfd_elf_symbol_from_bfd_symbol): Likewise.
361 * elf32-ppc.c (ppc_elf_begin_write_processing): Correct
362 _bfd_error_handler argument order.
363 (ppc_elf_merge_private_bfd_data): Don't cast flags.
364
365 2017-07-03 Alan Modra <amodra@gmail.com>
366
367 * configure.ac: Invoke AC_CHECK_TYPES for long long. Invoke
368 AC_TYPE_LONG_DOUBLE.
369 * configure: Regenerate.
370 * config.in: Regenerate.
371
372 2017-06-29 Andrew Waterman <andrew@sifive.com>
373
374 * elfnn-riscv.c (riscv_elf_adjust_dynamic_symbol): Fix TLS copy
375 relocs.
376
377 2017-06-29 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
378
379 * elfxx-sparc.c (allocate_dynrelocs): Don't make a symbol dynamic
380 unless it is undefined weak.
381 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Set the flag
382 relative_reloc to direct non-dynamic symbols to R_SPARC_RELATIVE
383 relocation.
384 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): If symbol
385 is not dynamic in PIC, abort.
386
387 2017-06-29 Jiong Wang <jiong.wang@arm.com>
388
389 PR ld/21402
390 * elfnn-aarch64.c (elfNN_aarch64_allocate_dynrelocs): Only make
391 undefined weak symbols into dynamic.
392 (elfNN_aarch64_final_link_relocate): Generate runtime RELATIVE
393 relocation for non-dynamic symbols.
394 (elfNN_aarch64_finish_dynamic_symbol): Add sanity check.
395
396 2017-06-29 Jiong Wang <jiong.wang@arm.com>
397
398 * elfnn-aarch64.c (aarch64_relocation_aginst_gp_p): New function.
399 (elfNN_aarch64_final_link_relocate): Delete duplicated code for
400 BFD_RELOC_AARCH64_LD64_GOTOFF_LO15, BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC,
401 BFD_RELOC_AARCH64_MOVW_GOTOFF_G1.
402 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Optimize the
403 support for them.
404
405 2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
406
407 * elf-bfd.h (elfcore_write_s390_gs_cb): Add prototype.
408 (elfcore_write_s390_gs_bc): Likewise.
409 * elf.c (elfcore_grok_s390_gs_cb): New function.
410 (elfcore_grok_s390_gs_bc): New function.
411 (elfcore_grok_note): Call them.
412 (elfcore_write_s390_gs_cb): New function.
413 (elfcore_write_s390_gs_bc): New function.
414 (elfcore_write_register_note): Call them.
415
416 2017-06-28 H.J. Lu <hongjiu.lu@intel.com>
417
418 * libbfd.c (_bfd_generic_get_section_contents): Don't call
419 bfd_get_file_size. Check archive element size.
420 (_bfd_generic_get_section_contents_in_window): Likewise.
421
422 2017-06-28 H.J. Lu <hongjiu.lu@intel.com>
423
424 * bfd-in2.h: Regenerated.
425 * bfdio.c (bfd_get_size): Change return type to ufile_ptr.
426 (bfd_get_file_size): Likewise.
427
428 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
429 Matthew Fortune <matthew.fortune@imgtec.com>
430
431 * archures.c (bfd_mach_mips_interaptiv_mr2): New macro.
432 * cpu-mips.c (I_interaptiv_mr2): New enum value.
433 (arch_info_struct): Add "mips:interaptiv-mr2" entry.
434 * elfxx-mips.c (_bfd_elf_mips_mach) <E_MIPS_MACH_IAMR2>: New
435 case.
436 (mips_set_isa_flags) <bfd_mach_mips_interaptiv_mr2>: Likewise.
437 (bfd_mips_isa_ext) <bfd_mach_mips_interaptiv_mr2>: Likewise.
438 (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
439 (mips_mach_extensions): Add `bfd_mach_mipsisa32r3' and
440 `bfd_mach_mips_interaptiv_mr2' entries.
441 * bfd-in2.h: Regenerate.
442
443 2017-06-27 Nick Clifton <nickc@redhat.com>
444
445 * tekhex.c (pass_over): Revert accidental conversion of a local
446 array to a static array.
447
448 2017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
449
450 PR ld/13402
451 * elf32-avr.c (elf32_avr_adjust_diff_reloc_value): Adjust
452 reloc addend if necessary. Adjust diff only if
453 shrinked_insn_address < end_address.
454
455 2017-06-27 Alan Modra <amodra@gmail.com>
456
457 PR binutils/21665
458 * libbfd.c (_bfd_generic_get_section_contents): Warning fix.
459 (_bfd_generic_get_section_contents_in_window): Likewise.
460
461 2017-06-26 Kuan-Lin Chen <rufus@andestech.com>
462
463 * elfnn-riscv.c (perform_relocation): Support the new
464 R_RISCV_32_PCREL relocation.
465 (riscv_elf_relocate_section): Likewise.
466 * elfxx-riscv.c (howto_table): Likewise.
467 (riscv_reloc_map): Likewise.
468 * bfd-in2.h (BFD_RELOC_RISCV_32_PCREL): New relocation.
469 * libbfd.h: Regenerate.
470
471 2017-06-27 Alan Modra <amodra@gmail.com>
472
473 PR binutils/21665
474 * libbfd.c (_bfd_generic_get_section_contents): Delete abort.
475 Use unsigned file pointer type, and remove cast.
476 * libbfd.c (_bfd_generic_get_section_contents_in_window): Likewise.
477 Add "count", not "sz".
478
479 2017-06-26 Pedro Alves <palves@redhat.com>
480
481 PR binutils/21665
482 * libbfd.c (_bfd_generic_get_section_contents): Add "count", not
483 "sz".
484
485 2017-06-26 H.J. Lu <hongjiu.lu@intel.com>
486
487 PR binutils/21665
488 * libbfd.c (_bfd_generic_get_section_contents_in_window): Add
489 a missing line.
490
491 2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
492
493 * cpu-mips.c (arch_info_struct): Mark the 4010 32-bit.
494 * elfxx-mips.c (mips_set_isa_flags) <bfd_mach_mips4010>: Set
495 E_MIPS_ARCH_2 rather than E_MIPS_ARCH_3 in `e_flags'.
496 (mips_mach_extensions): Mark `bfd_mach_mips4010' as extending
497 `bfd_mach_mips6000' rather than `bfd_mach_mips4000'.
498
499 2017-06-26 H.J. Lu <hongjiu.lu@intel.com>
500
501 PR binutils/21665
502 * compress.c (bfd_get_full_section_contents): Don't check the
503 file size here.
504 * libbfd.c (_bfd_generic_get_section_contents): Check for and
505 reject a section whose size + offset is greater than the size
506 of the entire file.
507 (_bfd_generic_get_section_contents_in_window): Likewise.
508
509 2017-06-26 Nick Clifton <nickc@redhat.com>
510
511 PR binutils/21670
512 * tekhex.c (getvalue): Check for the source pointer exceeding the
513 end pointer before the first byte is read.
514
515 2017-06-26 Nick Clifton <nickc@redhat.com>
516
517 PR binutils/21665
518 * opncls.c (get_build_id): Check that the section is big enough
519 to contain the whole note.
520 * compress.c (bfd_get_full_section_contents): Check for and reject
521 a section whose size is greater than the size of the entire file.
522 * elf32-v850.c (v850_elf_copy_notes): Allow for the ouput to not
523 contain a notes section.
524
525 2017-06-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
526
527 * elf64-s390.c (elf_s390_additional_program_headers): Add NULL
528 pointer checks.
529 (elf_s390_modify_segment_map): Likewise.
530 (bfd_elf_s390_set_options): Lisewise.
531
532 2017-06-26 Alan Modra <amodra@gmail.com>
533
534 * elflink.c (_bfd_elf_link_create_dynstrtab): Don't make dynobj
535 a --just-syms bfd.
536 (_bfd_elf_size_group_sections): Skip --just-syms bfds.
537 (bfd_elf_size_dynamic_sections): Ignore .note.GNU-stack and
538 .preinit_array on --just-syms bfds.
539 (_bfd_elf_gc_mark_extra_sections): Skip --just-syms bfds.
540 (elf_gc_sweep, bfd_elf_parse_eh_frame_entries): Likewise.
541 (bfd_elf_gc_sections, bfd_elf_discard_info): Likewise.
542
543 2017-06-25 Sergei Trofimovich <slyfox@gentoo.org>
544
545 * elf.c (find_link): Bounds check "hint".
546
547 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
548
549 * elf32-arm.c (using_thumb_only): Update list of architectures in
550 BFD_ASSERT for which the logic is valid.
551 (using_thumb2_bl): Likewise.
552 (using_thumb2): Likewise and return true for ARMv8-R.
553 (arch_has_arm_nop): Likewise.
554 (tag_cpu_arch_combine): New v8r table for ARMv8-R Tag_CPU_arch
555 merging logic. Update commentis for value 15 of v8m_baseline,
556 v8m_mainline and v4t_plus_v6_m arrays. Use v8r array to decide
557 merging of value 15 of Tag_CPU_arch.
558
559 2017-06-23 Jiong Wang <jiong.wang@arm.com>
560
561 * reloc.c (BFD_RELOC_AARCH64_ADR_GOTPAGE): Rename to
562 BFD_RELOC_AARCH64_ADR_GOT_PAGE
563 * bfd-in2.h: Regenerate.
564
565 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
566
567 * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Move
568 the error_alignment label forward. Properly align program
569 property note section.
570
571 2017-06-22 Eric Christopher <echristo@gmail.com>
572
573 * elf32-arm.c (elf32_arm_final_link_relocate): Use labs rather than
574 abs to fix a truncation warning.
575
576 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
577
578 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Resolve
579 local undefined weak symbol to 0.
580 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Likewise.
581
582 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
583
584 * elf32-i386.c (elf_i386_merge_gnu_properties): If info->shstk
585 is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK.
586 (elf_i386_link_setup_gnu_properties): If info->shstk is set,
587 turn on GNU_PROPERTY_X86_FEATURE_1_IBT.
588 * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): If
589 info->shstk is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK.
590 (elf_x86_64_link_setup_gnu_properties): If info->shstk is set,
591 turn on GNU_PROPERTY_X86_FEATURE_1_IBT.
592
593 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
594
595 * elf32-i386.c (elf_i386_lazy_ibt_plt0_entry): New.
596 (elf_i386_lazy_ibt_plt_entry): Likewise.
597 (elf_i386_pic_lazy_ibt_plt0_entry): Likewise.
598 (elf_i386_non_lazy_ibt_plt_entry): Likewise.
599 (elf_i386_pic_non_lazy_ibt_plt_entry): Likewise.
600 (elf_i386_eh_frame_lazy_ibt_plt): Likewise.
601 (elf_i386_lazy_plt_layout): Likewise.
602 (elf_i386_non_lazy_plt_layout): Likewise.
603 (elf_i386_link_hash_entry): Add plt_second.
604 (elf_i386_link_hash_table): Add plt_second and
605 plt_second_eh_frame.
606 (elf_i386_allocate_dynrelocs): Use the second PLT if needed.
607 (elf_i386_size_dynamic_sections): Use .plt.got unwind info for
608 the second PLT. Check the second PLT.
609 (elf_i386_relocate_section): Use the second PLT to resolve
610 PLT reference if needed.
611 (elf_i386_finish_dynamic_symbol): Fill and use the second PLT if
612 needed.
613 (elf_i386_finish_dynamic_sections): Set sh_entsize on the
614 second PLT. Generate unwind info for the second PLT.
615 (elf_i386_plt_type): Add plt_second.
616 (elf_i386_get_synthetic_symtab): Support the second PLT.
617 (elf_i386_parse_gnu_properties): Support
618 GNU_PROPERTY_X86_FEATURE_1_AND.
619 (elf_i386_merge_gnu_properties): Support
620 GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn
621 on GNU_PROPERTY_X86_FEATURE_1_IBT
622 (elf_i386_link_setup_gnu_properties): If info->ibt is set,
623 turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT
624 for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT
625 is set on all relocatable inputs.
626 * elf64-x86-64.c (elf_x86_64_lazy_ibt_plt_entry): New.
627 (elf_x32_lazy_ibt_plt_entry): Likewise.
628 (elf_x86_64_non_lazy_ibt_plt_entry): Likewise.
629 (elf_x32_non_lazy_ibt_plt_entry): Likewise.
630 (elf_x86_64_eh_frame_lazy_ibt_plt): Likewise.
631 (elf_x32_eh_frame_lazy_ibt_plt): Likewise.
632 (elf_x86_64_lazy_ibt_plt): Likewise.
633 (elf_x32_lazy_ibt_plt): Likewise.
634 (elf_x86_64_non_lazy_ibt_plt): Likewise.
635 (elf_x32_non_lazy_ibt_plt): Likewise.
636 (elf_x86_64_get_synthetic_symtab): Support the second PLT.
637 (elf_x86_64_parse_gnu_properties): Support
638 GNU_PROPERTY_X86_FEATURE_1_AND.
639 (elf_x86_64_merge_gnu_properties): Support
640 GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn
641 on GNU_PROPERTY_X86_FEATURE_1_IBT
642 (elf_x86_64_link_setup_gnu_properties): If info->ibt is set,
643 turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT
644 for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT
645 is set on all relocatable inputs.
646
647 2017-06-22 Nick Clifton <nickc@redhat.com>
648
649 PR binutils/21649
650 * som.c (setup_sections): NUL terminate the space_strings buffer.
651 Check that the space.name field does not index beyond the end of
652 the space_strings buffer.
653
654 2017-06-21 Nick Clifton <nickc@redhat.com>
655
656 PR binutils/21646
657 * coff-sh.c (sh_reloc): Check for an out of range reloc.
658
659 2017-06-21 Nick Clifton <nickc@redhat.com>
660
661 PR binutils/21639
662 * vms-misc.c (_bfd_vms_save_sized_string): Use unsigned int as
663 type of the size parameter.
664 (_bfd_vms_save_counted_string): Add second parameter - the maximum
665 length of the counted string.
666 * vms.h (_bfd_vms_save_sized_string): Update prototype.
667 (_bfd_vms_save_counted_string): Likewise.
668 * vms-alpha.c (_bfd_vms_slurp_eisd): Update calls to
669 _bfd_vms_save_counted_string.
670 (_bfd_vms_slurp_ehdr): Likewise.
671 (_bfd_vms_slurp_egsd): Likewise.
672 (Parse_module): Likewise.
673
674 2017-06-21 Alan Modra <amodra@gmail.com>
675
676 * elf64-ppc.c (ppc64_elf_size_stubs): Test for localentry:0 plt
677 calls before tocsave calls.
678 (ppc64_elf_relocate_section): Allow localentry:0 plt calls without
679 following nop.
680
681 2017-06-21 Nick Clifton <nickc@redhat.com>
682
683 PR binutils/21645
684 * reloc.c (bfd_generic_get_relocated_section_contents): Fail if
685 bfd_get_full_section_contents returns no contents.
686
687 2017-06-21 Nick Clifton <nickc@redhat.com>
688
689 PR binutils/21638
690 * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an undersized
691 record.
692
693 2017-06-21 Nick Clifton <nickc@redhat.com>
694
695 PR binutils/21637
696 * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an empty section
697 list.
698 (image_set_ptr): Likewise.
699 (alpha_vms_fix_sec_rel): Likewise.
700 (alpha_vms_slurp_relocs): Likewise.
701
702 2017-06-21 Nick Clifton <nickc@redhat.com>
703
704 PR binutils/21633
705 * ieee.c (ieee_slurp_sections): Check for a NULL return from
706 read_id.
707 (ieee_archive_p): Likewise.
708 (ieee_object_p): Likewise.
709
710 2017-06-21 Nick Clifton <nickc@redhat.com>
711
712 PR binutils/21640
713 * elf.c (setup_group): Zero the group section pointer list after
714 allocation so that loops can be caught. Check for NULL pointers
715 when processing a group list.
716
717 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
718
719 * elf-s390.h: New file.
720 * elf64-s390.c (struct elf_s390_link_hash_table): Add params
721 field.
722 (elf_s390_additional_program_headers): New function.
723 (elf_s390_modify_segment_map): New function.
724 (bfd_elf_s390_set_options): New function.
725 (elf_backend_additional_program_headers)
726 (elf_backend_modify_segment_map): Add macro definitions.
727
728 2017-06-19 H.J. Lu <hongjiu.lu@intel.com>
729
730 PR ld/21626
731 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Check
732 the DYNAMIC bit instead of bfd_count_sections.
733
734 2017-06-19 Nick Clifton <nickc@redhat.com>
735
736 PR binutils/21618
737 * vms-alpha.c (evax_bfd_print_emh): Check for insufficient record
738 length.
739 (evax_bfd_print_eeom): Likewise.
740 (evax_bfd_print_egsd): Check for an overlarge record length.
741 (evax_bfd_print_etir): Likewise.
742
743 2017-06-19 Nick Clifton <nickc@redhat.com>
744
745 PR binutils/21612
746 * libieee.h (struct common_header_type): Add end_p field.
747 * ieee.c (this_byte_and_next): Do not advance input_p beyond
748 end_p.
749 (read_id): Check for a length that exceeds the remaining bytes in
750 the input buffer.
751 (ieee_seek): Initialise end_p.
752 (ieee_archive_p): Likewise.
753 (ieee_object_p): Likewise.
754
755 2017-06-19 Nick Clifton <nickc@redhat.com>
756
757 PR binutils/21611
758 * vms-alpha.c (_bfd_vms_slurp_eihs): Check for invalid offset
759 before reading the EIHS structure entries.
760
761 2017-06-19 Nick Clifton <nickc@redhat.com>
762
763 PR binutils/21615
764 * vms-alpha.c (_bfd_vms_slurp_egsd): Use unsigned int for
765 gsd_size. Check that there are enough bytes remaining to read the
766 type and size of the next egsd. Check that the size of the egsd
767 does not exceed the size of the record.
768
769 2017-06-19 Alan Modra <amodra@gmail.com>
770
771 * config.bfd: Correct targ_underscore for cris.
772
773 2017-06-18 Alan Modra <amodra@gmail.com>
774
775 * config.bfd: Correct targ_underscore for epiphany, ip2k,
776 m32c, mn10200, pru, rl78, rx, crisv32 and v850.
777
778 2017-06-16 Nick Clifton <nickc@redhat.com>
779
780 * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Do not fail if the
781 bucketlist is empty because there are no symbols to add to the
782 list.
783
784 2017-06-16 Alan Modra <amodra@gmail.com>
785
786 PR ld/20022
787 PR ld/21557
788 PR ld/21562
789 PR ld/21571
790 * targets.c (struct bfd_target): Add _bfd_define_start_stop.
791 (BFD_JUMP_TABLE_LINK): Likewise.
792 * elf-bfd.h (bfd_elf_define_start_stop): Declare.
793 * elflink.c (_bfd_elf_gc_mark_rsec): Update comment.
794 (bfd_elf_define_start_stop): New function.
795 * linker.c (bfd_generic_define_start_stop): New function.
796 * coff64-rs6000.c (rs6000_xcoff64_vec, rs6000_xcoff64_aix_vec): Init
797 new field.
798 * aout-adobe.c (aout_32_bfd_define_start_stop): Define.
799 * aout-target.h (MY_bfd_define_start_stop): Define.
800 * aout-tic30.c (MY_bfd_define_start_stop): Define.
801 * binary.c (binary_bfd_define_start_stop): Define.
802 * bout.c (b_out_bfd_define_start_stop): Define.
803 * coff-alpha.c (_bfd_ecoff_bfd_define_start_stop): Define.
804 * coff-mips.c (_bfd_ecoff_bfd_define_start_stop): Define.
805 * coff-rs6000.c (_bfd_xcoff_bfd_define_start_stop): Define.
806 * coffcode.h (coff_bfd_define_start_stop): Define.
807 * elfxx-target.h (bfd_elfNN_bfd_define_start_stop): Define.
808 * i386msdos.c (msdos_bfd_define_start_stop): Define.
809 * i386os9k.c (os9k_bfd_define_start_stop): Define.
810 * ieee.c (ieee_bfd_define_start_stop): Define.
811 * ihex.c (ihex_bfd_define_start_stop): Define.
812 * libbfd-in.h (_bfd_nolink_bfd_define_start_stop): Define.
813 * mach-o-target.c (bfd_mach_o_bfd_define_start_stop): Define.
814 * mmo.c (mmo_bfd_define_start_stop): Define.
815 * nlm-target.h (nlm_bfd_define_start_stop): Define.
816 * oasys.c (oasys_bfd_define_start_stop): Define.
817 * pef.c (bfd_pef_bfd_define_start_stop): Define.
818 * plugin.c (bfd_plugin_bfd_define_start_stop): Define.
819 * ppcboot.c (ppcboot_bfd_define_start_stop): Define.
820 * som.c (som_bfd_define_start_stop): Define.
821 * srec.c (srec_bfd_define_start_stop): Define.
822 * tekhex.c (tekhex_bfd_define_start_stop): Define.
823 * versados.c (versados_bfd_define_start_stop): Define.
824 * vms-alpha.c (vms_bfd_define_start_stop): Define.
825 (alpha_vms_bfd_define_start_stop): Define.
826 * xsym.c (bfd_sym_bfd_define_start_stop): Define.
827 * bfd-in2.h: Regenerate.
828 * libbfd.h: Regenerate.
829
830 2017-06-16 Jiong Wang <jiong.wang@arm.com>
831
832 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use
833 SYMBOL_REFERENCES_LOCAL.
834
835 2017-06-15 Jiong Wang <jiong.wang@arm.com>
836
837 PR ld/21532
838 * elfnn-aarch64.c (ELIMINATE_COPY_RELOCS): Set to 1.
839 (elfNN_aarch64_final_link_relocate): Also propagate relocations to
840 runtime for if there needs copy relocation elimination.
841 (need_copy_relocation_p): New function. Return true for symbol with
842 pc-relative references and if it's against read-only sections.
843 (elfNN_aarch64_adjust_dynamic_symbol): Use need_copy_relocation_p.
844 (elfNN_aarch64_check_relocs): Allocate dynrelocs for relocation types
845 that are related with accessing external objects.
846 (elfNN_aarch64_gc_sweep_hook): Sync the relocation types with the change
847 in elfNN_aarch64_check_relocs.
848
849 2017-06-15 Nick Clifton <nickc@redhat.com>
850
851 PR binutils/21582
852 * ieee.c (ieee_object_p): Use a static buffer to avoid compiler
853 bugs.
854 PR binutils/21581
855 (ieee_archive_p): Likewise.
856
857 2017-06-15 Nick Clifton <nickc@redhat.com>
858
859 PR binutils/21579
860 * vms-alpha.c (_bfd_vms_slurp_etir): Extend check of cmd_length.
861
862 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
863
864 * elf32-xtensa.c (elf_xtensa_be_plt_entry,
865 elf_xtensa_le_plt_entry): Add dimension for the ABI to arrays,
866 keep both windowed and call0 ABI PLT definitions.
867 (elf_xtensa_create_plt_entry): Use selected ABI to choose upper
868 elf_xtensa_*_plt_entry endex.
869 (ELF_MAXPAGESIZE): Fix at minimal supported MMU page size.
870
871 2017-06-14 Nick Clifton <nickc@redhat.com>
872
873 PR binutils/21578
874 * elf32-sh.c (sh_elf_set_mach_from_flags): Fix check for invalid
875 flag value.
876
877 2017-06-14 Nick Clifton <nickc@redhat.com>
878
879 PR binutils/21589
880 * vms-alpha.c (_bfd_vms_get_value): Add an extra parameter - the
881 maximum value for the ascic pointer. Check that name processing
882 does not read beyond this value.
883 (_bfd_vms_slurp_etir): Add checks for attempts to read beyond the
884 end of etir record.
885
886 2017-06-14 Nick Clifton <nickc@redhat.com>
887
888 PR binutils/21591
889 * versados.c (versados_mkobject): Zero the allocated tdata structure.
890 (process_otr): Check for an invalid offset in the otr structure.
891
892 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
893
894 * config.bfd (epiphany-*-elf): Accept epiphany-*-*.
895
896 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
897
898 PR ld/20022
899 PR ld/21557
900 PR ld/21562
901 PR ld/21571
902 * elf-bfd.h (elf_link_hash_entry): Add start_stop. Change the
903 vtable field to a union.
904 (_bfd_elf_is_start_stop): Removed.
905 * elf32-i386.c (elf_i386_convert_load_reloc): Also check for
906 __start_SECNAME and __stop_SECNAME symbols.
907 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
908 * elflink.c (_bfd_elf_is_start_stop): Removed.
909 (_bfd_elf_gc_mark_rsec): Check start_stop instead of calling
910 _bfd_elf_is_start_stop.
911 (elf_gc_propagate_vtable_entries_used): Skip __start_SECNAME and
912 __stop_SECNAME symbols. Updated.
913 (elf_gc_smash_unused_vtentry_relocs): Likewise.
914 (bfd_elf_gc_record_vtinherit): Likewise.
915 (bfd_elf_gc_record_vtentry): Likewise.
916
917 2017-06-13 Nick Clifton <nickc@redhat.com>
918
919 PR ld/21524
920 * elflink.c (elf_link_adjust_relocs): Generate an error when
921 encountering a reloc against a symbol removed by garbage
922 collection.
923
924 2017-06-12 H.J. Lu <hongjiu.lu@intel.com>
925
926 * elf-bfd.h (elf_backend_data): Add struct bfd_link_info *
927 to merge_gnu_properties.
928 * elf-properties.c (elf_merge_gnu_properties): Add struct
929 bfd_link_info * and pass it to merge_gnu_properties.
930 (elf_merge_gnu_property_list): Add struct bfd_link_info *
931 and pass it to elf_merge_gnu_properties.
932 (_bfd_elf_link_setup_gnu_properties): Pass info to
933 elf_merge_gnu_property_list.
934 * elf32-i386.c (elf_i386_merge_gnu_properties): Add struct
935 bfd_link_info *.
936 * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): Likewise.
937
938 2017-06-11 Joe Zbiciak <joe.zbiciak@leftturnonly.info>
939
940 PR 21564
941 * binary.c (binary_set_section_contents): Scale lma by octets
942 per byte to set filepos.
943
944 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
945
946 * elf32-arc.c (elf_arc_check_relocs): Fixed conditions to generate
947 dynamic sections.
948
949 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
950
951 * elf32-arc.c (elf_arc_size_dynamic_sections): Changed condition to
952 require TEXTREL.
953
954 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
955
956 * arc-got.h (relocate_fix_got_relocs_for_got_info): Added TCB_SIZE to
957 patched section contents for TLS IE reloc.
958 * elf32-arc.c: Remove TCB_SIZE preprocessor macro.
959
960 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
961
962 * elf32-arc.c (elf_arc_relocate_section): Added "call" to
963 RELOC_FOR_GLOBAL_SYMBOL macro.
964
965 2018-06-08 Cupertino Miranda <cmiranda@synopsys.com>
966
967 * elf32-arc.c (elf_arc_relocate_section): Small refactor and condition
968 changes.
969
970 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
971
972 * config/tc-arc.c (md_undefined_symbol): Changed.
973 * config/tc-arc.h (DYNAMIC_STRUCT_NAME): Removed.
974
975 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
976
977 * elf32-arc.c (elf_arc_relocate_section): Fixed reassign of indirect
978 symbols.
979
980 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
981
982 * elf32-arc.c (elf_arc_check_relocs): Added condition to disable
983 warning and "Bad value" for local symbols ARC_32 or ARC_32_ME relocs.
984
985 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
986
987 * elf32-arc.c (ADD_RELA): Changed to only work when dynamic
988 object is created.
989
990 2017-06-08 Richard Earnshaw <rearnsha@arm.com>
991
992 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove assertion
993 that the input bfd has Tag_FP_ARCH non-zero if Tag_ABI_HardFP_use
994 is non-zero. Add clarifying comments.
995
996 2017-06-08 H.J. Lu <hongjiu.lu@intel.com>
997
998 * elf32-i386.c (elf_i386_check_relocs): Set local IFUNC symbol
999 name. Use local IFUNC symbol name string to report unsupported
1000 non-PIC call to IFUNC function.
1001 (elf_i386_relocate_section): Dump local IFUNC name with minfo
1002 when generating R_386_IRELATIVE relocation.
1003 (elf_i386_finish_dynamic_symbol): Likewise.
1004 * elf_x86_64_check_relocs (elf_x86_64_check_relocs): Set local
1005 IFUNC symbol name.
1006 (elf_x86_64_relocate_section): Dump local IFUNC name with minfo
1007 when generating R_X86_64_IRELATIVE relocation.
1008 (elf_x86_64_finish_dynamic_symbol): Likewise.
1009
1010 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
1011
1012 * elf.c (setup_group): Make sure BFD sections are created for all
1013 group sections in the input file when processing SHF_GROUP
1014 sections.
1015 (bfd_section_from_shdr): Avoid duplicating logic already
1016 implemented in `setup_group'.
1017
1018 2017-06-06 Daniel Bonniot de Ruisselet <bonniot@gmail.com>
1019
1020 PR binutils/21546
1021 * peXXigen.c (pe_print_idata): Use the address of the first thunk
1022 if the hint address is zero.
1023
1024 2017-06-06 James Clarke <jrtc27@jrtc27.com>
1025
1026 PR ld/19579
1027 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Check
1028 ELF_COMMON_DEF_P for common symbols.
1029
1030 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
1031
1032 * elf.c (_bfd_elf_make_section_from_shdr): Don't initially mark
1033 SEC_GROUP sections as SEC_EXCLUDE.
1034 (bfd_elf_set_group_contents): Replace use of abort with an assert.
1035 (assign_section_numbers): Use resolve_section_groups flag instead
1036 of relocatable link type.
1037 (_bfd_elf_init_private_section_data): Use resolve_section_groups
1038 flag instead of checking the final_link flag for part of the
1039 checks in here. Fix white space as a result.
1040 * elflink.c (elf_link_input_bfd): Use resolve_section_groups flag
1041 instead of relocatable link type.
1042 (bfd_elf_final_link): Likewise.
1043
1044 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
1045
1046 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Remove unused
1047 variable `bed'.
1048 * elf32-score.c (score_elf_final_link_relocate): Likewise.
1049 (s3_bfd_score_elf_check_relocs): Likewise.
1050 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1051 (score_elf_final_link_relocate): Likewise.
1052 (s7_bfd_score_elf_check_relocs): Likewise.
1053
1054 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
1055
1056 * elflink.c (init_reloc_cookie_rels): Remove unused variable
1057 `bed'.
1058
1059 2017-06-06 Maciej W. Rozycki <macro@imgtec.com>
1060
1061 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Subtract `count'
1062 from `reloc_count' rather than decrementing it.
1063 * elf.c (bfd_section_from_shdr): Multiply the adjustment to
1064 `reloc_count' by `int_rels_per_ext_rel'.
1065 * elf32-score.c (score_elf_final_link_relocate): Do not multiply
1066 `reloc_count' by `int_rels_per_ext_rel' for last relocation
1067 entry determination.
1068 (s3_bfd_score_elf_check_relocs): Likewise.
1069 * elf32-score7.c (score_elf_final_link_relocate): Likewise.
1070 (s7_bfd_score_elf_relocate_section): Likewise.
1071 (s7_bfd_score_elf_check_relocs): Likewise.
1072 * elf64-mips.c (mips_elf64_get_reloc_upper_bound): Remove
1073 prototype and function.
1074 (mips_elf64_slurp_one_reloc_table): Do not update `reloc_count'.
1075 (mips_elf64_slurp_reloc_table): Assert that `reloc_count' is
1076 triple rather than once the sum of REL and RELA relocation entry
1077 counts.
1078 (bfd_elf64_get_reloc_upper_bound): Remove macro.
1079 * elflink.c (_bfd_elf_link_read_relocs): Do not multiply
1080 `reloc_count' by `int_rels_per_ext_rel' for internal relocation
1081 storage allocation size determination.
1082 (elf_link_input_bfd): Multiply `.ctors' and `.dtors' section's
1083 size by `int_rels_per_ext_rel'. Do not multiply `reloc_count'
1084 by `int_rels_per_ext_rel' for last relocation entry
1085 determination.
1086 (bfd_elf_final_link): Do not multiply `reloc_count' by
1087 `int_rels_per_ext_rel' for internal relocation storage
1088 allocation size determination.
1089 (init_reloc_cookie_rels): Do not multiply `reloc_count' by
1090 `int_rels_per_ext_rel' for last relocation entry determination.
1091 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1092 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1093 (_bfd_mips_elf_relocate_section): Likewise.
1094
1095 2017-06-05 Alan Modra <amodra@gmail.com>
1096
1097 PR 21529
1098 * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE.
1099
1100 2017-06-01 John Baldwin <jhb@FreeBSD.org>
1101
1102 * elf.c (elfcore_grok_freebsd_psinfo): Use ELF header class to
1103 determine structure sizes.
1104 (elfcore_grok_freebsd_prstatus): Likewise.
1105
1106 2017-06-01 Alan Modra <amodra@gmail.com>
1107
1108 * elf64-ppc.c (struct ppc_link_hash_table): Add has_plt_localentry0.
1109 (ppc64_elf_merge_symbol_attribute): Merge localentry bits from
1110 dynamic objects.
1111 (is_elfv2_localentry0): New function.
1112 (ppc64_elf_tls_setup): Default params->plt_localentry0.
1113 (plt_stub_size): Adjust size for tls_get_addr_opt stub.
1114 (build_tls_get_addr_stub): Use a simpler stub when r2 is not saved.
1115 (ppc64_elf_size_stubs): Leave stub_type as ppc_stub_plt_call for
1116 optimized localentry:0 stubs.
1117 (ppc64_elf_build_stubs): Save r2 in ELFv2 __glink_PLTresolve.
1118 (ppc64_elf_relocate_section): Leave nop unchanged for optimized
1119 localentry:0 stubs.
1120 (ppc64_elf_finish_dynamic_sections): Set PPC64_OPT_LOCALENTRY in
1121 DT_PPC64_OPT.
1122 * elf64-ppc.h (struct ppc64_elf_params): Add plt_localentry0.
1123
1124 2017-05-30 Casey Smith <clegg89@gmail.com>
1125
1126 PR ld/21523
1127 * elf32-arm.c (elf32_arm_final_link_relocate): Install an absolute
1128 value when processing the R_ARM_THM_ALU_PREL_11_0 reloc.
1129
1130 2017-05-30 Anton Kolesov Anton.Kolesov@synopsys.com
1131
1132 * cpu-arc.c (arc_compatible): New function.
1133
1134 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
1135
1136 * cpu-arc.c (arch_info_struct): Remove duplicate ARC600 entry.
1137
1138 2017-05-30 H.J. Lu <hongjiu.lu@intel.com>
1139
1140 PR binutils/21519
1141 * bfdio.c (bfd_get_file_size): New function.
1142 * bfd-in2.h: Regenerated.
1143
1144 2017-05-23 Dilian Palauzov <git-dpa@aegee.org>
1145
1146 * elf32-arc.c (arc_elf_merge_attributes): Add fall through
1147 comments.
1148
1149 2017-05-22 H.J. Lu <hongjiu.lu@intel.com>
1150
1151 * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Use
1152 dynobj instead of htab->elf.dynobj.
1153
1154 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
1155
1156 * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype
1157 and function.
1158 (mips_elf64_canonicalize_dynamic_reloc): Likewise.
1159 (mips_elf64_slurp_one_reloc_table): Set `reloc_count' to the
1160 actual number of internal relocations retrieved. Adjust
1161 function description.
1162 (bfd_elf64_canonicalize_reloc): Remove macro.
1163 (bfd_elf64_canonicalize_dynamic_reloc): Likewise.
1164
1165 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
1166
1167 * archures.c (bfd_mach_sparc_v9m8): Define.
1168 (bfd_mach_sparc_v8plusm8): Likewise.
1169 (bfd_mach_sparc_v9_p): Adjust to M8.
1170 (bfd_mach_sparc_64bit_p): Likewise.
1171 * aoutx.h (machine_type): Handle bfd_mach_sparc_v9m8 and
1172 bfd_mach_sparc_v8plusm8.
1173 * bfd-in2.h: Regenerated.
1174 * cpu-sparc.c (arch_info_struct): Entries for sparc:v9m8 and
1175 sparc:v8plusm8.
1176 * elfxx-sparc.c (_bfd_sparc_elf_object_p): Handle
1177 bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8 using the new hw
1178 capabilities ONADDSUB, ONMUL, ONDIV, DICTUNP, FPCPSHL, RLE and
1179 SHA3.
1180 * elf32-sparc.c (elf32_sparc_final_write_processing): Handle
1181 bfd_mach_sparc_v8plusm8.
1182
1183 2017-05-19 Alan Modra <amodra@gmail.com>
1184
1185 * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't keep
1186 debug and special sections when no non-note alloc sections in an
1187 object are kept.
1188
1189 2017-05-18 Alan Modra <amodra@gmail.com>
1190
1191 * arc-got.h: Don't compare boolean values against TRUE or FALSE.
1192 * elf-m10300.c: Likewise.
1193 * elf.c: Likewise.
1194 * elf32-arc.c: Likewise.
1195 * elf32-bfin.c: Likewise.
1196 * elf32-m68k.c: Likewise.
1197 * elf32-nds32.c: Likewise.
1198 * elf32-tilepro.c: Likewise.
1199 * elflink.c: Likewise.
1200 * elfnn-aarch64.c: Likewise.
1201 * elfnn-riscv.c: Likewise.
1202 * elfxx-tilegx.c: Likewise.
1203 * mach-o.c: Likewise.
1204 * peXXigen.c: Likewise.
1205 * vms-alpha.c: Likewise.
1206 * vms-lib.c: Likewise.
1207
1208 2017-05-17 H.J. Lu <hongjiu.lu@intel.com>
1209
1210 PR ld/20882
1211 * elflink.c (elf_gc_mark_debug_section): New function.
1212 (_bfd_elf_gc_mark_extra_sections): Mark any debug sections
1213 referenced by kept debug sections.
1214
1215 2017-05-16 Alan Modra <amodra@gmail.com>
1216
1217 * elf-m10300.c: Rename occurrences of non_ir_ref.
1218 * elf32-arm.c: Likewise.
1219 * elf32-bfin.c: Likewise.
1220 * elf32-cr16.c: Likewise.
1221 * elf32-cris.c: Likewise.
1222 * elf32-d10v.c: Likewise.
1223 * elf32-dlx.c: Likewise.
1224 * elf32-fr30.c: Likewise.
1225 * elf32-frv.c: Likewise.
1226 * elf32-hppa.c: Likewise.
1227 * elf32-i370.c: Likewise.
1228 * elf32-i386.c: Likewise.
1229 * elf32-iq2000.c: Likewise.
1230 * elf32-lm32.c: Likewise.
1231 * elf32-m32c.c: Likewise.
1232 * elf32-m32r.c: Likewise.
1233 * elf32-m68hc1x.c: Likewise.
1234 * elf32-m68k.c: Likewise.
1235 * elf32-mcore.c: Likewise.
1236 * elf32-metag.c: Likewise.
1237 * elf32-microblaze.c: Likewise.
1238 * elf32-moxie.c: Likewise.
1239 * elf32-msp430.c: Likewise.
1240 * elf32-mt.c: Likewise.
1241 * elf32-nios2.c: Likewise.
1242 * elf32-or1k.c: Likewise.
1243 * elf32-ppc.c: Likewise.
1244 * elf32-rl78.c: Likewise.
1245 * elf32-s390.c: Likewise.
1246 * elf32-score.c: Likewise.
1247 * elf32-score7.c: Likewise.
1248 * elf32-sh.c: Likewise.
1249 * elf32-tic6x.c: Likewise.
1250 * elf32-tilepro.c: Likewise.
1251 * elf32-v850.c: Likewise.
1252 * elf32-vax.c: Likewise.
1253 * elf32-xstormy16.c: Likewise.
1254 * elf32-xtensa.c: Likewise.
1255 * elf64-alpha.c: Likewise.
1256 * elf64-hppa.c: Likewise.
1257 * elf64-ia64-vms.c: Likewise.
1258 * elf64-mmix.c: Likewise.
1259 * elf64-ppc.c: Likewise.
1260 * elf64-s390.c: Likewise.
1261 * elf64-sh64.c: Likewise.
1262 * elf64-x86-64.c: Likewise.
1263 * elflink.c: Likewise.
1264 * elfnn-aarch64.c: Likewise.
1265 * elfnn-ia64.c: Likewise.
1266 * elfnn-riscv.c: Likewise.
1267 * elfxx-mips.c: Likewise.
1268 * elfxx-sparc.c: Likewise.
1269 * elfxx-tilegx.c: Likewise.
1270 * linker.c: Likewise.
1271
1272 2017-05-16 Alan Modra <amodra@gmail.com>
1273
1274 * elf64-ppc.c (add_symbol_adjust): Transfer non_ir_ref_dynamic.
1275 * elflink.c (elf_link_add_object_symbols): Update to use
1276 non_ir_ref_dynamic.
1277 (elf_link_input_bfd): Test non_ir_ref_dynamic in addition to
1278 non_ir_ref.
1279 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
1280
1281 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
1282
1283 * elfxx-mips.c (print_mips_ases): Handle MIPS16e2 ASE.
1284
1285 2017-05-12 H.J. Lu <hongjiu.lu@intel.com>
1286
1287 * elf32-i386.c (elf_i386_parse_gnu_properties): Merge
1288 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
1289 properties.
1290 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
1291
1292 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
1293
1294 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Rename plt_bnd
1295 to plt_second.
1296 (elf_x86_64_link_hash_table): Rename plt_bnd/plt_bnd_eh_frame
1297 to plt_second/plt_second_eh_frame.
1298 (elf_x86_64_link_hash_newfunc): Updated.
1299 (elf_x86_64_allocate_dynrelocs): Likewise.
1300 (elf_x86_64_size_dynamic_sections): Likewise.
1301 (elf_x86_64_relocate_section): Likewise.
1302 (elf_x86_64_finish_dynamic_symbol): Likewise.
1303 (elf_x86_64_finish_dynamic_sections): Likewise.
1304 (elf_x86_64_plt_type): Rename plt_bnd to plt_second.
1305 (elf_x86_64_get_synthetic_symtab): Updated. Also scan the
1306 .plt.sec section.
1307 (elf_backend_setup_gnu_properties): Updated. Create the
1308 .plt.sec section instead of the .plt.sec section.
1309
1310 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
1311
1312 * elf32-i386.c (elf_i386_allocate_dynrelocs): Partially revert
1313 commit 25070364b0ce33eed46aa5d78ebebbec6accec7e.
1314 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewse.
1315
1316 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1317
1318 * elf64-sparc.c (elf64_sparc_set_reloc): New function.
1319 (bfd_elf64_set_reloc): Define.
1320 (elf64_sparc_write_relocs): Use `canon_reloc_count'.
1321
1322 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1323
1324 * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc.
1325 (struct bfd_target): New field _bfd_set_reloc.
1326 * bfd.c (bfd_set_reloc): Call backend _set_bfd.
1327 * reloc.c (_bfd_generic_set_reloc): New function.
1328 * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc.
1329 * nlm-target.h (nlm_set_reloc): Likewise.
1330 * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise.
1331 * aout-tic30.c (MY_set_reloc): Likewise.
1332 * aout-target.h (MY_set_reloc): Likewise.
1333 * elfxx-target.h (bfd_elfNN_set_reloc): Likewise.
1334 * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise.
1335 * mach-o-target.c (bfd_mach_o_set_reloc): Likewise.
1336 * vms-alpha.c (alpha_vms_set_reloc): Likewise.
1337 * aout-adobe.c (aout_32_set_reloc): Likewise.
1338 * bout.c (b_out_set_reloc): Likewise.
1339 * coff-mips.c (_bfd_ecoff_set_reloc): Likewise.
1340 * i386os9k.c (aout_32_set_reloc): Likewise.
1341 * ieee.c (ieee_set_reloc): Likewise.
1342 * oasys.c (oasys_set_reloc): Likewise.
1343 * som.c (som_set_reloc): Likewise.
1344 * versados.c (versados_set_reloc): Likewise.
1345 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
1346 _bfd_generic_set_reloc.
1347 (rs6000_xcoff64_aix_vec): LIkewise.
1348 * libbfd.c (_bfd_norelocs_set_reloc): New function.
1349 * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc.
1350 * i386msdos.c (msdos_set_reloc): Define to
1351 _bfd_norelocs_set_reloc.
1352 * elfcode.h (elf_set_reloc): Define.
1353 * bfd-in2.h: Regenerated.
1354
1355 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
1356
1357 PR ld/21481
1358 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd
1359 for IFUNC function address.
1360
1361 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
1362
1363 * elf32-arc.c (FEATURE_LIST_NAME): Define.
1364 (CONFLICT_LIST): Likewise.
1365 (opcode/arc-attrs.h): Include.
1366 (arc_elf_print_private_bfd_data): Print OSABI v4 flag.
1367 (arc_extract_features): New file.
1368 (arc_stralloc): Likewise.
1369 (arc_elf_merge_attributes): Likewise.
1370 (arc_elf_merge_private_bfd_data): Use object attributes.
1371 (bfd_arc_get_mach_from_attributes): New function.
1372 (arc_elf_object_p): Use object attributes.
1373 (arc_elf_final_write_processing): Likewise.
1374 (elf32_arc_obj_attrs_arg_type): New function.
1375 (elf32_arc_obj_attrs_handle_unknown): Likewise.
1376 (elf32_arc_section_from_shdr): Likewise.
1377 (elf_backend_obj_attrs_vendor): Define.
1378 (elf_backend_obj_attrs_section): Likewise.
1379 (elf_backend_obj_attrs_arg_type): Likewise.
1380 (elf_backend_obj_attrs_section_type): Likewise.
1381 (elf_backend_obj_attrs_handle_unknown): Likewise.
1382 (elf_backend_section_from_shdr): Likewise.
1383
1384 2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za>
1385
1386 PR ld/21458
1387 * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit
1388 of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation
1389 and the destination is a Thumb symbol.
1390
1391 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
1392
1393 * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing
1394 initializer to silence GCC 4.2.
1395 * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise.
1396
1397 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
1398
1399 * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ...
1400 (LAZY_PLT_ENTRY_SIZE): This.
1401 (NON_LAZY_PLT_ENTRY_SIZE): New.
1402 (elf_x86_64_plt0_entry): Renamed to ...
1403 (elf_x86_64_lazy_plt0_entry): This.
1404 (elf_x86_64_plt_entry): Renamed to ...
1405 (elf_x86_64_lazy_plt_entry): This.
1406 (elf_x86_64_bnd_plt0_entry): Renamed to ...
1407 (elf_x86_64_lazy_bnd_plt0_entry): This.
1408 (elf_x86_64_legacy_plt_entry): Removed.
1409 (elf_x86_64_bnd_plt_entry): Renamed to ...
1410 (elf_x86_64_lazy_bnd_plt_entry): This.
1411 (elf_x86_64_legacy_plt2_entry): Renamed to ...
1412 (elf_x86_64_non_lazy_plt_entry): This.
1413 (elf_x86_64_bnd_plt2_entry): Renamed to ...
1414 (elf_x86_64_non_lazy_bnd_plt_entry): This.
1415 (elf_x86_64_eh_frame_plt): Renamed to ...
1416 (elf_x86_64_eh_frame_lazy_plt): This.
1417 (elf_x86_64_eh_frame_bnd_plt): Renamed to ...
1418 (elf_x86_64_eh_frame_lazy_bnd_plt): This.
1419 (elf_x86_64_eh_frame_plt_got): Renamed to ...
1420 (elf_x86_64_eh_frame_non_lazy_plt): This.
1421 (elf_x86_64_lazy_plt_layout): New.
1422 (elf_x86_64_non_lazy_plt_layout): Likewise.
1423 (elf_x86_64_plt_layout): Likewise.
1424 (elf_x86_64_backend_data): Remove PLT layout information. Add
1425 os for target system.
1426 (GET_PLT_ENTRY_SIZE): Removed.
1427 (elf_x86_64_lazy_plt): New.
1428 (elf_x86_64_non_lazy_plt): Likewise.
1429 (elf_x86_64_lazy_bnd_plt): Likewise.
1430 (elf_x86_64_non_lazy_bnd_plt): Likewise.
1431 (elf_x86-64_arch_bed): Updated.
1432 (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt.
1433 (elf_x86_64_create_dynamic_sections): Removed.
1434 (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call
1435 _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section.
1436 (elf_x86-64_adjust_dynamic_symbol): Updated.
1437 (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header
1438 size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate
1439 size for PLT0 if there is no PLT0. Get plt_entry_size from
1440 non_lazy_plt for non-lazy PLT entries.
1441 (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size
1442 from non_lazy_plt for non-lazy PLT entries.
1443 (elf_x86-64_relocate_section): Updated. Properly get PLT index
1444 if there is no PLT0.
1445 (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot
1446 in the PLT entry with generic PLT layout. Fill the non-lazy PLT
1447 entries with non-lazy PLT layout. Don't fill the second and third
1448 slots in the PLT entry if there is no PLT0.
1449 (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0
1450 if there is no PLT0. Set sh_entsize on the .plt.got section.
1451 (compare_relocs): New.
1452 (elf_x86_64_plt_type): Likewise.
1453 (elf_x86_64_plt): Likewise.
1454 (elf_x86_64_nacl_plt): New. Forward declaration.
1455 (elf_x86_64_get_plt_sym_val): Removed.
1456 (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections
1457 against all dynamic relocations.
1458 (elf_x86_64_link_setup_gnu_properties): New function.
1459 (elf_backend_create_dynamic_sections): Updated.
1460 (elf_backend_setup_gnu_properties): New.
1461 (elf_x86_64_nacl_plt): New.
1462 (elf_x86_64_nacl_arch_bed): Updated.
1463
1464 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
1465
1466 * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ...
1467 (LAZY_PLT_ENTRY_SIZE): This.
1468 (NON_LAZY_PLT_ENTRY_SIZE): New.
1469 (elf_i386_plt0_entry): Renamed to ...
1470 (elf_i386_lazy_plt0_entry): This.
1471 (elf_i386_plt_entry): Renamed to ...
1472 (elf_i386_lazy_plt_entry): This.
1473 (elf_i386_pic_plt0_entry): Renamed to ...
1474 (elf_i386_pic_lazy_plt0_entry): This.
1475 (elf_i386_pic_plt_entry): Renamed to ...
1476 (elf_i386_pic_lazy_plt_entry): This.
1477 (elf_i386_got_plt_entry): Renamed to ...
1478 (elf_i386_non_lazy_plt_entry): This.
1479 (elf_i386_pic_got_plt_entry): Renamed to ...
1480 (elf_i386_pic_non_lazy_plt_entry): This.
1481 (elf_i386_eh_frame_plt): Renamed to ...
1482 (elf_i386_eh_frame_lazy_plt): This.
1483 (elf_i386_eh_frame_plt_got): Renamed to ...
1484 (elf_i386_eh_frame_non_lazy_plt): This.
1485 (elf_i386_plt_layout): Renamed to ...
1486 (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and
1487 eh_frame_plt_got_size.
1488 (elf_i386_non_lazy_plt_layout): New.
1489 (elf_i386_plt_layout): Likewise.
1490 (elf_i386_non_lazy_plt): Likewise.
1491 (GET_PLT_ENTRY_SIZE): Removed.
1492 (elf_i386_plt): Renamed to ...
1493 (elf_i386_lazy_plt): This.
1494 (elf_i386_backend_data): Remove plt. Rename is_vxworks to os.
1495 (elf_i386_arch_bed): Updated.
1496 (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt.
1497 (elf_i386_create_dynamic_sections): Removed.
1498 (elf_i386_check_relocs): Don't check elf.dynobj. Don't call
1499 _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section.
1500 (elf_i386_adjust_dynamic_symbol): Updated.
1501 (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header
1502 size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate
1503 size for PLT0 if there is no PLT0.
1504 (elf_i386_size_dynamic_sections): Updated. Check whether GOT
1505 output section is discarded only if GOT isn't empty.
1506 (elf_i386_relocate_section): Updated. Properly get PLT index
1507 if there is no PLT0.
1508 (elf_i386_finish_dynamic_symbol): Updated. Don't fill the
1509 second and third slots in the PLT entry if there is no PLT0.
1510 (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0
1511 if there is no PLT0. Set sh_entsize on the .plt.got section.
1512 (elf_i386_nacl_plt): Forward declaration.
1513 (elf_i386_get_plt_sym_val): Removed.
1514 (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections
1515 against all dynamic relocations.
1516 (elf_i386_link_setup_gnu_properties): New function.
1517 (elf_backend_create_dynamic_sections): Updated.
1518 (elf_backend_setup_gnu_properties): New.
1519 (elf_i386_nacl_plt): Updated.
1520 (elf_i386_nacl_arch_bed): Likewise.
1521 (elf_i386_vxworks_arch_bed): Likewise.
1522
1523 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
1524
1525 * elflink.c (elf_output_implib): Remove executable flag from import
1526 library bfd.
1527 * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import
1528 library is a relocatable object file.
1529
1530 2017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1531
1532 PR ld/21404
1533 * elf32-avr.c (avr_should_move_sym): New function.
1534 (avr_should_reduce_sym_size): Likewise.
1535 (avr_should_increase_sym_size): Likewise.
1536 (elf32_avr_relax_delete_bytes): Adjust symbol values
1537 and sizes by calling new functions.
1538
1539 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com>
1540
1541 * config.bfd (riscv32-*): Enable rv64.
1542
1543 2017-05-02 Alan Modra <amodra@gmail.com>
1544
1545 PR 21384
1546 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf
1547 rather than h->root.type == bfd_link_hash_new.
1548 (bfd_elf_record_link_assignment): Similarly, call
1549 bfd_elf_link_mark_dynamic_symbol when h->non_elf.
1550
1551 2017-04-29 Alan Modra <amodra@gmail.com>
1552
1553 PR 21432
1554 * reloc.c (reloc_offset_in_range): New function.
1555 (bfd_perform_relocation, bfd_install_relocation): Use it.
1556 (_bfd_final_link_relocate): Likewise.
1557
1558 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
1559
1560 * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got
1561 before using .plt.got.
1562 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
1563
1564 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
1565
1566 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "="
1567 instead of "+=" to update 0.
1568
1569 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
1570
1571 * elf32-i386.c (elf_i386_create_dynamic_sections): Create the
1572 .plt.got section here.
1573 (elf_i386_check_relocs): Don't create the .plt.got section.
1574 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create
1575 the .plt.got and .plt.bnd sections here.
1576 (elf_x86_64_check_relocs): Don't create the .plt.got nor
1577 .plt.bnd sections.
1578
1579 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
1580
1581 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove
1582 has_bnd_reloc.
1583 (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc.
1584 (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc.
1585 (elf_x86_64_check_relocs): Don't set has_bnd_reloc.
1586 (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of
1587 has_bnd_reloc.
1588
1589 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
1590
1591 * elf-bfd.h (elf_backend_data): Change setup_gnu_properties
1592 to return bfd *.
1593 (_bfd_elf_link_setup_gnu_properties): Return bfd *.
1594 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return
1595 the first relocatable ELF input with GNU properties.
1596
1597 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
1598
1599 * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify
1600 VxWorks for non-PIC.
1601
1602 2017-04-27 Alan Modra <amodra@gmail.com>
1603
1604 * elf-bfd.h (struct elf_backend_data): Make asection param of
1605 elf_backend_eh_frame_address_size const.
1606 (_bfd_elf_eh_frame_address_size): Likewise.
1607 * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise.
1608 * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise.
1609 * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise.
1610 * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise.
1611 * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise.
1612 (next_cie_fde_offset): Constify params.
1613 (offset_adjust, adjust_eh_frame_local_symbols): Likewise.
1614
1615 2017-04-27 Alan Modra <amodra@gmail.com>
1616
1617 * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len.
1618 (_bfd_elf_adjust_eh_frame_global_symbol): Declare.
1619 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and
1620 aug_data_len.
1621 (offset_adjust): New function.
1622 (_bfd_elf_adjust_eh_frame_global_symbol): Likewise.
1623 (adjust_eh_frame_local_symbols): Likewise.
1624 (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols
1625 after changing anything. Return true if anything changed.
1626 * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call
1627 _bfd_elf_adjust_eh_frame_global_symbol for globals.
1628
1629 2017-04-27 Alan Modra <amodra@gmail.com>
1630
1631 * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index
1632 when force_local.
1633
1634 2017-04-27 Alan Modra <amodra@gmail.com>
1635
1636 * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
1637 (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it.
1638 (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise.
1639 (ppc_elf_relocate_section): Likewise. Delete silly optimisation
1640 for undef and undefweak dyn_relocs.
1641 * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
1642 (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it.
1643 (allocate_got, allocate_dynrelocs): Likewise.
1644 (ppc64_elf_relocate_section): Likewise.
1645
1646 2017-04-26 H.J. Lu <hongjiu.lu@intel.com>
1647
1648 * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add
1649 DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section.
1650 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys
1651 add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section.
1652
1653 2017-04-26 Nick Clifton <nickc@redhat.com>
1654
1655 PR binutils/21434
1656 * reloc.c (bfd_perform_relocation): Check for a negative address
1657 in the reloc.
1658
1659 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
1660
1661 PR ld/21334
1662 * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms'
1663 member.
1664 * elfxx-target.h [!elf_backend_always_renumber_dynsyms]
1665 (elf_backend_always_renumber_dynsyms): Define.
1666 (elfNN_bed): Initialize `always_renumber_dynsyms' member.
1667 * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define.
1668 * elflink.c (bfd_elf_size_dynamic_sections): Also call
1669 `_bfd_elf_link_renumber_dynsyms' if the backend has requested
1670 it.
1671 (bfd_elf_size_dynsym_hash_dynstr): Likewise.
1672
1673 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
1674
1675 * elflink.c (bfd_elf_size_dynamic_sections): Only call
1676 `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic
1677 sections have been created.
1678
1679 2017-04-26 Nick Clifton <nickc@redhat.com>
1680
1681 PR binutils/21431
1682 * compress.c (bfd_init_section_compress_status): Check the return
1683 value from bfd_malloc.
1684
1685 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1686
1687 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add
1688 no_finish_dynamic_symbol.
1689 (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to
1690 0.
1691 (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined
1692 weak symbol, don't make it dynamic.
1693 (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC,
1694 set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE
1695 relocation for GOT reference.
1696 (elf_x86_64_finish_dynamic_symbol): Abort if
1697 no_finish_dynamic_symbol isn't 0.
1698
1699 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1700
1701 PR ld/21402
1702 * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't
1703 undefined weak symbol, don't make it dynamic.
1704 (elf_i386_relocate_section): If a symbol isn't dynamic in PIC,
1705 set no_finish_dynamic_symbol and generate R_386_RELATIVE
1706 relocation for R_386_GOT32.
1707
1708 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1709
1710 PR ld/21425
1711 * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks.
1712
1713 2017-04-23 Alan Modra <amodra@gmail.com>
1714
1715 PR 21414
1716 * section.c (GLOBAL_SYM_INIT): Make available in bfd.h.
1717 * elf.c (lcomm_sym): New.
1718 (_bfd_elf_large_com_section): Use lcomm_sym section symbol.
1719 * bfd-in2.h: Regenerate.
1720
1721 2017-04-23 Alan Modra <amodra@gmail.com>
1722
1723 PR 21412
1724 * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change
1725 parameters and comment.
1726 (_bfd_elf_get_reloc_section): Delete.
1727 (_bfd_elf_plt_get_reloc_section): Declare.
1728 * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section):
1729 New functions. Don't blindly skip over assumed .rel/.rela prefix.
1730 Extracted from..
1731 (_bfd_elf_get_reloc_section): ..here. Delete.
1732 (assign_section_numbers): Call elf_get_reloc_section.
1733 * elf64-ppc.c (elf_backend_get_reloc_section): Define.
1734 * elfxx-target.h (elf_backend_get_reloc_section): Update.
1735
1736 2017-04-23 Alan Modra <amodra@gmail.com>
1737
1738 PR 21409
1739 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when
1740 no symbols.
1741
1742 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
1743
1744 PR ld/21402
1745 * elf32-i386.c (elf_i386_link_hash_entry): Add
1746 no_finish_dynamic_symbol.
1747 (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0.
1748 (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak
1749 symbol, don't make it dynamic in PIE.
1750 (elf_i386_relocate_section): If a symbol isn't dynamic in PIE,
1751 set no_finish_dynamic_symbol and generate R_386_RELATIVE
1752 relocation for R_386_GOT32
1753 (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol
1754 isn't 0.
1755
1756 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
1757
1758 PR ld/19617
1759 PR ld/21086
1760 * elflink.c (elf_link_add_object_symbols): Require
1761 --no-dynamic-linker with -E/--dynamic-list when creating
1762 dynamic sections.
1763
1764 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
1765
1766 * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE
1767 if forced local.
1768
1769 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
1770
1771 * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about
1772 dynamic symbol sorting.
1773
1774 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
1775
1776 PR ld/21382
1777 * elflink.c (elf_link_add_object_symbols): Preserve
1778 dynamic_ref_after_ir_def when restoring the symbol table for
1779 unneeded dynamic object.
1780
1781 2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
1782
1783 PR ld/21401
1784 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort
1785 on on undefined IFUNC symbol in the second PLT.
1786
1787 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com>
1788
1789 * peXXigen.c (pe_print_reloc): Correct chunk_end.
1790
1791 2017-04-19 Alan Modra <amodra@gmail.com>
1792
1793 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak
1794 or make dynamic for info->dynamic_undefined_weak 0 and 1.
1795 * elf32-ppc.c:Formatting.
1796 (ensure_undefweak_dynamic): Don't make dynamic when
1797 info->dynamic_undefined_weak is zero.
1798 (allocate_dynrelocs): Discard undefweak dyn_relocs for
1799 info->dynamic_undefined_weak. Discard undef dyn_relocs when
1800 not default visibility. Discard undef and undefweak
1801 dyn_relocs earlier.
1802 (ppc_elf_relocate_section): Adjust to suit.
1803 * elf64-ppc.c: Formatting.
1804 (ensure_undefweak_dynamic): Don't make dynamic when
1805 info->dynamic_undefined_weak is zero.
1806 (allocate_dynrelocs): Discard undefweak dyn_relocs for
1807 info->dynamic_undefined_weak. Discard them earlier.
1808
1809 2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
1810
1811 PR ld/21389
1812 * elflink.c (bfd_elf_size_dynamic_sections): Get soname index
1813 before generating the version definition section.
1814
1815 2017-04-17 Alan Modra <amodra@gmail.com>
1816
1817 * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking
1818 state when a regular object file defines a symbol with
1819 incompatible type to that defined by an earlier shared lib.
1820
1821 2017-04-13 Alan Modra <amodra@gmail.com>
1822
1823 * coffcode.h: Wrap some overly long _bfd_error_handler args.
1824 * elf.c: Likewise.
1825 * elf32-arm.c: Likewise.
1826 * elf32-i386.c: Likewise.
1827 * elf32-mep.c: Likewise.
1828 * elf64-ia64-vms.c: Likewise.
1829 * elf64-x86-64.c: Likewise.
1830 * elflink.c: Likewise.
1831 * elfnn-ia64.c: Likewise.
1832 * elfxx-mips.c: Likewise.
1833
1834 2017-04-13 Alan Modra <amodra@gmail.com>
1835
1836 * aoutx.h: Use %B and %A in error messages throughout file.
1837 * aout-cris.c: Likewise.
1838 * archive.c: Likewise.
1839 * binary.c: Likewise.
1840 * coff-rs6000.c: Likewise.
1841 * coff-tic4x.c: Likewise.
1842 * coffcode.h: Likewise.
1843 * coffgen.c: Likewise.
1844 * cofflink.c: Likewise.
1845 * coffswap.h: Likewise.
1846 * cpu-arm.c: Likewise.
1847 * elf-eh-frame.c: Likewise.
1848 * elf-m10300.c: Likewise.
1849 * elf.c: Likewise.
1850 * elf32-arc.c: Likewise.
1851 * elf32-arm.c: Likewise.
1852 * elf32-bfin.c: Likewise.
1853 * elf32-frv.c: Likewise.
1854 * elf32-iq2000.c: Likewise.
1855 * elf32-m32c.c: Likewise.
1856 * elf32-microblaze.c: Likewise.
1857 * elf32-nds32.c: Likewise.
1858 * elf32-rl78.c: Likewise.
1859 * elf32-rx.c: Likewise.
1860 * elf32-score.c: Likewise.
1861 * elf32-score7.c: Likewise.
1862 * elf32-sh64.c: Likewise.
1863 * elf32-v850.c: Likewise.
1864 * elf32-vax.c: Likewise.
1865 * elf32-visium.c: Likewise.
1866 * elf64-ia64-vms.c: Likewise.
1867 * elf64-mmix.c: Likewise.
1868 * elf64-sh64.c: Likewise.
1869 * elfcode.h: Likewise.
1870 * elfnn-aarch64.c: Likewise.
1871 * elfnn-ia64.c: Likewise.
1872 * elfxx-mips.c: Likewise.
1873 * hpux-core.c: Likewise.
1874 * ieee.c: Likewise.
1875 * ihex.c: Likewise.
1876 * linker.c: Likewise.
1877 * merge.c: Likewise.
1878 * mmo.c: Likewise.
1879 * oasys.c: Likewise.
1880 * pdp11.c: Likewise.
1881 * peXXigen.c: Likewise.
1882 * rs6000-core.c: Likewise.
1883 * vms-alpha.c: Likewise.
1884 * xcofflink.c: Likewise.
1885
1886 2017-04-13 Alan Modra <amodra@gmail.com>
1887
1888 * bfd.c (PRINT_TYPE): Define.
1889 (_doprnt): New function.
1890 (error_handler_internal): Use _doprnt.
1891 * coff-arm.c: Put %A and %B arguments to _bfd_error_handler
1892 calls in their natural order, throughout file.
1893 * coff-mcore.c: Likewise.
1894 * coff-ppc.c: Likewise.
1895 * coff-tic80.c: Likewise.
1896 * cofflink.c: Likewise.
1897 * elf-s390-common.c: Likewise.
1898 * elf.c: Likewise.
1899 * elf32-arm.c: Likewise.
1900 * elf32-i386.c: Likewise.
1901 * elf32-m32r.c: Likewise.
1902 * elf32-msp430.c: Likewise.
1903 * elf32-spu.c: Likewise.
1904 * elf64-ia64-vms.c: Likewise.
1905 * elf64-sparc.c: Likewise.
1906 * elf64-x86-64.c: Likewise.
1907 * elflink.c: Likewise.
1908 * elfnn-aarch64.c: Likewise.
1909 * elfnn-ia64.c: Likewise.
1910 * elfxx-mips.c: Likewise.
1911
1912 2017-04-13 Alan Modra <amodra@gmail.com>
1913
1914 * elf32-arm.c (arm_type_of_stub): Supply missing args to "long
1915 branch veneers" error. Fix double space and format message.
1916 * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg.
1917 * elf64-ppc.c (tocsave_find): Supply missing %B arg.
1918
1919 2017-04-13 Alan Modra <amodra@gmail.com>
1920
1921 * bfd-in2.h: Regenerate.
1922
1923 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
1924
1925 * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the
1926 extra `\n' in warning/error messages.
1927 * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise.
1928 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
1929
1930 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
1931
1932 * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore
1933 processor-specific properties with generic ELF target vector.
1934
1935 2017-04-10 Qing Zhao <qing.zhao@oracle.com>
1936
1937 * elf32-sparc.c (elf_backend_fixup_symbol): New.
1938 * elf64-sparc.c (elf_backend_fixup_symbol): New.
1939 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
1940 (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and
1941 has_non_got_reloc.
1942 (link_hash_newfunc): Initialize has_got_reloc and
1943 has_non_got_reloc.
1944 (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp
1945 section.
1946 (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and
1947 has_non_got_reloc.
1948 (_bfd_sparc_elf_check_relocs): Set has_got_reloc and
1949 has_non_got_reloc.
1950 (_bfd_sparc_elf_fixup_symbol): New function.
1951 (allocate_dynrelocs): Don't allocate space for dynamic
1952 relocations and discard relocations against resolved undefined
1953 weak symbols in executable. Don't make resolved undefined weak
1954 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
1955 relocation against undefined weak symbols in PIE.
1956 (_bfd_sparc_elf_relocate_section): Don't generate dynamic
1957 relocations against resolved undefined weak symbols in PIE
1958 (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries
1959 without ynamic PLT/GOT relocations for resolved undefined weak
1960 symbols.
1961 Don't generate dynamic relocation against resolved undefined
1962 weak symbol in executable.
1963 (pie_finish_undefweak_symbol): New function.
1964 (_bfd_sparc_elf_finish_dynamic_sections): Call
1965 pie_finish_undefweak_symbol on all symbols in PIE.
1966 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp.
1967 (_bfd_sparc_elf_fixup_symbol): New function.
1968
1969 2017-04-10 Nick Clifton <nickc@redhat.com>
1970
1971 * config.bfd: Remove ns32k from obsolete list.
1972
1973 2017-04-10 Alan Modra <amodra@gmail.com>
1974
1975 PR 21287
1976 * elf.c (special_sections_f): Match .fini_array and .fini_array.*.
1977 (special_sections_i): Likewise for .init_array.
1978 (special_sections_p): Likewise for .preinit_array.
1979
1980 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
1981
1982 PR ld/19579
1983 PR ld/21306
1984 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check
1985 ELF_COMMON_DEF_P for common symbols.
1986 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
1987 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1988 * elflink.c (_bfd_elf_merge_symbol): Revert commits
1989 202ac193bbbecc96a4978d1ac3d17148253f9b01 and
1990 07492f668d2173da7a2bda3707ff0985e0f460b6.
1991
1992 2017-04-07 Pedro Alves <palves@redhat.com>
1993
1994 * opncls.c (bfd_get_debug_link_info): Rename to...
1995 (bfd_get_debug_link_info_1): ... this. Change type of second
1996 parameter to void pointer. Adjust.
1997 (bfd_get_debug_link_info): Reimplement on top of
1998 bfd_get_debug_link_info_1.
1999 (separate_debug_file_exists, separate_alt_debug_file_exists):
2000 Change type of second parameter to void pointer. Adjust.
2001 (get_func_type, check_func_type): Change type of second parameter
2002 to void pointer.
2003 (find_separate_debug_file): Add 'func_data' parameter. Pass it to
2004 the callback functions instead of passing the address of a local.
2005 (bfd_follow_gnu_debuglink): Pass address of unsigned long local to
2006 find_separate_debug_file.
2007 (get_alt_debug_link_info_shim): Change type of second parameter to
2008 void pointer. Adjust.
2009 (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to
2010 find_separate_debug_file.
2011 (get_build_id_name, bfd_boolean check_build_id_file): Change type
2012 of second parameter to void pointer. Adjust.
2013 (bfd_follow_build_id_debuglink): Pass address of bfd_build_id
2014 pointer local to find_separate_debug_file.
2015
2016 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510>
2017
2018 * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak
2019 external symbols with a definition.
2020 (_bfd_coff_gc_mark_extra_sections): Fix typo.
2021
2022 2017-04-07 Alan Modra <amodra@gmail.com>
2023
2024 * po/SRC-POTFILES.in: Regenerate.
2025
2026 2017-04-05 Alan Modra <amodra@gmail.com>
2027
2028 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT
2029 reference counting.
2030
2031 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk>
2032
2033 (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than
2034 numbers for DataDirectory entry indicies passed to
2035 add_data_entry().
2036
2037 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
2038
2039 * elf.c (get_program_header_size): Add a GNU_MBIND segment for
2040 each GNU_MBIND section and align GNU_MBIND section to page size.
2041 (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
2042 segment for each GNU_MBIND section.
2043 (_bfd_elf_init_private_section_data): Copy sh_info from input
2044 for GNU_MBIND section.
2045
2046 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
2047
2048 * elfnn-riscv.c (GP_NAME): Delete.
2049 (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
2050 (_bfd_riscv_relax_lui): Likewise.
2051
2052 2017-04-04 Nick Clifton <nickc@redhat.com>
2053
2054 PR binutils/21342
2055 * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
2056 dereference.
2057 (bfd_elf_final_link): Only initialize the extended symbol index
2058 section if there are extended symbol tables to list.
2059
2060 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
2061
2062 * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo.
2063 (BFD32_BACKENDS_CFILES): Add elf-properties.c.
2064 * configure.ac (elf): Add elf-properties.lo.
2065 * Makefile.in: Regenerated.
2066 * configure: Likewise.
2067 * elf-bfd.h (elf_property_kind): New.
2068 (elf_property): Likewise.
2069 (elf_property_list): Likewise.
2070 (elf_properties): Likewise.
2071 (_bfd_elf_parse_gnu_properties): Likewise.
2072 (_bfd_elf_get_property): Likewise.
2073 (_bfd_elf_link_setup_gnu_properties): Likewise.
2074 (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties
2075 and setup_gnu_properties.
2076 (elf_obj_tdata): Add properties.
2077 * elf-properties.c: New file.
2078 * elf32-i386.c (elf_i386_parse_gnu_properties): New.
2079 (elf_i386_merge_gnu_properties): Likewise.
2080 (elf_backend_parse_gnu_properties): Likewise.
2081 (elf_backend_merge_gnu_properties): Likewise.
2082 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
2083 (elf_x86_64_merge_gnu_properties): Likewise.
2084 (elf_backend_parse_gnu_properties): Likewise.
2085 (elf_backend_merge_gnu_properties): Likewise.
2086 * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise.
2087 (elf_backend_parse_gnu_properties): Likewise.
2088 (elf_backend_setup_gnu_properties): Likewise.
2089 (elfNN_bed): Add elf_backend_parse_gnu_properties,
2090 elf_backend_merge_gnu_properties and
2091 elf_backend_setup_gnu_properties.
2092
2093 2017-03-30 Pip Cet <pipcet@gmail.com>
2094
2095 * elf32-wasm32.c: Add relocation code, two relocs.
2096 * reloc.c: Add wasm32 relocations.
2097 * libbfd.h: Regenerate.
2098 * bfd-in2.h: Regenerate.
2099 * bfd/po/bfd.pot: Regenerate.
2100
2101 2017-03-29 Nick Clifton <nickc@redhat.com>
2102
2103 PR binutils/18025
2104 * coff-bfd.h (struct coff_section_data): Add new fields:
2105 saved_bias and bias.
2106 * coffgen.c (coff_find_nearest_line_with_names): Cache the bias
2107 computed for PE binaries.
2108 * dwarf2.c (scan_unit_for_symbols): Only warn once about each
2109 missing abbrev.
2110
2111 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
2112
2113 PR ld/16044
2114 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
2115 to handle a local symbol with a hash-symbol-entry; without PLT.
2116 Add BFD_ASSERT for an incidental case with GOT entry present.
2117 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
2118 isn't forced-or-set local.
2119
2120 2017-03-27 Pip Cet <pipcet@gmail.com>
2121
2122 * wasm-module.c: New file to support WebAssembly modules.
2123 * wasm-module.h: New file to support WebAssembly modules.
2124 * doc/webassembly.texi: Start documenting wasm-module.c.
2125 * config.bfd: Add wasm_vec.
2126 * targets.c: Likewise.
2127 * configure.ac: Likewise.
2128 * Makefile.am: Add entries for wasm-module.c.
2129 * Makefile.in: Regenerate.
2130 * configure: Regenerate.
2131 * po/SRC-POTFILES.in: Regenerate.
2132
2133 2017-03-27 Pip Cet <pipcet@gmail.com>
2134
2135 * cpu-wasm32.c: New file to support wasm32 architecture.
2136 * elf32-wasm32.c: New file to support wasm32 architecture.
2137 * Makefile.am: Add wasm32 architecture.
2138 * archures.c: Likewise.
2139 * config.bfd: Likewise.
2140 * configure.ac: Likewise.
2141 * targets.c: Likewise.
2142 * Makefile.in: Regenerate.
2143 * bfd-in2.h: Regenerate.
2144 * configure: Regenerate.
2145 * po/SRC-POTFILES.in: Regenerate.
2146
2147 2017-03-20 Alan Modra <amodra@gmail.com>
2148
2149 PR 21266
2150 * elf64-ppc.c (compare_symbols): Stabilize sort.
2151
2152 2017-03-18 Alan Modra <amodra@gmail.com>
2153
2154 * elf64-ppc.c (struct ppc_link_hash_table): Add
2155 local_ifunc_resolver and maybe_local_ifunc_resolver.
2156 (ppc_build_one_stub): Set flags on emitting dynamic
2157 relocation to ifunc.
2158 (ppc64_elf_relocate_section): Likewise.
2159 (ppc64_elf_finish_dynamic_symbol): Likewise.
2160 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
2161 local dynamic relocs to ifuncs.
2162 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
2163 local_ifunc_resolver and maybe_local_ifunc_resolver.
2164 (ppc_elf_relocate_section): Set flag on emitting dynamic
2165 relocation to ifuncs.
2166 (ppc_elf_finish_dynamic_symbol): Likewise.
2167 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
2168 dynamic relocs to ifuncs.
2169
2170 2017-03-13 Nick Clifton <nickc@redhat.com>
2171
2172 PR binutils/21202
2173 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
2174 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
2175 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
2176 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
2177 * bfd-in2.h: Regenerate.
2178 * libbfd.h: Regenerate.
2179 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
2180 names.
2181 (IS_AARCH64_TLSDESC_RELOC): Likewise.
2182 (elfNN_aarch64_howto_table): Likewise.
2183 (aarch64_tls_transition_without_check): Likewise.
2184 (aarch64_reloc_got_type): Likewise.
2185 (elfNN_aarch64_final_link_relocate): Likewise.
2186 (elfNN_aarch64_tls_relax): Likewise.
2187 (elfNN_aarch64_relocate_section): Likewise.
2188 (elfNN_aarch64_gc_sweep_hook): Likewise.
2189 (elfNN_aarch64_check_relocs): Likewise.
2190 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
2191 (_bfd_aarch64_elf_resolve_relocation): Likewise.
2192
2193 2017-03-11 Alan Modra <amodra@gmail.com>
2194
2195 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
2196 parameter is in fact used. Whitespace fixes.
2197 * elf64-ppc.c: Likewise.
2198
2199 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
2200
2201 * rs6000-core.c (CORE_NEW): Simplify macro when
2202 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
2203
2204 2017-03-07 Alan Modra <amodra@gmail.com>
2205
2206 PR 21224
2207 PR 20519
2208 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
2209 dyn_relocs check.
2210
2211 2017-03-05 Alan Modra <amodra@gmail.com>
2212
2213 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
2214 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
2215 (next_cie_fde_offset): New function.
2216 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
2217 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
2218 four bytes. Align CIEs to four or eight bytes depending on
2219 per_encoding_aligned8. Align FDEs according to their encoding.
2220 Pad last FDE to output section alignment.
2221 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
2222 assertion.
2223 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
2224 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
2225 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
2226
2227 2017-03-02 Martin Bickel <binutils@ineranves.de>
2228
2229 PR ld/21212
2230 * elf.c (rewrite_elf_program_header): Do not issue a warning for
2231 empty segments which have a zero filesz, but a non-zero memsz.
2232
2233 2017-03-02 Alan Modra <amodra@gmail.com>
2234
2235 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
2236
2237 2017-02-28 Alan Modra <amodra@gmail.com>
2238
2239 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
2240 (ppc64_elf_relocate_section): Likewise.
2241
2242 2017-02-28 Alan Modra <amodra@gmail.com>
2243
2244 PR 20995
2245 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
2246 rather than elf32_nios2_hash_table or elf_hash_table.
2247 (create_got_section): Likewise.
2248 (nios2_elf32_finish_dynamic_symbol): Likewise.
2249 (nios2_elf32_adjust_dynamic_symbol): Likewise.
2250 (nios2_elf32_size_dynamic_sections): Likewise.
2251 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
2252 vars. Use htab equivalents directly instead. Don't create
2253 all dynamic sections on needing just the GOT. Use a goto
2254 rather than a fall-through with reloc test. Ensure
2255 htab->dynobj is set when making dynamic sreloc section.
2256 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
2257 equivalent directly instead. Don't segfault on looking for
2258 .dynamic when dynamic sections have not been created. Don't
2259 segfault on .got.plt being discarded.
2260 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
2261 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
2262 fixme and another not so relevant comment.
2263 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
2264 already set, set hash table dynobj on creating .sbss.
2265
2266 2017-02-28 Alan Modra <amodra@gmail.com>
2267
2268 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
2269 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
2270 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
2271 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
2272 (ppc64_elf_relocate_section): Likewise.
2273 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
2274 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
2275 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
2276 * libbfd.h: Regenerate.
2277 * bfd-in2.h: Regenerate.
2278
2279 2017-02-28 Alan Modra <amodra@gmail.com>
2280
2281 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
2282 dynamic .data.rel.ro read-only.
2283 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
2284 rather than section flags when deciding where copy reloc goes.
2285 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
2286 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
2287 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
2288 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
2289 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
2290 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
2291 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
2292 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
2293 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
2294 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
2295 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
2296 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
2297 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
2298 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
2299 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
2300 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
2301 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
2302 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
2303 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
2304
2305 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
2306
2307 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
2308 `jalr $0, $25' instruction encoding.
2309
2310 2017-02-27 Nick Clifton <nickc@redhat.com>
2311
2312 PR ld/21180
2313 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
2314 generating a seg-fault when encountering a symbol that has been
2315 deleted by garbage collection.
2316
2317 2017-02-25 Alan Modra <amodra@gmail.com>
2318
2319 * elf32-arc.c (struct dynamic_sections): Delete.
2320 (enum dyn_section_types): Delete.
2321 (dyn_section_names): Delete.
2322 (arc_create_dynamic_sections): Delete.
2323 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
2324 segfault on discarded .rela.plt section.
2325 (elf_arc_size_dynamic_sections): Formatting. Don't call
2326 arc_create_dynamic_sections. Don't allocate memory for sections
2327 handled by the generic linker. Correct code finding relocs in
2328 read-only sections. Set SEC_EXCLUDE on zero size .got,
2329 .got.plt, and .dynbss sections. Do set .interp for pies.
2330
2331 2017-02-24 Andrew Waterman <andrew@sifive.com>
2332
2333 * elfnn-riscv.c (GP_NAME): New macro.
2334 (riscv_global_pointer_value): Use it.
2335 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
2336 output section, consider only that section's alignment.
2337
2338 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
2339
2340 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
2341 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
2342 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
2343 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
2344
2345 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
2346
2347 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
2348 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
2349 or misaligned.
2350
2351 2017-02-23 Alan Modra <amodra@gmail.com>
2352
2353 PR 20744
2354 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
2355 16D relocations.
2356 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
2357 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
2358 relocs.
2359
2360 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
2361
2362 PR ld/20828
2363 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
2364 processing ahead of the call to `elf_gc_sweep_symbol'.
2365
2366 2017-02-22 Nick Clifton <nickc@redhat.com>
2367
2368 PR binutils/21193
2369 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
2370 created section 4-byte alignment.
2371
2372 2017-02-22 Alan Modra <amodra@gmail.com>
2373
2374 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
2375 on .got or .plt output section being discarded by script.
2376 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
2377 vxworks splt temp.
2378
2379 2017-02-21 Alan Modra <amodra@gmail.com>
2380
2381 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
2382 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
2383
2384 2017-02-20 Alan Modra <amodra@gmail.com>
2385
2386 PR 21181
2387 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
2388 if DT_RELSZ/DT_RELASZ is zero.
2389
2390 2017-02-17 Nick Clifton <nickc@redhat.com>
2391
2392 * compress.c (bfd_get_full_section_contents): Remember to reduce
2393 compressed size by the sizeof the compression header when
2394 decompressing the contents.
2395
2396 2017-02-17 Pedro Alves <palves@redhat.com>
2397
2398 * srec.c (Chunk): Rename to ...
2399 (_bfd_srec_len): ... this.
2400 (S3Forced): Rename to ...
2401 (_bfd_srec_forceS3): ... this.
2402 * objcopy.c: Adjust all references.
2403
2404 2017-02-17 Pedro Alves <palves@redhat.com>
2405
2406 * archive.c (bsd_write_armap): Rename to ...
2407 (_bfd_bsd_write_armap): ... this.
2408 (coff_write_armap): Rename to ...
2409 (_bfd_coff_write_armap): ... this.
2410 * libbfd-in.h (bsd_write_armap): Rename to ...
2411 (_bfd_bsd_write_armap): ... this.
2412 (coff_write_armap): Rename to ...
2413 (_bfd_coff_write_armap): ... this.
2414 * aout-target.h, aout-tic30.c: Adjust all users.
2415 * libbfd.h: Regenerate.
2416
2417 2017-02-17 Pedro Alves <palves@redhat.com>
2418
2419 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
2420 (warn_deprecated): Rename to ...
2421 (_bfd_warn_deprecated): ... this.
2422 * libbfd.c (warn_deprecated): Rename to ...
2423 (_bfd_warn_deprecated): ... this.
2424 * bfd-in2.h: Regenerate.
2425
2426 2017-02-17 Pedro Alves <palves@redhat.com>
2427
2428 * bfdio.c (real_ftell): Rename to ...
2429 (_bfd_real_ftell): ... this.
2430 (real_fseek): Rename to ...
2431 (_bfd_real_fseek): ... this.
2432 (real_fopen): Rename to ...
2433 (_bfd_real_fopen): ... this.
2434 * libbfd-in.h (real_ftell): Rename to ...
2435 (_bfd_real_ftell): ... this.
2436 (real_fseek): Rename to ...
2437 (_bfd_real_fseek): ... this.
2438 (real_fopen): Rename to ...
2439 (_bfd_real_fopen): ... this.
2440 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
2441 * libbfd.h: Regenerate.
2442
2443 2017-02-17 Pedro Alves <palves@redhat.com>
2444
2445 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
2446 * libbfd.c (read_unsigned_leb128): Rename to ...
2447 (_bfd_read_unsigned_leb128): ... this.
2448 (read_signed_leb128): Rename to ...
2449 (_bfd_read_signed_leb128): ... this.
2450 (safe_read_leb128): Rename to ...
2451 (_bfd_safe_read_leb128): ... this.
2452 * libbfd-in.h (read_unsigned_leb128): Rename to ...
2453 (_bfd_read_unsigned_leb128): ... this.
2454 (read_signed_leb128): Rename to ...
2455 (_bfd_read_signed_leb128): ... this.
2456 (safe_read_leb128): Rename to ...
2457 (_bfd_safe_read_leb128): ... this.
2458 * libbfd.h: Renegerate.
2459
2460 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
2461
2462 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
2463 before trying to fine matching file and line information.
2464
2465 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
2468 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
2469 not match current bfd, then reload debug information. Record bfd
2470 we're loading debug info for in the stash. If we have debug
2471 informatin in the cache then perform section placement before
2472 returning.
2473
2474 2017-02-16 Alan Modra <amodra@gmail.com>
2475
2476 PR 21000
2477 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
2478 * elfxx-target.h (elf_backend_no_page_alias): Define.
2479 (elfNN_bed): Init new field.
2480 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
2481 ensure PT_LOAD segment starts on a new page.
2482 * elf32-hppa.c (elf_backend_no_page_alias): Define.
2483
2484 2017-02-16 Alan Modra <amodra@gmail.com>
2485
2486 PR 21132
2487 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
2488 if pic.
2489
2490 2017-02-16 Jiong Wang <jiong.wang@arm.com>
2491
2492 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
2493 * bfd-in2.h: Regenerated.
2494
2495 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
2496
2497 PR ld/21168
2498 * elf32-i386.c (elf_i386_relocate_section): Allow
2499 "lea foo@GOT, %reg" in PIC.
2500
2501 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
2502
2503 PR ld/20244
2504 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
2505 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
2506 error against local IFUNC symbol without a base register for
2507 PIC.
2508
2509 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
2510
2511 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
2512 `%P: %H:' with `info->callbacks->einfo'.
2513 (ppc_elf_relocate_section): Likewise.
2514 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
2515 (ppc64_elf_edit_toc): Likewise.
2516 (ppc64_elf_relocate_section): Likewise.
2517
2518 2017-02-14 Alan Modra <amodra@gmail.com>
2519
2520 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
2521 --gc-keep-exported, and test versioned field of sym rather than
2522 looking for @ in name.
2523
2524 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
2525
2526 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
2527 __global_pointer$.
2528
2529 2017-02-13 Nick Clifton <nickc@redhat.com>
2530
2531 PR binutils/21151
2532 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
2533 unit length field.
2534
2535 2017-02-07 Andrew Waterman <andrew@sifive.com>
2536
2537 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
2538 entry size if PLT header is written.
2539
2540 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
2541
2542 Fix sparc64 dynamic relocation processing to use the dynamic
2543 symbol count.
2544 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
2545 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
2546 should be used.
2547
2548 2017-02-03 Nick Clifton <nickc@redhat.com>
2549
2550 PR 21096
2551 * coffcode.h (coff_write_object_contents): Enlarge size of
2552 s_name_buf in order to avoid compile time warning about possible
2553 integer truncation.
2554 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
2555 32-bits of insn value before printing into buffer.
2556
2557 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2558
2559 * elfxx-mips.c (mips_elf_hash_sort_data): Add
2560 `max_local_dynindx'.
2561 (mips_elf_sort_hash_table): Handle it.
2562 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
2563 symbols bump up `max_local_dynindx' rather than
2564 `max_non_got_dynindx'.
2565
2566 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2567
2568 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
2569 `min_got_dynindx', `max_unref_got_dynindx' and
2570 `max_non_got_dynindx' members to the `bfd_size_type' data type.
2571 (mips_elf_sort_hash_table): Adjust accordingly.
2572
2573 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2574
2575 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
2576 to access the hash table.
2577
2578 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2579
2580 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
2581 non-NULL `htab' to the beginning.
2582
2583 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2584
2585 * elflink.c (elf_gc_sweep): Wrap overlong line.
2586
2587 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
2588
2589 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
2590 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
2591 * elfxx-mips.c (mips_elf_link_hash_table): Add
2592 `ignore_branch_isa' member.
2593 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
2594 in branch relocation calculation as an error if
2595 `ignore_branch_isa' has been set.
2596 (_bfd_mips_elf_insn32): Rename to...
2597 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
2598 parameter to `insn32' and add an `ignore_branch_isa' parameter.
2599 Handle the new parameter.
2600
2601 2017-01-27 Hans-Peter Nilsson <hp@axis.com>
2602
2603 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
2604 local variable dynobj.
2605
2606 PR ld/20995
2607 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
2608 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
2609 executable from read-only sections into sdynrelro.
2610 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
2611 dynamic relocs in sdynrelro.
2612 (elf_backend_want_dynrelro): Define.
2613
2614 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
2615
2616 * config.bfd (*-*-rtemsaout*): Mark as removed.
2617
2618 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
2619
2620 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
2621 (arm-*-rtems*): Move to (arm*-*-eabi*).
2622 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
2623 (m68-*-rtems*): Move to (m68*-*-elf*).
2624
2625 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
2626
2627 * config.bfd (*-*-rtemscoff*): Mark as removed.
2628
2629 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
2630
2631 PR ld/20828
2632 * elflink.c (bfd_elf_record_link_assignment): Revert last
2633 change and don't ever clear `forced_local'. Set `mark'
2634 unconditionally.
2635 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
2636 file.
2637 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
2638 (bfd_elf_size_dynamic_sections): ... here.
2639 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
2640 and set `mark' instead in `__tls_get_addr_opt' processing.
2641 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
2642
2643 2017-01-24 Alan Modra <amodra@gmail.com>
2644
2645 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
2646 where dynamic relocs are preferable. Allow ifunc too.
2647 (ensure_undefweak_dynamic): New function.
2648 (allocate_dynrelocs): Use it here. Move plt handling last and
2649 don't make symbols dynamic, simplifying loop. Only make undef
2650 weak symbols with GOT entries dynamic. Correct condition
2651 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
2652 comments. Remove goto.
2653 (ppc_elf_relocate_section): Correct test for using dynamic
2654 symbol on GOT relocs. Rearrange test for emitting GOT relocs
2655 to suit. Set up explicit tls_index entries and implicit GOT
2656 tls_index entries resolvable at link time for
2657 __tls_get_addr_opt. Simplify test to clear mem for prelink.
2658 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
2659 (ensure_undefweak_dynamic): New function.
2660 (allocate_dynrelocs): Use it here. Only make undef weak symbols
2661 with GOT entries dynamic. Remove unnecessary test of
2662 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
2663 (ppc64_elf_relocate_section): Correct test for using dynamic
2664 symbol on GOT relocs. Rearrange test for emitting GOT relocs
2665 to suit. Set up explicit tls_index entries and implicit GOT
2666 tls_index entries resolvable at link time for __tls_get_addr_opt.
2667 Simplify expression to clear mem for prelink.
2668
2669 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
2670
2671 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
2672
2673 2017-01-20 Jiong Wang <jiong.wang@arm.com>
2674
2675 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
2676 (elf_backend_hash_symbol): Define.
2677
2678 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
2679
2680 PR ld/20828
2681 * elflink.c (bfd_elf_record_link_assignment): Clear any
2682 `forced_local' marking for DSO symbols that are not being
2683 provided.
2684
2685 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2686
2687 * elfnn-riscv.c (riscv_elf_object_p): New function.
2688
2689 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
2690
2691 PR ld/21038
2692 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
2693 plt_bnd_eh_frame.
2694 (elf_x86_64_check_relocs): Create .eh_frame section for the
2695 .plt.bnd section.
2696 (elf_x86_64_size_dynamic_sections): Allocate and initialize
2697 .eh_frame section for the .plt.bnd section.
2698 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
2699 for the .plt.bnd section.
2700
2701 2017-01-12 Nick Clifton <nickc@redhat.com>
2702
2703 PR binutils/20876
2704 * opncls.c (find_separate_debug_file): Add include_dirs
2705 parameter. Only include the directory part of the bfd's filename
2706 in search paths if include_dirs is true. Add a couple of extra
2707 locations for looking for debug files.
2708 ( bfd_follow_gnu_debuglink): Update invocation of
2709 find_separate_debug_file.
2710 (bfd_follow_gnu_debugaltlink): Likewise.
2711 (get_build_id): New function: Finds the build-id of the given bfd.
2712 (get_build_id_name): New function: Computes the name of the
2713 separate debug info file for a bfd, based upon its build-id.
2714 (check_build_id_file): New function: Checks to see if a separate
2715 debug info file exists at the given location, and that its
2716 build-id matches that of the original bfd.
2717 (bfd_follow_build_id_debuglink): New function: Finds a separate
2718 debug info file for a given bfd by using the build-id method.
2719 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
2720 method of locating a separate debug info file before using the
2721 debuglink method.
2722 * bfd-in2.h: Regenerate.
2723
2724 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
2725
2726 PR ld/21038
2727 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
2728 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
2729 elf_x86_64_eh_frame_plt_got.
2730 (elf_x86_64_size_dynamic_sections): Get unwind info from
2731 elf_x86_64_bnd_arch_bed for the BND PLT.
2732
2733 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
2734
2735 * config.bfd: Add entries for i686-redox and x86_64-redox.
2736
2737 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
2738
2739 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
2740 to 4 bytes.
2741 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
2742 .eh_frame section to 4 bytes for x32.
2743 (elf_x86_64_check_relocs): Likewise.
2744
2745 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
2746
2747 PR ld/20830
2748 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
2749 (PLT_GOT_FDE_LENGTH): Likewise.
2750 (elf_i386_plt_layout): Add eh_frame_plt_got and
2751 eh_frame_plt_got_size.
2752 (elf_i386_plt): Updated.
2753 (elf_i386_link_hash_table): Add plt_got_eh_frame.
2754 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
2755 (elf_i386_size_dynamic_sections): Allocate and initialize
2756 .eh_frame section for .plt.got.
2757 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
2758 .plt.got.
2759 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
2760 eh_frame_plt_got_size.
2761 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
2762 (PLT_GOT_FDE_LENGTH): Likewise.
2763 (elf_x86_64_backend_data): Add eh_frame_plt_got and
2764 eh_frame_plt_got_size.
2765 (elf_x86_64_arch_bed): Updated.
2766 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
2767 eh_frame_plt_got_size.
2768 (elf_x86_64_nacl_arch_bed): Likewise.
2769 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
2770 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
2771 (elf_x86_64_size_dynamic_sections): Allocate and initialize
2772 .eh_frame section for .plt.got.
2773 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
2774 for .plt.got.
2775
2776 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
2777
2778 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
2779 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
2780
2781 2017-01-09 Nick Clifton <nickc@redhat.com>
2782
2783 * dwarf2.c (lookup_address_in_function_table): Return early if
2784 there are no functions in the given comp unit, or if the high
2785 address of the last function in the comp unit is less than the
2786 desired address.
2787
2788 2017-01-09 Nick Clifton <nickc@redhat.com>
2789
2790 PR binutils/21013
2791 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
2792 message if there are too many symbols to load.
2793
2794 2017-01-04 James Clarke <jrtc27@jrtc27.com>
2795
2796 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
2797 if relocs are cached.
2798
2799 2017-01-03 Rich Felker <bugdal@aerifal.cx>
2800
2801 PR ld/21017
2802 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
2803 for R_MICROBLAZE_GOTOFF_64.
2804
2805 2017-01-03 Nick Clifton <nickc@redhat.com>
2806
2807 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
2808 warning about using a possibly uninitialised variable.
2809
2810 2017-01-02 Alan Modra <amodra@gmail.com>
2811
2812 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
2813 (allocate_plt_static, allocate_dynrelocs): Use it.
2814
2815 2017-01-02 Alan Modra <amodra@gmail.com>
2816
2817 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
2818 .PARISC.unwind section.
2819
2820 2017-01-02 Alan Modra <amodra@gmail.com>
2821
2822 PR ld/20989
2823 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
2824 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
2825 indirect to GOT pointer relative code edit.
2826
2827 2017-01-02 Alan Modra <amodra@gmail.com>
2828
2829 Update year range in copyright notice of all files.
2830
2831 For older changes see ChangeLog-2016
2832 \f
2833 Copyright (C) 2017 Free Software Foundation, Inc.
2834
2835 Copying and distribution of this file, with or without modification,
2836 are permitted in any medium without royalty provided the copyright
2837 notice and this notice are preserved.
2838
2839 Local Variables:
2840 mode: change-log
2841 left-margin: 8
2842 fill-column: 74
2843 version-control: never
2844 End: