1 2018-06-03 Jim Wilson <jimw@sifive.com>
4 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check
5 for and handle an undefined weak with no PLT.
8 * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check
9 to code that ignores duplicate symbols.
11 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
13 * version.m4: Bump version to 2.30.52
14 * configure: Regenerated.
16 2018-06-01 Alan Modra <amodra@gmail.com>
18 * bfd.c (_bfd_error_handler): Arrange for this function to be
19 declared in bfd-in2.h.
20 * libbfd-in.h (_bfd_error_handler): Don't declare.
21 * libbfd.h: Regenerate.
22 * bfd-in2.h: Regenerate.
24 2018-05-30 Amaan Cheval <amaan.cheval@gmail.com>
26 * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems*
27 This is needed to generate UEFI application image files from ELFs.
29 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
31 * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry,
32 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
33 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
34 plt_tlsdesc_got2_insn_end for TLSDESC entry.
35 (elf_i386_lazy_ibt_plt): Likewise.
36 (elf_i386_nacl_plt): Likewise.
37 * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ...
38 (elf_x86_64_tlsdesc_plt_entry): This.
39 (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry,
40 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
41 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
42 plt_tlsdesc_got2_insn_end for TLSDESC entry.
43 (elf_x86_64_lazy_bnd_plt): Likewise.
44 (elf_x86_64_lazy_ibt_plt): Likewise.
45 (elf_x32_lazy_ibt_plt): Likewise.
46 (elf_x86_64_nacl_plt): Likewise.
47 (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry,
48 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
49 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
50 plt_tlsdesc_got2_insn_end to update TLSDESC entry.
51 * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments.
52 Add plt_tlsdesc_entry, plt_tlsdesc_entry_size,
53 plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset,
54 plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end.
55 (elf_x86_non_lazy_plt_layout): Update comments.
56 (elf_x86_plt_layout): Likewise.
58 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
61 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed.
62 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
63 (elf_backend_add_symbol_hook): Likewise.
64 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
65 (elf_backend_add_symbol_hook): Likewise.
66 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise.
67 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
68 (elf_backend_add_symbol_hook): Likewise.
69 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise.
70 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
71 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise.
72 (elf_backend_add_symbol_hook): Likewise.
73 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC
75 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
76 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
77 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
78 * elflink.c (elf_link_add_object_symbols): Set
79 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols.
81 2018-05-26 H.J. Lu <hongjiu.lu@intel.com>
84 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New.
85 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function.
86 Extracted from _bfd_elf_link_assign_sym_version.
87 (_bfd_elf_link_hide_sym_by_version): New function.
88 (_bfd_elf_link_assign_sym_version): Use
89 _bfd_elf_link_hide_versioned_symbol.
90 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call
91 _bfd_elf_link_hide_sym_by_version instead of
92 bfd_hide_sym_by_version. Don't check unversioned symbol.
94 2018-05-25 Alan Modra <amodra@gmail.com>
96 * Makefile.in: Regenerate.
97 * po/SRC-POTFILES.in: Regenerate.
99 2018-05-25 Alan Modra <amodra@gmail.com>
101 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS.
102 * configure: Regenerate.
104 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
106 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING
109 2018-05-22 Alan Modra <amodra@gmail.com>
112 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
114 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code
116 (final_link_relocate): Revert last change.
118 2018-05-22 Alan Modra <amodra@gmail.com>
121 * elf32-hppa.c (final_link_relocate): Don't look for plt call
122 stubs in non-alloc sections.
124 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
127 * aout-target.h (MY_bfd_link_hide_symbol): New.
128 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise.
129 * binary.c (binary_bfd_link_hide_symbol): Likewise.
130 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
131 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
132 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise.
133 * coffcode.h (coff_bfd_link_hide_symbol): Likewise.
134 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise.
135 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise.
136 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise.
137 * ihex.c (ihex_bfd_link_hide_symbol): Likewise.
138 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise.
139 * linker.c (_bfd_generic_link_hide_symbol): Likewise.
140 (bfd_link_hide_symbol): Likewise.
141 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise.
142 * mmo.c (mmo_bfd_link_hide_symbol): Likewise.
143 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise.
144 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise.
145 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise.
146 * som.c (som_bfd_link_hide_symbol): Likewise.
147 * srec.c (srec_bfd_link_hide_symbol): Likewise.
148 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise.
149 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise.
150 (alpha_vms_bfd_link_hide_symbol): Likewise.
151 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise.
152 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
153 _bfd_generic_link_hide_symbol.
154 (rs6000_xcoff64_aix_vec): Likewise.
155 * elflink.c (bfd_elf_record_link_assignment): Don't make forced
156 local symbol dynamic.
157 (_bfd_elf_link_hide_symbol): New function.
158 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
159 check root.ldscript_def.
160 * targets.c (bfd_target): Add _bfd_link_hide_symbol.
161 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol.
162 * bfd-in2.h: Regenerated.
163 * libbfd.h: Likewise.
165 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
168 * elf.c (setup_group): Mark section in a section group with
171 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
174 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
175 set eh->local_ref to 1 if a symbol is versioned and there is a
178 2018-05-18 Kito Cheng <kito.cheng@gmail.com>
180 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle
183 2018-05-18 Jim Wilson <jimw@sifive.com>
185 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
186 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
187 (riscv_elf_relocate_section): Don't generate dynamic relocation if
188 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
189 (riscv_elf_finish_dynamic_symbol): Likewise.
191 2018-05-18 John Darrington <john@darrington.wattle.id.au>
193 * Makefile.am: Add s12z files.
194 * Makefile.in: Regenerate.
195 * archures.c: Add bfd_s12z_arch.
196 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24.
197 * bfd-in2.h: Regenerate.
198 * config.bfd: Add s12z target.
199 * configure.ac: Add s12z target.
200 * configure: Regenerate.
201 * cpu-s12z.c: New file.
202 * elf32-s12z.c: New file.
203 * libbfd.c (bfd_putb24): New function.
204 (bfd_putl24): New function.
205 * libbfd.h: Regenerate.
206 * reloc.c: Add s12z relocations.
207 (bfd_get_reloc_size): Handle size 5 relocs.
208 * targets.c: Add s12z_elf32_vec.
210 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
213 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
215 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
216 set eh->local_ref to 1 for linker defined symbols.
218 2018-05-18 Alan Modra <amodra@gmail.com>
221 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries
222 don't point at other SHT_GROUP sections. Set shdr corresponding
223 to invalid entry, to NULL rather than section 0. Identify
224 SHT_GROUP section index when reporting an error. Cope with NULL
227 2018-05-18 Alan Modra <amodra@gmail.com>
229 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout.
230 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden
232 * libbfd.h: Regenerate.
233 * configure: Regenerate.
234 * config.in: Regenerate.
236 2018-05-18 Alan Modra <amodra@gmail.com>
238 * libbfd-in.h: Add include guard.
239 * libcoff-in.h: Likewise.
240 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
241 * doc/Makefile.in: Regenerate.
242 * libbfd.h: Regenerate.
243 * libcoff.h: Regenerate.
245 2018-05-16 Maciej W. Rozycki <macro@mips.com>
247 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
249 2018-05-16 Alan Modra <amodra@gmail.com>
252 * format.c (struct bfd_preserve): Add section_id.
253 (bfd_preserve_save, bfd_preserve_restore): Save and restore
255 (bfd_reinit): Set _bfd_section_id.
256 (bfd_check_format_matches): Put all matches of any priority into
257 matching_vector. Save initial section id and start each attempted
258 match at that section id.
259 * libbfd-in.h (_bfd_section_id): Declare.
260 * section.c (_bfd_section_id): Rename from section_id and make
262 (bfd_get_next_section_id): Delete.
263 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
264 bfd_get_section_id with _bfd_section_id.
265 * libbfd.h: Regenerate.
266 * bfd-in2.h: Regenerate.
268 2018-05-15 Christophe Guillon <christophe.guillon@st.com>
270 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
271 of the aux structure are initialised.
273 2018-05-15 Francois H. Theron <francois.theron@netronome.com>
275 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
277 2018-05-15 Nick Clifton <nickc@redhat.com>
279 * po/pt.po: New Portuguese translation.
280 * configure.ac (ALL_LINGUAS): Add pt.
281 * configure: Regenerate.
283 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
286 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
287 an error on IFUNC pointer defined in PDE.
288 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
289 _bfd_x86_elf_link_fixup_ifunc_symbol.
290 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
291 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
293 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
295 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
298 * elfxx-x86.c (elf_x86_linker_defined): New function.
299 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
300 _end and _edata locally defined within executables.
302 2018-05-12 Alan Modra <amodra@gmail.com>
305 * elf.c (rewrite_elf_program_header): Use segment_mark only for
306 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
307 Instead make matching_lma and suggested_lma pointers to the
308 sections. Align section vma and lma calculated from segment.
309 Don't clear includes_phdrs or includes_filehdr based on p_paddr
310 test. Try to handle alignment padding before first section by
311 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
313 2018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
315 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
316 conformant to TI ABI.
317 (pru_elf32_relax_section): Likewise.
318 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
319 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
320 (pru_elf32_pmem_relocate): Trap - should not get here.
321 (pru_elf32_relocate_section): Add support for REL relocations.
322 (elf_info_to_howto_rel): Enable REL.
323 (elf_backend_may_use_rel_p): Likewise.
324 (elf_backend_may_use_rela_p): Likewise.
325 (elf_backend_default_use_rela_p): Likewise.
327 2018-05-09 Alan Modra <amodra@gmail.com>
330 * peXXigen.c (pe_print_edata): Correct minimum size.
332 2018-05-09 Alan Modra <amodra@gmail.com>
335 * peXXigen.c (pe_print_idata): Bound check hint_addr.
337 2018-05-08 Nick Clifton <nickc@redhat.com>
340 * elf.c (bfd_elf_get_str_section): Check for an excessively large
342 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
343 attribute section is larger than the size of the file.
345 2018-05-07 Alan Modra <amodra@gmail.com>
347 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
348 strncmp when checking for ".bf" special symbol.
349 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
350 section name a char array, remove sentinal known_sections entry,
351 and adjust loop over known_sections to suit. Use memcmp rather
354 2018-05-04 Alan Modra <amodra@gmail.com>
356 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
357 (struct elf_external_linux_prpsinfo32_ugid16),
358 (struct elf_external_linux_prpsinfo64_ugid32),
359 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
360 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
362 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
364 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
366 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
367 * elf32-s390.c (elf_s390_write_core_note): Likewise.
368 * elf64-s390.c (elf_s390_write_core_note): Likewise.
369 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
370 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
372 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
373 false positive gcc-8 warning.
374 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
376 2018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
378 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
379 of arguments when warning about different long double types.
381 2018-05-03 Simon Atanasyan <simon@atanasyan.com>
383 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
384 (elf_backend_fixup_symbol): New macro.
385 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
387 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
389 2018-04-30 Francois H. Theron <francois.theron@netronome.com>
391 * Makefile.am: Added NFP files to build.
392 * archures.c: Added bfd_arch_nfp
393 * config.bfd: Added NFP support.
394 * configure.ac: Added NFP support.
395 * cpu-nfp.c: New, for NFP support.
396 * elf-bfd.h: Added elf_section_info()
397 * elf64-nfp.c: New, for NFP support.
398 * po/SRC-POTFILES.in: Added NFP source files.
399 * targets.c: Added nfp_elf64_vec
400 * bfd-in2.h: Regenerate.
401 * Makefile.in: Regenerate.
402 * configure: Regenerate.
404 2018-04-27 Alan Modra <amodra@gmail.com>
406 * bfd-in2.h: Regenerate.
407 * libbfd.h: Regenerate.
409 2018-04-27 Alan Modra <amodra@gmail.com>
413 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
415 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
417 2018-04-26 Pedro Alves <palves@redhat.com>
419 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
420 ifunc and non-ifunc symbols duplicates.
422 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
423 Mickaël Guêné <mickael.guene@st.com>
425 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
426 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
427 (elf32_arm_populate_plt_entry): Likewise.
428 (elf32_arm_output_plt_map_1): Likewise.
429 (elf32_arm_output_arch_local_syms): Likewise.
431 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
432 Mickaël Guêné <mickael.guene@st.com>
434 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
435 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
437 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
438 Mickaël Guêné <mickael.guene@st.com>
440 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
443 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
444 Mickaël Guêné <mickael.guene@st.com>
446 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
447 (elf32_arm_always_size_sections): Create stack segment.
449 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
450 Mickaël Guêné <mickael.guene@st.com>
452 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
453 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
455 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
456 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
457 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
458 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
459 (struct elf32_arm_link_hash_table): Update comment.
460 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
461 (IS_ARM_TLS_RELOC): Likewise.
462 (elf32_arm_check_relocs): Likewise.
463 (allocate_dynrelocs_for_symbol): Likewise.
464 (elf32_arm_size_dynamic_sections): Update comment.
465 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
466 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
468 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
469 Mickaël Guêné <mickael.guene@st.com>
471 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
472 (elf32_arm_create_dynamic_sections): Handle FDPIC.
473 (elf32_arm_allocate_plt_entry): Likewise.
474 (elf32_arm_populate_plt_entry): Likewise.
475 (elf32_arm_output_plt_map_1): Likewise.
477 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
478 Mickaël Guêné <mickael.guene@st.com>
480 * elf32-arm.c (struct fdpic_local): New.
481 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
482 (elf32_arm_local_fdpic_cnts): New.
483 (struct fdpic_global): New.
484 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
485 (elf32_arm_link_hash_table): Add srofixup field.
486 (arm_elf_add_rofixup): New.
487 (arm_elf_fill_funcdesc): New.
488 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
489 (elf32_arm_allocate_local_sym_info): Likewise.
490 (create_got_section): Create .rofixup section.
491 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
492 (bfd_elf32_arm_set_target_params): Handle FDPIC.
493 (elf32_arm_final_link_relocate): Likewise.
494 (elf32_arm_check_relocs): Likewise.
495 (allocate_dynrelocs_for_symbol): Likewise.
496 (elf32_arm_size_dynamic_sections): Likewise.
497 (elf32_arm_finish_dynamic_sections): Likewise.
498 (elf32_arm_output_arch_local_syms): Likewise.
499 (elf32_arm_fdpic_omit_section_dynsym): New.
501 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
502 Mickaël Guêné <mickael.guene@st.com>
504 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
505 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
506 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
507 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
508 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
509 (elf32_arm_howto_from_type): Take new members of
510 elf32_arm_howto_table_2 into account.
511 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
512 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
513 BFD_RELOC_ARM_FUNCDESC_VALUE.
514 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
515 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
516 BFD_RELOC_ARM_FUNCDESC_VALUE.
518 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
519 Mickaël Guêné <mickael.guene@st.com>
521 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
522 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
523 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
524 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
526 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
527 Mickaël Guêné <mickael.guene@st.com>
529 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
530 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
531 arm*-*-uclinuxfdpiceabi.
532 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
533 arm_elf32_fdpic_le_vec.
534 * configure: Regenerate.
535 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
536 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
537 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
538 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
539 (elf32_arm_fdpic_link_hash_table_create): New.
540 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
541 arm_elf32_fdpic_le_vec.
543 2018-04-25 Alan Modra <amodra@gmail.com>
545 * elf-linux-core.h: Disable gcc-8 string truncation warning.
546 * elf.c (elfcore_write_prpsinfo): Likewise.
548 2018-04-25 Alan Modra <amodra@gmail.com>
550 * Makefile.am: Remove arm-aout and arm-coff support.
551 * config.bfd: Likewise.
552 * configure.ac: Likewise.
553 * targets.c: Likewise.
554 * aout-arm.c: Delete.
555 * armnetbsd.c: Delete.
557 * Makefile.in: Regenerate.
558 * configure: Regenerate.
559 * po/SRC-POTFILES.in: Regenerate.
561 2018-04-24 Nick Clifton <nickc@redhat.com>
564 * elf.c (ignore_section_sym): Check for the output_section pointer
565 being NULL before dereferencing it.
568 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
569 a negative PE_DEBUG_DATA size before iterating over the debug data.
571 2018-04-23 Alan Modra <amodra@gmail.com>
573 * elf-linux-core.h: Revert last change.
576 2018-04-23 Nick Clifton <nickc@redhat.com>
579 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
580 the end of the string table, and zero it.
582 2018-04-23 Alan Modra <amodra@gmail.com>
584 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
585 gcc-8 string truncation warning.
586 (swap_linux_prpsinfo32_ugid16_out): Likewise.
587 (swap_linux_prpsinfo64_ugid32_out): Likewise.
588 (swap_linux_prpsinfo64_ugid16_out): Likewise.
589 * elf.c (elfcore_write_prpsinfo): Likewise.
591 2018-04-23 Nick Clifton <nickc@redhat.com>
594 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
595 the end of the string table, and zero it.
597 2018-04-20 Alan Modra <amodra@gmail.com>
600 * elf32-hppa.c (got_relocs_needed): Add extra param to special
601 case both dtprel and tprel relocs.
602 (allocate_dynrelocs): Adjust conditions for got relocs.
603 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
604 Emit dynamic relocs on TLS GOT entries for shared libraries,
605 not when pic. Omit dynamic reloc on dtprel entry when local,
606 and on tprel entry when local and executable.
608 2018-04-19 Alan Modra <amodra@gmail.com>
611 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
612 (hppa_type_of_stub): Don't return a long branch stub for
613 symbols other than those defined statically.
615 2018-04-19 Alan Modra <amodra@gmail.com>
617 * Makefile.am: Revert 2018-04-18 coff-mips changes.
618 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
619 to selvecs for mips targets change 2018-04-18.
620 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
621 and mips_ecoff_bele_vec.
622 * targets.c: Likewise.
623 * coff-mips.c: Resurrect.
624 * Makefile.in: Regenerate.
625 * configure: Regenerate.
626 * po/SRC-POTFILES.in: Regenerate.
628 2018-04-18 Alan Modra <amodra@gmail.com>
630 * Makefile.am: Remove mips aout and coff support.
631 * config.bfd: Likewise.
632 * configure.ac: Likewise.
633 * targets.c: Likewise.
634 * coff-mips.c: Delete
638 * Makefile.in: Regenerate.
639 * configure: Regenerate.
640 * po/SRC-POTFILES.in: Regenerate.
642 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
644 * elf32-i386.c (elf32_bed): Define before including
646 * elf64-x86-64.c (elf64_bed): Define before including
648 (elf32_bed): Define before including "elf32-target.h".
650 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
653 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
654 normal input file with compatible relocation.
656 2018-04-18 Alan Modra <amodra@gmail.com>
658 * Makefile.am: Remove support for assorted i386 aout and coff targets.
659 * config.bfd: Likewise.
660 * configure.ac: Likewise.
661 * doc/bfdint.texi: Likewise.
662 * targets.c: Likewise.
664 * i386dynix.c: Delete.
665 * i386freebsd.c: Delete.
666 * i386linux.c: Delete.
667 * i386mach3.c: Delete.
668 * i386netbsd.c: Delete.
669 * i386os9k.c: Delete.
670 * Makefile.in: Regenerate.
671 * configure: Regenerate.
672 * po/SRC-POTFILES.in: Regenerate.
674 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
676 Microblaze Target: PIC data text relative
678 * bfd/reloc.c (2 new BFD relocations):
679 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
680 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
681 * bfd/bfd-in2.h: Regenerate
682 * bfd/libbfd.h: Regenerate
683 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
684 new relocs and handle them in both relocate and relax functions.
685 (microblaze_elf_reloc_type_lookup): add mapping between for new
687 (microblaze_elf_relocate_section): Handle new relocs in case of
689 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
691 2018-04-17 Nick Clifton <nickc@redhat.com>
694 * aoutx.h (find_nearest_line): Check that the symbol name exists
695 and is long enough, before attempting to see if it is for a .o
697 * hash.c (bfd_hash_hash): Add an assertion that the string is not
699 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
701 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
705 * dwarf2.c (concat_filename): Check for a NULL table pointer.
707 2018-04-16 Nick Clifton <nickc@redhat.com>
710 * coffgen.c (coff_pointerize_aux): Check for an out of range
713 2018-04-16 Alan Modra <amodra@gmail.com>
715 * Makefile.am: Remove arm-epoc-pe support.
716 * coff-arm.c: Likewise.
717 * config.bfd: Likewise.
718 * configure.ac: Likewise.
719 * targets.c: Likewise.
720 * epoc-pe-arm.c: Delete.
721 * epoc-pei-arm.c: Delete.
722 * Makefile.in: Regenerate.
723 * configure: Regenerate.
724 * po/SRC-POTFILES.in: Regenerate.
726 2018-04-16 Alan Modra <amodra@gmail.com>
728 * Makefile.am: Remove sparc-aout and sparc-coff support.
729 * config.bfd: Likewise.
730 * configure.ac: Likewise.
731 * targets.c: Likewise.
732 * aout-sparcle.c: Delete.
734 * cf-sparclynx.c: Delete.
735 * coff-sparc.c: Delete.
737 * sparclinux.c: Delete.
738 * sparclynx.c: Delete.
739 * sparcnetbsd.c: Delete.
741 * Makefile.in: Regenerate.
742 * configure: Regenerate.
743 * po/SRC-POTFILES.in: Regenerate.
745 2018-04-16 Alan Modra <amodra@gmail.com>
747 * Makefile.am: Remove m68k-aout and m68k-coff support.
748 * aoutf1.h: Likewise.
750 * archive.c: Likewise.
751 * bfd-in.h: Likewise.
753 * coffcode.h: Likewise.
754 * coffswap.h: Likewise.
755 * config.bfd: Likewise.
756 * configure.ac: Likewise.
757 * configure.host: Likewise.
758 * doc/bfd.texinfo: Likewise.
759 * doc/bfdint.texi: Likewise.
760 * freebsd.h: Likewise.
761 * gen-aout.c: Likewise.
762 * hpux-core.c: Likewise.
763 * libaout.h: Likewise.
764 * libbfd-in.h: Likewise.
766 * peicode.h: Likewise.
767 * riscix.c: Likewise.
768 * targets.c: Likewise.
770 * coff-apollo.c: Delete.
771 * coff-aux.c: Delete.
772 * coff-m68k.c: Delete.
773 * coff-svm68k.c: Delete.
774 * coff-u68k.c: Delete.
775 * hosts/delta68.h: Delete.
776 * hosts/hp300bsd.h: Delete.
777 * hosts/m68kaux.h: Delete.
778 * hosts/news.h: Delete.
779 * hp300bsd.c: Delete.
780 * hp300hpux.c: Delete.
781 * liboasys.h: Delete.
782 * m68k4knetbsd.c: Delete.
783 * m68klinux.c: Delete.
784 * m68knetbsd.c: Delete.
786 * versados.c: Delete.
787 * Makefile.in: Regenerate.
788 * bfd-in2.h: Regenerate.
789 * configure: Regenerate.
790 * libbfd.h: Regenerate.
791 * po/SRC-POTFILES.in: Regenerate.
793 2018-04-16 Alan Modra <amodra@gmail.com>
795 * Makefile.am: Remove sh5 and sh64 support.
796 * archures.c: Likewise.
797 * config.bfd: Likewise.
798 * configure.ac: Likewise.
799 * cpu-sh.c: Likewise.
800 * elf32-sh-relocs.h: Likewise.
801 * elf32-sh.c: Likewise.
802 * targets.c: Likewise.
803 * elf32-sh64-com.c: Delete.
804 * elf32-sh64.c: Delete.
805 * elf32-sh64.h: Delete.
806 * elf64-sh64.c: Delete.
807 * Makefile.in: Regenerate.
808 * bfd-in2.h: Regenerate.
809 * configure: Regenerate.
810 * po/SRC-POTFILES.in: Regenerate.
812 2018-04-16 Alan Modra <amodra@gmail.com>
814 * Makefile.am: Remove sh-symbianelf support.
815 * config.bfd: Likewise.
816 * configure.ac: Likewise.
817 * targets.c: Likewise.
818 * elf32-sh-symbian.c: Delete.
819 * Makefile.in: Regenerate.
820 * configure: Regenerate.
821 * po/SRC-POTFILES.in: Regenerate.
823 2018-04-16 Alan Modra <amodra@gmail.com>
825 * Makefile.am: Remove vax-bsd and vax-ultrix support.
826 * config.bfd: Likewise.
827 * configure.ac: Likewise.
828 * targets.c: Likewise.
830 * Makefile.in: Regenerate.
831 * configure: Regenerate.
832 * po/SRC-POTFILES.in: Regenerate.
834 2018-04-16 Alan Modra <amodra@gmail.com>
836 * Makefile.am: Remove w65 support.
837 * archures.c: Likewise.
838 * coffcode.h: Likewise.
839 * config.bfd: Likewise.
840 * configure.ac: Likewise.
841 * targets.c: Likewise.
842 * coff-w65.c: Delete.
844 * Makefile.in: Regenerate.
845 * bfd-in2.h: Regenerate.
846 * configure: Regenerate.
847 * po/SRC-POTFILES.in: Regenerate.
849 2018-04-16 Alan Modra <amodra@gmail.com>
851 * Makefile.am: Remove we32k support.
852 * archures.c: Likewise.
853 * coffcode.h: Likewise.
854 * config.bfd: Likewise.
855 * configure.ac: Likewise.
856 * targets.c: Likewise.
857 * coff-we32k.c: Delete.
858 * cpu-we32k.c: Delete.
859 * Makefile.in: Regenerate.
860 * bfd-in2.h: Regenerate.
861 * configure: Regenerate.
862 * po/SRC-POTFILES.in: Regenerate.
864 2018-04-16 Alan Modra <amodra@gmail.com>
866 * Makefile.am: Remove m88k support.
868 * archures.c: Likewise.
869 * coffcode.h: Likewise.
870 * coffswap.h: Likewise.
871 * config.bfd: Likewise.
872 * configure.ac: Likewise.
873 * cpu-ns32k.c: Likewise.
874 * elf32-nds32.c: Likewise.
875 * mach-o.c: Likewise.
876 * netbsd-core.c: Likewise.
878 * targets.c: Likewise.
879 * coff-m88k.c: Delete.
880 * cpu-m88k.c: Delete.
881 * elf32-m88k.c: Delete.
882 * hosts/m88kmach3.h: Delete.
883 * m88kmach3.c: Delete.
884 * m88kopenbsd.c: Delete.
885 * Makefile.in: Regenerate.
886 * bfd-in2.h: Regenerate.
887 * configure: Regenerate.
888 * po/SRC-POTFILES.in: Regenerate.
890 2018-04-16 Alan Modra <amodra@gmail.com>
892 * Makefile.am: Remove i370 support.
893 * archures.c: Likewise.
894 * config.bfd: Likewise.
895 * configure.ac: Likewise.
896 * targets.c: Likewise.
897 * cpu-i370.c: Delete.
898 * elf32-i370.c: Delete.
899 * Makefile.in: Regenerate.
900 * bfd-in2.h: Regenerate.
901 * configure: Regenerate.
902 * po/SRC-POTFILES.in: Regenerate.
904 2018-04-16 Alan Modra <amodra@gmail.com>
906 * Makefile.am: Remove h8500 support.
907 * archures.c: Likewise.
908 * coffcode.h: Likewise.
909 * config.bfd: Likewise.
910 * configure.ac: Likewise.
911 * targets.c: Likewise.
912 * coff-h8500.c: Delete.
913 * cpu-h8500.c: Delete.
914 * Makefile.in: Regenerate.
915 * bfd-in2.h: Regenerate.
916 * configure: Regenerate.
917 * po/SRC-POTFILES.in: Regenerate.
919 2018-04-16 Alan Modra <amodra@gmail.com>
921 * Makefile.am: Remove h8300-coff support.
922 * coffcode.h: Likewise.
923 * config.bfd: Likewise.
924 * configure.ac: Likewise.
925 * reloc16.c: Likewise.
926 * targets.c: Likewise.
927 * coff-h8300.c: Delete.
928 * Makefile.in: Regenerate.
929 * configure: Regenerate.
930 * po/SRC-POTFILES.in: Regenerate.
932 2018-04-16 Alan Modra <amodra@gmail.com>
934 * Makefile.am: Remove IEEE 695 support.
935 * archures.c: Likewise.
937 * config.bfd: Likewise.
938 * configure.ac: Likewise.
939 * doc/bfd.texinfo: Likewise.
940 * doc/bfdint.texi: Likewise.
941 * doc/bfdsumm.texi: Likewise.
942 * section.c: Likewise.
943 * targets.c: Likewise.
946 * Makefile.in: Regenerate.
947 * bfd-in2.h: Regenerate.
948 * configure: Regenerate.
949 * po/SRC-POTFILES.in: Regenerate.
951 2018-04-16 Alan Modra <amodra@gmail.com>
953 * config.bfd: Remove tandem support.
955 2018-04-16 Alan Modra <amodra@gmail.com>
957 * Makefile.am: Remove newsos3 support.
959 * config.bfd: Likewise.
960 * configure.ac: Likewise.
961 * targets.c: Likewise.
963 * Makefile.in: Regenerate.
964 * configure: Regenerate.
965 * po/SRC-POTFILES.in: Regenerate.
967 2018-04-16 Alan Modra <amodra@gmail.com>
969 * Makefile.am: Remove netware support.
970 * bfd-in.h: Likewise.
972 * config.bfd: Likewise.
973 * configure.ac: Likewise.
974 * doc/bfdint.texi: Likewise.
976 * targets.c: Likewise.
978 * nlm-target.h: Delete.
980 * nlm32-alpha.c: Delete.
981 * nlm32-i386.c: Delete.
982 * nlm32-ppc.c: Delete.
983 * nlm32-sparc.c: Delete.
988 * Makefile.in: Regenerate.
989 * bfd-in2.h: Regenerate.
990 * configure: Regenerate.
991 * po/SRC-POTFILES.in: Regenerate.
993 2018-04-16 Alan Modra <amodra@gmail.com>
995 * archures.c: Remove tahoe support.
996 * config.bfd: Likewise.
997 * configure.ac: Likewise.
998 * hosts/tahoe.h: Delete.
999 * bfd-in2.h: Regenerate.
1000 * configure: Regenerate.
1002 2018-04-14 Alan Modra <amodra@gmail.com>
1004 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
1005 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
1007 (elfNN_bed): Init relropagesize.
1008 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
1009 select relropagesize.
1010 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1011 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1012 (ELF_MINPAGESIZE): Don't define.
1013 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1014 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1015 * bfd-in2.h: Regenerate.
1017 2018-04-14 Alan Modra <amodra@gmail.com>
1019 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
1020 on __QNXTARGET__ define.
1022 2018-04-14 Alan Modra <amodra@gmail.com>
1024 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
1027 2018-04-11 Alan Modra <amodra@gmail.com>
1029 * aout-adobe.c: Delete.
1031 * coff-i860.c: Delete.
1032 * coff-i960.c: Delete.
1033 * cpu-i860.c: Delete.
1034 * cpu-i960.c: Delete.
1035 * elf32-i860.c: Delete.
1036 * elf32-i960.c: Delete.
1037 * hosts/i860mach3.h: Delete.
1038 * Makefile.am: Remove i860, i960, bout, and adobe support.
1039 * archures.c: Remove i860 and i960 support.
1040 * coffcode.h: Likewise.
1041 * reloc.c: Likewise.
1042 * aoutx.h: Comment updates.
1043 * archive.c: Remove BOUT and i960 support.
1044 * bfd.c: Remove BOUT support.
1045 * coffswap.h: Remove i960 support.
1046 * config.bfd: Remove i860, i960 and adobe targets.
1047 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
1048 * targets.c: Likewise.
1049 * ieee.c: Remove i960 support.
1050 * mach-o.c: Remove i860 support.
1051 * Makefile.in: Regenerate.
1052 * bfd-in2.h: Regenerate.
1053 * configure: Regenerate.
1054 * libbfd.h: Regenerate.
1055 * po/SRC-POTFILES.in: Regenerate.
1057 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1059 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
1060 in the BFD symbol referred by the relocation.
1061 (mips_elf64_write_rela): Likewise.
1063 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1065 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
1066 error for out-of-range `r_sym' values.
1068 2018-04-09 Alan Modra <amodra@gmail.com>
1070 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
1071 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
1072 (ppc64_elf_check_relocs): Set has_pltcall.
1073 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
1074 (ppc64_elf_inline_plt): New function.
1075 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
1076 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
1077 * elf32-ppc.c (has_pltcall): Define.
1078 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
1079 (ppc_elf_check_relocs): Set has_pltcall.
1080 (ppc_elf_inline_plt): New function.
1081 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
1082 (ppc_elf_size_dynamic_sections): Likewise.
1083 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
1085 2018-04-09 Alan Modra <amodra@gmail.com>
1087 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
1088 (is_plt_seq_reloc): New function.
1089 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
1090 (ppc_elf_tls_optimize): Handle inline plt call sequence.
1091 (ppc_elf_relax_section): Handle PLTCALL reloc.
1092 (ppc_elf_relocate_section): Nop out inline plt call sequence when
1094 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
1095 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
1096 (has_tls_get_addr_call): Correct comment.
1097 (is_branch_reloc): Add PLTCALL.
1098 (is_plt_seq_reloc): New function.
1099 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
1100 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
1101 entry for R_PPC64_PLTCALL.
1102 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
1103 (ppc_type_of_stub): Handle PLTCALL reloc.
1104 (toc_adjusting_stub_needed): Likewise.
1105 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
1106 reloc insn. Nop out inline plt call sequence when resolving
1107 locally. Handle __tls_get_addr inline plt call optimization.
1109 2018-04-09 Alan Modra <amodra@gmail.com>
1111 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
1112 (struct ppc_stub_hash_entry): Add symtype field.
1114 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
1115 (create_linkage_sections): Create pltlocal and relpltlocal.
1116 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
1118 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1119 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1120 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1121 Keep PLT entries for inline calls against locals.
1122 (ppc_build_one_stub): Use pltlocal as appropriate.
1123 (ppc_size_one_stub): Likewise.
1124 (ppc64_elf_size_stubs): Set symtype.
1125 (build_global_entry_stubs_and_plt): Init pltlocal and write
1126 relpltlocal for globals.
1127 (write_plt_relocs_for_local_syms): Likewise for local syms.
1128 (ppc64_elf_relocate_section): Support PLT for local syms.
1129 * elf32-ppc.c (PLT_KEEP): Define.
1130 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
1131 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
1132 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
1133 Set PLT_KEEP. Adjust update_local_sym_info call.
1134 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1135 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1136 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1137 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
1138 (write_global_sym_plt): Init pltlocal and write relpltlocal.
1139 (ppc_finish_symbols): Likewise for locals.
1141 2018-04-09 Alan Modra <amodra@gmail.com>
1143 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
1144 for local symbols to..
1145 (write_plt_relocs_for_local_syms): ..here. New function.
1146 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
1148 (build_global_entry_stubs_and_plt): ..here. Rename from
1149 build_global_entry_stubs.
1150 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
1151 Call write_plt_relocs_for_local_syms.
1152 * elf32-ppc.c (get_sym_h): New function.
1153 (ppc_elf_relax_section): Use get_sym_h.
1154 (ppc_elf_relocate_section): Move output of PLT relocs and glink
1155 stubs for local symbols to..
1156 (ppc_finish_symbols): ..here. New function.
1157 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
1159 (write_global_sym_plt): ..here. New function.
1160 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
1161 (ppc_finish_symbols): Declare.
1163 2018-04-09 Alan Modra <amodra@gmail.com>
1165 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
1166 (ppc_elf_relocate_section): Likewise.
1167 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
1168 (ppc64_elf_relocate_section): Likewise. Correct PLT16
1169 resolution to plt entry relative to toc pointer.
1171 2018-04-09 Alan Modra <amodra@gmail.com>
1173 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1174 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
1175 file when other TLS flags are tested in a mask.
1176 (TLS_MARK, NON_GOT): Define.
1177 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1178 (update_local_sym_info): Don't create got entry when NON_GOT.
1179 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1181 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
1182 (ppc64_elf_relocate_section): Likewise.
1183 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
1184 __tls_get_addr calls lacking a marker reloc.
1185 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1186 TLS_TPRELGD): Renumber. Update comment.
1187 (TLS_MARK, NON_GOT): Define.
1188 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1189 (update_local_sym_info): Don't create got entry when NON_GOT.
1190 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1192 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
1193 __tls_get_addr calls lacking a marker reloc.
1195 2018-04-06 H.J. Lu <hongjiu.lu@intel.com>
1197 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
1198 R_X86_64_converted_reloc_bit.
1200 2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
1203 * configure: Regenerated.
1205 2018-04-05 Alan Modra <amodra@gmail.com>
1207 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
1208 (elf_hppa_info_to_howto_rel): Likewise.
1210 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1212 * elf-hppa.h (elf_hppa_info_to_howto): Also return
1213 unsuccessfully for unimplemented relocations.
1214 (elf_hppa_info_to_howto_rel): Likewise.
1216 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1218 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
1219 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
1220 howto lookup failure.
1221 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
1223 (elf32_i860_info_to_howto_rela): Likewise.
1224 (elf32_i860_relocate_splitn): Likewise.
1225 (elf32_i860_relocate_pc16): Likewise.
1226 (elf32_i860_relocate_pc26): Likewise.
1227 (elf32_i860_relocate_section): Likewise.
1229 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1231 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
1232 check for `visium_elf_howto_table' table access.
1234 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1236 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
1237 check for `iq2000_elf_howto_table' table access.
1239 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1241 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
1242 for `elf32_frv_howto_table' table access.
1244 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1246 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1247 unsuccessfully for placeholder howtos.
1248 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1249 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1251 2018-03-29 Maciej W. Rozycki <macro@mips.com>
1253 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1254 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1256 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1258 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1259 ATTRIBUTE_UNUSED from `abfd'.
1261 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1263 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1264 `_bfd_error_handler' call formatting.
1266 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1268 * elf32-mips.c (mips_info_to_howto_rel): Call
1269 `mips_elf32_rtype_to_howto' directly rather than via
1270 `->elf_backend_mips_rtype_to_howto'.
1272 2018-03-28 Renlin Li <renlin.li@arm.com>
1275 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1276 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1277 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1278 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1279 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1280 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1281 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1282 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1283 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1284 (elfNN_aarch64_final_link_relocate): Support new relocations.
1285 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1287 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1289 2018-03-28 Renlin Li <renlin.li@arm.com>
1292 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1293 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1294 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1295 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1296 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1297 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1298 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1299 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1300 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1301 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1302 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1303 TLSLE_LDST16_TPREL_LO12,
1304 TLSLE_LDST16_TPREL_LO12_NC,
1305 TLSLE_LDST32_TPREL_LO12,
1306 TLSLE_LDST32_TPREL_LO12_NC,
1307 TLSLE_LDST64_TPREL_LO12,
1308 TLSLE_LDST64_TPREL_LO12_NC,
1309 TLSLE_LDST8_TPREL_LO12,
1310 TLSLE_LDST8_TPREL_LO12_NC.
1311 * bfd-in2.h: Regenerated.
1312 * libbfd.h: Regenerated.
1314 2018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1317 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1318 has_old_style_got_reloc.
1319 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1320 relocations. Fix a couple of long lines.
1321 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1322 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1325 2018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1328 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1329 ENDBR64 to the TLSDESC PLT entry.
1331 2018-03-21 Alan Modra <amodra@gmail.com>
1333 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1334 symbols. Use size_t counts. Delete redundant opd test.
1336 2018-03-21 Alan Modra <amodra@gmail.com>
1338 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1340 2018-03-21 Alan Modra <amodra@gmail.com>
1342 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1344 (update_local_sym_info): Likewise for local_got_tls_masks.
1345 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1347 2018-03-21 Alan Modra <amodra@gmail.com>
1349 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1350 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1351 do in size_dynamic_sections.
1353 2018-03-21 Alan Modra <amodra@gmail.com>
1355 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1356 without first checking array bounds.
1357 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1359 2018-03-20 H.J. Lu <hongjiu.lu@intel.com>
1362 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
1363 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
1365 2018-03-19 Nick Clifton <nickc@redhat.com>
1367 * po/es.po: Updated Spanish translation.
1369 2018-03-15 Max Filippov <jcmvbkbc@gmail.com>
1371 * elf32-xtensa.c (xlate_map_entry): Change types of address
1372 fields from 'unsigned' to 'bfd_vma'.
1373 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
1374 the key argument to bsearch. Allow offsets past the end of a
1375 section, use the last map entry for translation of such offsets.
1377 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1379 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
1380 Not support the target feature.
1381 (nds32_elf_ex9_itb_base): Likewise.
1382 (nds32_elf_ex9_import_table): Likewise.
1383 (nds32_elf_ex9_finish): Likewise.
1384 (nds32_elf_ex9_reloc_jmp): Likewise.
1385 (nds32_elf_get_insn_with_reg): Likewise.
1386 (nds32_get_local_syms): Likewise.
1387 (nds32_elf_ex9_replace_instruction): Likewise.
1388 (nds32_elf_ifc_calc): Likewise.
1389 (nds32_elf_ifc_finish): Likewise.
1390 (nds32_elf_ifc_replace): Likewise.
1391 (nds32_elf_ifc_reloc): Likewise.
1393 2018-03-14 Alan Modra <amodra@gmail.com>
1395 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
1396 sfpr size added before defining alias symbols.
1397 (ppc64_elf_build_stubs): Add stub section padding before
1398 copying sfpr contents and defining save/restore alias symbols.
1400 2018-03-14 H.J. Lu <hongjiu.lu@intel.com>
1403 * elflink.c (elf_gc_mark_debug_section): Also check the local
1404 debug definition section.
1406 2018-03-13 Nick Clifton <nickc@redhat.com>
1409 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
1410 function. Add an end address parameter. Check access of the data
1411 pointer to make sure that they do not extend beyond the end
1412 address. Return FALSE if any check fails. Add the end address
1413 pointer to the ui structure.
1414 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
1415 codes to make sure that they do not extend beyond the end address
1416 pointer. Print an error message and return immediately if any
1419 2018-03-09 Nick Clifton <nickc@redhat.com>
1421 * elf64-s390.c (elf_s390_relocate_section): Move check for
1422 relocations against non-allocated sections to before the code that
1423 handles ifunc relocations.
1424 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1425 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
1426 relocs against IFUNC symbols in non-allocated sections as relocs
1427 against FUNC symbols.
1428 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1430 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
1433 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
1434 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
1435 relocation against FUNC symbol.
1436 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1438 2018-03-07 Renlin Li <renlin.li@arm.com>
1441 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
1442 symbol, and don't emit relocation in specific case.
1444 2018-03-07 Alan Modra <amodra@gmail.com>
1446 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
1447 (mips_elf64_slurp_one_reloc_table): Pass on error.
1449 2018-03-03 James Cowgill <james.cowgill@mips.com>
1450 Maciej W. Rozycki <macro@mips.com>
1453 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
1454 after calling `undefined_symbol' hook if this is an error
1455 condition. Assume the value of 0 for the symbol requested
1458 2018-03-02 Jim Wilson <jimw@sifive.com>
1461 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
1462 and nop instead of 4.
1463 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
1466 2018-03-01 Jim Wilson <jimw@sifive.com>
1469 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
1470 else if instead of if.
1472 2018-03-01 Alan Modra <amodra@gmail.com>
1474 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
1476 2018-02-28 Alan Modra <amodra@gmail.com>
1479 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
1481 2018-02-28 Nick Clifton <nickc@redhat.com>
1485 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
1486 pointer. Drop unused abfd parameter. Check the size of the block
1487 before initialising the data field. Return the end pointer if the
1489 (read_attribute_value): Adjust invocations of read_n_bytes.
1492 * dwarf1.c (parse_die): Check the length of form blocks before
1493 advancing the data pointer.
1495 2018-02-28 Alan Modra <amodra@gmail.com>
1498 * aoutx.h (translate_symbol_table): Print an error message and set
1499 bfd_error on finding an invalid name string offset.
1501 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
1503 * config.in: Regenerated.
1504 * configure: Likewise.
1505 * configure.ac: Add --enable-separate-code.
1506 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
1507 to 1 for Linux/x86 targets,
1508 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
1509 DEFAULT_LD_Z_SEPARATE_CODE is 1.
1511 2018-02-27 Nick Clifton <nickc@redhat.com>
1513 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
1515 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
1516 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
1517 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
1518 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
1519 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1520 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
1521 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1522 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
1523 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
1526 * elf-bfd.h (struct elf_backend_data): Change the return type of
1527 the elf_info_to_howto and elf_info_to_howto_rel function pointers
1529 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
1530 value from the info_to_howto function and fail if that function
1532 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
1533 from the info_to_howto function.
1534 (elf32_h8_relax_section): Likewise.
1535 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1536 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1537 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1538 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1539 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1540 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1541 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
1542 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
1543 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1544 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
1545 (riscv_elf_relocate_section): Likewise.
1546 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
1547 bfd_boolean. Issue an error message, set an error value and
1548 return FALSE if the reloc is not recognized.
1549 (elf_hppa_info_to_howto_rel): Likewise.
1550 * elf-m10200.c (mn10200_info_to_howto): Likewise.
1551 * elf-m10300.c (mn10300_info_to_howto): Likewise.
1552 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
1553 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
1554 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
1555 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
1556 * elf32-bfin.c (bfin_info_to_howto): Likewise.
1557 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
1558 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
1559 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
1560 (cris_info_to_howto_rela): Likewise.
1561 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
1562 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
1563 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
1565 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
1566 (elf32_dlx_info_to_howto_rel): Likewise.
1567 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
1568 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
1569 * elf32-frv.c (frv_info_to_howto_rela)
1570 (frvfdpic_info_to_howto_rel): Likewise.
1571 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
1572 * elf32-gen.c (elf_generic_info_to_howto)
1573 (elf_generic_info_to_howto_rel): Likewise.
1574 * elf32-h8300.c (elf32_h8_info_to_howto)
1575 (elf32_h8_info_to_howto_rel): Likewise.
1576 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1577 * elf32-i386.c (elf_i386_reloc_type_lookup)
1578 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
1579 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
1581 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
1582 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
1583 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
1584 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
1585 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
1586 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
1588 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
1589 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
1590 * elf32-m68k.c (rtype_to_howto): Likewise.
1591 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1592 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
1593 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
1594 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1595 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1597 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
1598 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
1599 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
1600 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
1602 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
1603 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
1604 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1605 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1606 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
1607 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
1608 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
1609 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
1610 * elf32-score.c (s3_bfd_score_info_to_howto)
1611 (_bfd_score_info_to_howto): Likewise.
1612 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1613 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
1614 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
1615 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
1616 (elf32_tic6x_info_to_howto_rel): Likewise.
1617 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
1618 * elf32-v850.c (v850_elf_info_to_howto_rel)
1619 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
1620 * elf32-vax.c (rtype_to_howto): Likewise.
1621 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
1622 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
1623 (elf32_wasm32_info_to_howto_rela): Likewise.
1624 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
1625 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
1626 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
1627 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
1628 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
1629 * elf64-gen.c (elf_generic_info_to_howto)
1630 (elf_generic_info_to_howto_rel): Likewise.
1631 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
1632 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
1633 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
1634 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
1635 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1636 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
1638 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
1639 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1641 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
1642 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
1643 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
1644 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1645 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
1646 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
1647 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
1648 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
1649 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
1650 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
1653 2018-02-26 Jim Wilson <jimw@sifive.com>
1654 Stephan Schreiber <info@fs-driver.org>
1657 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
1658 call, set changed_contents and changed_relocs. Likewise after
1659 successful ia64_elf_relax_br call.
1661 2018-02-26 Alan Modra <amodra@gmail.com>
1663 * elf.c (assign_file_positions_except_relocs): Don't segfault
1664 when actual number of phdrs is less than allocated. Delete
1665 outdated comment. Formatting.
1667 2018-02-26 Alan Modra <amodra@gmail.com>
1669 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
1670 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
1671 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
1672 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
1673 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
1674 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
1675 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
1676 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
1677 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
1678 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
1679 error/warning messages.
1681 2018-02-26 Alan Modra <amodra@gmail.com>
1683 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
1684 * syms.c: Standardize error/warning messages.
1686 2018-02-26 Alan Modra <amodra@gmail.com>
1688 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
1689 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
1690 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
1691 * peXXigen.c, * peicode.h: Standardize error/warning messages.
1693 2018-02-26 Alan Modra <amodra@gmail.com>
1695 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
1697 2018-02-26 Alan Modra <amodra@gmail.com>
1699 * elfxx-mips.c: Standardize error/warning messages.
1701 2018-02-26 Alan Modra <amodra@gmail.com>
1703 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
1704 * elflink.c: Standardize error/warning messages. Replace use of
1705 linker callback einfo with _bfd_error_handler when possible.
1707 2018-02-26 Alan Modra <amodra@gmail.com>
1709 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
1710 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
1711 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
1712 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
1713 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
1714 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
1715 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
1716 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
1717 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
1718 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
1719 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
1720 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
1721 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
1722 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
1723 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
1724 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
1725 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
1726 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
1727 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
1728 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
1729 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
1730 unrecognized/unsupported reloc message.
1732 2018-02-26 Alan Modra <amodra@gmail.com>
1734 * elf32-ppc.c: Standardize error/warning messages. Use
1735 _bfd_error_handler rather than einfo when einfo features not used.
1736 * elf64-ppc.c: Likewise.
1738 2018-02-23 Alan Modra <amodra@gmail.com>
1741 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
1742 segment if no matching LOAD segment.
1744 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1746 * elf32-nds32.h: Define mask for ict_model.
1748 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
1750 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
1752 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1755 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
1757 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
1758 .reginfo section has wrong size.
1760 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1762 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
1763 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
1764 `.MIPS.abiflags' sections.
1765 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
1768 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1770 * section.c (SEC_FIXED_SIZE): New macro.
1771 * bfd-in2.h: Regenerate.
1773 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1775 * section.c (SEC_HAS_GOT_REF): Remove macro.
1776 * bfd-in2.h: Regenerate.
1778 2018-02-19 Alan Modra <amodra@gmail.com>
1780 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
1782 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
1783 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
1784 (_bfd_riscv_relax_pc): Likewise and fix typos.
1785 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
1786 * libbfd.h: Regenerate.
1788 2018-02-19 Alan Modra <amodra@gmail.com>
1790 * dwarf2.c (read_section): Don't use 'll' format modifier.
1791 (find_abstract_instance): Likewise.
1792 * elfcore.h (elf_core_file_p): Likewise.
1794 2018-02-19 Alan Modra <amodra@gmail.com>
1796 * bfd-in.h: Include inttypes.h or if not available define
1797 PRId64, PRIu64 and PRIx64.
1798 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
1799 modifier to print bfd_vma.
1800 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
1801 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
1802 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
1803 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
1804 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
1805 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
1806 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
1807 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
1808 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
1809 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
1810 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
1811 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
1812 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
1813 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
1814 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
1815 and cast input to uint64_t, and similarly for Ld and Lu.
1816 * bfd-in2.h: Regenerate.
1818 2018-02-19 Alan Modra <amodra@gmail.com>
1820 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
1821 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
1822 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
1823 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
1824 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
1825 * reloc.c: Replace use of %R and %T in format strings passed to
1826 einfo and friends by %pR and %pT.
1828 2018-02-19 Alan Modra <amodra@gmail.com>
1830 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
1832 * aout-adobe.c: Update all messages using %A and %B.
1833 * aout-cris.c: Likewise.
1834 * aoutx.h: Likewise.
1835 * archive.c: Likewise.
1836 * binary.c: Likewise.
1837 * cache.c: Likewise.
1838 * coff-alpha.c: Likewise.
1839 * coff-arm.c: Likewise.
1840 * coff-i860.c: Likewise.
1841 * coff-mcore.c: Likewise.
1842 * coff-ppc.c: Likewise.
1843 * coff-rs6000.c: Likewise.
1844 * coff-sh.c: Likewise.
1845 * coff-tic4x.c: Likewise.
1846 * coff-tic54x.c: Likewise.
1847 * coff-tic80.c: Likewise.
1848 * coff64-rs6000.c: Likewise.
1849 * coffcode.h: Likewise.
1850 * coffgen.c: Likewise.
1851 * cofflink.c: Likewise.
1852 * coffswap.h: Likewise.
1853 * compress.c: Likewise.
1854 * cpu-arm.c: Likewise.
1855 * ecoff.c: Likewise.
1856 * elf-attrs.c: Likewise.
1857 * elf-eh-frame.c: Likewise.
1858 * elf-ifunc.c: Likewise.
1859 * elf-m10300.c: Likewise.
1860 * elf-properties.c: Likewise.
1861 * elf-s390-common.c: Likewise.
1863 * elf32-arc.c: Likewise.
1864 * elf32-arm.c: Likewise.
1865 * elf32-avr.c: Likewise.
1866 * elf32-bfin.c: Likewise.
1867 * elf32-cr16.c: Likewise.
1868 * elf32-cr16c.c: Likewise.
1869 * elf32-cris.c: Likewise.
1870 * elf32-crx.c: Likewise.
1871 * elf32-d10v.c: Likewise.
1872 * elf32-d30v.c: Likewise.
1873 * elf32-epiphany.c: Likewise.
1874 * elf32-fr30.c: Likewise.
1875 * elf32-frv.c: Likewise.
1876 * elf32-gen.c: Likewise.
1877 * elf32-hppa.c: Likewise.
1878 * elf32-i370.c: Likewise.
1879 * elf32-i386.c: Likewise.
1880 * elf32-i960.c: Likewise.
1881 * elf32-ip2k.c: Likewise.
1882 * elf32-iq2000.c: Likewise.
1883 * elf32-lm32.c: Likewise.
1884 * elf32-m32c.c: Likewise.
1885 * elf32-m32r.c: Likewise.
1886 * elf32-m68hc11.c: Likewise.
1887 * elf32-m68hc12.c: Likewise.
1888 * elf32-m68hc1x.c: Likewise.
1889 * elf32-m68k.c: Likewise.
1890 * elf32-mcore.c: Likewise.
1891 * elf32-mep.c: Likewise.
1892 * elf32-metag.c: Likewise.
1893 * elf32-microblaze.c: Likewise.
1894 * elf32-moxie.c: Likewise.
1895 * elf32-msp430.c: Likewise.
1896 * elf32-mt.c: Likewise.
1897 * elf32-nds32.c: Likewise.
1898 * elf32-nios2.c: Likewise.
1899 * elf32-or1k.c: Likewise.
1900 * elf32-pj.c: Likewise.
1901 * elf32-ppc.c: Likewise.
1902 * elf32-rl78.c: Likewise.
1903 * elf32-rx.c: Likewise.
1904 * elf32-s390.c: Likewise.
1905 * elf32-score.c: Likewise.
1906 * elf32-score7.c: Likewise.
1907 * elf32-sh-symbian.c: Likewise.
1908 * elf32-sh.c: Likewise.
1909 * elf32-sh64.c: Likewise.
1910 * elf32-sparc.c: Likewise.
1911 * elf32-spu.c: Likewise.
1912 * elf32-tic6x.c: Likewise.
1913 * elf32-tilepro.c: Likewise.
1914 * elf32-v850.c: Likewise.
1915 * elf32-vax.c: Likewise.
1916 * elf32-visium.c: Likewise.
1917 * elf32-wasm32.c: Likewise.
1918 * elf32-xgate.c: Likewise.
1919 * elf32-xtensa.c: Likewise.
1920 * elf64-alpha.c: Likewise.
1921 * elf64-gen.c: Likewise.
1922 * elf64-hppa.c: Likewise.
1923 * elf64-ia64-vms.c: Likewise.
1924 * elf64-mmix.c: Likewise.
1925 * elf64-ppc.c: Likewise.
1926 * elf64-s390.c: Likewise.
1927 * elf64-sh64.c: Likewise.
1928 * elf64-sparc.c: Likewise.
1929 * elf64-x86-64.c: Likewise.
1930 * elfcode.h: Likewise.
1931 * elfcore.h: Likewise.
1932 * elflink.c: Likewise.
1933 * elfnn-aarch64.c: Likewise.
1934 * elfnn-ia64.c: Likewise.
1935 * elfnn-riscv.c: Likewise.
1936 * elfxx-mips.c: Likewise.
1937 * elfxx-sparc.c: Likewise.
1938 * elfxx-tilegx.c: Likewise.
1939 * elfxx-x86.c: Likewise.
1940 * hpux-core.c: Likewise.
1943 * libbfd.c: Likewise.
1944 * linker.c: Likewise.
1945 * mach-o.c: Likewise.
1946 * merge.c: Likewise.
1948 * oasys.c: Likewise.
1949 * pdp11.c: Likewise.
1950 * pe-mips.c: Likewise.
1951 * peXXigen.c: Likewise.
1952 * peicode.h: Likewise.
1953 * reloc.c: Likewise.
1954 * rs6000-core.c: Likewise.
1956 * stabs.c: Likewise.
1957 * vms-alpha.c: Likewise.
1958 * xcofflink.c: Likewise.
1960 2018-02-19 Alan Modra <amodra@gmail.com>
1963 * elf.c (IS_TBSS): Define.
1964 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
1965 (assign_file_positions_for_non_load_sections): Revert last change.
1966 Properly calculate load segment limits to compare against relro limits.
1968 2018-02-17 Alan Modra <amodra@gmail.com>
1971 * elf.c (assign_file_positions_for_non_load_sections): Ignore
1972 degenerate zero size PT_LOAD segments when finding one overlapping
1973 the PT_GNU_RELRO segment.
1975 2018-02-16 Alan Modra <amodra@gmail.com>
1977 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
1978 (_bfd_bool_bfd_true): Rename from bfd_true.
1979 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
1980 (_bfd_int_bfd_0): Rename from bfd_0.
1981 (_bfd_uint_bfd_0): Rename from bfd_0u.
1982 (_bfd_long_bfd_0): Rename from bfd_0l.
1983 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
1984 (_bfd_void_bfd): Rename from bfd_void.
1985 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
1986 (_bfd_bool_bfd_link_false_error),
1987 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
1988 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
1989 (_bfd_bool_bfd_asection_bfd_asection_true),
1990 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
1991 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
1992 * archive.c (_bfd_noarchive_get_elt_at_index),
1993 (_bfd_noarchive_openr_next_archived_file),
1994 (_bfd_noarchive_construct_extended_name_table),
1995 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
1996 (_bfd_noarchive_write_armap): New functions.
1997 * archures.c (_bfd_nowrite_set_arch_mach): New function.
1998 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
1999 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
2000 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
2001 (alpha_ecoff_swap_coff_lineno_out),
2002 (alpha_ecoff_swap_coff_reloc_out): New functions.
2003 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
2004 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
2005 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
2006 (mips_ecoff_swap_coff_lineno_out),
2007 (mips_ecoff_swap_coff_reloc_out): New functions.
2008 * coffcode.h (coff_set_alignment_hook): Replace define with
2010 (symname_in_debug_hook): Likewise.
2011 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
2012 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
2013 * elf.c (assign_file_positions_except_relocs): Test
2014 elf_backend_allow_non_load_phdr for NULL.
2015 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
2016 _bfd_elf_link_omit_section_dynsym. Update uses.
2017 (_bfd_elf_omit_section_dynsym_all): New function.
2018 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
2019 (_bfd_elf_omit_section_dynsym_default): Declare.
2020 (_bfd_elf_omit_section_dynsym_all): Declare.
2021 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
2022 (_bfd_nolink_bfd_get_relocated_section_contents),
2023 (_bfd_nolink_bfd_lookup_section_flags),
2024 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
2025 (_bfd_nolink_bfd_link_hash_table_create),
2026 (_bfd_nolink_bfd_link_just_syms),
2027 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
2028 (_bfd_nolink_bfd_link_split_section),
2029 (_bfd_nolink_section_already_linked),
2030 (_bfd_nolink_bfd_define_common_symbol),
2031 (_bfd_nolink_bfd_define_start_stop): New functions.
2032 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
2033 (_bfd_norelocs_bfd_reloc_name_lookup),
2034 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
2035 * section.c (_bfd_nowrite_set_section_contents): New function.
2036 * syms.c (_bfd_nosymbols_canonicalize_symtab),
2037 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
2038 (_bfd_nosymbols_get_symbol_version_string),
2039 (_bfd_nosymbols_bfd_is_local_label_name),
2040 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
2041 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
2042 (_bfd_nosymbols_bfd_make_debug_symbol),
2043 ( _bfd_nosymbols_read_minisymbols),
2044 ( _bfd_nosymbols_minisymbol_to_symbol),
2045 (_bfd_nodynamic_get_synthetic_symtab): New functions.
2046 * libbfd-in.h: Declare new functions. Update existing defines,
2048 * aix386-core.c: Update to use new hooks. Formatting.
2049 * aout-adobe.c: Likewise.
2050 * aout-arm.c: Likewise.
2051 * aout-target.h: Likewise.
2052 * aout-tic30.c: Likewise.
2053 * aoutf1.h: Likewise.
2054 * binary.c: Likewise.
2056 * cisco-core.c: Likewise.
2057 * coff-alpha.c: Likewise.
2058 * coff-i386.c: Likewise.
2059 * coff-i860.c: Likewise.
2060 * coff-i960.c: Likewise.
2061 * coff-ia64.c: Likewise.
2062 * coff-mips.c: Likewise.
2063 * coff-ppc.c: Likewise.
2064 * coff-rs6000.c: Likewise.
2065 * coff-sh.c: Likewise.
2066 * coff-tic30.c: Likewise.
2067 * coff-tic54x.c: Likewise.
2068 * coff-x86_64.c: Likewise.
2069 * coff64-rs6000.c: Likewise.
2070 * coffcode.h: Likewise.
2071 * elf-m10300.c: Likewise.
2072 * elf32-cr16.c: Likewise.
2073 * elf32-lm32.c: Likewise.
2074 * elf32-m32r.c: Likewise.
2075 * elf32-metag.c: Likewise.
2076 * elf32-score.c: Likewise.
2077 * elf32-score7.c: Likewise.
2078 * elf32-tilepro.c: Likewise.
2079 * elf32-xstormy16.c: Likewise.
2080 * elf32-xtensa.c: Likewise.
2081 * elf64-alpha.c: Likewise.
2082 * elf64-hppa.c: Likewise.
2083 * elf64-ia64-vms.c: Likewise.
2084 * elf64-mmix.c: Likewise.
2085 * elf64-sh64.c: Likewise.
2086 * elfnn-ia64.c: Likewise.
2087 * elfxx-sparc.c: Likewise.
2088 * elfxx-target.h: Likewise.
2089 * elfxx-tilegx.c: Likewise.
2090 * elfxx-x86.h: Likewise.
2091 * hp300hpux.c: Likewise.
2092 * hppabsd-core.c: Likewise.
2093 * hpux-core.c: Likewise.
2094 * i386msdos.c: Likewise.
2095 * i386os9k.c: Likewise.
2098 * irix-core.c: Likewise.
2099 * libaout.h: Likewise.
2100 * libecoff.h: Likewise.
2101 * mach-o-target.c: Likewise.
2102 * mach-o.c: Likewise.
2103 * mipsbsd.c: Likewise.
2105 * netbsd-core.c: Likewise.
2106 * nlm-target.h: Likewise.
2107 * oasys.c: Likewise.
2108 * osf-core.c: Likewise.
2109 * pdp11.c: Likewise.
2110 * pe-mips.c: Likewise.
2111 * pe-x86_64.c: Likewise.
2113 * plugin.c: Likewise.
2114 * ppcboot.c: Likewise.
2115 * ptrace-core.c: Likewise.
2116 * sco5-core.c: Likewise.
2118 * sparclynx.c: Likewise.
2120 * tekhex.c: Likewise.
2121 * trad-core.c: Likewise.
2122 * verilog.c: Likewise.
2123 * versados.c: Likewise.
2124 * vms-alpha.c: Likewise.
2125 * vms-lib.c: Likewise.
2126 * wasm-module.c: Likewise.
2128 * libbfd.h: Regenerate.
2130 2018-02-15 Jim Wilson <jimw@sifive.com>
2132 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
2133 symbols whose section address is zero.
2135 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
2136 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
2137 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
2138 Add %X%P to error messages.
2140 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
2143 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2144 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
2145 and assert that the result of the call is not NULL.
2147 2018-02-14 Nick Clifton <nickc@redhat.com>
2150 Revert previous delta. Add extra casts to avoid compile time
2152 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
2153 cast to avoid warning from gcc v8 compiler.
2154 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2155 (_bfd_generic_bfd_set_private_flags): Likewise.
2156 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2157 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2158 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2159 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2160 (_bfd_noarchive_construct_extended_name_table): Likewise.
2161 (_bfd_noarchive_truncate_arname): Likewise.
2162 (_bfd_noarchive_write_ar_hdr): Likewise.
2163 (_bfd_noarchive_get_elt_at_index): Likewise.
2164 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2165 (_bfd_nosymbols_print_symbol): Likewise.
2166 (_bfd_nosymbols_get_symbol_info): Likewise.
2167 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2168 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2169 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2170 (_bfd_nosymbols_get_lineno): Likewise.
2171 (_bfd_nosymbols_find_nearest_line): Likewise.
2172 (_bfd_nosymbols_find_line): Likewise.
2173 (_bfd_nosymbols_find_inliner_info): Likewise.
2174 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2175 (_bfd_nosymbols_read_minisymbols): Likewise.
2176 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2177 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2178 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2179 (_bfd_nowrite_set_arch_mach): Likewise.
2180 (_bfd_nowrite_set_section_contents): Likewise.
2181 (_bfd_nolink_sizeof_headers): Likewise.
2182 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2183 (_bfd_nolink_bfd_relax_section): Likewise.
2184 (_bfd_nolink_bfd_gc_sections): Likewise.
2185 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2186 (_bfd_nolink_bfd_merge_sections): Likewise.
2187 (_bfd_nolink_bfd_is_group_section): Likewise.
2188 (_bfd_nolink_bfd_discard_group): Likewise.
2189 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2190 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2191 (_bfd_nolink_bfd_link_just_syms): Likewise.
2192 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2193 (_bfd_nolink_bfd_final_link): Likewise.
2194 (_bfd_nolink_bfd_link_split_section): Likewise.
2195 (_bfd_nolink_section_already_linked): Likewise.
2196 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2197 (_bfd_nolink_bfd_define_start_stop): Likewise.
2198 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2199 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2200 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2201 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2202 * libbfd.c (bfd_false_any): Delete.
2203 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
2204 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
2205 * libbfd.h (extern): Regenerate
2206 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
2207 cast to avoid warning from gcc v8 compiler.
2208 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2209 * binary.c (binary_get_symbol_info): Likewise.
2210 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2211 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2212 * coffcode.h (coff_set_alignment_hook): Likewise.
2213 (symname_in_debug_hook): Likewise.
2214 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2215 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2216 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2217 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2218 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2219 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2220 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2221 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2222 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2223 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2224 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2225 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2226 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2227 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2228 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2229 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2230 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2231 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2232 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2233 (bfd_elfNN_bfd_set_private_flags): Likewise.
2234 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2235 (elf_backend_init_index_section): Likewise.
2236 (elf_backend_allow_non_load_phdr): Likewise.
2237 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2238 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2239 * ieee.c (ieee_construct_extended_name_table): Likewise.
2240 (ieee_write_armap): Likewise.
2241 (ieee_write_ar_hdr): Likewise.
2242 (ieee_bfd_is_target_special_symbol): Likewise.
2243 * ihex.c (ihex_canonicalize_symtab): Likewise.
2244 (ihex_bfd_is_target_special_symbol): Likewise.
2245 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2246 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2247 (_bfd_ecoff_set_alignment_hook): Likewise.
2248 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2249 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2250 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2251 * oasys.c (oasys_construct_extended_name_table): Likewise.
2252 (oasys_write_armap): Likewise.
2253 (oasys_write_ar_hdr): Likewise.
2254 (oasys_bfd_is_target_special_symbol): Likewise.
2255 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2256 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2257 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2258 * som.c (som_bfd_is_target_special_symbol): Likewise.
2259 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2260 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2261 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2262 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2263 (versados_bfd_reloc_name_lookup): Likewise.
2264 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2265 (vms_bfd_define_start_stop): Likewise.
2266 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2267 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2268 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2270 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2273 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2274 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2275 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2276 R_X86_64_PC32 reloc against dynamic function in data section.
2277 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2278 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2279 against dynamic function in data section.
2280 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2281 function address only if pcrel_plt is true.
2282 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2283 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2284 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2285 PC-relative relocation against a function definition in data
2286 secton in PIE. Remove the obsolete comments.
2287 (elf_x86_link_hash_table): Add pcrel_plt.
2289 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2291 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2292 instead of bfd_link_pic, for building shared library.
2294 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2297 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2298 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2299 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2300 against protected function in shared object.
2302 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2305 * po/ru.po: Fix typo in Russian translation.
2307 2018-02-13 Maciej W. Rozycki <macro@mips.com>
2309 * wasm-module.c (wasm_scan_name_function_section): Rename
2310 `index' local variable to `idx'.
2312 2018-02-13 Nick Clifton <nickc@redhat.com>
2315 Fix compile time warnings generated by gcc version 8.
2316 * libbfd-in.h: Remove extraneous text from prototypes.
2317 Add prototypes for bfd_false_any, bfd_true_any,
2318 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2319 bfd_n1_any, bfd_void_any.
2320 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2322 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2323 (_bfd_generic_bfd_set_private_flags): Likewise.
2324 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2325 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2326 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2327 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2328 (_bfd_noarchive_construct_extended_name_table): Likewise.
2329 (_bfd_noarchive_truncate_arname): Likewise.
2330 (_bfd_noarchive_write_ar_hdr): Likewise.
2331 (_bfd_noarchive_get_elt_at_index): Likewise.
2332 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2333 (_bfd_nosymbols_print_symbol): Likewise.
2334 (_bfd_nosymbols_get_symbol_info): Likewise.
2335 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2336 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2337 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2338 (_bfd_nosymbols_get_lineno): Likewise.
2339 (_bfd_nosymbols_find_nearest_line): Likewise.
2340 (_bfd_nosymbols_find_line): Likewise.
2341 (_bfd_nosymbols_find_inliner_info): Likewise.
2342 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2343 (_bfd_nosymbols_read_minisymbols): Likewise.
2344 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2345 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2346 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2347 (_bfd_nowrite_set_arch_mach): Likewise.
2348 (_bfd_nowrite_set_section_contents): Likewise.
2349 (_bfd_nolink_sizeof_headers): Likewise.
2350 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2351 (_bfd_nolink_bfd_relax_section): Likewise.
2352 (_bfd_nolink_bfd_gc_sections): Likewise.
2353 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2354 (_bfd_nolink_bfd_merge_sections): Likewise.
2355 (_bfd_nolink_bfd_is_group_section): Likewise.
2356 (_bfd_nolink_bfd_discard_group): Likewise.
2357 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2358 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2359 (_bfd_nolink_bfd_link_just_syms): Likewise.
2360 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2361 (_bfd_nolink_bfd_final_link): Likewise.
2362 (_bfd_nolink_bfd_link_split_section): Likewise.
2363 (_bfd_nolink_section_already_linked): Likewise.
2364 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2365 (_bfd_nolink_bfd_define_start_stop): Likewise.
2366 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2367 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2368 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2369 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2370 * libbfd.c (bfd_false_any): New function. Like bfd_false but
2371 accepts one or more arguments.
2372 (bfd_true_any): Likewise.
2373 (bfd_nullvoidptr_any): Likewise.
2374 (bfd_0_any): Likewise.
2375 (bfd_0u_any): Likewise.
2376 (bfd_0l_any): Likewise.
2377 (_bfd_n1_any): Likewise.
2378 (bfd_void_any): Likewise.
2379 * libbfd.h (extern): Regenerate
2380 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
2381 based dummy function.
2382 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2383 * binary.c (binary_get_symbol_info): Likewise.
2384 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2385 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2386 * coffcode.h (coff_set_alignment_hook): Likewise.
2387 (symname_in_debug_hook): Likewise.
2388 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2389 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2390 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2391 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2392 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2393 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2394 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2395 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2396 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2397 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2398 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2399 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2400 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2401 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2402 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2403 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2404 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2405 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2406 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2407 (bfd_elfNN_bfd_set_private_flags): Likewise.
2408 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2409 (elf_backend_init_index_section): Likewise.
2410 (elf_backend_allow_non_load_phdr): Likewise.
2411 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2412 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2413 * ieee.c (ieee_construct_extended_name_table): Likewise.
2414 (ieee_write_armap): Likewise.
2415 (ieee_write_ar_hdr): Likewise.
2416 (ieee_bfd_is_target_special_symbol): Likewise.
2417 * ihex.c (ihex_canonicalize_symtab): Likewise.
2418 (ihex_bfd_is_target_special_symbol): Likewise.
2419 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2420 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2421 (_bfd_ecoff_set_alignment_hook): Likewise.
2422 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2423 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2424 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2425 * oasys.c (oasys_construct_extended_name_table): Likewise.
2426 (oasys_write_armap): Likewise.
2427 (oasys_write_ar_hdr): Likewise.
2428 (oasys_bfd_is_target_special_symbol): Likewise.
2429 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2430 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2431 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2432 * som.c (som_bfd_is_target_special_symbol): Likewise.
2433 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2434 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2435 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2436 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2437 (versados_bfd_reloc_name_lookup): Likewise.
2438 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2439 (vms_bfd_define_start_stop): Likewise.
2440 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2441 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2442 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2443 * elf32-arc.c (get_replace_function): Assign replacement function
2445 * elf32-i370.c (i370_noop): Update prototype.
2447 2018-02-13 Alan Modra <amodra@gmail.com>
2450 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
2451 relocation sections. If size reduces to just the flag word,
2452 remove that too and mark with SEC_EXCLUDE.
2453 * elflink.c (bfd_elf_final_link): Strip empty group sections.
2455 2018-02-13 Alan Modra <amodra@gmail.com>
2458 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
2461 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
2463 * i386msdos.c (msdos_mkobject); New function.
2464 (msdos_object_p): New function.
2465 (i386_msdos_vec): Use msdos_object_p as the check_format
2467 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
2468 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
2470 * peXXigen.c: Likewise.
2471 * coff-ia64.c: Likewise.
2473 2018-02-12 Nick Clifton <nickc@redhat.com>
2475 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
2477 * elf32-arc.c (elf_arc_relocate_section): Likewise.
2479 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
2481 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
2482 (sparc_elf_append_rela): Assert that there is enough room in section.
2483 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
2484 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
2485 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
2486 For a symbol subject to a GOT relocation, reserve a slot in the
2487 relocation section if the symbol isn't dynamic and we are in PIC mode.
2488 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
2489 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
2490 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
2491 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
2492 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
2493 resolved_to_zero. Do not generate a dynamic GOT relocation for an
2494 undefined weak symbol with non-default visibility. Remove superfluous
2495 'else' and fix formatting.
2497 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
2499 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
2501 (i386_elf32_sol2_vec): Don't declare.
2502 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
2503 Don't set need_global_offset_table.
2504 (elf_i386_solaris_arch_bed): New.
2505 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
2507 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
2508 target_os != is_nacl instead of target_os == is_normal.
2509 (x86_64_elf64_sol2_vec): Don't declare.
2510 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
2511 is_nacl instead of target_os == is_normal. Don't set
2512 need_global_offset_table.
2513 (elf_x86_64_solaris_arch_bed): New.
2514 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
2516 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
2517 _GLOBAL_OFFSET_TABLE_ for Solaris.
2518 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
2519 need_global_offset_table.
2520 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
2521 (elf_x86_link_hash_table): Remove need_global_offset_table.
2522 (elf_x86_init_table): Likewise.
2524 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2526 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2528 (i386_elf32_sol2_vec): Declared.
2529 (elf_i386_link_setup_gnu_properties): Set
2530 need_global_offset_table with info->output_bfd->xvec.
2531 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2533 (x86_64_elf64_sol2_vec): Declared.
2534 (elf_x86_64_link_setup_gnu_properties): Set
2535 need_global_offset_table with info->output_bfd->xvec.
2537 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2539 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2541 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
2543 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2545 (elf_x86_64_link_setup_gnu_properties): Set
2546 need_global_offset_table for Solaris.
2547 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
2548 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
2549 (_bfd_x86_elf_link_setup_gnu_properties): Copy
2550 need_global_offset_table.
2551 * elfxx-x86.h (elf_x86_link_hash_table): Add
2552 need_global_offset_table.
2553 (elf_x86_init_table): Likewise.
2555 2018-02-08 Jim Wilson <jimw@sifive.com>
2557 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
2560 2018-02-08 Nick Clifton <nickc@redhat.com>
2563 * elf.c (elf_parse_notes): Reject notes with excessuively large
2566 2018-02-07 Alan Modra <amodra@gmail.com>
2568 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
2569 * elf32-ppc.c: Remove speculation barrier support.
2570 * elf32-ppc.h: Likewise.
2571 * elf64-ppc.c: Likewise.
2572 * elf64-ppc.h: Likewise.
2574 2018-02-06 Jim Wilson <jimw@sifive.com>
2576 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
2577 callback to report an error.
2579 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
2582 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
2583 into call to !bfd_link_executable and tidy up.
2584 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
2585 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
2586 !bfd_link_executable.
2587 <R_SPARC_TLS_IE_HI22>: Likewise.
2588 <GOT relocations>: Remove useless code, tidy and merge related blocks.
2589 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
2590 !bfd_link_executable.
2591 <R_SPARC_WPLT30>: Tidy up.
2592 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
2593 !bfd_link_executable.
2594 (allocate_dynrelocs): Likewise.
2595 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
2596 <R_SPARC_TLS_GD_HI22>: Merge into...
2597 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
2598 sparc_elf_tls_transition and remove redundant code.
2599 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
2600 !bfd_link_executable.
2601 <R_SPARC_TLS_LDO_HIX22>: Likewise.
2602 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
2603 <R_SPARC_TLS_LDM_CALL>: Likewise.
2604 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
2605 <R_SPARC_TLS_GD_ADD>: Likewise.
2606 <R_SPARC_TLS_LDM_ADD>: Likewise.
2607 <R_SPARC_TLS_LDO_ADD>: Likewise.
2608 <R_SPARC_TLS_IE_LD>: Likewise.
2610 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
2613 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
2614 functions failed to find the function name, try the generic elf
2615 find function instead.
2617 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
2619 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
2620 'memcpy' instead of 'strncpy' when writing the magic number.
2622 2018-02-06 Nick Clifton <nickc@redhat.com>
2625 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
2626 section before attempting to read it in.
2627 (bfd_get_alt_debug_link_info): Likewise.
2629 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
2631 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
2632 line information in addition to name, if they can be found.
2634 2018-02-05 Renlin Li <renlin.li@arm.com>
2637 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
2638 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
2639 check for writeable section as well.
2641 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
2644 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
2645 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
2646 undefined weak symbol to 0.
2647 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
2648 if _GLOBAL_OFFSET_TABLE_ is referenced.
2649 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
2650 got_referenced instead of ref_regular_nonweak. Remove the
2651 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
2652 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
2654 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2656 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
2657 initialize `hi_reloc'.
2659 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2661 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
2662 SHT_MIPS_REGINFO sections don't assert the correct size and
2663 report an error instead.
2665 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2667 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
2668 status from `->elf_backend_section_processing'.
2670 2018-02-02 Jim Wilson <jimw@sifive.com>
2673 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
2674 If link_info->wrap_hash, check for a duplicate symbol and ignore.
2675 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
2676 Pass new argument to riscv_relax_delete_bytes.
2677 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
2678 ATTRIBUTE_UNUSED from link_info parameter.
2680 2018-02-02 Alan Modra <amodra@gmail.com>
2682 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
2683 emitted for toc sequence optimization. Set and use "howto" later.
2685 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
2687 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
2688 arithmetic on NULL pointer.
2689 * elflink.c (_bfd_elf_archive_symbol_lookup,
2690 elf_link_add_archive_symbols): Likewise.
2692 2018-01-31 Michael Matz <matz@suse.de>
2694 * elflink.c (bfd_elf_define_start_stop): Fix check of
2697 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
2700 * elflink.c (bfd_elf_define_start_stop): Check if __start and
2701 __stop symbols are referenced by shared objects.
2703 2018-01-30 Alan Modra <amodra@gmail.com>
2706 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
2707 segment when demand paged with lma on the same page. Test this
2708 before load/non-load, executable/non-executable,
2709 writable/non-writable tests and simplify. Delete bogus relro
2710 condition in writable/non-writable test. Delete outdated
2711 comment. Formatting.
2713 2018-01-30 Alan Modra <amodra@gmail.com>
2715 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
2718 2018-01-29 Alan Modra <amodra@gmail.com>
2721 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
2722 range before converting to a symbol table pointer.
2724 2018-01-27 Nick Clifton <nickc@redhat.com>
2726 * po/ru.po: Updated Russian translation.
2728 2018-01-26 Alan Modra <amodra@gmail.com>
2730 * elflink.c (bfd_elf_define_start_stop): Override symbols when
2731 they are defined dynamically.
2733 2018-01-26 Alan Modra <amodra@gmail.com>
2735 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
2736 .branch_lt changes size.
2738 2018-01-25 Alan Modra <amodra@gmail.com>
2741 * elfcode.h (elf_object_p): Avoid integer overflow.
2743 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
2746 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2747 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
2750 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
2753 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
2754 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
2755 bfd_link_executable for TLS check.
2756 (_bfd_sparc_elf_check_relocs): Likewise.
2757 (allocate_dynrelocs): Likewise.
2758 (_bfd_sparc_elf_relocate_section): Likewise.
2760 2018-01-24 Renlin Li <renlin.li@arm.com>
2762 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
2763 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2764 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2765 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2766 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2767 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
2768 (_bfd_aarch64_elf_resolve_relocation): Likewise.
2770 2018-01-24 Renlin Li <renlin.li@arm.com>
2772 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
2773 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
2774 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
2775 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
2776 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
2777 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2778 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2779 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2780 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2781 * bfd-in2.h: Regenerate.
2782 * libbfd.h: Regenerate.
2784 2018-01-23 Maciej W. Rozycki <macro@mips.com>
2786 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
2787 `mips_elf32_section_processing' comment reference.
2789 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
2792 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
2793 versioned __tls_get_addr symbol.
2795 2018-01-19 Nick Clifton <nickc@redhat.com>
2797 * po/fr.po: Updated French translation.
2799 2018-01-18 Alan Modra <amodra@gmail.com>
2801 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
2802 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
2803 (ppc64_elf_build_stubs): Likewise.
2805 2018-01-17 Nick Clifton <nickc@redhat.com>
2807 * po/ru.po: Updated Russian translation.
2808 * po/uk/po: Updated Ukranian translation.
2810 2018-01-17 Alan Modra <amodra@gmail.com>
2812 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
2814 2018-01-17 Alan Modra <amodra@gmail.com>
2816 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
2817 (CRSETEQ, BEQCTRM): Define.
2818 (is_nonpic_glink_stub): Don't check bctr.
2819 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2820 (ppc_elf_relax_section): Size speculation barrier.
2821 (output_bctr): New function.
2822 (write_glink_stub): Use output_bctr.
2823 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
2824 (ppc_elf_finish_dynamic_symbol): Likewise.
2825 (ppc_elf_finish_dynamic_sections): Use output_bctr.
2826 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
2827 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
2828 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
2829 (size_global_entry_stubs): Handle speculation barrier sizing.
2830 (plt_stub_size): Likewise.
2831 (output_bctr): New function.
2832 (build_plt_stub, build_tls_get_addr_stub): Output speculation
2834 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
2835 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
2836 (build_global_entry_stubs): Output speculation barrier.
2837 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
2838 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
2840 2018-01-17 Alan Modra <amodra@gmail.com>
2842 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
2843 __tls_get_addr_opt, and alignment sizing.
2844 (TLS_GET_ADDR_GLINK_SIZE): Delete.
2845 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
2846 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
2848 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2849 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
2850 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
2852 (write_glink_stub): Handle __tls_get_addr_opt stub.
2853 Pad out to size given by GLINK_ENTRY_SIZE.
2854 (ppc_elf_relocate_section): Adjust write_glink_stub call.
2855 (ppc_elf_finish_dynamic_symbol): Likewise.
2856 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
2857 insn array since so many need rewriting.
2858 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
2859 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
2860 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
2861 nops. Adjust all uses.
2862 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
2863 in glink_vma calculation.
2864 (struct ppc_link_hash_table): Add global_entry section pointer.
2865 (create_linkage_sections): Create separate section for global
2867 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
2868 (size_global_entry_stubs): Handle sizing for aligned stubs.
2869 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
2870 and don't stash end of glink branch table in rawsize.
2871 (ppc_build_one_stub): Rewrite stub size calculations.
2872 (build_global_entry_stubs): Use new section.
2873 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
2874 Build lazy link stubs out to end of section. Build global entry
2875 stubs in new section.
2877 2018-01-15 Nick Clifton <nickc@redhat.com>
2879 * po/uk.po: Updated Ukranian translation.
2881 2018-01-13 Nick Clifton <nickc@redhat.com>
2883 * po/bfd.pot: Regenerated.
2885 2018-01-13 Nick Clifton <nickc@redhat.com>
2887 * version.m4: Bump version to 2.30.51
2888 * configure: Regenerate.
2890 2018-01-13 Nick Clifton <nickc@redhat.com>
2892 2.30 branch created.
2894 2018-01-12 Jens Widell <jl@opera.com>
2896 * elf.c (setup_group): Optimize search for group by remembering
2897 last found group and restarting search at that index.
2898 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
2900 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
2902 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
2903 bfd_link_common_skip_none in switch.
2905 2018-01-12 Alan Modra <amodra@gmail.com>
2908 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
2909 references on forced local symbols.
2911 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
2913 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
2914 .reginfo section has wrong size.
2916 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2919 * elf.c (_bfd_elf_map_sections_to_segments): When generating
2920 separate code and read-only data LOAD segments, create a new
2921 LOAD segment if the previous section contains text and the
2922 current section doesn't or vice versa. Don't put a writable
2923 section in a read-only segment if there is a RELRO segment.
2925 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2928 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
2929 references on forced local symbols.
2931 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2934 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
2935 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
2937 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2940 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
2942 2018-01-03 John Baldwin <jhb@FreeBSD.org>
2944 * elf.c (elfcore_grok_freebsd_note): Handle
2945 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
2946 NT_FREEBSD_PROCSTAT_VMMAP.
2948 2018-01-03 Alan Modra <amodra@gmail.com>
2950 Update year range in copyright notice of all files.
2952 For older changes see ChangeLog-2017
2954 Copyright (C) 2018 Free Software Foundation, Inc.
2956 Copying and distribution of this file, with or without modification,
2957 are permitted in any medium without royalty provided the copyright
2958 notice and this notice are preserved.
2964 version-control: never