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