1 2017-08-06 H.J. Lu <hongjiu.lu@intel.com>
3 * elf32-i386.c (elf_i386_link_hash_entry): Change tls_get_addr
5 (elf_i386_link_hash_newfunc): Initialize tls_get_addr to 0.
6 (elf_i386_check_tls_transition): Check tls_get_addr directly.
7 (elf_i386_convert_load_reloc): Update tls_get_addr check.
8 (elf_i386_link_check_relocs): New function.
9 (bfd_elf32_bfd_link_check_relocs): New.
10 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Change tls_get_addr
12 (elf_x86_64_link_hash_newfunc): Initialize tls_get_addr to 0.
13 (elf_x86_64_check_tls_transition): Check tls_get_addr directly.
14 (elf_x86_64_convert_load_reloc): Update tls_get_addr check.
15 (elf_x86_64_link_check_relocs): New function.
16 (bfd_elf64_bfd_link_check_relocs): New.
17 (bfd_elf32_bfd_link_check_relocs): Likewise.
19 2017-08-06 H.J. Lu <hongjiu.lu@intel.com>
22 * elflink.c (elf_link_add_object_symbols): Treat common symbol
23 as undefined for --no-define-common.
25 2017-08-05 Alan Modra <amodra@gmail.com>
27 * elf32-hppa.c (elf32_hppa_set_gp): Don't require an
30 2017-08-02 Max Filippov <jcmvbkbc@gmail.com>
32 * xtensa-isa.c (xtensa_isa_init): Don't update lookup table
33 entries for sysregs with negative indices.
35 2017-08-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
37 * elf32-s390.c (elf_s390_finish_dynamic_sections): Skip if it
38 isn't the S/390 specific elf data.
39 * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise.
41 2017-07-31 Kuan-Lin Chen <rufus@andestech.com>
43 * elfxx-riscv.c (riscv_elf_add_sub_reloc): New function.
44 * (howto_table) [R_RISCV_ADD8]: Use riscv_elf_add_sub_reloc.
45 [R_RISCV_ADD16]: Likewise.
46 [R_RISCV_ADD32]: Likewise.
47 [R_RISCV_ADD64]: Likewise.
48 [R_RISCV_SUB6]: Likewise.
49 [R_RISCV_SUB8]: Likewise.
50 [R_RISCV_SUB16]: Likewise.
51 [R_RISCV_SUB32]: Likewise.
52 [R_RISCV_SUB64]: Likewise.
54 2017-07-31 Alan Modra <amodra@gmail.com>
56 * elf64-ppc.c (ppc64_elf_tls_setup): Warn on --plt-localentry
59 2017-07-29 Alan Modra <amodra@gmail.com>
62 * elf64-ppc.c (struct ppc_link_hash_entry): Add non_zero_localentry.
63 (ppc64_elf_merge_symbol): Set non_zero_localentry.
64 (is_elfv2_localentry0): Test non_zero_localentry.
65 (ppc64_elf_tls_setup): Default to --no-plt-localentry.
67 2017-07-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
69 * elf32-s390.c (elf_s390_finish_dynamic_sections): Add NULL
70 pointer check for htab->elf.irelplt.
71 * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise.
73 2017-07-27 Nick Clifton <nickc@redhat.com>
76 * mach-o.c (bfd_mach_o_read_symtab_strtab): Fail if the symtab
78 * nlmcode.h (nlm_swap_auxiliary_headers_in): Replace assertion
80 * section.c (bfd_make_section_with_flags): Fail if the name or bfd
82 * vms-alpha.c (bfd_make_section_with_flags): Correct computation
84 (evax_bfd_print_emh): Check for invalid string lengths.
86 2017-07-25 Nick Clifton <nickc@redhat.com>
88 * po/fr.po: Updated French translation.
90 2017-07-25 Benjamin Green <bengreen5mx@gmail.com>
93 * elf32-msp430.c (msp430_elf_relax_section): Allow conversion of
94 16-bit absolute branches into 10-bit pc-relative branches on the
95 MSP430 as well as the MSP430X.
97 2017-07-25 Alan Modra <amodra@gmail.com>
99 * elf64-ppc.c (struct map_stub): Add tls_get_addr_opt_bctrl.
100 (stub_eh_frame_size): New function.
101 (ppc_size_one_stub): Set group tls_get_addr_opt_bctrl.
102 (group_sections): Init group tls_get_addr_opt_bctrl.
103 (ppc64_elf_size_stubs): Update sizing and initialization of
104 .eh_frame. Iteration over stubs via group list.
105 (ppc64_elf_build_stubs): Iterate over stubs via group list.
106 (ppc64_elf_finish_dynamic_sections): Update finalization of
109 2017-07-24 Nick Clifton <nickc@redhat.com>
112 * mach-o.c (bfd_mach_o_canonicalize_relocs): Pass the base address
113 of the relocs to the canonicalize_one_reloc routine.
114 * mach-o.h (struct bfd_mach_o_backend_data): Update the prototype
115 for the _bfd_mach_o_canonicalize_one_reloc field.
116 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add
117 res_base parameter. Use to check for corrupt pair relocs.
118 * mach-o-aarch64.c (bfd_mach_o_arm64_canonicalize_one_reloc):
120 * mach-o-i386.c (bfd_mach_o_i386_canonicalize_one_reloc):
122 * mach-o-x86-64.c (bfd_mach_o_x86_64_canonicalize_one_reloc):
125 * vms-alpha.c (_bfd_vms_slurp_eihd): Make sure that there is
126 enough data in the record before attempting to parse it.
127 (_bfd_vms_slurp_eeom): Likewise.
129 (_bfd_vms_slurp_egsd): Check for an invalid section index.
130 (image_set_ptr): Likewise.
131 (alpha_vms_slurp_relocs): Likewise.
133 (alpha_vms_object_p): Check for a truncated record.
135 2017-07-24 Nick Clifton <nickc@redhat.com>
138 * reloc.c (_bfd_unrecognized_reloc): New function. Reports
139 an unrecognized reloc and sets the bfd_error value.
140 * libbfd.h: Regenerate.
141 * elf32-arm.c (elf32_arm_final_link_relocate): Use the new
143 * elf32-i386.c (elf_i386_relocate_section): Likewise.
144 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
145 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
146 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
147 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
149 2017-07-23 Alan Modra <amodra@gmail.com>
151 * elf64-ppc.c (ppc64_elf_size_stubs): Correct advance to
154 2017-07-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
157 * elfnn-aarch64.c (elfNN_aarch64_reloc_type_class): Return
158 reloc_class_ifunc for ifunc symbols.
160 2017-07-19 Nick Clifton <nickc@redhat.com>
163 * archive.c (bfd_generic_archive_p): If the bfd does not have the
164 correct magic bytes at the start, set the error to wrong format
165 and clear the format selector before returning NULL.
167 2017-07-19 Nick Clifton <nickc@redhat.com>
170 * coff-rs6000.c (_bfd_strntol): New function.
171 (_bfd_strntoll): New function.
172 (GET_VALUE_IN_FIELD): New macro.
173 (EQ_VALUE_IN_FIELD): new macro.
174 (_bfd_xcoff_slurp_armap): Use new macros.
175 (_bfd_xcoff_archive_p): Likewise.
176 (_bfd_xcoff_read_ar_hdr): Likewise.
177 (_bfd_xcoff_openr_next_archived_file): Likewise.
178 (_bfd_xcoff_stat_arch_elt): Likewise.
179 * coff64-rs6000.c (_bfd_strntol): New function.
180 (_bfd_strntoll): New function.
181 (GET_VALUE_IN_FIELD): New macro.
182 (xcoff64_slurp_armap): Use new macros.
184 2017-07-19 Claudiu Zissulescu <claziss@synopsys.com>
185 John Eric Martin <John.Martin@emmicro-us.com>
187 * bfd-in2.h: Regenerate.
188 * libbfd.h: Regenerate.
189 * elf32-arc.c (JLI): Define.
190 * reloc.c: Add JLI relocations.
192 2017-07-18 Nick Clifton <nickc@redhat.com>
195 * coff-sh.c: Fix spelling typos.
196 * compress.c: Likewise.
197 * cpu-pdp11.c: Likewise.
198 * ecofflink.c: Likewise.
199 * elf-m10300.c: Likewise.
201 * elf32-arm.c: Likewise.
202 * elf32-m68k.c: Likewise.
203 * elf32-nds32.c: Likewise.
204 * elf32-ppc.c: Likewise.
205 * elf32-sh.c: Likewise.
206 * elf32-v850.c: Likewise.
207 * elf64-ppc.c: Likewise.
208 * elf64-x86-64.c: Likewise.
209 * elflink.c: Likewise.
210 * elfnn-aarch64.c: Likewise.
211 * elfxx-mips.c: Likewise.
214 * vms-alpha.c: Likewise.
215 * xcofflink.c: Likewise.
217 2017-07-18 Nick Clifton <nickc@redhat.com>
220 * coffcode.h (handle_COMDAT): Replace abort with an error message
223 2017-07-17 H.J. Lu <hongjiu.lu@intel.com>
226 * elf64-x86-64.c (elf_x86_64_relocate_section): Limit PIC check
229 2017-07-17 H.J. Lu <hongjiu.lu@intel.com>
231 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
233 2017-07-16 Alan Modra <amodra@gmail.com>
235 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimize
236 __tls_index GOT entries when using __tls_get_addr_opt stub.
237 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
239 2017-07-12 Alan Modra <amodra@gmail.com>
241 * po/es.po: Update from translationproject.org/latest/bfd/.
242 * po/fi.po: Likewise.
243 * po/fr.po: Likewise.
244 * po/id.po: Likewise.
245 * po/ja.po: Likewise.
246 * po/ro.po: Likewise.
247 * po/ru.po: Likewise.
248 * po/sr.po: Likewise.
249 * po/sv.po: Likewise.
250 * po/tr.po: Likewise.
251 * po/uk.po: Likewise.
252 * po/vi.po: Likewise.
253 * po/zh_CN.po: Likewise.
254 * po/hr.po: New file from translationproject.org.
255 * configure.ac (ALL_LINGUAS): Add hr. Sort.
256 * configure: Regenerate.
258 2017-07-12 Nick Clifton <nickc@redhat.com>
260 Fix compile time warnings using gcc 7.1.1.
261 * elf32-xtensa.c (elf_xtensa_get_plt_section): Increase length of
263 (elf_xtensa_get_gotplt_section): Increase length of got_name
265 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add a
266 default return of FALSE.
267 * mach-o-i386.c (bfd_mach_o_i386_canonicalize_one_reloc): Add a
268 default return of FALSE.
270 2017-07-12 Alan Modra <amodra@gmail.com>
272 * binary.c (binary_set_section_contents): Don't print filepos in
274 (coff_write_object_contents): Cast size_t for error message.
275 (coff_slurp_line_table): Don't use bfd_vma symndx.
276 (coff_slurp_reloc_table): Remove unneeded cast.
277 * dwarf2.c (read_section): Cast bfd_int64_t to long long for
279 (find_abstract_instance_name): Likewise.
280 * elf32-arm.c (arm_type_of_stub): Correct error arg order.
281 (bfd_elf32_arm_stm32l4xx_erratum_scan): Don't cast error arg.
282 (elf32_arm_check_relocs): Make r_symndx an int.
283 * elf32-cris.c (cris_elf_check_relocs): Delete extraneous %s in
285 * elf32-metag.c (elf_metag_relocate_section): Delete extra error
287 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Rewrite bogus
289 * elf32-i386.c (elf_i386_check_relocs): Make r_symndx an int.
290 * elf32-s390.c (elf_s390_check_relocs): Likewise.
291 * elf32-tic6x.c (elf32_tic6x_check_relocs): Likewise.
292 * elf32-tilepro.c (tilepro_elf_check_relocs): Likewise.
293 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
294 * elf64-s390.c (elf_s390_check_relocs): Likewise.
295 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
296 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Likewise.
297 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
298 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
299 * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
300 * elf64-mmix.c (_bfd_mmix_after_linker_allocation): Cast size_t args
301 and use %lu for error message.
302 * elflink.c (elf_link_adjust_relocs): Delete extra error message arg.
303 * mmo.c (mmo_scan): Make stab_loc a file_ptr. Cast expression for
306 * elf32-arm.c (elf32_arm_tls_relax): Correct format string and args
308 (elf32_arm_final_link_relocate): Likewise.
309 * coff-arm.c (bfd_arm_process_before_allocation): Likewise.
310 * coffcode.h (styp_to_sec_flags): Likewise.
311 * cofflink.c (_bfd_coff_write_global_sym): Likewise.
312 * ecoff.c (_bfd_ecoff_slurp_symbol_table): Likewise.
313 * elf32-arc.c (arc_elf_merge_private_bfd_data): Likewise.
314 * elf32-bfin.c (bfinfdpic_check_relocs): Likewise.
315 (elf32_bfin_merge_private_bfd_data): Likewise.
316 * elf32-cris.c (cris_elf_relocate_section): Likewise.
317 * elf32-frv.c (frv_elf_merge_private_bfd_data): Likewise.
318 * elf32-i370.c (i370_elf_merge_private_bfd_data): Likewise.
319 (i370_elf_relocate_section): Likewise.
320 * elf32-iq2000.c (iq2000_elf_merge_private_bfd_data): Likewise.
321 * elf32-m32c.c (m32c_elf_merge_private_bfd_data): Likewise.
322 * elf32-m68hc1x.c (_bfd_m68hc11_elf_merge_private_bfd_data): Likewise.
323 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
324 * elf32-mep.c (mep_elf_merge_private_bfd_data): Likewise.
325 * elf32-mt.c (mt_elf_merge_private_bfd_data): Likewise.
326 * elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise.
327 * elfxx-mips.c (mips_elf_merge_obj_e_flags): Likewise.
328 (_bfd_mips_elf_merge_private_bfd_data): Likewise.
329 * ieee.c (ieee_write_id, read_id): Likewise.
330 * mach-o.c (bfd_mach_o_write_contents): Likewise.
331 (bfd_mach_o_layout_commands, bfd_mach_o_read_section_32): Likewise.
332 (bfd_mach_o_read_section_64, bfd_mach_o_read_symtab_symbol): Likewise.
333 (bfd_mach_o_read_command, bfd_mach_o_header_p): Likewise.
334 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Likewise.
335 * stabs.c (_bfd_link_section_stabs): Likewise.
337 * coff-arm.c (coff_arm_relocate_section): Use L modifier in error
339 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
340 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
341 * coff-rs6000.c (xcoff_reloc_type_toc): Likewise.
342 * coff-sh.c (sh_relax_section): Likewise.
343 (sh_relax_delete_bytes, sh_swap_insns): Likewise.
344 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
345 * coffcode.h (coff_slurp_reloc_table): Likewise.
346 * coffgen.c (_bfd_coff_get_external_symbols): Likewise.
347 (_bfd_coff_read_string_table): Likewise.
348 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
349 * compress.c (bfd_get_full_section_contents): Likewise.
350 * dwarf2.c (read_formatted_entries, decode_line_info): Likewise.
351 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
352 * elf.c (bfd_elf_string_from_elf_section): Likewise.
353 * elf32-arc.c (arc_special_overflow_checks): Likewise.
354 * elf32-arm.c (elf32_arm_tls_relax): Likewise.
355 (elf32_arm_final_link_relocate, elf32_arm_relocate_section): Likewise.
356 (elf32_arm_write_section): Likewise.
357 * elf32-bfin.c (bfin_relocate_section): Likewise.
358 (bfinfdpic_relocate_section): Likewise.
359 * elf32-hppa.c (hppa_build_one_stub): Likewise.
360 (final_link_relocate, elf32_hppa_relocate_section): Likewise.
361 * elf32-i386.c (elf_i386_tls_transition): Likewise.
362 (elf_i386_relocate_section): Likewise.
363 * elf32-ip2k.c (ip2k_final_link_relocate): Likewise.
364 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Likewise.
365 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
366 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
367 * elf32-metag.c (elf_metag_relocate_section): Likewise.
368 * elf32-nds32.c (unrecognized_reloc_msg): Likewise.
369 (nds32_elf_relax_longcall1, nds32_elf_relax_longcall2): Likewise.
370 (nds32_elf_relax_longcall3, nds32_elf_relax_longjump1): Likewise.
371 (nds32_elf_relax_longjump2, nds32_elf_relax_longjump3): Likewise.
372 (nds32_elf_relax_longcall4, nds32_elf_relax_longcall5): Likewise.
373 (nds32_elf_relax_longcall6, nds32_elf_relax_longjump4): Likewise.
374 (nds32_elf_relax_longjump5, nds32_elf_relax_longjump6): Likewise.
375 (nds32_elf_relax_longjump7, nds32_elf_relax_loadstore): Likewise.
376 (nds32_elf_relax_ptr, nds32_elf_ex9_build_hash_table): Likewise.
377 * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
378 * elf32-rx.c (UNSAFE_FOR_PID): Likewise.
379 * elf32-s390.c (invalid_tls_insn, elf_s390_relocate_section): Likewise.
380 * elf32-score.c (s3_bfd_score_elf_check_relocs): Likewise.
381 * elf32-score7.c (s7_bfd_score_elf_check_relocs): Likewise.
382 * elf32-sh.c (sh_elf_relax_section): Likewise.
383 (sh_elf_relax_delete_bytes, sh_elf_swap_insns): Likewise.
384 (sh_elf_relocate_section): Likewise.
385 * elf32-sh64.c (shmedia_prepare_reloc): Likewise.
386 * elf32-spu.c (spu_elf_relocate_section): Likewise.
387 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
388 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
389 * elf32-v850.c (v850_elf_relax_section): Likewise.
390 * elf32-vax.c (elf_vax_check_relocs): Likewise.
391 (elf_vax_relocate_section): Likewise.
392 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
393 (extend_ebb_bounds_forward, extend_ebb_bounds_backward): Likewise.
394 (compute_text_actions, compute_ebb_proposed_actions): Likewise.
395 (do_fix_for_relocatable_link): Likewise.
396 * elf64-alpha.c (elf64_alpha_relax_got_load): Likewise.
397 (elf64_alpha_relax_with_lituse): Likewise.
398 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Likewise.
399 (elf_hppa_final_link_relocate): Likewise.
400 * elf64-ia64-vms.c (elf64_ia64_relax_section): Likewise.
401 (elf64_ia64_choose_gp, elf64_ia64_relocate_section): Likewise.
402 (elf64_vms_link_add_object_symbols): Likewise.
403 * elf64-mmix.c (mmix_elf_perform_relocation): Likewise.
404 (mmix_final_link_relocate): Likewise.
405 * elf64-s390.c (invalid_tls_insn): Likewise.
406 (elf_s390_relocate_section): Likewise.
407 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
408 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
409 (elf_x86_64_relocate_section): Likewise.
410 * elfcode.h (elf_slurp_symbol_table): Likewise.
411 * elfcore.h (elf_core_file_p): Likewise.
412 * elflink.c (elf_link_read_relocs_from_section): Likewise.
413 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
414 (elfNN_aarch64_relocate_section): Likewise.
415 * elfnn-ia64.c (elfNN_ia64_relax_section): Likewise.
416 (elfNN_ia64_choose_gp, elfNN_ia64_relocate_section): Likewise.
417 * elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
418 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
419 (_bfd_mips_elf_relocate_section): Likewise.
420 (_bfd_mips_elf_finish_dynamic_symbol, mips_finish_exec_plt): Likewise.
421 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
422 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
423 * ieee.c (ieee_slurp_external_symbols): Likewise.
424 * ihex.c (ihex_write_object_content): Likewise.
425 * mach-o.c (bfd_mach_o_build_exec_seg_command): Likewise.
426 * merge.c (_bfd_merged_section_offset): Likewise.
427 * mmo.c (mmo_write_loc_chunk): Likewise.
428 (mmo_write_object_contents): Likewise.
429 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Likewise.
430 * stabs.c (_bfd_link_section_stabs): Likewise.
431 * xcofflink.c (xcoff_link_add_symbols, xcoff_find_tc0): Likewise.
433 2017-07-11 Alan Modra <amodra@gmail.com>
435 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo.
437 2017-07-11 Alan Modra <amodra@gmail.com>
439 * elf32-ppc.c (ppc_elf_relocate_section): Emit "unexpected
440 instruction" error using _bfd_error_handler, not einfo.
442 2017-07-10 Nick Clifton <nickc@redhat.com>
444 * coffcode.h (coff_slurp_symbol_table): Do not include an entry
445 for C_AIX_WEAKEXT if it has the same value as C_WEAKEXT.
447 2017-07-07 John Baldwin <jhb@FreeBSD.org>
449 * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO.
451 2017-07-07 Alan Modra <amodra@gmail.com>
453 * coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT.
455 2017-07-07 Alan Modra <amodra@gmail.com>
457 * bfd.c (_doprnt): Replace "L" with "ll" when printing bfd_vma
458 as long long. Move code replacing "ll" with "I64", and simplify.
460 2017-07-06 H.J. Lu <hongjiu.lu@intel.com>
462 * bfd.c (_doprnt): Convert 'L' to 'l' when setting wide_width
465 2017-07-05 H.J. Lu <hongjiu.lu@intel.com>
467 * dwarf2.c (line_info_add_include_dir_stub): Replace time with
469 (line_info_add_file_name): Likewise.
470 (decode_line_info): Likewise.
472 2017-07-04 Tristan Gingold <gingold@adacore.com>
474 * version.m4: Bump version to 2.29.51
475 * configure: Regenerate.
477 2017-07-04 Jiong Wang <jiong.wang@arm.com>
479 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Remove the
480 sanity check at the head of this function.
482 2017-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
484 * dwarf2.c (struct dwarf2_debug): Add fields dwarf_line_str_buffer and
486 (struct attr_abbrev): Add field implicit_const.
487 (dwarf_debug_sections): Add .debug_line_str.
488 (enum dwarf_debug_section_enum): Add debug_line_str and debug_max.
489 (dwarf_debug_section_assert): Add static assertion.
490 (read_indirect_line_string): New.
491 (read_abbrevs): Support DW_FORM_implicit_const.
492 (is_str_attr): Support DW_FORM_line_strp.
493 (read_attribute_value): Support DW_FORM_line_strp and
494 DW_FORM_implicit_const.
495 (read_attribute): Support DW_FORM_implicit_const.
496 (line_info_add_include_dir, line_info_add_include_dir_stub):
497 (line_info_add_file_name, read_formatted_entries): New.
498 (decode_line_info, parse_comp_unit): Support DWARF 5.
499 (_bfd_dwarf2_cleanup_debug_info): Free dwarf_line_str_buffer.
501 2017-07-03 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
503 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove the
504 abort statement that was put for symbols that are not dynamic.
506 2017-07-03 Tristan Gingold <gingold@adacore.com>
508 * po/bfd.pot: Regenerate
510 2017-07-03 Alan Modra <amodra@gmail.com>
512 * bfd.c (_doprnt): Rewrite "ll" and "L" modifiers to "I64" for
513 __MSVCRT__. Support "L" modifier for bfd_vma. Formatting.
514 * elf.c (setup_group): Use "Lx" to print sh_size.
515 (_bfd_elf_setup_sections): Remove unnecessary cast and print
516 unknown section type in hex.
517 (copy_special_section_fields): Style fix.
518 (bfd_section_from_shdr): Correct format for sh_link. Use a
519 common error message for all the variants of unrecognized
521 (assign_file_positions_for_load_sections): Use "Lx" for lma
522 adjust error message.
523 (assign_file_positions_for_non_load_sections): Formatting.
524 (rewrite_elf_program_header): Formatting. Use "Lx" for
525 bfd_vma values in error messages.
526 * elfcode.h (elf_slurp_reloc_table_from_section): Cast
527 ELF_R_SYM value to type expected by format.
528 * elflink.c (elf_link_read_relocs_from_section): Use "Lx"
530 (elf_link_add_object_symbols): Use "Lu" for symbol sizes.
531 (elf_link_input_bfd): Use "Lx" for r_info.
532 (bfd_elf_gc_record_vtinherit): Use "Lx" for offset.
534 2017-07-03 Alan Modra <amodra@gmail.com>
536 * bfd.c (bfd_scan_vma): Don't use long long unless HAVE_LONG_LONG.
537 * coff-rs6000.c (FMT20): Handle hosts with 64-bit long and
538 Microsoft C library variant of long long format specifier.
539 (PRINT20): Cast value to bfd_uint64_t not long long.
540 * coffcode.h (coff_print_aux): Use BFD_VMA_FMT.
541 * coff-x86_64.c (coff_amd64_reloc): Use bfd_uint64_t rather than
542 long long. Don't cast to bfd_vma.
543 * elf32-score.c (score3_bfd_getl48): Likewise.
544 * vms-alpha.c (_bfd_vms_slurp_eisd): Likewise.
546 2017-07-03 Alan Modra <amodra@gmail.com>
548 * elf.c (_bfd_elf_print_private_bfd_data): Use BFD_VMA_FMT to
550 (bfd_elf_print_symbol): Don't cast symbol->flags.
551 (_bfd_elf_symbol_from_bfd_symbol): Likewise.
552 * elf32-ppc.c (ppc_elf_begin_write_processing): Correct
553 _bfd_error_handler argument order.
554 (ppc_elf_merge_private_bfd_data): Don't cast flags.
556 2017-07-03 Alan Modra <amodra@gmail.com>
558 * configure.ac: Invoke AC_CHECK_TYPES for long long. Invoke
560 * configure: Regenerate.
561 * config.in: Regenerate.
563 2017-06-29 Andrew Waterman <andrew@sifive.com>
565 * elfnn-riscv.c (riscv_elf_adjust_dynamic_symbol): Fix TLS copy
568 2017-06-29 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
570 * elfxx-sparc.c (allocate_dynrelocs): Don't make a symbol dynamic
571 unless it is undefined weak.
572 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Set the flag
573 relative_reloc to direct non-dynamic symbols to R_SPARC_RELATIVE
575 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): If symbol
576 is not dynamic in PIC, abort.
578 2017-06-29 Jiong Wang <jiong.wang@arm.com>
581 * elfnn-aarch64.c (elfNN_aarch64_allocate_dynrelocs): Only make
582 undefined weak symbols into dynamic.
583 (elfNN_aarch64_final_link_relocate): Generate runtime RELATIVE
584 relocation for non-dynamic symbols.
585 (elfNN_aarch64_finish_dynamic_symbol): Add sanity check.
587 2017-06-29 Jiong Wang <jiong.wang@arm.com>
589 * elfnn-aarch64.c (aarch64_relocation_aginst_gp_p): New function.
590 (elfNN_aarch64_final_link_relocate): Delete duplicated code for
591 BFD_RELOC_AARCH64_LD64_GOTOFF_LO15, BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC,
592 BFD_RELOC_AARCH64_MOVW_GOTOFF_G1.
593 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Optimize the
596 2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
598 * elf-bfd.h (elfcore_write_s390_gs_cb): Add prototype.
599 (elfcore_write_s390_gs_bc): Likewise.
600 * elf.c (elfcore_grok_s390_gs_cb): New function.
601 (elfcore_grok_s390_gs_bc): New function.
602 (elfcore_grok_note): Call them.
603 (elfcore_write_s390_gs_cb): New function.
604 (elfcore_write_s390_gs_bc): New function.
605 (elfcore_write_register_note): Call them.
607 2017-06-28 H.J. Lu <hongjiu.lu@intel.com>
609 * libbfd.c (_bfd_generic_get_section_contents): Don't call
610 bfd_get_file_size. Check archive element size.
611 (_bfd_generic_get_section_contents_in_window): Likewise.
613 2017-06-28 H.J. Lu <hongjiu.lu@intel.com>
615 * bfd-in2.h: Regenerated.
616 * bfdio.c (bfd_get_size): Change return type to ufile_ptr.
617 (bfd_get_file_size): Likewise.
619 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
620 Matthew Fortune <matthew.fortune@imgtec.com>
622 * archures.c (bfd_mach_mips_interaptiv_mr2): New macro.
623 * cpu-mips.c (I_interaptiv_mr2): New enum value.
624 (arch_info_struct): Add "mips:interaptiv-mr2" entry.
625 * elfxx-mips.c (_bfd_elf_mips_mach) <E_MIPS_MACH_IAMR2>: New
627 (mips_set_isa_flags) <bfd_mach_mips_interaptiv_mr2>: Likewise.
628 (bfd_mips_isa_ext) <bfd_mach_mips_interaptiv_mr2>: Likewise.
629 (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
630 (mips_mach_extensions): Add `bfd_mach_mipsisa32r3' and
631 `bfd_mach_mips_interaptiv_mr2' entries.
632 * bfd-in2.h: Regenerate.
634 2017-06-27 Nick Clifton <nickc@redhat.com>
636 * tekhex.c (pass_over): Revert accidental conversion of a local
637 array to a static array.
639 2017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
642 * elf32-avr.c (elf32_avr_adjust_diff_reloc_value): Adjust
643 reloc addend if necessary. Adjust diff only if
644 shrinked_insn_address < end_address.
646 2017-06-27 Alan Modra <amodra@gmail.com>
649 * libbfd.c (_bfd_generic_get_section_contents): Warning fix.
650 (_bfd_generic_get_section_contents_in_window): Likewise.
652 2017-06-26 Kuan-Lin Chen <rufus@andestech.com>
654 * elfnn-riscv.c (perform_relocation): Support the new
655 R_RISCV_32_PCREL relocation.
656 (riscv_elf_relocate_section): Likewise.
657 * elfxx-riscv.c (howto_table): Likewise.
658 (riscv_reloc_map): Likewise.
659 * bfd-in2.h (BFD_RELOC_RISCV_32_PCREL): New relocation.
660 * libbfd.h: Regenerate.
662 2017-06-27 Alan Modra <amodra@gmail.com>
665 * libbfd.c (_bfd_generic_get_section_contents): Delete abort.
666 Use unsigned file pointer type, and remove cast.
667 * libbfd.c (_bfd_generic_get_section_contents_in_window): Likewise.
668 Add "count", not "sz".
670 2017-06-26 Pedro Alves <palves@redhat.com>
673 * libbfd.c (_bfd_generic_get_section_contents): Add "count", not
676 2017-06-26 H.J. Lu <hongjiu.lu@intel.com>
679 * libbfd.c (_bfd_generic_get_section_contents_in_window): Add
682 2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
684 * cpu-mips.c (arch_info_struct): Mark the 4010 32-bit.
685 * elfxx-mips.c (mips_set_isa_flags) <bfd_mach_mips4010>: Set
686 E_MIPS_ARCH_2 rather than E_MIPS_ARCH_3 in `e_flags'.
687 (mips_mach_extensions): Mark `bfd_mach_mips4010' as extending
688 `bfd_mach_mips6000' rather than `bfd_mach_mips4000'.
690 2017-06-26 H.J. Lu <hongjiu.lu@intel.com>
693 * compress.c (bfd_get_full_section_contents): Don't check the
695 * libbfd.c (_bfd_generic_get_section_contents): Check for and
696 reject a section whose size + offset is greater than the size
698 (_bfd_generic_get_section_contents_in_window): Likewise.
700 2017-06-26 Nick Clifton <nickc@redhat.com>
703 * tekhex.c (getvalue): Check for the source pointer exceeding the
704 end pointer before the first byte is read.
706 2017-06-26 Nick Clifton <nickc@redhat.com>
709 * opncls.c (get_build_id): Check that the section is big enough
710 to contain the whole note.
711 * compress.c (bfd_get_full_section_contents): Check for and reject
712 a section whose size is greater than the size of the entire file.
713 * elf32-v850.c (v850_elf_copy_notes): Allow for the ouput to not
714 contain a notes section.
716 2017-06-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
718 * elf64-s390.c (elf_s390_additional_program_headers): Add NULL
720 (elf_s390_modify_segment_map): Likewise.
721 (bfd_elf_s390_set_options): Lisewise.
723 2017-06-26 Alan Modra <amodra@gmail.com>
725 * elflink.c (_bfd_elf_link_create_dynstrtab): Don't make dynobj
727 (_bfd_elf_size_group_sections): Skip --just-syms bfds.
728 (bfd_elf_size_dynamic_sections): Ignore .note.GNU-stack and
729 .preinit_array on --just-syms bfds.
730 (_bfd_elf_gc_mark_extra_sections): Skip --just-syms bfds.
731 (elf_gc_sweep, bfd_elf_parse_eh_frame_entries): Likewise.
732 (bfd_elf_gc_sections, bfd_elf_discard_info): Likewise.
734 2017-06-25 Sergei Trofimovich <slyfox@gentoo.org>
736 * elf.c (find_link): Bounds check "hint".
738 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
740 * elf32-arm.c (using_thumb_only): Update list of architectures in
741 BFD_ASSERT for which the logic is valid.
742 (using_thumb2_bl): Likewise.
743 (using_thumb2): Likewise and return true for ARMv8-R.
744 (arch_has_arm_nop): Likewise.
745 (tag_cpu_arch_combine): New v8r table for ARMv8-R Tag_CPU_arch
746 merging logic. Update commentis for value 15 of v8m_baseline,
747 v8m_mainline and v4t_plus_v6_m arrays. Use v8r array to decide
748 merging of value 15 of Tag_CPU_arch.
750 2017-06-23 Jiong Wang <jiong.wang@arm.com>
752 * reloc.c (BFD_RELOC_AARCH64_ADR_GOTPAGE): Rename to
753 BFD_RELOC_AARCH64_ADR_GOT_PAGE
754 * bfd-in2.h: Regenerate.
756 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
758 * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Move
759 the error_alignment label forward. Properly align program
760 property note section.
762 2017-06-22 Eric Christopher <echristo@gmail.com>
764 * elf32-arm.c (elf32_arm_final_link_relocate): Use labs rather than
765 abs to fix a truncation warning.
767 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
769 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Resolve
770 local undefined weak symbol to 0.
771 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Likewise.
773 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
775 * elf32-i386.c (elf_i386_merge_gnu_properties): If info->shstk
776 is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK.
777 (elf_i386_link_setup_gnu_properties): If info->shstk is set,
778 turn on GNU_PROPERTY_X86_FEATURE_1_IBT.
779 * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): If
780 info->shstk is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK.
781 (elf_x86_64_link_setup_gnu_properties): If info->shstk is set,
782 turn on GNU_PROPERTY_X86_FEATURE_1_IBT.
784 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
786 * elf32-i386.c (elf_i386_lazy_ibt_plt0_entry): New.
787 (elf_i386_lazy_ibt_plt_entry): Likewise.
788 (elf_i386_pic_lazy_ibt_plt0_entry): Likewise.
789 (elf_i386_non_lazy_ibt_plt_entry): Likewise.
790 (elf_i386_pic_non_lazy_ibt_plt_entry): Likewise.
791 (elf_i386_eh_frame_lazy_ibt_plt): Likewise.
792 (elf_i386_lazy_plt_layout): Likewise.
793 (elf_i386_non_lazy_plt_layout): Likewise.
794 (elf_i386_link_hash_entry): Add plt_second.
795 (elf_i386_link_hash_table): Add plt_second and
797 (elf_i386_allocate_dynrelocs): Use the second PLT if needed.
798 (elf_i386_size_dynamic_sections): Use .plt.got unwind info for
799 the second PLT. Check the second PLT.
800 (elf_i386_relocate_section): Use the second PLT to resolve
801 PLT reference if needed.
802 (elf_i386_finish_dynamic_symbol): Fill and use the second PLT if
804 (elf_i386_finish_dynamic_sections): Set sh_entsize on the
805 second PLT. Generate unwind info for the second PLT.
806 (elf_i386_plt_type): Add plt_second.
807 (elf_i386_get_synthetic_symtab): Support the second PLT.
808 (elf_i386_parse_gnu_properties): Support
809 GNU_PROPERTY_X86_FEATURE_1_AND.
810 (elf_i386_merge_gnu_properties): Support
811 GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn
812 on GNU_PROPERTY_X86_FEATURE_1_IBT
813 (elf_i386_link_setup_gnu_properties): If info->ibt is set,
814 turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT
815 for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT
816 is set on all relocatable inputs.
817 * elf64-x86-64.c (elf_x86_64_lazy_ibt_plt_entry): New.
818 (elf_x32_lazy_ibt_plt_entry): Likewise.
819 (elf_x86_64_non_lazy_ibt_plt_entry): Likewise.
820 (elf_x32_non_lazy_ibt_plt_entry): Likewise.
821 (elf_x86_64_eh_frame_lazy_ibt_plt): Likewise.
822 (elf_x32_eh_frame_lazy_ibt_plt): Likewise.
823 (elf_x86_64_lazy_ibt_plt): Likewise.
824 (elf_x32_lazy_ibt_plt): Likewise.
825 (elf_x86_64_non_lazy_ibt_plt): Likewise.
826 (elf_x32_non_lazy_ibt_plt): Likewise.
827 (elf_x86_64_get_synthetic_symtab): Support the second PLT.
828 (elf_x86_64_parse_gnu_properties): Support
829 GNU_PROPERTY_X86_FEATURE_1_AND.
830 (elf_x86_64_merge_gnu_properties): Support
831 GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn
832 on GNU_PROPERTY_X86_FEATURE_1_IBT
833 (elf_x86_64_link_setup_gnu_properties): If info->ibt is set,
834 turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT
835 for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT
836 is set on all relocatable inputs.
838 2017-06-22 Nick Clifton <nickc@redhat.com>
841 * som.c (setup_sections): NUL terminate the space_strings buffer.
842 Check that the space.name field does not index beyond the end of
843 the space_strings buffer.
845 2017-06-21 Nick Clifton <nickc@redhat.com>
848 * coff-sh.c (sh_reloc): Check for an out of range reloc.
850 2017-06-21 Nick Clifton <nickc@redhat.com>
853 * vms-misc.c (_bfd_vms_save_sized_string): Use unsigned int as
854 type of the size parameter.
855 (_bfd_vms_save_counted_string): Add second parameter - the maximum
856 length of the counted string.
857 * vms.h (_bfd_vms_save_sized_string): Update prototype.
858 (_bfd_vms_save_counted_string): Likewise.
859 * vms-alpha.c (_bfd_vms_slurp_eisd): Update calls to
860 _bfd_vms_save_counted_string.
861 (_bfd_vms_slurp_ehdr): Likewise.
862 (_bfd_vms_slurp_egsd): Likewise.
863 (Parse_module): Likewise.
865 2017-06-21 Alan Modra <amodra@gmail.com>
867 * elf64-ppc.c (ppc64_elf_size_stubs): Test for localentry:0 plt
868 calls before tocsave calls.
869 (ppc64_elf_relocate_section): Allow localentry:0 plt calls without
872 2017-06-21 Nick Clifton <nickc@redhat.com>
875 * reloc.c (bfd_generic_get_relocated_section_contents): Fail if
876 bfd_get_full_section_contents returns no contents.
878 2017-06-21 Nick Clifton <nickc@redhat.com>
881 * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an undersized
884 2017-06-21 Nick Clifton <nickc@redhat.com>
887 * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an empty section
889 (image_set_ptr): Likewise.
890 (alpha_vms_fix_sec_rel): Likewise.
891 (alpha_vms_slurp_relocs): Likewise.
893 2017-06-21 Nick Clifton <nickc@redhat.com>
896 * ieee.c (ieee_slurp_sections): Check for a NULL return from
898 (ieee_archive_p): Likewise.
899 (ieee_object_p): Likewise.
901 2017-06-21 Nick Clifton <nickc@redhat.com>
904 * elf.c (setup_group): Zero the group section pointer list after
905 allocation so that loops can be caught. Check for NULL pointers
906 when processing a group list.
908 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
910 * elf-s390.h: New file.
911 * elf64-s390.c (struct elf_s390_link_hash_table): Add params
913 (elf_s390_additional_program_headers): New function.
914 (elf_s390_modify_segment_map): New function.
915 (bfd_elf_s390_set_options): New function.
916 (elf_backend_additional_program_headers)
917 (elf_backend_modify_segment_map): Add macro definitions.
919 2017-06-19 H.J. Lu <hongjiu.lu@intel.com>
922 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Check
923 the DYNAMIC bit instead of bfd_count_sections.
925 2017-06-19 Nick Clifton <nickc@redhat.com>
928 * vms-alpha.c (evax_bfd_print_emh): Check for insufficient record
930 (evax_bfd_print_eeom): Likewise.
931 (evax_bfd_print_egsd): Check for an overlarge record length.
932 (evax_bfd_print_etir): Likewise.
934 2017-06-19 Nick Clifton <nickc@redhat.com>
937 * libieee.h (struct common_header_type): Add end_p field.
938 * ieee.c (this_byte_and_next): Do not advance input_p beyond
940 (read_id): Check for a length that exceeds the remaining bytes in
942 (ieee_seek): Initialise end_p.
943 (ieee_archive_p): Likewise.
944 (ieee_object_p): Likewise.
946 2017-06-19 Nick Clifton <nickc@redhat.com>
949 * vms-alpha.c (_bfd_vms_slurp_eihs): Check for invalid offset
950 before reading the EIHS structure entries.
952 2017-06-19 Nick Clifton <nickc@redhat.com>
955 * vms-alpha.c (_bfd_vms_slurp_egsd): Use unsigned int for
956 gsd_size. Check that there are enough bytes remaining to read the
957 type and size of the next egsd. Check that the size of the egsd
958 does not exceed the size of the record.
960 2017-06-19 Alan Modra <amodra@gmail.com>
962 * config.bfd: Correct targ_underscore for cris.
964 2017-06-18 Alan Modra <amodra@gmail.com>
966 * config.bfd: Correct targ_underscore for epiphany, ip2k,
967 m32c, mn10200, pru, rl78, rx, crisv32 and v850.
969 2017-06-16 Nick Clifton <nickc@redhat.com>
971 * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Do not fail if the
972 bucketlist is empty because there are no symbols to add to the
975 2017-06-16 Alan Modra <amodra@gmail.com>
981 * targets.c (struct bfd_target): Add _bfd_define_start_stop.
982 (BFD_JUMP_TABLE_LINK): Likewise.
983 * elf-bfd.h (bfd_elf_define_start_stop): Declare.
984 * elflink.c (_bfd_elf_gc_mark_rsec): Update comment.
985 (bfd_elf_define_start_stop): New function.
986 * linker.c (bfd_generic_define_start_stop): New function.
987 * coff64-rs6000.c (rs6000_xcoff64_vec, rs6000_xcoff64_aix_vec): Init
989 * aout-adobe.c (aout_32_bfd_define_start_stop): Define.
990 * aout-target.h (MY_bfd_define_start_stop): Define.
991 * aout-tic30.c (MY_bfd_define_start_stop): Define.
992 * binary.c (binary_bfd_define_start_stop): Define.
993 * bout.c (b_out_bfd_define_start_stop): Define.
994 * coff-alpha.c (_bfd_ecoff_bfd_define_start_stop): Define.
995 * coff-mips.c (_bfd_ecoff_bfd_define_start_stop): Define.
996 * coff-rs6000.c (_bfd_xcoff_bfd_define_start_stop): Define.
997 * coffcode.h (coff_bfd_define_start_stop): Define.
998 * elfxx-target.h (bfd_elfNN_bfd_define_start_stop): Define.
999 * i386msdos.c (msdos_bfd_define_start_stop): Define.
1000 * i386os9k.c (os9k_bfd_define_start_stop): Define.
1001 * ieee.c (ieee_bfd_define_start_stop): Define.
1002 * ihex.c (ihex_bfd_define_start_stop): Define.
1003 * libbfd-in.h (_bfd_nolink_bfd_define_start_stop): Define.
1004 * mach-o-target.c (bfd_mach_o_bfd_define_start_stop): Define.
1005 * mmo.c (mmo_bfd_define_start_stop): Define.
1006 * nlm-target.h (nlm_bfd_define_start_stop): Define.
1007 * oasys.c (oasys_bfd_define_start_stop): Define.
1008 * pef.c (bfd_pef_bfd_define_start_stop): Define.
1009 * plugin.c (bfd_plugin_bfd_define_start_stop): Define.
1010 * ppcboot.c (ppcboot_bfd_define_start_stop): Define.
1011 * som.c (som_bfd_define_start_stop): Define.
1012 * srec.c (srec_bfd_define_start_stop): Define.
1013 * tekhex.c (tekhex_bfd_define_start_stop): Define.
1014 * versados.c (versados_bfd_define_start_stop): Define.
1015 * vms-alpha.c (vms_bfd_define_start_stop): Define.
1016 (alpha_vms_bfd_define_start_stop): Define.
1017 * xsym.c (bfd_sym_bfd_define_start_stop): Define.
1018 * bfd-in2.h: Regenerate.
1019 * libbfd.h: Regenerate.
1021 2017-06-16 Jiong Wang <jiong.wang@arm.com>
1023 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use
1024 SYMBOL_REFERENCES_LOCAL.
1026 2017-06-15 Jiong Wang <jiong.wang@arm.com>
1029 * elfnn-aarch64.c (ELIMINATE_COPY_RELOCS): Set to 1.
1030 (elfNN_aarch64_final_link_relocate): Also propagate relocations to
1031 runtime for if there needs copy relocation elimination.
1032 (need_copy_relocation_p): New function. Return true for symbol with
1033 pc-relative references and if it's against read-only sections.
1034 (elfNN_aarch64_adjust_dynamic_symbol): Use need_copy_relocation_p.
1035 (elfNN_aarch64_check_relocs): Allocate dynrelocs for relocation types
1036 that are related with accessing external objects.
1037 (elfNN_aarch64_gc_sweep_hook): Sync the relocation types with the change
1038 in elfNN_aarch64_check_relocs.
1040 2017-06-15 Nick Clifton <nickc@redhat.com>
1043 * ieee.c (ieee_object_p): Use a static buffer to avoid compiler
1046 (ieee_archive_p): Likewise.
1048 2017-06-15 Nick Clifton <nickc@redhat.com>
1051 * vms-alpha.c (_bfd_vms_slurp_etir): Extend check of cmd_length.
1053 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
1055 * elf32-xtensa.c (elf_xtensa_be_plt_entry,
1056 elf_xtensa_le_plt_entry): Add dimension for the ABI to arrays,
1057 keep both windowed and call0 ABI PLT definitions.
1058 (elf_xtensa_create_plt_entry): Use selected ABI to choose upper
1059 elf_xtensa_*_plt_entry endex.
1060 (ELF_MAXPAGESIZE): Fix at minimal supported MMU page size.
1062 2017-06-14 Nick Clifton <nickc@redhat.com>
1065 * elf32-sh.c (sh_elf_set_mach_from_flags): Fix check for invalid
1068 2017-06-14 Nick Clifton <nickc@redhat.com>
1071 * vms-alpha.c (_bfd_vms_get_value): Add an extra parameter - the
1072 maximum value for the ascic pointer. Check that name processing
1073 does not read beyond this value.
1074 (_bfd_vms_slurp_etir): Add checks for attempts to read beyond the
1077 2017-06-14 Nick Clifton <nickc@redhat.com>
1080 * versados.c (versados_mkobject): Zero the allocated tdata structure.
1081 (process_otr): Check for an invalid offset in the otr structure.
1083 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1085 * config.bfd (epiphany-*-elf): Accept epiphany-*-*.
1087 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
1093 * elf-bfd.h (elf_link_hash_entry): Add start_stop. Change the
1094 vtable field to a union.
1095 (_bfd_elf_is_start_stop): Removed.
1096 * elf32-i386.c (elf_i386_convert_load_reloc): Also check for
1097 __start_SECNAME and __stop_SECNAME symbols.
1098 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
1099 * elflink.c (_bfd_elf_is_start_stop): Removed.
1100 (_bfd_elf_gc_mark_rsec): Check start_stop instead of calling
1101 _bfd_elf_is_start_stop.
1102 (elf_gc_propagate_vtable_entries_used): Skip __start_SECNAME and
1103 __stop_SECNAME symbols. Updated.
1104 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1105 (bfd_elf_gc_record_vtinherit): Likewise.
1106 (bfd_elf_gc_record_vtentry): Likewise.
1108 2017-06-13 Nick Clifton <nickc@redhat.com>
1111 * elflink.c (elf_link_adjust_relocs): Generate an error when
1112 encountering a reloc against a symbol removed by garbage
1115 2017-06-12 H.J. Lu <hongjiu.lu@intel.com>
1117 * elf-bfd.h (elf_backend_data): Add struct bfd_link_info *
1118 to merge_gnu_properties.
1119 * elf-properties.c (elf_merge_gnu_properties): Add struct
1120 bfd_link_info * and pass it to merge_gnu_properties.
1121 (elf_merge_gnu_property_list): Add struct bfd_link_info *
1122 and pass it to elf_merge_gnu_properties.
1123 (_bfd_elf_link_setup_gnu_properties): Pass info to
1124 elf_merge_gnu_property_list.
1125 * elf32-i386.c (elf_i386_merge_gnu_properties): Add struct
1127 * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): Likewise.
1129 2017-06-11 Joe Zbiciak <joe.zbiciak@leftturnonly.info>
1132 * binary.c (binary_set_section_contents): Scale lma by octets
1133 per byte to set filepos.
1135 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
1137 * elf32-arc.c (elf_arc_check_relocs): Fixed conditions to generate
1140 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
1142 * elf32-arc.c (elf_arc_size_dynamic_sections): Changed condition to
1145 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
1147 * arc-got.h (relocate_fix_got_relocs_for_got_info): Added TCB_SIZE to
1148 patched section contents for TLS IE reloc.
1149 * elf32-arc.c: Remove TCB_SIZE preprocessor macro.
1151 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
1153 * elf32-arc.c (elf_arc_relocate_section): Added "call" to
1154 RELOC_FOR_GLOBAL_SYMBOL macro.
1156 2018-06-08 Cupertino Miranda <cmiranda@synopsys.com>
1158 * elf32-arc.c (elf_arc_relocate_section): Small refactor and condition
1161 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
1163 * config/tc-arc.c (md_undefined_symbol): Changed.
1164 * config/tc-arc.h (DYNAMIC_STRUCT_NAME): Removed.
1166 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
1168 * elf32-arc.c (elf_arc_relocate_section): Fixed reassign of indirect
1171 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
1173 * elf32-arc.c (elf_arc_check_relocs): Added condition to disable
1174 warning and "Bad value" for local symbols ARC_32 or ARC_32_ME relocs.
1176 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
1178 * elf32-arc.c (ADD_RELA): Changed to only work when dynamic
1181 2017-06-08 Richard Earnshaw <rearnsha@arm.com>
1183 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove assertion
1184 that the input bfd has Tag_FP_ARCH non-zero if Tag_ABI_HardFP_use
1185 is non-zero. Add clarifying comments.
1187 2017-06-08 H.J. Lu <hongjiu.lu@intel.com>
1189 * elf32-i386.c (elf_i386_check_relocs): Set local IFUNC symbol
1190 name. Use local IFUNC symbol name string to report unsupported
1191 non-PIC call to IFUNC function.
1192 (elf_i386_relocate_section): Dump local IFUNC name with minfo
1193 when generating R_386_IRELATIVE relocation.
1194 (elf_i386_finish_dynamic_symbol): Likewise.
1195 * elf_x86_64_check_relocs (elf_x86_64_check_relocs): Set local
1197 (elf_x86_64_relocate_section): Dump local IFUNC name with minfo
1198 when generating R_X86_64_IRELATIVE relocation.
1199 (elf_x86_64_finish_dynamic_symbol): Likewise.
1201 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
1203 * elf.c (setup_group): Make sure BFD sections are created for all
1204 group sections in the input file when processing SHF_GROUP
1206 (bfd_section_from_shdr): Avoid duplicating logic already
1207 implemented in `setup_group'.
1209 2017-06-06 Daniel Bonniot de Ruisselet <bonniot@gmail.com>
1212 * peXXigen.c (pe_print_idata): Use the address of the first thunk
1213 if the hint address is zero.
1215 2017-06-06 James Clarke <jrtc27@jrtc27.com>
1218 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Check
1219 ELF_COMMON_DEF_P for common symbols.
1221 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
1223 * elf.c (_bfd_elf_make_section_from_shdr): Don't initially mark
1224 SEC_GROUP sections as SEC_EXCLUDE.
1225 (bfd_elf_set_group_contents): Replace use of abort with an assert.
1226 (assign_section_numbers): Use resolve_section_groups flag instead
1227 of relocatable link type.
1228 (_bfd_elf_init_private_section_data): Use resolve_section_groups
1229 flag instead of checking the final_link flag for part of the
1230 checks in here. Fix white space as a result.
1231 * elflink.c (elf_link_input_bfd): Use resolve_section_groups flag
1232 instead of relocatable link type.
1233 (bfd_elf_final_link): Likewise.
1235 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
1237 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Remove unused
1239 * elf32-score.c (score_elf_final_link_relocate): Likewise.
1240 (s3_bfd_score_elf_check_relocs): Likewise.
1241 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1242 (score_elf_final_link_relocate): Likewise.
1243 (s7_bfd_score_elf_check_relocs): Likewise.
1245 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
1247 * elflink.c (init_reloc_cookie_rels): Remove unused variable
1250 2017-06-06 Maciej W. Rozycki <macro@imgtec.com>
1252 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Subtract `count'
1253 from `reloc_count' rather than decrementing it.
1254 * elf.c (bfd_section_from_shdr): Multiply the adjustment to
1255 `reloc_count' by `int_rels_per_ext_rel'.
1256 * elf32-score.c (score_elf_final_link_relocate): Do not multiply
1257 `reloc_count' by `int_rels_per_ext_rel' for last relocation
1258 entry determination.
1259 (s3_bfd_score_elf_check_relocs): Likewise.
1260 * elf32-score7.c (score_elf_final_link_relocate): Likewise.
1261 (s7_bfd_score_elf_relocate_section): Likewise.
1262 (s7_bfd_score_elf_check_relocs): Likewise.
1263 * elf64-mips.c (mips_elf64_get_reloc_upper_bound): Remove
1264 prototype and function.
1265 (mips_elf64_slurp_one_reloc_table): Do not update `reloc_count'.
1266 (mips_elf64_slurp_reloc_table): Assert that `reloc_count' is
1267 triple rather than once the sum of REL and RELA relocation entry
1269 (bfd_elf64_get_reloc_upper_bound): Remove macro.
1270 * elflink.c (_bfd_elf_link_read_relocs): Do not multiply
1271 `reloc_count' by `int_rels_per_ext_rel' for internal relocation
1272 storage allocation size determination.
1273 (elf_link_input_bfd): Multiply `.ctors' and `.dtors' section's
1274 size by `int_rels_per_ext_rel'. Do not multiply `reloc_count'
1275 by `int_rels_per_ext_rel' for last relocation entry
1277 (bfd_elf_final_link): Do not multiply `reloc_count' by
1278 `int_rels_per_ext_rel' for internal relocation storage
1279 allocation size determination.
1280 (init_reloc_cookie_rels): Do not multiply `reloc_count' by
1281 `int_rels_per_ext_rel' for last relocation entry determination.
1282 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1283 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1284 (_bfd_mips_elf_relocate_section): Likewise.
1286 2017-06-05 Alan Modra <amodra@gmail.com>
1289 * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE.
1291 2017-06-01 John Baldwin <jhb@FreeBSD.org>
1293 * elf.c (elfcore_grok_freebsd_psinfo): Use ELF header class to
1294 determine structure sizes.
1295 (elfcore_grok_freebsd_prstatus): Likewise.
1297 2017-06-01 Alan Modra <amodra@gmail.com>
1299 * elf64-ppc.c (struct ppc_link_hash_table): Add has_plt_localentry0.
1300 (ppc64_elf_merge_symbol_attribute): Merge localentry bits from
1302 (is_elfv2_localentry0): New function.
1303 (ppc64_elf_tls_setup): Default params->plt_localentry0.
1304 (plt_stub_size): Adjust size for tls_get_addr_opt stub.
1305 (build_tls_get_addr_stub): Use a simpler stub when r2 is not saved.
1306 (ppc64_elf_size_stubs): Leave stub_type as ppc_stub_plt_call for
1307 optimized localentry:0 stubs.
1308 (ppc64_elf_build_stubs): Save r2 in ELFv2 __glink_PLTresolve.
1309 (ppc64_elf_relocate_section): Leave nop unchanged for optimized
1311 (ppc64_elf_finish_dynamic_sections): Set PPC64_OPT_LOCALENTRY in
1313 * elf64-ppc.h (struct ppc64_elf_params): Add plt_localentry0.
1315 2017-05-30 Casey Smith <clegg89@gmail.com>
1318 * elf32-arm.c (elf32_arm_final_link_relocate): Install an absolute
1319 value when processing the R_ARM_THM_ALU_PREL_11_0 reloc.
1321 2017-05-30 Anton Kolesov Anton.Kolesov@synopsys.com
1323 * cpu-arc.c (arc_compatible): New function.
1325 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
1327 * cpu-arc.c (arch_info_struct): Remove duplicate ARC600 entry.
1329 2017-05-30 H.J. Lu <hongjiu.lu@intel.com>
1332 * bfdio.c (bfd_get_file_size): New function.
1333 * bfd-in2.h: Regenerated.
1335 2017-05-23 Dilian Palauzov <git-dpa@aegee.org>
1337 * elf32-arc.c (arc_elf_merge_attributes): Add fall through
1340 2017-05-22 H.J. Lu <hongjiu.lu@intel.com>
1342 * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Use
1343 dynobj instead of htab->elf.dynobj.
1345 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
1347 * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype
1349 (mips_elf64_canonicalize_dynamic_reloc): Likewise.
1350 (mips_elf64_slurp_one_reloc_table): Set `reloc_count' to the
1351 actual number of internal relocations retrieved. Adjust
1352 function description.
1353 (bfd_elf64_canonicalize_reloc): Remove macro.
1354 (bfd_elf64_canonicalize_dynamic_reloc): Likewise.
1356 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
1358 * archures.c (bfd_mach_sparc_v9m8): Define.
1359 (bfd_mach_sparc_v8plusm8): Likewise.
1360 (bfd_mach_sparc_v9_p): Adjust to M8.
1361 (bfd_mach_sparc_64bit_p): Likewise.
1362 * aoutx.h (machine_type): Handle bfd_mach_sparc_v9m8 and
1363 bfd_mach_sparc_v8plusm8.
1364 * bfd-in2.h: Regenerated.
1365 * cpu-sparc.c (arch_info_struct): Entries for sparc:v9m8 and
1367 * elfxx-sparc.c (_bfd_sparc_elf_object_p): Handle
1368 bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8 using the new hw
1369 capabilities ONADDSUB, ONMUL, ONDIV, DICTUNP, FPCPSHL, RLE and
1371 * elf32-sparc.c (elf32_sparc_final_write_processing): Handle
1372 bfd_mach_sparc_v8plusm8.
1374 2017-05-19 Alan Modra <amodra@gmail.com>
1376 * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't keep
1377 debug and special sections when no non-note alloc sections in an
1380 2017-05-18 Alan Modra <amodra@gmail.com>
1382 * arc-got.h: Don't compare boolean values against TRUE or FALSE.
1383 * elf-m10300.c: Likewise.
1385 * elf32-arc.c: Likewise.
1386 * elf32-bfin.c: Likewise.
1387 * elf32-m68k.c: Likewise.
1388 * elf32-nds32.c: Likewise.
1389 * elf32-tilepro.c: Likewise.
1390 * elflink.c: Likewise.
1391 * elfnn-aarch64.c: Likewise.
1392 * elfnn-riscv.c: Likewise.
1393 * elfxx-tilegx.c: Likewise.
1394 * mach-o.c: Likewise.
1395 * peXXigen.c: Likewise.
1396 * vms-alpha.c: Likewise.
1397 * vms-lib.c: Likewise.
1399 2017-05-17 H.J. Lu <hongjiu.lu@intel.com>
1402 * elflink.c (elf_gc_mark_debug_section): New function.
1403 (_bfd_elf_gc_mark_extra_sections): Mark any debug sections
1404 referenced by kept debug sections.
1406 2017-05-16 Alan Modra <amodra@gmail.com>
1408 * elf-m10300.c: Rename occurrences of non_ir_ref.
1409 * elf32-arm.c: Likewise.
1410 * elf32-bfin.c: Likewise.
1411 * elf32-cr16.c: Likewise.
1412 * elf32-cris.c: Likewise.
1413 * elf32-d10v.c: Likewise.
1414 * elf32-dlx.c: Likewise.
1415 * elf32-fr30.c: Likewise.
1416 * elf32-frv.c: Likewise.
1417 * elf32-hppa.c: Likewise.
1418 * elf32-i370.c: Likewise.
1419 * elf32-i386.c: Likewise.
1420 * elf32-iq2000.c: Likewise.
1421 * elf32-lm32.c: Likewise.
1422 * elf32-m32c.c: Likewise.
1423 * elf32-m32r.c: Likewise.
1424 * elf32-m68hc1x.c: Likewise.
1425 * elf32-m68k.c: Likewise.
1426 * elf32-mcore.c: Likewise.
1427 * elf32-metag.c: Likewise.
1428 * elf32-microblaze.c: Likewise.
1429 * elf32-moxie.c: Likewise.
1430 * elf32-msp430.c: Likewise.
1431 * elf32-mt.c: Likewise.
1432 * elf32-nios2.c: Likewise.
1433 * elf32-or1k.c: Likewise.
1434 * elf32-ppc.c: Likewise.
1435 * elf32-rl78.c: Likewise.
1436 * elf32-s390.c: Likewise.
1437 * elf32-score.c: Likewise.
1438 * elf32-score7.c: Likewise.
1439 * elf32-sh.c: Likewise.
1440 * elf32-tic6x.c: Likewise.
1441 * elf32-tilepro.c: Likewise.
1442 * elf32-v850.c: Likewise.
1443 * elf32-vax.c: Likewise.
1444 * elf32-xstormy16.c: Likewise.
1445 * elf32-xtensa.c: Likewise.
1446 * elf64-alpha.c: Likewise.
1447 * elf64-hppa.c: Likewise.
1448 * elf64-ia64-vms.c: Likewise.
1449 * elf64-mmix.c: Likewise.
1450 * elf64-ppc.c: Likewise.
1451 * elf64-s390.c: Likewise.
1452 * elf64-sh64.c: Likewise.
1453 * elf64-x86-64.c: Likewise.
1454 * elflink.c: Likewise.
1455 * elfnn-aarch64.c: Likewise.
1456 * elfnn-ia64.c: Likewise.
1457 * elfnn-riscv.c: Likewise.
1458 * elfxx-mips.c: Likewise.
1459 * elfxx-sparc.c: Likewise.
1460 * elfxx-tilegx.c: Likewise.
1461 * linker.c: Likewise.
1463 2017-05-16 Alan Modra <amodra@gmail.com>
1465 * elf64-ppc.c (add_symbol_adjust): Transfer non_ir_ref_dynamic.
1466 * elflink.c (elf_link_add_object_symbols): Update to use
1468 (elf_link_input_bfd): Test non_ir_ref_dynamic in addition to
1470 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
1472 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
1474 * elfxx-mips.c (print_mips_ases): Handle MIPS16e2 ASE.
1476 2017-05-12 H.J. Lu <hongjiu.lu@intel.com>
1478 * elf32-i386.c (elf_i386_parse_gnu_properties): Merge
1479 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
1481 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
1483 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
1485 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Rename plt_bnd
1487 (elf_x86_64_link_hash_table): Rename plt_bnd/plt_bnd_eh_frame
1488 to plt_second/plt_second_eh_frame.
1489 (elf_x86_64_link_hash_newfunc): Updated.
1490 (elf_x86_64_allocate_dynrelocs): Likewise.
1491 (elf_x86_64_size_dynamic_sections): Likewise.
1492 (elf_x86_64_relocate_section): Likewise.
1493 (elf_x86_64_finish_dynamic_symbol): Likewise.
1494 (elf_x86_64_finish_dynamic_sections): Likewise.
1495 (elf_x86_64_plt_type): Rename plt_bnd to plt_second.
1496 (elf_x86_64_get_synthetic_symtab): Updated. Also scan the
1498 (elf_backend_setup_gnu_properties): Updated. Create the
1499 .plt.sec section instead of the .plt.sec section.
1501 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
1503 * elf32-i386.c (elf_i386_allocate_dynrelocs): Partially revert
1504 commit 25070364b0ce33eed46aa5d78ebebbec6accec7e.
1505 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewse.
1507 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1509 * elf64-sparc.c (elf64_sparc_set_reloc): New function.
1510 (bfd_elf64_set_reloc): Define.
1511 (elf64_sparc_write_relocs): Use `canon_reloc_count'.
1513 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1515 * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc.
1516 (struct bfd_target): New field _bfd_set_reloc.
1517 * bfd.c (bfd_set_reloc): Call backend _set_bfd.
1518 * reloc.c (_bfd_generic_set_reloc): New function.
1519 * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc.
1520 * nlm-target.h (nlm_set_reloc): Likewise.
1521 * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise.
1522 * aout-tic30.c (MY_set_reloc): Likewise.
1523 * aout-target.h (MY_set_reloc): Likewise.
1524 * elfxx-target.h (bfd_elfNN_set_reloc): Likewise.
1525 * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise.
1526 * mach-o-target.c (bfd_mach_o_set_reloc): Likewise.
1527 * vms-alpha.c (alpha_vms_set_reloc): Likewise.
1528 * aout-adobe.c (aout_32_set_reloc): Likewise.
1529 * bout.c (b_out_set_reloc): Likewise.
1530 * coff-mips.c (_bfd_ecoff_set_reloc): Likewise.
1531 * i386os9k.c (aout_32_set_reloc): Likewise.
1532 * ieee.c (ieee_set_reloc): Likewise.
1533 * oasys.c (oasys_set_reloc): Likewise.
1534 * som.c (som_set_reloc): Likewise.
1535 * versados.c (versados_set_reloc): Likewise.
1536 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
1537 _bfd_generic_set_reloc.
1538 (rs6000_xcoff64_aix_vec): LIkewise.
1539 * libbfd.c (_bfd_norelocs_set_reloc): New function.
1540 * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc.
1541 * i386msdos.c (msdos_set_reloc): Define to
1542 _bfd_norelocs_set_reloc.
1543 * elfcode.h (elf_set_reloc): Define.
1544 * bfd-in2.h: Regenerated.
1546 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
1549 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd
1550 for IFUNC function address.
1552 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
1554 * elf32-arc.c (FEATURE_LIST_NAME): Define.
1555 (CONFLICT_LIST): Likewise.
1556 (opcode/arc-attrs.h): Include.
1557 (arc_elf_print_private_bfd_data): Print OSABI v4 flag.
1558 (arc_extract_features): New file.
1559 (arc_stralloc): Likewise.
1560 (arc_elf_merge_attributes): Likewise.
1561 (arc_elf_merge_private_bfd_data): Use object attributes.
1562 (bfd_arc_get_mach_from_attributes): New function.
1563 (arc_elf_object_p): Use object attributes.
1564 (arc_elf_final_write_processing): Likewise.
1565 (elf32_arc_obj_attrs_arg_type): New function.
1566 (elf32_arc_obj_attrs_handle_unknown): Likewise.
1567 (elf32_arc_section_from_shdr): Likewise.
1568 (elf_backend_obj_attrs_vendor): Define.
1569 (elf_backend_obj_attrs_section): Likewise.
1570 (elf_backend_obj_attrs_arg_type): Likewise.
1571 (elf_backend_obj_attrs_section_type): Likewise.
1572 (elf_backend_obj_attrs_handle_unknown): Likewise.
1573 (elf_backend_section_from_shdr): Likewise.
1575 2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za>
1578 * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit
1579 of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation
1580 and the destination is a Thumb symbol.
1582 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
1584 * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing
1585 initializer to silence GCC 4.2.
1586 * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise.
1588 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
1590 * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ...
1591 (LAZY_PLT_ENTRY_SIZE): This.
1592 (NON_LAZY_PLT_ENTRY_SIZE): New.
1593 (elf_x86_64_plt0_entry): Renamed to ...
1594 (elf_x86_64_lazy_plt0_entry): This.
1595 (elf_x86_64_plt_entry): Renamed to ...
1596 (elf_x86_64_lazy_plt_entry): This.
1597 (elf_x86_64_bnd_plt0_entry): Renamed to ...
1598 (elf_x86_64_lazy_bnd_plt0_entry): This.
1599 (elf_x86_64_legacy_plt_entry): Removed.
1600 (elf_x86_64_bnd_plt_entry): Renamed to ...
1601 (elf_x86_64_lazy_bnd_plt_entry): This.
1602 (elf_x86_64_legacy_plt2_entry): Renamed to ...
1603 (elf_x86_64_non_lazy_plt_entry): This.
1604 (elf_x86_64_bnd_plt2_entry): Renamed to ...
1605 (elf_x86_64_non_lazy_bnd_plt_entry): This.
1606 (elf_x86_64_eh_frame_plt): Renamed to ...
1607 (elf_x86_64_eh_frame_lazy_plt): This.
1608 (elf_x86_64_eh_frame_bnd_plt): Renamed to ...
1609 (elf_x86_64_eh_frame_lazy_bnd_plt): This.
1610 (elf_x86_64_eh_frame_plt_got): Renamed to ...
1611 (elf_x86_64_eh_frame_non_lazy_plt): This.
1612 (elf_x86_64_lazy_plt_layout): New.
1613 (elf_x86_64_non_lazy_plt_layout): Likewise.
1614 (elf_x86_64_plt_layout): Likewise.
1615 (elf_x86_64_backend_data): Remove PLT layout information. Add
1616 os for target system.
1617 (GET_PLT_ENTRY_SIZE): Removed.
1618 (elf_x86_64_lazy_plt): New.
1619 (elf_x86_64_non_lazy_plt): Likewise.
1620 (elf_x86_64_lazy_bnd_plt): Likewise.
1621 (elf_x86_64_non_lazy_bnd_plt): Likewise.
1622 (elf_x86-64_arch_bed): Updated.
1623 (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt.
1624 (elf_x86_64_create_dynamic_sections): Removed.
1625 (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call
1626 _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section.
1627 (elf_x86-64_adjust_dynamic_symbol): Updated.
1628 (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header
1629 size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate
1630 size for PLT0 if there is no PLT0. Get plt_entry_size from
1631 non_lazy_plt for non-lazy PLT entries.
1632 (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size
1633 from non_lazy_plt for non-lazy PLT entries.
1634 (elf_x86-64_relocate_section): Updated. Properly get PLT index
1635 if there is no PLT0.
1636 (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot
1637 in the PLT entry with generic PLT layout. Fill the non-lazy PLT
1638 entries with non-lazy PLT layout. Don't fill the second and third
1639 slots in the PLT entry if there is no PLT0.
1640 (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0
1641 if there is no PLT0. Set sh_entsize on the .plt.got section.
1642 (compare_relocs): New.
1643 (elf_x86_64_plt_type): Likewise.
1644 (elf_x86_64_plt): Likewise.
1645 (elf_x86_64_nacl_plt): New. Forward declaration.
1646 (elf_x86_64_get_plt_sym_val): Removed.
1647 (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections
1648 against all dynamic relocations.
1649 (elf_x86_64_link_setup_gnu_properties): New function.
1650 (elf_backend_create_dynamic_sections): Updated.
1651 (elf_backend_setup_gnu_properties): New.
1652 (elf_x86_64_nacl_plt): New.
1653 (elf_x86_64_nacl_arch_bed): Updated.
1655 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
1657 * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ...
1658 (LAZY_PLT_ENTRY_SIZE): This.
1659 (NON_LAZY_PLT_ENTRY_SIZE): New.
1660 (elf_i386_plt0_entry): Renamed to ...
1661 (elf_i386_lazy_plt0_entry): This.
1662 (elf_i386_plt_entry): Renamed to ...
1663 (elf_i386_lazy_plt_entry): This.
1664 (elf_i386_pic_plt0_entry): Renamed to ...
1665 (elf_i386_pic_lazy_plt0_entry): This.
1666 (elf_i386_pic_plt_entry): Renamed to ...
1667 (elf_i386_pic_lazy_plt_entry): This.
1668 (elf_i386_got_plt_entry): Renamed to ...
1669 (elf_i386_non_lazy_plt_entry): This.
1670 (elf_i386_pic_got_plt_entry): Renamed to ...
1671 (elf_i386_pic_non_lazy_plt_entry): This.
1672 (elf_i386_eh_frame_plt): Renamed to ...
1673 (elf_i386_eh_frame_lazy_plt): This.
1674 (elf_i386_eh_frame_plt_got): Renamed to ...
1675 (elf_i386_eh_frame_non_lazy_plt): This.
1676 (elf_i386_plt_layout): Renamed to ...
1677 (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and
1678 eh_frame_plt_got_size.
1679 (elf_i386_non_lazy_plt_layout): New.
1680 (elf_i386_plt_layout): Likewise.
1681 (elf_i386_non_lazy_plt): Likewise.
1682 (GET_PLT_ENTRY_SIZE): Removed.
1683 (elf_i386_plt): Renamed to ...
1684 (elf_i386_lazy_plt): This.
1685 (elf_i386_backend_data): Remove plt. Rename is_vxworks to os.
1686 (elf_i386_arch_bed): Updated.
1687 (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt.
1688 (elf_i386_create_dynamic_sections): Removed.
1689 (elf_i386_check_relocs): Don't check elf.dynobj. Don't call
1690 _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section.
1691 (elf_i386_adjust_dynamic_symbol): Updated.
1692 (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header
1693 size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate
1694 size for PLT0 if there is no PLT0.
1695 (elf_i386_size_dynamic_sections): Updated. Check whether GOT
1696 output section is discarded only if GOT isn't empty.
1697 (elf_i386_relocate_section): Updated. Properly get PLT index
1698 if there is no PLT0.
1699 (elf_i386_finish_dynamic_symbol): Updated. Don't fill the
1700 second and third slots in the PLT entry if there is no PLT0.
1701 (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0
1702 if there is no PLT0. Set sh_entsize on the .plt.got section.
1703 (elf_i386_nacl_plt): Forward declaration.
1704 (elf_i386_get_plt_sym_val): Removed.
1705 (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections
1706 against all dynamic relocations.
1707 (elf_i386_link_setup_gnu_properties): New function.
1708 (elf_backend_create_dynamic_sections): Updated.
1709 (elf_backend_setup_gnu_properties): New.
1710 (elf_i386_nacl_plt): Updated.
1711 (elf_i386_nacl_arch_bed): Likewise.
1712 (elf_i386_vxworks_arch_bed): Likewise.
1714 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
1716 * elflink.c (elf_output_implib): Remove executable flag from import
1718 * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import
1719 library is a relocatable object file.
1721 2017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1724 * elf32-avr.c (avr_should_move_sym): New function.
1725 (avr_should_reduce_sym_size): Likewise.
1726 (avr_should_increase_sym_size): Likewise.
1727 (elf32_avr_relax_delete_bytes): Adjust symbol values
1728 and sizes by calling new functions.
1730 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com>
1732 * config.bfd (riscv32-*): Enable rv64.
1734 2017-05-02 Alan Modra <amodra@gmail.com>
1737 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf
1738 rather than h->root.type == bfd_link_hash_new.
1739 (bfd_elf_record_link_assignment): Similarly, call
1740 bfd_elf_link_mark_dynamic_symbol when h->non_elf.
1742 2017-04-29 Alan Modra <amodra@gmail.com>
1745 * reloc.c (reloc_offset_in_range): New function.
1746 (bfd_perform_relocation, bfd_install_relocation): Use it.
1747 (_bfd_final_link_relocate): Likewise.
1749 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
1751 * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got
1752 before using .plt.got.
1753 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
1755 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
1757 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "="
1758 instead of "+=" to update 0.
1760 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
1762 * elf32-i386.c (elf_i386_create_dynamic_sections): Create the
1763 .plt.got section here.
1764 (elf_i386_check_relocs): Don't create the .plt.got section.
1765 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create
1766 the .plt.got and .plt.bnd sections here.
1767 (elf_x86_64_check_relocs): Don't create the .plt.got nor
1770 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
1772 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove
1774 (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc.
1775 (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc.
1776 (elf_x86_64_check_relocs): Don't set has_bnd_reloc.
1777 (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of
1780 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
1782 * elf-bfd.h (elf_backend_data): Change setup_gnu_properties
1784 (_bfd_elf_link_setup_gnu_properties): Return bfd *.
1785 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return
1786 the first relocatable ELF input with GNU properties.
1788 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
1790 * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify
1791 VxWorks for non-PIC.
1793 2017-04-27 Alan Modra <amodra@gmail.com>
1795 * elf-bfd.h (struct elf_backend_data): Make asection param of
1796 elf_backend_eh_frame_address_size const.
1797 (_bfd_elf_eh_frame_address_size): Likewise.
1798 * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise.
1799 * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise.
1800 * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise.
1801 * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise.
1802 * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise.
1803 (next_cie_fde_offset): Constify params.
1804 (offset_adjust, adjust_eh_frame_local_symbols): Likewise.
1806 2017-04-27 Alan Modra <amodra@gmail.com>
1808 * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len.
1809 (_bfd_elf_adjust_eh_frame_global_symbol): Declare.
1810 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and
1812 (offset_adjust): New function.
1813 (_bfd_elf_adjust_eh_frame_global_symbol): Likewise.
1814 (adjust_eh_frame_local_symbols): Likewise.
1815 (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols
1816 after changing anything. Return true if anything changed.
1817 * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call
1818 _bfd_elf_adjust_eh_frame_global_symbol for globals.
1820 2017-04-27 Alan Modra <amodra@gmail.com>
1822 * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index
1825 2017-04-27 Alan Modra <amodra@gmail.com>
1827 * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
1828 (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it.
1829 (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise.
1830 (ppc_elf_relocate_section): Likewise. Delete silly optimisation
1831 for undef and undefweak dyn_relocs.
1832 * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
1833 (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it.
1834 (allocate_got, allocate_dynrelocs): Likewise.
1835 (ppc64_elf_relocate_section): Likewise.
1837 2017-04-26 H.J. Lu <hongjiu.lu@intel.com>
1839 * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add
1840 DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section.
1841 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys
1842 add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section.
1844 2017-04-26 Nick Clifton <nickc@redhat.com>
1847 * reloc.c (bfd_perform_relocation): Check for a negative address
1850 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
1853 * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms'
1855 * elfxx-target.h [!elf_backend_always_renumber_dynsyms]
1856 (elf_backend_always_renumber_dynsyms): Define.
1857 (elfNN_bed): Initialize `always_renumber_dynsyms' member.
1858 * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define.
1859 * elflink.c (bfd_elf_size_dynamic_sections): Also call
1860 `_bfd_elf_link_renumber_dynsyms' if the backend has requested
1862 (bfd_elf_size_dynsym_hash_dynstr): Likewise.
1864 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
1866 * elflink.c (bfd_elf_size_dynamic_sections): Only call
1867 `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic
1868 sections have been created.
1870 2017-04-26 Nick Clifton <nickc@redhat.com>
1873 * compress.c (bfd_init_section_compress_status): Check the return
1874 value from bfd_malloc.
1876 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1878 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add
1879 no_finish_dynamic_symbol.
1880 (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to
1882 (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined
1883 weak symbol, don't make it dynamic.
1884 (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC,
1885 set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE
1886 relocation for GOT reference.
1887 (elf_x86_64_finish_dynamic_symbol): Abort if
1888 no_finish_dynamic_symbol isn't 0.
1890 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1893 * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't
1894 undefined weak symbol, don't make it dynamic.
1895 (elf_i386_relocate_section): If a symbol isn't dynamic in PIC,
1896 set no_finish_dynamic_symbol and generate R_386_RELATIVE
1897 relocation for R_386_GOT32.
1899 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1902 * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks.
1904 2017-04-23 Alan Modra <amodra@gmail.com>
1907 * section.c (GLOBAL_SYM_INIT): Make available in bfd.h.
1908 * elf.c (lcomm_sym): New.
1909 (_bfd_elf_large_com_section): Use lcomm_sym section symbol.
1910 * bfd-in2.h: Regenerate.
1912 2017-04-23 Alan Modra <amodra@gmail.com>
1915 * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change
1916 parameters and comment.
1917 (_bfd_elf_get_reloc_section): Delete.
1918 (_bfd_elf_plt_get_reloc_section): Declare.
1919 * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section):
1920 New functions. Don't blindly skip over assumed .rel/.rela prefix.
1922 (_bfd_elf_get_reloc_section): ..here. Delete.
1923 (assign_section_numbers): Call elf_get_reloc_section.
1924 * elf64-ppc.c (elf_backend_get_reloc_section): Define.
1925 * elfxx-target.h (elf_backend_get_reloc_section): Update.
1927 2017-04-23 Alan Modra <amodra@gmail.com>
1930 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when
1933 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
1936 * elf32-i386.c (elf_i386_link_hash_entry): Add
1937 no_finish_dynamic_symbol.
1938 (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0.
1939 (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak
1940 symbol, don't make it dynamic in PIE.
1941 (elf_i386_relocate_section): If a symbol isn't dynamic in PIE,
1942 set no_finish_dynamic_symbol and generate R_386_RELATIVE
1943 relocation for R_386_GOT32
1944 (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol
1947 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
1951 * elflink.c (elf_link_add_object_symbols): Require
1952 --no-dynamic-linker with -E/--dynamic-list when creating
1955 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
1957 * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE
1960 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
1962 * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about
1963 dynamic symbol sorting.
1965 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
1968 * elflink.c (elf_link_add_object_symbols): Preserve
1969 dynamic_ref_after_ir_def when restoring the symbol table for
1970 unneeded dynamic object.
1972 2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
1975 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort
1976 on on undefined IFUNC symbol in the second PLT.
1978 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com>
1980 * peXXigen.c (pe_print_reloc): Correct chunk_end.
1982 2017-04-19 Alan Modra <amodra@gmail.com>
1984 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak
1985 or make dynamic for info->dynamic_undefined_weak 0 and 1.
1986 * elf32-ppc.c:Formatting.
1987 (ensure_undefweak_dynamic): Don't make dynamic when
1988 info->dynamic_undefined_weak is zero.
1989 (allocate_dynrelocs): Discard undefweak dyn_relocs for
1990 info->dynamic_undefined_weak. Discard undef dyn_relocs when
1991 not default visibility. Discard undef and undefweak
1993 (ppc_elf_relocate_section): Adjust to suit.
1994 * elf64-ppc.c: Formatting.
1995 (ensure_undefweak_dynamic): Don't make dynamic when
1996 info->dynamic_undefined_weak is zero.
1997 (allocate_dynrelocs): Discard undefweak dyn_relocs for
1998 info->dynamic_undefined_weak. Discard them earlier.
2000 2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
2003 * elflink.c (bfd_elf_size_dynamic_sections): Get soname index
2004 before generating the version definition section.
2006 2017-04-17 Alan Modra <amodra@gmail.com>
2008 * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking
2009 state when a regular object file defines a symbol with
2010 incompatible type to that defined by an earlier shared lib.
2012 2017-04-13 Alan Modra <amodra@gmail.com>
2014 * coffcode.h: Wrap some overly long _bfd_error_handler args.
2016 * elf32-arm.c: Likewise.
2017 * elf32-i386.c: Likewise.
2018 * elf32-mep.c: Likewise.
2019 * elf64-ia64-vms.c: Likewise.
2020 * elf64-x86-64.c: Likewise.
2021 * elflink.c: Likewise.
2022 * elfnn-ia64.c: Likewise.
2023 * elfxx-mips.c: Likewise.
2025 2017-04-13 Alan Modra <amodra@gmail.com>
2027 * aoutx.h: Use %B and %A in error messages throughout file.
2028 * aout-cris.c: Likewise.
2029 * archive.c: Likewise.
2030 * binary.c: Likewise.
2031 * coff-rs6000.c: Likewise.
2032 * coff-tic4x.c: Likewise.
2033 * coffcode.h: Likewise.
2034 * coffgen.c: Likewise.
2035 * cofflink.c: Likewise.
2036 * coffswap.h: Likewise.
2037 * cpu-arm.c: Likewise.
2038 * elf-eh-frame.c: Likewise.
2039 * elf-m10300.c: Likewise.
2041 * elf32-arc.c: Likewise.
2042 * elf32-arm.c: Likewise.
2043 * elf32-bfin.c: Likewise.
2044 * elf32-frv.c: Likewise.
2045 * elf32-iq2000.c: Likewise.
2046 * elf32-m32c.c: Likewise.
2047 * elf32-microblaze.c: Likewise.
2048 * elf32-nds32.c: Likewise.
2049 * elf32-rl78.c: Likewise.
2050 * elf32-rx.c: Likewise.
2051 * elf32-score.c: Likewise.
2052 * elf32-score7.c: Likewise.
2053 * elf32-sh64.c: Likewise.
2054 * elf32-v850.c: Likewise.
2055 * elf32-vax.c: Likewise.
2056 * elf32-visium.c: Likewise.
2057 * elf64-ia64-vms.c: Likewise.
2058 * elf64-mmix.c: Likewise.
2059 * elf64-sh64.c: Likewise.
2060 * elfcode.h: Likewise.
2061 * elfnn-aarch64.c: Likewise.
2062 * elfnn-ia64.c: Likewise.
2063 * elfxx-mips.c: Likewise.
2064 * hpux-core.c: Likewise.
2067 * linker.c: Likewise.
2068 * merge.c: Likewise.
2070 * oasys.c: Likewise.
2071 * pdp11.c: Likewise.
2072 * peXXigen.c: Likewise.
2073 * rs6000-core.c: Likewise.
2074 * vms-alpha.c: Likewise.
2075 * xcofflink.c: Likewise.
2077 2017-04-13 Alan Modra <amodra@gmail.com>
2079 * bfd.c (PRINT_TYPE): Define.
2080 (_doprnt): New function.
2081 (error_handler_internal): Use _doprnt.
2082 * coff-arm.c: Put %A and %B arguments to _bfd_error_handler
2083 calls in their natural order, throughout file.
2084 * coff-mcore.c: Likewise.
2085 * coff-ppc.c: Likewise.
2086 * coff-tic80.c: Likewise.
2087 * cofflink.c: Likewise.
2088 * elf-s390-common.c: Likewise.
2090 * elf32-arm.c: Likewise.
2091 * elf32-i386.c: Likewise.
2092 * elf32-m32r.c: Likewise.
2093 * elf32-msp430.c: Likewise.
2094 * elf32-spu.c: Likewise.
2095 * elf64-ia64-vms.c: Likewise.
2096 * elf64-sparc.c: Likewise.
2097 * elf64-x86-64.c: Likewise.
2098 * elflink.c: Likewise.
2099 * elfnn-aarch64.c: Likewise.
2100 * elfnn-ia64.c: Likewise.
2101 * elfxx-mips.c: Likewise.
2103 2017-04-13 Alan Modra <amodra@gmail.com>
2105 * elf32-arm.c (arm_type_of_stub): Supply missing args to "long
2106 branch veneers" error. Fix double space and format message.
2107 * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg.
2108 * elf64-ppc.c (tocsave_find): Supply missing %B arg.
2110 2017-04-13 Alan Modra <amodra@gmail.com>
2112 * bfd-in2.h: Regenerate.
2114 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
2116 * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the
2117 extra `\n' in warning/error messages.
2118 * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise.
2119 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
2121 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
2123 * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore
2124 processor-specific properties with generic ELF target vector.
2126 2017-04-10 Qing Zhao <qing.zhao@oracle.com>
2128 * elf32-sparc.c (elf_backend_fixup_symbol): New.
2129 * elf64-sparc.c (elf_backend_fixup_symbol): New.
2130 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
2131 (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and
2133 (link_hash_newfunc): Initialize has_got_reloc and
2135 (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp
2137 (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and
2139 (_bfd_sparc_elf_check_relocs): Set has_got_reloc and
2141 (_bfd_sparc_elf_fixup_symbol): New function.
2142 (allocate_dynrelocs): Don't allocate space for dynamic
2143 relocations and discard relocations against resolved undefined
2144 weak symbols in executable. Don't make resolved undefined weak
2145 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
2146 relocation against undefined weak symbols in PIE.
2147 (_bfd_sparc_elf_relocate_section): Don't generate dynamic
2148 relocations against resolved undefined weak symbols in PIE
2149 (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries
2150 without ynamic PLT/GOT relocations for resolved undefined weak
2152 Don't generate dynamic relocation against resolved undefined
2153 weak symbol in executable.
2154 (pie_finish_undefweak_symbol): New function.
2155 (_bfd_sparc_elf_finish_dynamic_sections): Call
2156 pie_finish_undefweak_symbol on all symbols in PIE.
2157 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp.
2158 (_bfd_sparc_elf_fixup_symbol): New function.
2160 2017-04-10 Nick Clifton <nickc@redhat.com>
2162 * config.bfd: Remove ns32k from obsolete list.
2164 2017-04-10 Alan Modra <amodra@gmail.com>
2167 * elf.c (special_sections_f): Match .fini_array and .fini_array.*.
2168 (special_sections_i): Likewise for .init_array.
2169 (special_sections_p): Likewise for .preinit_array.
2171 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
2175 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check
2176 ELF_COMMON_DEF_P for common symbols.
2177 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
2178 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
2179 * elflink.c (_bfd_elf_merge_symbol): Revert commits
2180 202ac193bbbecc96a4978d1ac3d17148253f9b01 and
2181 07492f668d2173da7a2bda3707ff0985e0f460b6.
2183 2017-04-07 Pedro Alves <palves@redhat.com>
2185 * opncls.c (bfd_get_debug_link_info): Rename to...
2186 (bfd_get_debug_link_info_1): ... this. Change type of second
2187 parameter to void pointer. Adjust.
2188 (bfd_get_debug_link_info): Reimplement on top of
2189 bfd_get_debug_link_info_1.
2190 (separate_debug_file_exists, separate_alt_debug_file_exists):
2191 Change type of second parameter to void pointer. Adjust.
2192 (get_func_type, check_func_type): Change type of second parameter
2194 (find_separate_debug_file): Add 'func_data' parameter. Pass it to
2195 the callback functions instead of passing the address of a local.
2196 (bfd_follow_gnu_debuglink): Pass address of unsigned long local to
2197 find_separate_debug_file.
2198 (get_alt_debug_link_info_shim): Change type of second parameter to
2199 void pointer. Adjust.
2200 (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to
2201 find_separate_debug_file.
2202 (get_build_id_name, bfd_boolean check_build_id_file): Change type
2203 of second parameter to void pointer. Adjust.
2204 (bfd_follow_build_id_debuglink): Pass address of bfd_build_id
2205 pointer local to find_separate_debug_file.
2207 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510>
2209 * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak
2210 external symbols with a definition.
2211 (_bfd_coff_gc_mark_extra_sections): Fix typo.
2213 2017-04-07 Alan Modra <amodra@gmail.com>
2215 * po/SRC-POTFILES.in: Regenerate.
2217 2017-04-05 Alan Modra <amodra@gmail.com>
2219 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT
2222 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk>
2224 (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than
2225 numbers for DataDirectory entry indicies passed to
2228 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
2230 * elf.c (get_program_header_size): Add a GNU_MBIND segment for
2231 each GNU_MBIND section and align GNU_MBIND section to page size.
2232 (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
2233 segment for each GNU_MBIND section.
2234 (_bfd_elf_init_private_section_data): Copy sh_info from input
2235 for GNU_MBIND section.
2237 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
2239 * elfnn-riscv.c (GP_NAME): Delete.
2240 (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
2241 (_bfd_riscv_relax_lui): Likewise.
2243 2017-04-04 Nick Clifton <nickc@redhat.com>
2246 * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
2248 (bfd_elf_final_link): Only initialize the extended symbol index
2249 section if there are extended symbol tables to list.
2251 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
2253 * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo.
2254 (BFD32_BACKENDS_CFILES): Add elf-properties.c.
2255 * configure.ac (elf): Add elf-properties.lo.
2256 * Makefile.in: Regenerated.
2257 * configure: Likewise.
2258 * elf-bfd.h (elf_property_kind): New.
2259 (elf_property): Likewise.
2260 (elf_property_list): Likewise.
2261 (elf_properties): Likewise.
2262 (_bfd_elf_parse_gnu_properties): Likewise.
2263 (_bfd_elf_get_property): Likewise.
2264 (_bfd_elf_link_setup_gnu_properties): Likewise.
2265 (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties
2266 and setup_gnu_properties.
2267 (elf_obj_tdata): Add properties.
2268 * elf-properties.c: New file.
2269 * elf32-i386.c (elf_i386_parse_gnu_properties): New.
2270 (elf_i386_merge_gnu_properties): Likewise.
2271 (elf_backend_parse_gnu_properties): Likewise.
2272 (elf_backend_merge_gnu_properties): Likewise.
2273 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
2274 (elf_x86_64_merge_gnu_properties): Likewise.
2275 (elf_backend_parse_gnu_properties): Likewise.
2276 (elf_backend_merge_gnu_properties): Likewise.
2277 * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise.
2278 (elf_backend_parse_gnu_properties): Likewise.
2279 (elf_backend_setup_gnu_properties): Likewise.
2280 (elfNN_bed): Add elf_backend_parse_gnu_properties,
2281 elf_backend_merge_gnu_properties and
2282 elf_backend_setup_gnu_properties.
2284 2017-03-30 Pip Cet <pipcet@gmail.com>
2286 * elf32-wasm32.c: Add relocation code, two relocs.
2287 * reloc.c: Add wasm32 relocations.
2288 * libbfd.h: Regenerate.
2289 * bfd-in2.h: Regenerate.
2290 * bfd/po/bfd.pot: Regenerate.
2292 2017-03-29 Nick Clifton <nickc@redhat.com>
2295 * coff-bfd.h (struct coff_section_data): Add new fields:
2296 saved_bias and bias.
2297 * coffgen.c (coff_find_nearest_line_with_names): Cache the bias
2298 computed for PE binaries.
2299 * dwarf2.c (scan_unit_for_symbols): Only warn once about each
2302 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
2305 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
2306 to handle a local symbol with a hash-symbol-entry; without PLT.
2307 Add BFD_ASSERT for an incidental case with GOT entry present.
2308 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
2309 isn't forced-or-set local.
2311 2017-03-27 Pip Cet <pipcet@gmail.com>
2313 * wasm-module.c: New file to support WebAssembly modules.
2314 * wasm-module.h: New file to support WebAssembly modules.
2315 * doc/webassembly.texi: Start documenting wasm-module.c.
2316 * config.bfd: Add wasm_vec.
2317 * targets.c: Likewise.
2318 * configure.ac: Likewise.
2319 * Makefile.am: Add entries for wasm-module.c.
2320 * Makefile.in: Regenerate.
2321 * configure: Regenerate.
2322 * po/SRC-POTFILES.in: Regenerate.
2324 2017-03-27 Pip Cet <pipcet@gmail.com>
2326 * cpu-wasm32.c: New file to support wasm32 architecture.
2327 * elf32-wasm32.c: New file to support wasm32 architecture.
2328 * Makefile.am: Add wasm32 architecture.
2329 * archures.c: Likewise.
2330 * config.bfd: Likewise.
2331 * configure.ac: Likewise.
2332 * targets.c: Likewise.
2333 * Makefile.in: Regenerate.
2334 * bfd-in2.h: Regenerate.
2335 * configure: Regenerate.
2336 * po/SRC-POTFILES.in: Regenerate.
2338 2017-03-20 Alan Modra <amodra@gmail.com>
2341 * elf64-ppc.c (compare_symbols): Stabilize sort.
2343 2017-03-18 Alan Modra <amodra@gmail.com>
2345 * elf64-ppc.c (struct ppc_link_hash_table): Add
2346 local_ifunc_resolver and maybe_local_ifunc_resolver.
2347 (ppc_build_one_stub): Set flags on emitting dynamic
2348 relocation to ifunc.
2349 (ppc64_elf_relocate_section): Likewise.
2350 (ppc64_elf_finish_dynamic_symbol): Likewise.
2351 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
2352 local dynamic relocs to ifuncs.
2353 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
2354 local_ifunc_resolver and maybe_local_ifunc_resolver.
2355 (ppc_elf_relocate_section): Set flag on emitting dynamic
2356 relocation to ifuncs.
2357 (ppc_elf_finish_dynamic_symbol): Likewise.
2358 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
2359 dynamic relocs to ifuncs.
2361 2017-03-13 Nick Clifton <nickc@redhat.com>
2364 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
2365 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
2366 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
2367 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
2368 * bfd-in2.h: Regenerate.
2369 * libbfd.h: Regenerate.
2370 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
2372 (IS_AARCH64_TLSDESC_RELOC): Likewise.
2373 (elfNN_aarch64_howto_table): Likewise.
2374 (aarch64_tls_transition_without_check): Likewise.
2375 (aarch64_reloc_got_type): Likewise.
2376 (elfNN_aarch64_final_link_relocate): Likewise.
2377 (elfNN_aarch64_tls_relax): Likewise.
2378 (elfNN_aarch64_relocate_section): Likewise.
2379 (elfNN_aarch64_gc_sweep_hook): Likewise.
2380 (elfNN_aarch64_check_relocs): Likewise.
2381 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
2382 (_bfd_aarch64_elf_resolve_relocation): Likewise.
2384 2017-03-11 Alan Modra <amodra@gmail.com>
2386 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
2387 parameter is in fact used. Whitespace fixes.
2388 * elf64-ppc.c: Likewise.
2390 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
2392 * rs6000-core.c (CORE_NEW): Simplify macro when
2393 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
2395 2017-03-07 Alan Modra <amodra@gmail.com>
2399 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
2402 2017-03-05 Alan Modra <amodra@gmail.com>
2404 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
2405 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
2406 (next_cie_fde_offset): New function.
2407 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
2408 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
2409 four bytes. Align CIEs to four or eight bytes depending on
2410 per_encoding_aligned8. Align FDEs according to their encoding.
2411 Pad last FDE to output section alignment.
2412 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
2414 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
2415 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
2416 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
2418 2017-03-02 Martin Bickel <binutils@ineranves.de>
2421 * elf.c (rewrite_elf_program_header): Do not issue a warning for
2422 empty segments which have a zero filesz, but a non-zero memsz.
2424 2017-03-02 Alan Modra <amodra@gmail.com>
2426 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
2428 2017-02-28 Alan Modra <amodra@gmail.com>
2430 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
2431 (ppc64_elf_relocate_section): Likewise.
2433 2017-02-28 Alan Modra <amodra@gmail.com>
2436 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
2437 rather than elf32_nios2_hash_table or elf_hash_table.
2438 (create_got_section): Likewise.
2439 (nios2_elf32_finish_dynamic_symbol): Likewise.
2440 (nios2_elf32_adjust_dynamic_symbol): Likewise.
2441 (nios2_elf32_size_dynamic_sections): Likewise.
2442 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
2443 vars. Use htab equivalents directly instead. Don't create
2444 all dynamic sections on needing just the GOT. Use a goto
2445 rather than a fall-through with reloc test. Ensure
2446 htab->dynobj is set when making dynamic sreloc section.
2447 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
2448 equivalent directly instead. Don't segfault on looking for
2449 .dynamic when dynamic sections have not been created. Don't
2450 segfault on .got.plt being discarded.
2451 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
2452 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
2453 fixme and another not so relevant comment.
2454 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
2455 already set, set hash table dynobj on creating .sbss.
2457 2017-02-28 Alan Modra <amodra@gmail.com>
2459 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
2460 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
2461 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
2462 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
2463 (ppc64_elf_relocate_section): Likewise.
2464 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
2465 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
2466 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
2467 * libbfd.h: Regenerate.
2468 * bfd-in2.h: Regenerate.
2470 2017-02-28 Alan Modra <amodra@gmail.com>
2472 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
2473 dynamic .data.rel.ro read-only.
2474 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
2475 rather than section flags when deciding where copy reloc goes.
2476 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
2477 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
2478 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
2479 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
2480 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
2481 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
2482 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
2483 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
2484 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
2485 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
2486 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
2487 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
2488 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
2489 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
2490 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
2491 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
2492 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
2493 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
2494 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
2496 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
2498 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
2499 `jalr $0, $25' instruction encoding.
2501 2017-02-27 Nick Clifton <nickc@redhat.com>
2504 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
2505 generating a seg-fault when encountering a symbol that has been
2506 deleted by garbage collection.
2508 2017-02-25 Alan Modra <amodra@gmail.com>
2510 * elf32-arc.c (struct dynamic_sections): Delete.
2511 (enum dyn_section_types): Delete.
2512 (dyn_section_names): Delete.
2513 (arc_create_dynamic_sections): Delete.
2514 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
2515 segfault on discarded .rela.plt section.
2516 (elf_arc_size_dynamic_sections): Formatting. Don't call
2517 arc_create_dynamic_sections. Don't allocate memory for sections
2518 handled by the generic linker. Correct code finding relocs in
2519 read-only sections. Set SEC_EXCLUDE on zero size .got,
2520 .got.plt, and .dynbss sections. Do set .interp for pies.
2522 2017-02-24 Andrew Waterman <andrew@sifive.com>
2524 * elfnn-riscv.c (GP_NAME): New macro.
2525 (riscv_global_pointer_value): Use it.
2526 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
2527 output section, consider only that section's alignment.
2529 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
2531 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
2532 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
2533 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
2534 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
2536 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
2538 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
2539 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
2542 2017-02-23 Alan Modra <amodra@gmail.com>
2545 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
2547 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
2548 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
2551 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
2554 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
2555 processing ahead of the call to `elf_gc_sweep_symbol'.
2557 2017-02-22 Nick Clifton <nickc@redhat.com>
2560 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
2561 created section 4-byte alignment.
2563 2017-02-22 Alan Modra <amodra@gmail.com>
2565 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
2566 on .got or .plt output section being discarded by script.
2567 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
2570 2017-02-21 Alan Modra <amodra@gmail.com>
2572 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
2573 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
2575 2017-02-20 Alan Modra <amodra@gmail.com>
2578 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
2579 if DT_RELSZ/DT_RELASZ is zero.
2581 2017-02-17 Nick Clifton <nickc@redhat.com>
2583 * compress.c (bfd_get_full_section_contents): Remember to reduce
2584 compressed size by the sizeof the compression header when
2585 decompressing the contents.
2587 2017-02-17 Pedro Alves <palves@redhat.com>
2589 * srec.c (Chunk): Rename to ...
2590 (_bfd_srec_len): ... this.
2591 (S3Forced): Rename to ...
2592 (_bfd_srec_forceS3): ... this.
2593 * objcopy.c: Adjust all references.
2595 2017-02-17 Pedro Alves <palves@redhat.com>
2597 * archive.c (bsd_write_armap): Rename to ...
2598 (_bfd_bsd_write_armap): ... this.
2599 (coff_write_armap): Rename to ...
2600 (_bfd_coff_write_armap): ... this.
2601 * libbfd-in.h (bsd_write_armap): Rename to ...
2602 (_bfd_bsd_write_armap): ... this.
2603 (coff_write_armap): Rename to ...
2604 (_bfd_coff_write_armap): ... this.
2605 * aout-target.h, aout-tic30.c: Adjust all users.
2606 * libbfd.h: Regenerate.
2608 2017-02-17 Pedro Alves <palves@redhat.com>
2610 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
2611 (warn_deprecated): Rename to ...
2612 (_bfd_warn_deprecated): ... this.
2613 * libbfd.c (warn_deprecated): Rename to ...
2614 (_bfd_warn_deprecated): ... this.
2615 * bfd-in2.h: Regenerate.
2617 2017-02-17 Pedro Alves <palves@redhat.com>
2619 * bfdio.c (real_ftell): Rename to ...
2620 (_bfd_real_ftell): ... this.
2621 (real_fseek): Rename to ...
2622 (_bfd_real_fseek): ... this.
2623 (real_fopen): Rename to ...
2624 (_bfd_real_fopen): ... this.
2625 * libbfd-in.h (real_ftell): Rename to ...
2626 (_bfd_real_ftell): ... this.
2627 (real_fseek): Rename to ...
2628 (_bfd_real_fseek): ... this.
2629 (real_fopen): Rename to ...
2630 (_bfd_real_fopen): ... this.
2631 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
2632 * libbfd.h: Regenerate.
2634 2017-02-17 Pedro Alves <palves@redhat.com>
2636 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
2637 * libbfd.c (read_unsigned_leb128): Rename to ...
2638 (_bfd_read_unsigned_leb128): ... this.
2639 (read_signed_leb128): Rename to ...
2640 (_bfd_read_signed_leb128): ... this.
2641 (safe_read_leb128): Rename to ...
2642 (_bfd_safe_read_leb128): ... this.
2643 * libbfd-in.h (read_unsigned_leb128): Rename to ...
2644 (_bfd_read_unsigned_leb128): ... this.
2645 (read_signed_leb128): Rename to ...
2646 (_bfd_read_signed_leb128): ... this.
2647 (safe_read_leb128): Rename to ...
2648 (_bfd_safe_read_leb128): ... this.
2649 * libbfd.h: Renegerate.
2651 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
2653 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
2654 before trying to fine matching file and line information.
2656 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
2658 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
2659 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
2660 not match current bfd, then reload debug information. Record bfd
2661 we're loading debug info for in the stash. If we have debug
2662 informatin in the cache then perform section placement before
2665 2017-02-16 Alan Modra <amodra@gmail.com>
2668 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
2669 * elfxx-target.h (elf_backend_no_page_alias): Define.
2670 (elfNN_bed): Init new field.
2671 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
2672 ensure PT_LOAD segment starts on a new page.
2673 * elf32-hppa.c (elf_backend_no_page_alias): Define.
2675 2017-02-16 Alan Modra <amodra@gmail.com>
2678 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
2681 2017-02-16 Jiong Wang <jiong.wang@arm.com>
2683 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
2684 * bfd-in2.h: Regenerated.
2686 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
2689 * elf32-i386.c (elf_i386_relocate_section): Allow
2690 "lea foo@GOT, %reg" in PIC.
2692 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
2695 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
2696 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
2697 error against local IFUNC symbol without a base register for
2700 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
2702 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
2703 `%P: %H:' with `info->callbacks->einfo'.
2704 (ppc_elf_relocate_section): Likewise.
2705 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
2706 (ppc64_elf_edit_toc): Likewise.
2707 (ppc64_elf_relocate_section): Likewise.
2709 2017-02-14 Alan Modra <amodra@gmail.com>
2711 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
2712 --gc-keep-exported, and test versioned field of sym rather than
2713 looking for @ in name.
2715 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
2717 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
2720 2017-02-13 Nick Clifton <nickc@redhat.com>
2723 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
2726 2017-02-07 Andrew Waterman <andrew@sifive.com>
2728 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
2729 entry size if PLT header is written.
2731 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
2733 Fix sparc64 dynamic relocation processing to use the dynamic
2735 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
2736 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
2739 2017-02-03 Nick Clifton <nickc@redhat.com>
2742 * coffcode.h (coff_write_object_contents): Enlarge size of
2743 s_name_buf in order to avoid compile time warning about possible
2745 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
2746 32-bits of insn value before printing into buffer.
2748 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2750 * elfxx-mips.c (mips_elf_hash_sort_data): Add
2751 `max_local_dynindx'.
2752 (mips_elf_sort_hash_table): Handle it.
2753 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
2754 symbols bump up `max_local_dynindx' rather than
2755 `max_non_got_dynindx'.
2757 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2759 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
2760 `min_got_dynindx', `max_unref_got_dynindx' and
2761 `max_non_got_dynindx' members to the `bfd_size_type' data type.
2762 (mips_elf_sort_hash_table): Adjust accordingly.
2764 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2766 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
2767 to access the hash table.
2769 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2771 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
2772 non-NULL `htab' to the beginning.
2774 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2776 * elflink.c (elf_gc_sweep): Wrap overlong line.
2778 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
2780 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
2781 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
2782 * elfxx-mips.c (mips_elf_link_hash_table): Add
2783 `ignore_branch_isa' member.
2784 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
2785 in branch relocation calculation as an error if
2786 `ignore_branch_isa' has been set.
2787 (_bfd_mips_elf_insn32): Rename to...
2788 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
2789 parameter to `insn32' and add an `ignore_branch_isa' parameter.
2790 Handle the new parameter.
2792 2017-01-27 Hans-Peter Nilsson <hp@axis.com>
2794 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
2795 local variable dynobj.
2798 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
2799 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
2800 executable from read-only sections into sdynrelro.
2801 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
2802 dynamic relocs in sdynrelro.
2803 (elf_backend_want_dynrelro): Define.
2805 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
2807 * config.bfd (*-*-rtemsaout*): Mark as removed.
2809 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
2811 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
2812 (arm-*-rtems*): Move to (arm*-*-eabi*).
2813 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
2814 (m68-*-rtems*): Move to (m68*-*-elf*).
2816 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
2818 * config.bfd (*-*-rtemscoff*): Mark as removed.
2820 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
2823 * elflink.c (bfd_elf_record_link_assignment): Revert last
2824 change and don't ever clear `forced_local'. Set `mark'
2826 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
2828 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
2829 (bfd_elf_size_dynamic_sections): ... here.
2830 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
2831 and set `mark' instead in `__tls_get_addr_opt' processing.
2832 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
2834 2017-01-24 Alan Modra <amodra@gmail.com>
2836 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
2837 where dynamic relocs are preferable. Allow ifunc too.
2838 (ensure_undefweak_dynamic): New function.
2839 (allocate_dynrelocs): Use it here. Move plt handling last and
2840 don't make symbols dynamic, simplifying loop. Only make undef
2841 weak symbols with GOT entries dynamic. Correct condition
2842 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
2843 comments. Remove goto.
2844 (ppc_elf_relocate_section): Correct test for using dynamic
2845 symbol on GOT relocs. Rearrange test for emitting GOT relocs
2846 to suit. Set up explicit tls_index entries and implicit GOT
2847 tls_index entries resolvable at link time for
2848 __tls_get_addr_opt. Simplify test to clear mem for prelink.
2849 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
2850 (ensure_undefweak_dynamic): New function.
2851 (allocate_dynrelocs): Use it here. Only make undef weak symbols
2852 with GOT entries dynamic. Remove unnecessary test of
2853 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
2854 (ppc64_elf_relocate_section): Correct test for using dynamic
2855 symbol on GOT relocs. Rearrange test for emitting GOT relocs
2856 to suit. Set up explicit tls_index entries and implicit GOT
2857 tls_index entries resolvable at link time for __tls_get_addr_opt.
2858 Simplify expression to clear mem for prelink.
2860 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
2862 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
2864 2017-01-20 Jiong Wang <jiong.wang@arm.com>
2866 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
2867 (elf_backend_hash_symbol): Define.
2869 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
2872 * elflink.c (bfd_elf_record_link_assignment): Clear any
2873 `forced_local' marking for DSO symbols that are not being
2876 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2878 * elfnn-riscv.c (riscv_elf_object_p): New function.
2880 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
2883 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
2885 (elf_x86_64_check_relocs): Create .eh_frame section for the
2887 (elf_x86_64_size_dynamic_sections): Allocate and initialize
2888 .eh_frame section for the .plt.bnd section.
2889 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
2890 for the .plt.bnd section.
2892 2017-01-12 Nick Clifton <nickc@redhat.com>
2895 * opncls.c (find_separate_debug_file): Add include_dirs
2896 parameter. Only include the directory part of the bfd's filename
2897 in search paths if include_dirs is true. Add a couple of extra
2898 locations for looking for debug files.
2899 ( bfd_follow_gnu_debuglink): Update invocation of
2900 find_separate_debug_file.
2901 (bfd_follow_gnu_debugaltlink): Likewise.
2902 (get_build_id): New function: Finds the build-id of the given bfd.
2903 (get_build_id_name): New function: Computes the name of the
2904 separate debug info file for a bfd, based upon its build-id.
2905 (check_build_id_file): New function: Checks to see if a separate
2906 debug info file exists at the given location, and that its
2907 build-id matches that of the original bfd.
2908 (bfd_follow_build_id_debuglink): New function: Finds a separate
2909 debug info file for a given bfd by using the build-id method.
2910 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
2911 method of locating a separate debug info file before using the
2913 * bfd-in2.h: Regenerate.
2915 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
2918 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
2919 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
2920 elf_x86_64_eh_frame_plt_got.
2921 (elf_x86_64_size_dynamic_sections): Get unwind info from
2922 elf_x86_64_bnd_arch_bed for the BND PLT.
2924 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
2926 * config.bfd: Add entries for i686-redox and x86_64-redox.
2928 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
2930 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
2932 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
2933 .eh_frame section to 4 bytes for x32.
2934 (elf_x86_64_check_relocs): Likewise.
2936 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
2939 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
2940 (PLT_GOT_FDE_LENGTH): Likewise.
2941 (elf_i386_plt_layout): Add eh_frame_plt_got and
2942 eh_frame_plt_got_size.
2943 (elf_i386_plt): Updated.
2944 (elf_i386_link_hash_table): Add plt_got_eh_frame.
2945 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
2946 (elf_i386_size_dynamic_sections): Allocate and initialize
2947 .eh_frame section for .plt.got.
2948 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
2950 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
2951 eh_frame_plt_got_size.
2952 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
2953 (PLT_GOT_FDE_LENGTH): Likewise.
2954 (elf_x86_64_backend_data): Add eh_frame_plt_got and
2955 eh_frame_plt_got_size.
2956 (elf_x86_64_arch_bed): Updated.
2957 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
2958 eh_frame_plt_got_size.
2959 (elf_x86_64_nacl_arch_bed): Likewise.
2960 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
2961 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
2962 (elf_x86_64_size_dynamic_sections): Allocate and initialize
2963 .eh_frame section for .plt.got.
2964 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
2967 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
2969 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
2970 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
2972 2017-01-09 Nick Clifton <nickc@redhat.com>
2974 * dwarf2.c (lookup_address_in_function_table): Return early if
2975 there are no functions in the given comp unit, or if the high
2976 address of the last function in the comp unit is less than the
2979 2017-01-09 Nick Clifton <nickc@redhat.com>
2982 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
2983 message if there are too many symbols to load.
2985 2017-01-04 James Clarke <jrtc27@jrtc27.com>
2987 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
2988 if relocs are cached.
2990 2017-01-03 Rich Felker <bugdal@aerifal.cx>
2993 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
2994 for R_MICROBLAZE_GOTOFF_64.
2996 2017-01-03 Nick Clifton <nickc@redhat.com>
2998 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
2999 warning about using a possibly uninitialised variable.
3001 2017-01-02 Alan Modra <amodra@gmail.com>
3003 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
3004 (allocate_plt_static, allocate_dynrelocs): Use it.
3006 2017-01-02 Alan Modra <amodra@gmail.com>
3008 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
3009 .PARISC.unwind section.
3011 2017-01-02 Alan Modra <amodra@gmail.com>
3014 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
3015 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
3016 indirect to GOT pointer relative code edit.
3018 2017-01-02 Alan Modra <amodra@gmail.com>
3020 Update year range in copyright notice of all files.
3022 For older changes see ChangeLog-2016
3024 Copyright (C) 2017 Free Software Foundation, Inc.
3026 Copying and distribution of this file, with or without modification,
3027 are permitted in any medium without royalty provided the copyright
3028 notice and this notice are preserved.
3034 version-control: never