1 2018-06-13 Scott Egerton <scott.egerton@imgtec.com>
2 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
4 * elfxx-mips.c (print_mips_ases): Add CRC.
6 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
9 * elfxx-x86.c (elf_x86_hide_linker_defined): New function.
10 (_bfd_x86_elf_link_check_relocs): Use it to hide hidden
11 __bss_start, _end and _edata in shared libraries.
13 2018-06-07 Alan Modra <amodra@gmail.com>
15 * elf32-tic6x.c (elf32_tic6x_check_relocs): Reference
16 __c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs.
18 2018-06-05 Alan Modra <amodra@gmail.com>
20 * bfd.c (struct bfd): Update comment on "where" usage.
21 * bfdio.c (bfd_bwrite, bfd_stat): Use and update "iovec",
22 "iostream", and "where" from containing archive file. Return
24 (bfd_bread): Similarly, and return error attempted out of
25 bounds archive element access.
26 (bfd_tell, bfd_flush): Use and update "iovec", "iostream", and
27 "where" from containing archive file.
28 (bfd_seek): Likewise. Return error on NULL iovec. Don't
29 attempt to optimize away seeks. Don't paper over errors by
31 (bfd_get_mtime): Call bfd_stat rather than iovec->bstat.
32 (bfd_get_size): Likewise.
33 (bfd_mmap): Operate on and use iovec of containing archive
34 file. Return error on NULL iovec.
35 * cache.c (bfd_cache_lookup_worker): Abort if working on
37 (cache_bread_1): Delete bfd parameter, add FILE* parameter.
38 Don't ignore zero byte reads.
39 (cache_bread): Look up FILE* in cache here. Error on NULL
41 (cache_bwrite): Rename "where" to "from".
42 (cache_bmmap): Don't handle archive elements.
43 * coffcode.h (coff_slurp_line_table): Exit early on zero
45 * bfd-in2.h: Regenerate.
47 2018-06-05 Alan Modra <amodra@gmail.com>
50 * plugin.c (bfd_plugin_open_input): Allow for possibility of
51 nested archives. Open file again for plugin.
52 (try_claim): Don't save and restore file position. Close file
54 * sysdep.h (O_BINARY): Define.
56 2018-06-04 Max Filippov <jcmvbkbc@gmail.com>
58 * elf32-xtensa.c (xtensa_read_table_entries): Make global.
59 (compute_fill_extra_space): Drop declaration. Rename function to
60 xtensa_compute_fill_extra_space.
61 (compute_ebb_actions, remove_dead_literal): Update references to
62 compute_fill_extra_space.
64 2018-06-04 Volodymyr Arbatov <arbatov@cadence.com>
66 * elf32-xtensa.c (elf32xtensa_separate_props): New global
68 (xtensa_add_names): New function.
69 (xtensa_property_section_name): Add new parameter
70 separate_sections, use it to choose property section name.
71 (xtensa_get_separate_property_section): New function.
72 (xtensa_get_property_section): Invoke
73 xtensa_get_separate_property_section to get individual property
74 section if it exists, common property section otherwise.
75 (xtensa_make_property_section): Pass elf32xtensa_separate_props
76 to xtensa_property_section_name.
78 2018-06-04 H.J. Lu <hongjiu.lu@intel.com>
81 * bfd-in.h: Include "diagnostics.h".
82 * bfd-in2.h: Regenerated.
83 * elf32-arm.c (elf32_arm_nabi_write_core_note): Use
84 DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and
85 DIAGNOSTIC_POP to silence GCC 8.1 warnings with
86 -Wstringop-truncation.
87 * elf32-ppc.c (ppc_elf_write_core_note): Likewse.
88 * elf32-s390.c (elf_s390_write_core_note): Likewse.
89 * elf64-ppc.c (ppc64_elf_write_core_note): Likewse.
90 * elf64-s390.c (elf_s390_write_core_note): Likewse.
91 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse.
93 2018-06-03 Jim Wilson <jimw@sifive.com>
96 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check
97 for and handle an undefined weak with no PLT.
100 * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check
101 to code that ignores duplicate symbols.
103 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
105 * version.m4: Bump version to 2.30.52
106 * configure: Regenerated.
108 2018-06-01 Alan Modra <amodra@gmail.com>
110 * bfd.c (_bfd_error_handler): Arrange for this function to be
111 declared in bfd-in2.h.
112 * libbfd-in.h (_bfd_error_handler): Don't declare.
113 * libbfd.h: Regenerate.
114 * bfd-in2.h: Regenerate.
116 2018-05-30 Amaan Cheval <amaan.cheval@gmail.com>
118 * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems*
119 This is needed to generate UEFI application image files from ELFs.
121 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
123 * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry,
124 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
125 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
126 plt_tlsdesc_got2_insn_end for TLSDESC entry.
127 (elf_i386_lazy_ibt_plt): Likewise.
128 (elf_i386_nacl_plt): Likewise.
129 * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ...
130 (elf_x86_64_tlsdesc_plt_entry): This.
131 (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry,
132 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
133 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
134 plt_tlsdesc_got2_insn_end for TLSDESC entry.
135 (elf_x86_64_lazy_bnd_plt): Likewise.
136 (elf_x86_64_lazy_ibt_plt): Likewise.
137 (elf_x32_lazy_ibt_plt): Likewise.
138 (elf_x86_64_nacl_plt): Likewise.
139 (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry,
140 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
141 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
142 plt_tlsdesc_got2_insn_end to update TLSDESC entry.
143 * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments.
144 Add plt_tlsdesc_entry, plt_tlsdesc_entry_size,
145 plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset,
146 plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end.
147 (elf_x86_non_lazy_plt_layout): Update comments.
148 (elf_x86_plt_layout): Likewise.
150 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
153 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed.
154 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
155 (elf_backend_add_symbol_hook): Likewise.
156 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
157 (elf_backend_add_symbol_hook): Likewise.
158 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise.
159 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
160 (elf_backend_add_symbol_hook): Likewise.
161 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise.
162 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
163 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise.
164 (elf_backend_add_symbol_hook): Likewise.
165 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC
167 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
168 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
169 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
170 * elflink.c (elf_link_add_object_symbols): Set
171 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols.
173 2018-05-26 H.J. Lu <hongjiu.lu@intel.com>
176 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New.
177 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function.
178 Extracted from _bfd_elf_link_assign_sym_version.
179 (_bfd_elf_link_hide_sym_by_version): New function.
180 (_bfd_elf_link_assign_sym_version): Use
181 _bfd_elf_link_hide_versioned_symbol.
182 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call
183 _bfd_elf_link_hide_sym_by_version instead of
184 bfd_hide_sym_by_version. Don't check unversioned symbol.
186 2018-05-25 Alan Modra <amodra@gmail.com>
188 * Makefile.in: Regenerate.
189 * po/SRC-POTFILES.in: Regenerate.
191 2018-05-25 Alan Modra <amodra@gmail.com>
193 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS.
194 * configure: Regenerate.
196 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
198 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING
201 2018-05-22 Alan Modra <amodra@gmail.com>
204 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
206 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code
208 (final_link_relocate): Revert last change.
210 2018-05-22 Alan Modra <amodra@gmail.com>
213 * elf32-hppa.c (final_link_relocate): Don't look for plt call
214 stubs in non-alloc sections.
216 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
219 * aout-target.h (MY_bfd_link_hide_symbol): New.
220 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise.
221 * binary.c (binary_bfd_link_hide_symbol): Likewise.
222 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
223 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
224 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise.
225 * coffcode.h (coff_bfd_link_hide_symbol): Likewise.
226 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise.
227 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise.
228 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise.
229 * ihex.c (ihex_bfd_link_hide_symbol): Likewise.
230 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise.
231 * linker.c (_bfd_generic_link_hide_symbol): Likewise.
232 (bfd_link_hide_symbol): Likewise.
233 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise.
234 * mmo.c (mmo_bfd_link_hide_symbol): Likewise.
235 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise.
236 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise.
237 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise.
238 * som.c (som_bfd_link_hide_symbol): Likewise.
239 * srec.c (srec_bfd_link_hide_symbol): Likewise.
240 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise.
241 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise.
242 (alpha_vms_bfd_link_hide_symbol): Likewise.
243 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise.
244 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
245 _bfd_generic_link_hide_symbol.
246 (rs6000_xcoff64_aix_vec): Likewise.
247 * elflink.c (bfd_elf_record_link_assignment): Don't make forced
248 local symbol dynamic.
249 (_bfd_elf_link_hide_symbol): New function.
250 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
251 check root.ldscript_def.
252 * targets.c (bfd_target): Add _bfd_link_hide_symbol.
253 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol.
254 * bfd-in2.h: Regenerated.
255 * libbfd.h: Likewise.
257 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
260 * elf.c (setup_group): Mark section in a section group with
263 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
266 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
267 set eh->local_ref to 1 if a symbol is versioned and there is a
270 2018-05-18 Kito Cheng <kito.cheng@gmail.com>
272 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle
275 2018-05-18 Jim Wilson <jimw@sifive.com>
277 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
278 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
279 (riscv_elf_relocate_section): Don't generate dynamic relocation if
280 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
281 (riscv_elf_finish_dynamic_symbol): Likewise.
283 2018-05-18 John Darrington <john@darrington.wattle.id.au>
285 * Makefile.am: Add s12z files.
286 * Makefile.in: Regenerate.
287 * archures.c: Add bfd_s12z_arch.
288 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24.
289 * bfd-in2.h: Regenerate.
290 * config.bfd: Add s12z target.
291 * configure.ac: Add s12z target.
292 * configure: Regenerate.
293 * cpu-s12z.c: New file.
294 * elf32-s12z.c: New file.
295 * libbfd.c (bfd_putb24): New function.
296 (bfd_putl24): New function.
297 * libbfd.h: Regenerate.
298 * reloc.c: Add s12z relocations.
299 (bfd_get_reloc_size): Handle size 5 relocs.
300 * targets.c: Add s12z_elf32_vec.
302 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
305 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
307 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
308 set eh->local_ref to 1 for linker defined symbols.
310 2018-05-18 Alan Modra <amodra@gmail.com>
313 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries
314 don't point at other SHT_GROUP sections. Set shdr corresponding
315 to invalid entry, to NULL rather than section 0. Identify
316 SHT_GROUP section index when reporting an error. Cope with NULL
319 2018-05-18 Alan Modra <amodra@gmail.com>
321 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout.
322 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden
324 * libbfd.h: Regenerate.
325 * configure: Regenerate.
326 * config.in: Regenerate.
328 2018-05-18 Alan Modra <amodra@gmail.com>
330 * libbfd-in.h: Add include guard.
331 * libcoff-in.h: Likewise.
332 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
333 * doc/Makefile.in: Regenerate.
334 * libbfd.h: Regenerate.
335 * libcoff.h: Regenerate.
337 2018-05-16 Maciej W. Rozycki <macro@mips.com>
339 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
341 2018-05-16 Alan Modra <amodra@gmail.com>
344 * format.c (struct bfd_preserve): Add section_id.
345 (bfd_preserve_save, bfd_preserve_restore): Save and restore
347 (bfd_reinit): Set _bfd_section_id.
348 (bfd_check_format_matches): Put all matches of any priority into
349 matching_vector. Save initial section id and start each attempted
350 match at that section id.
351 * libbfd-in.h (_bfd_section_id): Declare.
352 * section.c (_bfd_section_id): Rename from section_id and make
354 (bfd_get_next_section_id): Delete.
355 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
356 bfd_get_section_id with _bfd_section_id.
357 * libbfd.h: Regenerate.
358 * bfd-in2.h: Regenerate.
360 2018-05-15 Christophe Guillon <christophe.guillon@st.com>
362 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
363 of the aux structure are initialised.
365 2018-05-15 Francois H. Theron <francois.theron@netronome.com>
367 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
369 2018-05-15 Nick Clifton <nickc@redhat.com>
371 * po/pt.po: New Portuguese translation.
372 * configure.ac (ALL_LINGUAS): Add pt.
373 * configure: Regenerate.
375 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
378 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
379 an error on IFUNC pointer defined in PDE.
380 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
381 _bfd_x86_elf_link_fixup_ifunc_symbol.
382 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
383 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
385 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
387 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
390 * elfxx-x86.c (elf_x86_linker_defined): New function.
391 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
392 _end and _edata locally defined within executables.
394 2018-05-12 Alan Modra <amodra@gmail.com>
397 * elf.c (rewrite_elf_program_header): Use segment_mark only for
398 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
399 Instead make matching_lma and suggested_lma pointers to the
400 sections. Align section vma and lma calculated from segment.
401 Don't clear includes_phdrs or includes_filehdr based on p_paddr
402 test. Try to handle alignment padding before first section by
403 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
405 2018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
407 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
408 conformant to TI ABI.
409 (pru_elf32_relax_section): Likewise.
410 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
411 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
412 (pru_elf32_pmem_relocate): Trap - should not get here.
413 (pru_elf32_relocate_section): Add support for REL relocations.
414 (elf_info_to_howto_rel): Enable REL.
415 (elf_backend_may_use_rel_p): Likewise.
416 (elf_backend_may_use_rela_p): Likewise.
417 (elf_backend_default_use_rela_p): Likewise.
419 2018-05-09 Alan Modra <amodra@gmail.com>
422 * peXXigen.c (pe_print_edata): Correct minimum size.
424 2018-05-09 Alan Modra <amodra@gmail.com>
427 * peXXigen.c (pe_print_idata): Bound check hint_addr.
429 2018-05-08 Nick Clifton <nickc@redhat.com>
432 * elf.c (bfd_elf_get_str_section): Check for an excessively large
434 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
435 attribute section is larger than the size of the file.
437 2018-05-07 Alan Modra <amodra@gmail.com>
439 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
440 strncmp when checking for ".bf" special symbol.
441 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
442 section name a char array, remove sentinal known_sections entry,
443 and adjust loop over known_sections to suit. Use memcmp rather
446 2018-05-04 Alan Modra <amodra@gmail.com>
448 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
449 (struct elf_external_linux_prpsinfo32_ugid16),
450 (struct elf_external_linux_prpsinfo64_ugid32),
451 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
452 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
454 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
456 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
458 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
459 * elf32-s390.c (elf_s390_write_core_note): Likewise.
460 * elf64-s390.c (elf_s390_write_core_note): Likewise.
461 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
462 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
464 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
465 false positive gcc-8 warning.
466 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
468 2018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
470 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
471 of arguments when warning about different long double types.
473 2018-05-03 Simon Atanasyan <simon@atanasyan.com>
475 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
476 (elf_backend_fixup_symbol): New macro.
477 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
479 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
481 2018-04-30 Francois H. Theron <francois.theron@netronome.com>
483 * Makefile.am: Added NFP files to build.
484 * archures.c: Added bfd_arch_nfp
485 * config.bfd: Added NFP support.
486 * configure.ac: Added NFP support.
487 * cpu-nfp.c: New, for NFP support.
488 * elf-bfd.h: Added elf_section_info()
489 * elf64-nfp.c: New, for NFP support.
490 * po/SRC-POTFILES.in: Added NFP source files.
491 * targets.c: Added nfp_elf64_vec
492 * bfd-in2.h: Regenerate.
493 * Makefile.in: Regenerate.
494 * configure: Regenerate.
496 2018-04-27 Alan Modra <amodra@gmail.com>
498 * bfd-in2.h: Regenerate.
499 * libbfd.h: Regenerate.
501 2018-04-27 Alan Modra <amodra@gmail.com>
505 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
507 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
509 2018-04-26 Pedro Alves <palves@redhat.com>
511 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
512 ifunc and non-ifunc symbols duplicates.
514 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
515 Mickaël Guêné <mickael.guene@st.com>
517 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
518 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
519 (elf32_arm_populate_plt_entry): Likewise.
520 (elf32_arm_output_plt_map_1): Likewise.
521 (elf32_arm_output_arch_local_syms): Likewise.
523 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
524 Mickaël Guêné <mickael.guene@st.com>
526 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
527 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
529 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
530 Mickaël Guêné <mickael.guene@st.com>
532 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
535 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
536 Mickaël Guêné <mickael.guene@st.com>
538 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
539 (elf32_arm_always_size_sections): Create stack segment.
541 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
542 Mickaël Guêné <mickael.guene@st.com>
544 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
545 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
547 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
548 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
549 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
550 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
551 (struct elf32_arm_link_hash_table): Update comment.
552 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
553 (IS_ARM_TLS_RELOC): Likewise.
554 (elf32_arm_check_relocs): Likewise.
555 (allocate_dynrelocs_for_symbol): Likewise.
556 (elf32_arm_size_dynamic_sections): Update comment.
557 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
558 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
560 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
561 Mickaël Guêné <mickael.guene@st.com>
563 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
564 (elf32_arm_create_dynamic_sections): Handle FDPIC.
565 (elf32_arm_allocate_plt_entry): Likewise.
566 (elf32_arm_populate_plt_entry): Likewise.
567 (elf32_arm_output_plt_map_1): Likewise.
569 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
570 Mickaël Guêné <mickael.guene@st.com>
572 * elf32-arm.c (struct fdpic_local): New.
573 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
574 (elf32_arm_local_fdpic_cnts): New.
575 (struct fdpic_global): New.
576 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
577 (elf32_arm_link_hash_table): Add srofixup field.
578 (arm_elf_add_rofixup): New.
579 (arm_elf_fill_funcdesc): New.
580 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
581 (elf32_arm_allocate_local_sym_info): Likewise.
582 (create_got_section): Create .rofixup section.
583 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
584 (bfd_elf32_arm_set_target_params): Handle FDPIC.
585 (elf32_arm_final_link_relocate): Likewise.
586 (elf32_arm_check_relocs): Likewise.
587 (allocate_dynrelocs_for_symbol): Likewise.
588 (elf32_arm_size_dynamic_sections): Likewise.
589 (elf32_arm_finish_dynamic_sections): Likewise.
590 (elf32_arm_output_arch_local_syms): Likewise.
591 (elf32_arm_fdpic_omit_section_dynsym): New.
593 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
594 Mickaël Guêné <mickael.guene@st.com>
596 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
597 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
598 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
599 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
600 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
601 (elf32_arm_howto_from_type): Take new members of
602 elf32_arm_howto_table_2 into account.
603 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
604 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
605 BFD_RELOC_ARM_FUNCDESC_VALUE.
606 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
607 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
608 BFD_RELOC_ARM_FUNCDESC_VALUE.
610 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
611 Mickaël Guêné <mickael.guene@st.com>
613 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
614 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
615 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
616 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
618 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
619 Mickaël Guêné <mickael.guene@st.com>
621 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
622 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
623 arm*-*-uclinuxfdpiceabi.
624 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
625 arm_elf32_fdpic_le_vec.
626 * configure: Regenerate.
627 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
628 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
629 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
630 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
631 (elf32_arm_fdpic_link_hash_table_create): New.
632 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
633 arm_elf32_fdpic_le_vec.
635 2018-04-25 Alan Modra <amodra@gmail.com>
637 * elf-linux-core.h: Disable gcc-8 string truncation warning.
638 * elf.c (elfcore_write_prpsinfo): Likewise.
640 2018-04-25 Alan Modra <amodra@gmail.com>
642 * Makefile.am: Remove arm-aout and arm-coff support.
643 * config.bfd: Likewise.
644 * configure.ac: Likewise.
645 * targets.c: Likewise.
646 * aout-arm.c: Delete.
647 * armnetbsd.c: Delete.
649 * Makefile.in: Regenerate.
650 * configure: Regenerate.
651 * po/SRC-POTFILES.in: Regenerate.
653 2018-04-24 Nick Clifton <nickc@redhat.com>
656 * elf.c (ignore_section_sym): Check for the output_section pointer
657 being NULL before dereferencing it.
660 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
661 a negative PE_DEBUG_DATA size before iterating over the debug data.
663 2018-04-23 Alan Modra <amodra@gmail.com>
665 * elf-linux-core.h: Revert last change.
668 2018-04-23 Nick Clifton <nickc@redhat.com>
671 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
672 the end of the string table, and zero it.
674 2018-04-23 Alan Modra <amodra@gmail.com>
676 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
677 gcc-8 string truncation warning.
678 (swap_linux_prpsinfo32_ugid16_out): Likewise.
679 (swap_linux_prpsinfo64_ugid32_out): Likewise.
680 (swap_linux_prpsinfo64_ugid16_out): Likewise.
681 * elf.c (elfcore_write_prpsinfo): Likewise.
683 2018-04-23 Nick Clifton <nickc@redhat.com>
686 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
687 the end of the string table, and zero it.
689 2018-04-20 Alan Modra <amodra@gmail.com>
692 * elf32-hppa.c (got_relocs_needed): Add extra param to special
693 case both dtprel and tprel relocs.
694 (allocate_dynrelocs): Adjust conditions for got relocs.
695 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
696 Emit dynamic relocs on TLS GOT entries for shared libraries,
697 not when pic. Omit dynamic reloc on dtprel entry when local,
698 and on tprel entry when local and executable.
700 2018-04-19 Alan Modra <amodra@gmail.com>
703 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
704 (hppa_type_of_stub): Don't return a long branch stub for
705 symbols other than those defined statically.
707 2018-04-19 Alan Modra <amodra@gmail.com>
709 * Makefile.am: Revert 2018-04-18 coff-mips changes.
710 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
711 to selvecs for mips targets change 2018-04-18.
712 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
713 and mips_ecoff_bele_vec.
714 * targets.c: Likewise.
715 * coff-mips.c: Resurrect.
716 * Makefile.in: Regenerate.
717 * configure: Regenerate.
718 * po/SRC-POTFILES.in: Regenerate.
720 2018-04-18 Alan Modra <amodra@gmail.com>
722 * Makefile.am: Remove mips aout and coff support.
723 * config.bfd: Likewise.
724 * configure.ac: Likewise.
725 * targets.c: Likewise.
726 * coff-mips.c: Delete
730 * Makefile.in: Regenerate.
731 * configure: Regenerate.
732 * po/SRC-POTFILES.in: Regenerate.
734 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
736 * elf32-i386.c (elf32_bed): Define before including
738 * elf64-x86-64.c (elf64_bed): Define before including
740 (elf32_bed): Define before including "elf32-target.h".
742 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
745 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
746 normal input file with compatible relocation.
748 2018-04-18 Alan Modra <amodra@gmail.com>
750 * Makefile.am: Remove support for assorted i386 aout and coff targets.
751 * config.bfd: Likewise.
752 * configure.ac: Likewise.
753 * doc/bfdint.texi: Likewise.
754 * targets.c: Likewise.
756 * i386dynix.c: Delete.
757 * i386freebsd.c: Delete.
758 * i386linux.c: Delete.
759 * i386mach3.c: Delete.
760 * i386netbsd.c: Delete.
761 * i386os9k.c: Delete.
762 * Makefile.in: Regenerate.
763 * configure: Regenerate.
764 * po/SRC-POTFILES.in: Regenerate.
766 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
768 Microblaze Target: PIC data text relative
770 * bfd/reloc.c (2 new BFD relocations):
771 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
772 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
773 * bfd/bfd-in2.h: Regenerate
774 * bfd/libbfd.h: Regenerate
775 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
776 new relocs and handle them in both relocate and relax functions.
777 (microblaze_elf_reloc_type_lookup): add mapping between for new
779 (microblaze_elf_relocate_section): Handle new relocs in case of
781 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
783 2018-04-17 Nick Clifton <nickc@redhat.com>
786 * aoutx.h (find_nearest_line): Check that the symbol name exists
787 and is long enough, before attempting to see if it is for a .o
789 * hash.c (bfd_hash_hash): Add an assertion that the string is not
791 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
793 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
797 * dwarf2.c (concat_filename): Check for a NULL table pointer.
799 2018-04-16 Nick Clifton <nickc@redhat.com>
802 * coffgen.c (coff_pointerize_aux): Check for an out of range
805 2018-04-16 Alan Modra <amodra@gmail.com>
807 * Makefile.am: Remove arm-epoc-pe support.
808 * coff-arm.c: Likewise.
809 * config.bfd: Likewise.
810 * configure.ac: Likewise.
811 * targets.c: Likewise.
812 * epoc-pe-arm.c: Delete.
813 * epoc-pei-arm.c: Delete.
814 * Makefile.in: Regenerate.
815 * configure: Regenerate.
816 * po/SRC-POTFILES.in: Regenerate.
818 2018-04-16 Alan Modra <amodra@gmail.com>
820 * Makefile.am: Remove sparc-aout and sparc-coff support.
821 * config.bfd: Likewise.
822 * configure.ac: Likewise.
823 * targets.c: Likewise.
824 * aout-sparcle.c: Delete.
826 * cf-sparclynx.c: Delete.
827 * coff-sparc.c: Delete.
829 * sparclinux.c: Delete.
830 * sparclynx.c: Delete.
831 * sparcnetbsd.c: Delete.
833 * Makefile.in: Regenerate.
834 * configure: Regenerate.
835 * po/SRC-POTFILES.in: Regenerate.
837 2018-04-16 Alan Modra <amodra@gmail.com>
839 * Makefile.am: Remove m68k-aout and m68k-coff support.
840 * aoutf1.h: Likewise.
842 * archive.c: Likewise.
843 * bfd-in.h: Likewise.
845 * coffcode.h: Likewise.
846 * coffswap.h: Likewise.
847 * config.bfd: Likewise.
848 * configure.ac: Likewise.
849 * configure.host: Likewise.
850 * doc/bfd.texinfo: Likewise.
851 * doc/bfdint.texi: Likewise.
852 * freebsd.h: Likewise.
853 * gen-aout.c: Likewise.
854 * hpux-core.c: Likewise.
855 * libaout.h: Likewise.
856 * libbfd-in.h: Likewise.
858 * peicode.h: Likewise.
859 * riscix.c: Likewise.
860 * targets.c: Likewise.
862 * coff-apollo.c: Delete.
863 * coff-aux.c: Delete.
864 * coff-m68k.c: Delete.
865 * coff-svm68k.c: Delete.
866 * coff-u68k.c: Delete.
867 * hosts/delta68.h: Delete.
868 * hosts/hp300bsd.h: Delete.
869 * hosts/m68kaux.h: Delete.
870 * hosts/news.h: Delete.
871 * hp300bsd.c: Delete.
872 * hp300hpux.c: Delete.
873 * liboasys.h: Delete.
874 * m68k4knetbsd.c: Delete.
875 * m68klinux.c: Delete.
876 * m68knetbsd.c: Delete.
878 * versados.c: Delete.
879 * Makefile.in: Regenerate.
880 * bfd-in2.h: Regenerate.
881 * configure: Regenerate.
882 * libbfd.h: Regenerate.
883 * po/SRC-POTFILES.in: Regenerate.
885 2018-04-16 Alan Modra <amodra@gmail.com>
887 * Makefile.am: Remove sh5 and sh64 support.
888 * archures.c: Likewise.
889 * config.bfd: Likewise.
890 * configure.ac: Likewise.
891 * cpu-sh.c: Likewise.
892 * elf32-sh-relocs.h: Likewise.
893 * elf32-sh.c: Likewise.
894 * targets.c: Likewise.
895 * elf32-sh64-com.c: Delete.
896 * elf32-sh64.c: Delete.
897 * elf32-sh64.h: Delete.
898 * elf64-sh64.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 sh-symbianelf support.
907 * config.bfd: Likewise.
908 * configure.ac: Likewise.
909 * targets.c: Likewise.
910 * elf32-sh-symbian.c: Delete.
911 * Makefile.in: Regenerate.
912 * configure: Regenerate.
913 * po/SRC-POTFILES.in: Regenerate.
915 2018-04-16 Alan Modra <amodra@gmail.com>
917 * Makefile.am: Remove vax-bsd and vax-ultrix support.
918 * config.bfd: Likewise.
919 * configure.ac: Likewise.
920 * targets.c: Likewise.
922 * Makefile.in: Regenerate.
923 * configure: Regenerate.
924 * po/SRC-POTFILES.in: Regenerate.
926 2018-04-16 Alan Modra <amodra@gmail.com>
928 * Makefile.am: Remove w65 support.
929 * archures.c: Likewise.
930 * coffcode.h: Likewise.
931 * config.bfd: Likewise.
932 * configure.ac: Likewise.
933 * targets.c: Likewise.
934 * coff-w65.c: Delete.
936 * Makefile.in: Regenerate.
937 * bfd-in2.h: Regenerate.
938 * configure: Regenerate.
939 * po/SRC-POTFILES.in: Regenerate.
941 2018-04-16 Alan Modra <amodra@gmail.com>
943 * Makefile.am: Remove we32k support.
944 * archures.c: Likewise.
945 * coffcode.h: Likewise.
946 * config.bfd: Likewise.
947 * configure.ac: Likewise.
948 * targets.c: Likewise.
949 * coff-we32k.c: Delete.
950 * cpu-we32k.c: Delete.
951 * Makefile.in: Regenerate.
952 * bfd-in2.h: Regenerate.
953 * configure: Regenerate.
954 * po/SRC-POTFILES.in: Regenerate.
956 2018-04-16 Alan Modra <amodra@gmail.com>
958 * Makefile.am: Remove m88k support.
960 * archures.c: Likewise.
961 * coffcode.h: Likewise.
962 * coffswap.h: Likewise.
963 * config.bfd: Likewise.
964 * configure.ac: Likewise.
965 * cpu-ns32k.c: Likewise.
966 * elf32-nds32.c: Likewise.
967 * mach-o.c: Likewise.
968 * netbsd-core.c: Likewise.
970 * targets.c: Likewise.
971 * coff-m88k.c: Delete.
972 * cpu-m88k.c: Delete.
973 * elf32-m88k.c: Delete.
974 * hosts/m88kmach3.h: Delete.
975 * m88kmach3.c: Delete.
976 * m88kopenbsd.c: Delete.
977 * Makefile.in: Regenerate.
978 * bfd-in2.h: Regenerate.
979 * configure: Regenerate.
980 * po/SRC-POTFILES.in: Regenerate.
982 2018-04-16 Alan Modra <amodra@gmail.com>
984 * Makefile.am: Remove i370 support.
985 * archures.c: Likewise.
986 * config.bfd: Likewise.
987 * configure.ac: Likewise.
988 * targets.c: Likewise.
989 * cpu-i370.c: Delete.
990 * elf32-i370.c: Delete.
991 * Makefile.in: Regenerate.
992 * bfd-in2.h: Regenerate.
993 * configure: Regenerate.
994 * po/SRC-POTFILES.in: Regenerate.
996 2018-04-16 Alan Modra <amodra@gmail.com>
998 * Makefile.am: Remove h8500 support.
999 * archures.c: Likewise.
1000 * coffcode.h: Likewise.
1001 * config.bfd: Likewise.
1002 * configure.ac: Likewise.
1003 * targets.c: Likewise.
1004 * coff-h8500.c: Delete.
1005 * cpu-h8500.c: Delete.
1006 * Makefile.in: Regenerate.
1007 * bfd-in2.h: Regenerate.
1008 * configure: Regenerate.
1009 * po/SRC-POTFILES.in: Regenerate.
1011 2018-04-16 Alan Modra <amodra@gmail.com>
1013 * Makefile.am: Remove h8300-coff support.
1014 * coffcode.h: Likewise.
1015 * config.bfd: Likewise.
1016 * configure.ac: Likewise.
1017 * reloc16.c: Likewise.
1018 * targets.c: Likewise.
1019 * coff-h8300.c: Delete.
1020 * Makefile.in: Regenerate.
1021 * configure: Regenerate.
1022 * po/SRC-POTFILES.in: Regenerate.
1024 2018-04-16 Alan Modra <amodra@gmail.com>
1026 * Makefile.am: Remove IEEE 695 support.
1027 * archures.c: Likewise.
1029 * config.bfd: Likewise.
1030 * configure.ac: Likewise.
1031 * doc/bfd.texinfo: Likewise.
1032 * doc/bfdint.texi: Likewise.
1033 * doc/bfdsumm.texi: Likewise.
1034 * section.c: Likewise.
1035 * targets.c: Likewise.
1037 * libieee.h: Delete.
1038 * Makefile.in: Regenerate.
1039 * bfd-in2.h: Regenerate.
1040 * configure: Regenerate.
1041 * po/SRC-POTFILES.in: Regenerate.
1043 2018-04-16 Alan Modra <amodra@gmail.com>
1045 * config.bfd: Remove tandem support.
1047 2018-04-16 Alan Modra <amodra@gmail.com>
1049 * Makefile.am: Remove newsos3 support.
1050 * aoutx.h: Likewise.
1051 * config.bfd: Likewise.
1052 * configure.ac: Likewise.
1053 * targets.c: Likewise.
1054 * newsos3.c: Delete.
1055 * Makefile.in: Regenerate.
1056 * configure: Regenerate.
1057 * po/SRC-POTFILES.in: Regenerate.
1059 2018-04-16 Alan Modra <amodra@gmail.com>
1061 * Makefile.am: Remove netware support.
1062 * bfd-in.h: Likewise.
1064 * config.bfd: Likewise.
1065 * configure.ac: Likewise.
1066 * doc/bfdint.texi: Likewise.
1067 * ecoff.c: Likewise.
1068 * targets.c: Likewise.
1070 * nlm-target.h: Delete.
1072 * nlm32-alpha.c: Delete.
1073 * nlm32-i386.c: Delete.
1074 * nlm32-ppc.c: Delete.
1075 * nlm32-sparc.c: Delete.
1078 * nlmcode.h: Delete.
1079 * nlmswap.h: Delete.
1080 * Makefile.in: Regenerate.
1081 * bfd-in2.h: Regenerate.
1082 * configure: Regenerate.
1083 * po/SRC-POTFILES.in: Regenerate.
1085 2018-04-16 Alan Modra <amodra@gmail.com>
1087 * archures.c: Remove tahoe support.
1088 * config.bfd: Likewise.
1089 * configure.ac: Likewise.
1090 * hosts/tahoe.h: Delete.
1091 * bfd-in2.h: Regenerate.
1092 * configure: Regenerate.
1094 2018-04-14 Alan Modra <amodra@gmail.com>
1096 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
1097 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
1099 (elfNN_bed): Init relropagesize.
1100 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
1101 select relropagesize.
1102 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1103 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1104 (ELF_MINPAGESIZE): Don't define.
1105 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1106 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1107 * bfd-in2.h: Regenerate.
1109 2018-04-14 Alan Modra <amodra@gmail.com>
1111 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
1112 on __QNXTARGET__ define.
1114 2018-04-14 Alan Modra <amodra@gmail.com>
1116 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
1119 2018-04-11 Alan Modra <amodra@gmail.com>
1121 * aout-adobe.c: Delete.
1123 * coff-i860.c: Delete.
1124 * coff-i960.c: Delete.
1125 * cpu-i860.c: Delete.
1126 * cpu-i960.c: Delete.
1127 * elf32-i860.c: Delete.
1128 * elf32-i960.c: Delete.
1129 * hosts/i860mach3.h: Delete.
1130 * Makefile.am: Remove i860, i960, bout, and adobe support.
1131 * archures.c: Remove i860 and i960 support.
1132 * coffcode.h: Likewise.
1133 * reloc.c: Likewise.
1134 * aoutx.h: Comment updates.
1135 * archive.c: Remove BOUT and i960 support.
1136 * bfd.c: Remove BOUT support.
1137 * coffswap.h: Remove i960 support.
1138 * config.bfd: Remove i860, i960 and adobe targets.
1139 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
1140 * targets.c: Likewise.
1141 * ieee.c: Remove i960 support.
1142 * mach-o.c: Remove i860 support.
1143 * Makefile.in: Regenerate.
1144 * bfd-in2.h: Regenerate.
1145 * configure: Regenerate.
1146 * libbfd.h: Regenerate.
1147 * po/SRC-POTFILES.in: Regenerate.
1149 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1151 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
1152 in the BFD symbol referred by the relocation.
1153 (mips_elf64_write_rela): Likewise.
1155 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1157 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
1158 error for out-of-range `r_sym' values.
1160 2018-04-09 Alan Modra <amodra@gmail.com>
1162 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
1163 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
1164 (ppc64_elf_check_relocs): Set has_pltcall.
1165 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
1166 (ppc64_elf_inline_plt): New function.
1167 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
1168 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
1169 * elf32-ppc.c (has_pltcall): Define.
1170 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
1171 (ppc_elf_check_relocs): Set has_pltcall.
1172 (ppc_elf_inline_plt): New function.
1173 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
1174 (ppc_elf_size_dynamic_sections): Likewise.
1175 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
1177 2018-04-09 Alan Modra <amodra@gmail.com>
1179 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
1180 (is_plt_seq_reloc): New function.
1181 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
1182 (ppc_elf_tls_optimize): Handle inline plt call sequence.
1183 (ppc_elf_relax_section): Handle PLTCALL reloc.
1184 (ppc_elf_relocate_section): Nop out inline plt call sequence when
1186 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
1187 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
1188 (has_tls_get_addr_call): Correct comment.
1189 (is_branch_reloc): Add PLTCALL.
1190 (is_plt_seq_reloc): New function.
1191 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
1192 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
1193 entry for R_PPC64_PLTCALL.
1194 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
1195 (ppc_type_of_stub): Handle PLTCALL reloc.
1196 (toc_adjusting_stub_needed): Likewise.
1197 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
1198 reloc insn. Nop out inline plt call sequence when resolving
1199 locally. Handle __tls_get_addr inline plt call optimization.
1201 2018-04-09 Alan Modra <amodra@gmail.com>
1203 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
1204 (struct ppc_stub_hash_entry): Add symtype field.
1206 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
1207 (create_linkage_sections): Create pltlocal and relpltlocal.
1208 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
1210 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1211 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1212 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1213 Keep PLT entries for inline calls against locals.
1214 (ppc_build_one_stub): Use pltlocal as appropriate.
1215 (ppc_size_one_stub): Likewise.
1216 (ppc64_elf_size_stubs): Set symtype.
1217 (build_global_entry_stubs_and_plt): Init pltlocal and write
1218 relpltlocal for globals.
1219 (write_plt_relocs_for_local_syms): Likewise for local syms.
1220 (ppc64_elf_relocate_section): Support PLT for local syms.
1221 * elf32-ppc.c (PLT_KEEP): Define.
1222 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
1223 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
1224 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
1225 Set PLT_KEEP. Adjust update_local_sym_info call.
1226 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1227 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1228 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1229 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
1230 (write_global_sym_plt): Init pltlocal and write relpltlocal.
1231 (ppc_finish_symbols): Likewise for locals.
1233 2018-04-09 Alan Modra <amodra@gmail.com>
1235 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
1236 for local symbols to..
1237 (write_plt_relocs_for_local_syms): ..here. New function.
1238 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
1240 (build_global_entry_stubs_and_plt): ..here. Rename from
1241 build_global_entry_stubs.
1242 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
1243 Call write_plt_relocs_for_local_syms.
1244 * elf32-ppc.c (get_sym_h): New function.
1245 (ppc_elf_relax_section): Use get_sym_h.
1246 (ppc_elf_relocate_section): Move output of PLT relocs and glink
1247 stubs for local symbols to..
1248 (ppc_finish_symbols): ..here. New function.
1249 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
1251 (write_global_sym_plt): ..here. New function.
1252 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
1253 (ppc_finish_symbols): Declare.
1255 2018-04-09 Alan Modra <amodra@gmail.com>
1257 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
1258 (ppc_elf_relocate_section): Likewise.
1259 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
1260 (ppc64_elf_relocate_section): Likewise. Correct PLT16
1261 resolution to plt entry relative to toc pointer.
1263 2018-04-09 Alan Modra <amodra@gmail.com>
1265 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1266 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
1267 file when other TLS flags are tested in a mask.
1268 (TLS_MARK, NON_GOT): Define.
1269 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1270 (update_local_sym_info): Don't create got entry when NON_GOT.
1271 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1273 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
1274 (ppc64_elf_relocate_section): Likewise.
1275 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
1276 __tls_get_addr calls lacking a marker reloc.
1277 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1278 TLS_TPRELGD): Renumber. Update comment.
1279 (TLS_MARK, NON_GOT): Define.
1280 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1281 (update_local_sym_info): Don't create got entry when NON_GOT.
1282 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1284 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
1285 __tls_get_addr calls lacking a marker reloc.
1287 2018-04-06 H.J. Lu <hongjiu.lu@intel.com>
1289 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
1290 R_X86_64_converted_reloc_bit.
1292 2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
1295 * configure: Regenerated.
1297 2018-04-05 Alan Modra <amodra@gmail.com>
1299 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
1300 (elf_hppa_info_to_howto_rel): Likewise.
1302 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1304 * elf-hppa.h (elf_hppa_info_to_howto): Also return
1305 unsuccessfully for unimplemented relocations.
1306 (elf_hppa_info_to_howto_rel): Likewise.
1308 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1310 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
1311 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
1312 howto lookup failure.
1313 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
1315 (elf32_i860_info_to_howto_rela): Likewise.
1316 (elf32_i860_relocate_splitn): Likewise.
1317 (elf32_i860_relocate_pc16): Likewise.
1318 (elf32_i860_relocate_pc26): Likewise.
1319 (elf32_i860_relocate_section): Likewise.
1321 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1323 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
1324 check for `visium_elf_howto_table' table access.
1326 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1328 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
1329 check for `iq2000_elf_howto_table' table access.
1331 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1333 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
1334 for `elf32_frv_howto_table' table access.
1336 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1338 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1339 unsuccessfully for placeholder howtos.
1340 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1341 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1343 2018-03-29 Maciej W. Rozycki <macro@mips.com>
1345 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1346 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1348 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1350 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1351 ATTRIBUTE_UNUSED from `abfd'.
1353 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1355 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1356 `_bfd_error_handler' call formatting.
1358 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1360 * elf32-mips.c (mips_info_to_howto_rel): Call
1361 `mips_elf32_rtype_to_howto' directly rather than via
1362 `->elf_backend_mips_rtype_to_howto'.
1364 2018-03-28 Renlin Li <renlin.li@arm.com>
1367 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1368 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1369 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1370 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1371 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1372 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1373 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1374 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1375 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1376 (elfNN_aarch64_final_link_relocate): Support new relocations.
1377 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1379 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1381 2018-03-28 Renlin Li <renlin.li@arm.com>
1384 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1385 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1386 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1387 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1388 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1389 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1390 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1391 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1392 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1393 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1394 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1395 TLSLE_LDST16_TPREL_LO12,
1396 TLSLE_LDST16_TPREL_LO12_NC,
1397 TLSLE_LDST32_TPREL_LO12,
1398 TLSLE_LDST32_TPREL_LO12_NC,
1399 TLSLE_LDST64_TPREL_LO12,
1400 TLSLE_LDST64_TPREL_LO12_NC,
1401 TLSLE_LDST8_TPREL_LO12,
1402 TLSLE_LDST8_TPREL_LO12_NC.
1403 * bfd-in2.h: Regenerated.
1404 * libbfd.h: Regenerated.
1406 2018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1409 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1410 has_old_style_got_reloc.
1411 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1412 relocations. Fix a couple of long lines.
1413 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1414 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1417 2018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1420 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1421 ENDBR64 to the TLSDESC PLT entry.
1423 2018-03-21 Alan Modra <amodra@gmail.com>
1425 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1426 symbols. Use size_t counts. Delete redundant opd test.
1428 2018-03-21 Alan Modra <amodra@gmail.com>
1430 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1432 2018-03-21 Alan Modra <amodra@gmail.com>
1434 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1436 (update_local_sym_info): Likewise for local_got_tls_masks.
1437 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1439 2018-03-21 Alan Modra <amodra@gmail.com>
1441 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1442 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1443 do in size_dynamic_sections.
1445 2018-03-21 Alan Modra <amodra@gmail.com>
1447 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1448 without first checking array bounds.
1449 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1451 2018-03-20 H.J. Lu <hongjiu.lu@intel.com>
1454 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
1455 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
1457 2018-03-19 Nick Clifton <nickc@redhat.com>
1459 * po/es.po: Updated Spanish translation.
1461 2018-03-15 Max Filippov <jcmvbkbc@gmail.com>
1463 * elf32-xtensa.c (xlate_map_entry): Change types of address
1464 fields from 'unsigned' to 'bfd_vma'.
1465 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
1466 the key argument to bsearch. Allow offsets past the end of a
1467 section, use the last map entry for translation of such offsets.
1469 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1471 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
1472 Not support the target feature.
1473 (nds32_elf_ex9_itb_base): Likewise.
1474 (nds32_elf_ex9_import_table): Likewise.
1475 (nds32_elf_ex9_finish): Likewise.
1476 (nds32_elf_ex9_reloc_jmp): Likewise.
1477 (nds32_elf_get_insn_with_reg): Likewise.
1478 (nds32_get_local_syms): Likewise.
1479 (nds32_elf_ex9_replace_instruction): Likewise.
1480 (nds32_elf_ifc_calc): Likewise.
1481 (nds32_elf_ifc_finish): Likewise.
1482 (nds32_elf_ifc_replace): Likewise.
1483 (nds32_elf_ifc_reloc): Likewise.
1485 2018-03-14 Alan Modra <amodra@gmail.com>
1487 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
1488 sfpr size added before defining alias symbols.
1489 (ppc64_elf_build_stubs): Add stub section padding before
1490 copying sfpr contents and defining save/restore alias symbols.
1492 2018-03-14 H.J. Lu <hongjiu.lu@intel.com>
1495 * elflink.c (elf_gc_mark_debug_section): Also check the local
1496 debug definition section.
1498 2018-03-13 Nick Clifton <nickc@redhat.com>
1501 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
1502 function. Add an end address parameter. Check access of the data
1503 pointer to make sure that they do not extend beyond the end
1504 address. Return FALSE if any check fails. Add the end address
1505 pointer to the ui structure.
1506 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
1507 codes to make sure that they do not extend beyond the end address
1508 pointer. Print an error message and return immediately if any
1511 2018-03-09 Nick Clifton <nickc@redhat.com>
1513 * elf64-s390.c (elf_s390_relocate_section): Move check for
1514 relocations against non-allocated sections to before the code that
1515 handles ifunc relocations.
1516 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1517 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
1518 relocs against IFUNC symbols in non-allocated sections as relocs
1519 against FUNC symbols.
1520 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1522 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
1525 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
1526 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
1527 relocation against FUNC symbol.
1528 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1530 2018-03-07 Renlin Li <renlin.li@arm.com>
1533 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
1534 symbol, and don't emit relocation in specific case.
1536 2018-03-07 Alan Modra <amodra@gmail.com>
1538 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
1539 (mips_elf64_slurp_one_reloc_table): Pass on error.
1541 2018-03-03 James Cowgill <james.cowgill@mips.com>
1542 Maciej W. Rozycki <macro@mips.com>
1545 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
1546 after calling `undefined_symbol' hook if this is an error
1547 condition. Assume the value of 0 for the symbol requested
1550 2018-03-02 Jim Wilson <jimw@sifive.com>
1553 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
1554 and nop instead of 4.
1555 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
1558 2018-03-01 Jim Wilson <jimw@sifive.com>
1561 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
1562 else if instead of if.
1564 2018-03-01 Alan Modra <amodra@gmail.com>
1566 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
1568 2018-02-28 Alan Modra <amodra@gmail.com>
1571 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
1573 2018-02-28 Nick Clifton <nickc@redhat.com>
1577 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
1578 pointer. Drop unused abfd parameter. Check the size of the block
1579 before initialising the data field. Return the end pointer if the
1581 (read_attribute_value): Adjust invocations of read_n_bytes.
1584 * dwarf1.c (parse_die): Check the length of form blocks before
1585 advancing the data pointer.
1587 2018-02-28 Alan Modra <amodra@gmail.com>
1590 * aoutx.h (translate_symbol_table): Print an error message and set
1591 bfd_error on finding an invalid name string offset.
1593 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
1595 * config.in: Regenerated.
1596 * configure: Likewise.
1597 * configure.ac: Add --enable-separate-code.
1598 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
1599 to 1 for Linux/x86 targets,
1600 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
1601 DEFAULT_LD_Z_SEPARATE_CODE is 1.
1603 2018-02-27 Nick Clifton <nickc@redhat.com>
1605 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
1607 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
1608 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
1609 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
1610 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
1611 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1612 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
1613 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1614 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
1615 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
1618 * elf-bfd.h (struct elf_backend_data): Change the return type of
1619 the elf_info_to_howto and elf_info_to_howto_rel function pointers
1621 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
1622 value from the info_to_howto function and fail if that function
1624 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
1625 from the info_to_howto function.
1626 (elf32_h8_relax_section): Likewise.
1627 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1628 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1629 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1630 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1631 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1632 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1633 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
1634 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
1635 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1636 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
1637 (riscv_elf_relocate_section): Likewise.
1638 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
1639 bfd_boolean. Issue an error message, set an error value and
1640 return FALSE if the reloc is not recognized.
1641 (elf_hppa_info_to_howto_rel): Likewise.
1642 * elf-m10200.c (mn10200_info_to_howto): Likewise.
1643 * elf-m10300.c (mn10300_info_to_howto): Likewise.
1644 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
1645 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
1646 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
1647 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
1648 * elf32-bfin.c (bfin_info_to_howto): Likewise.
1649 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
1650 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
1651 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
1652 (cris_info_to_howto_rela): Likewise.
1653 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
1654 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
1655 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
1657 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
1658 (elf32_dlx_info_to_howto_rel): Likewise.
1659 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
1660 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
1661 * elf32-frv.c (frv_info_to_howto_rela)
1662 (frvfdpic_info_to_howto_rel): Likewise.
1663 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
1664 * elf32-gen.c (elf_generic_info_to_howto)
1665 (elf_generic_info_to_howto_rel): Likewise.
1666 * elf32-h8300.c (elf32_h8_info_to_howto)
1667 (elf32_h8_info_to_howto_rel): Likewise.
1668 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1669 * elf32-i386.c (elf_i386_reloc_type_lookup)
1670 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
1671 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
1673 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
1674 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
1675 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
1676 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
1677 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
1678 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
1680 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
1681 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
1682 * elf32-m68k.c (rtype_to_howto): Likewise.
1683 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1684 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
1685 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
1686 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1687 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1689 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
1690 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
1691 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
1692 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
1694 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
1695 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
1696 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1697 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1698 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
1699 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
1700 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
1701 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
1702 * elf32-score.c (s3_bfd_score_info_to_howto)
1703 (_bfd_score_info_to_howto): Likewise.
1704 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1705 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
1706 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
1707 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
1708 (elf32_tic6x_info_to_howto_rel): Likewise.
1709 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
1710 * elf32-v850.c (v850_elf_info_to_howto_rel)
1711 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
1712 * elf32-vax.c (rtype_to_howto): Likewise.
1713 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
1714 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
1715 (elf32_wasm32_info_to_howto_rela): Likewise.
1716 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
1717 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
1718 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
1719 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
1720 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
1721 * elf64-gen.c (elf_generic_info_to_howto)
1722 (elf_generic_info_to_howto_rel): Likewise.
1723 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
1724 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
1725 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
1726 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
1727 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1728 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
1730 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
1731 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1733 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
1734 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
1735 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
1736 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1737 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
1738 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
1739 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
1740 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
1741 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
1742 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
1745 2018-02-26 Jim Wilson <jimw@sifive.com>
1746 Stephan Schreiber <info@fs-driver.org>
1749 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
1750 call, set changed_contents and changed_relocs. Likewise after
1751 successful ia64_elf_relax_br call.
1753 2018-02-26 Alan Modra <amodra@gmail.com>
1755 * elf.c (assign_file_positions_except_relocs): Don't segfault
1756 when actual number of phdrs is less than allocated. Delete
1757 outdated comment. Formatting.
1759 2018-02-26 Alan Modra <amodra@gmail.com>
1761 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
1762 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
1763 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
1764 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
1765 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
1766 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
1767 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
1768 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
1769 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
1770 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
1771 error/warning messages.
1773 2018-02-26 Alan Modra <amodra@gmail.com>
1775 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
1776 * syms.c: Standardize error/warning messages.
1778 2018-02-26 Alan Modra <amodra@gmail.com>
1780 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
1781 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
1782 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
1783 * peXXigen.c, * peicode.h: Standardize error/warning messages.
1785 2018-02-26 Alan Modra <amodra@gmail.com>
1787 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
1789 2018-02-26 Alan Modra <amodra@gmail.com>
1791 * elfxx-mips.c: Standardize error/warning messages.
1793 2018-02-26 Alan Modra <amodra@gmail.com>
1795 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
1796 * elflink.c: Standardize error/warning messages. Replace use of
1797 linker callback einfo with _bfd_error_handler when possible.
1799 2018-02-26 Alan Modra <amodra@gmail.com>
1801 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
1802 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
1803 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
1804 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
1805 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
1806 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
1807 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
1808 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
1809 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
1810 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
1811 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
1812 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
1813 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
1814 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
1815 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
1816 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
1817 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
1818 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
1819 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
1820 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
1821 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
1822 unrecognized/unsupported reloc message.
1824 2018-02-26 Alan Modra <amodra@gmail.com>
1826 * elf32-ppc.c: Standardize error/warning messages. Use
1827 _bfd_error_handler rather than einfo when einfo features not used.
1828 * elf64-ppc.c: Likewise.
1830 2018-02-23 Alan Modra <amodra@gmail.com>
1833 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
1834 segment if no matching LOAD segment.
1836 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1838 * elf32-nds32.h: Define mask for ict_model.
1840 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
1842 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
1844 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1847 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
1849 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
1850 .reginfo section has wrong size.
1852 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1854 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
1855 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
1856 `.MIPS.abiflags' sections.
1857 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
1860 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1862 * section.c (SEC_FIXED_SIZE): New macro.
1863 * bfd-in2.h: Regenerate.
1865 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1867 * section.c (SEC_HAS_GOT_REF): Remove macro.
1868 * bfd-in2.h: Regenerate.
1870 2018-02-19 Alan Modra <amodra@gmail.com>
1872 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
1874 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
1875 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
1876 (_bfd_riscv_relax_pc): Likewise and fix typos.
1877 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
1878 * libbfd.h: Regenerate.
1880 2018-02-19 Alan Modra <amodra@gmail.com>
1882 * dwarf2.c (read_section): Don't use 'll' format modifier.
1883 (find_abstract_instance): Likewise.
1884 * elfcore.h (elf_core_file_p): Likewise.
1886 2018-02-19 Alan Modra <amodra@gmail.com>
1888 * bfd-in.h: Include inttypes.h or if not available define
1889 PRId64, PRIu64 and PRIx64.
1890 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
1891 modifier to print bfd_vma.
1892 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
1893 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
1894 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
1895 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
1896 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
1897 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
1898 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
1899 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
1900 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
1901 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
1902 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
1903 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
1904 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
1905 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
1906 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
1907 and cast input to uint64_t, and similarly for Ld and Lu.
1908 * bfd-in2.h: Regenerate.
1910 2018-02-19 Alan Modra <amodra@gmail.com>
1912 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
1913 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
1914 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
1915 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
1916 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
1917 * reloc.c: Replace use of %R and %T in format strings passed to
1918 einfo and friends by %pR and %pT.
1920 2018-02-19 Alan Modra <amodra@gmail.com>
1922 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
1924 * aout-adobe.c: Update all messages using %A and %B.
1925 * aout-cris.c: Likewise.
1926 * aoutx.h: Likewise.
1927 * archive.c: Likewise.
1928 * binary.c: Likewise.
1929 * cache.c: Likewise.
1930 * coff-alpha.c: Likewise.
1931 * coff-arm.c: Likewise.
1932 * coff-i860.c: Likewise.
1933 * coff-mcore.c: Likewise.
1934 * coff-ppc.c: Likewise.
1935 * coff-rs6000.c: Likewise.
1936 * coff-sh.c: Likewise.
1937 * coff-tic4x.c: Likewise.
1938 * coff-tic54x.c: Likewise.
1939 * coff-tic80.c: Likewise.
1940 * coff64-rs6000.c: Likewise.
1941 * coffcode.h: Likewise.
1942 * coffgen.c: Likewise.
1943 * cofflink.c: Likewise.
1944 * coffswap.h: Likewise.
1945 * compress.c: Likewise.
1946 * cpu-arm.c: Likewise.
1947 * ecoff.c: Likewise.
1948 * elf-attrs.c: Likewise.
1949 * elf-eh-frame.c: Likewise.
1950 * elf-ifunc.c: Likewise.
1951 * elf-m10300.c: Likewise.
1952 * elf-properties.c: Likewise.
1953 * elf-s390-common.c: Likewise.
1955 * elf32-arc.c: Likewise.
1956 * elf32-arm.c: Likewise.
1957 * elf32-avr.c: Likewise.
1958 * elf32-bfin.c: Likewise.
1959 * elf32-cr16.c: Likewise.
1960 * elf32-cr16c.c: Likewise.
1961 * elf32-cris.c: Likewise.
1962 * elf32-crx.c: Likewise.
1963 * elf32-d10v.c: Likewise.
1964 * elf32-d30v.c: Likewise.
1965 * elf32-epiphany.c: Likewise.
1966 * elf32-fr30.c: Likewise.
1967 * elf32-frv.c: Likewise.
1968 * elf32-gen.c: Likewise.
1969 * elf32-hppa.c: Likewise.
1970 * elf32-i370.c: Likewise.
1971 * elf32-i386.c: Likewise.
1972 * elf32-i960.c: Likewise.
1973 * elf32-ip2k.c: Likewise.
1974 * elf32-iq2000.c: Likewise.
1975 * elf32-lm32.c: Likewise.
1976 * elf32-m32c.c: Likewise.
1977 * elf32-m32r.c: Likewise.
1978 * elf32-m68hc11.c: Likewise.
1979 * elf32-m68hc12.c: Likewise.
1980 * elf32-m68hc1x.c: Likewise.
1981 * elf32-m68k.c: Likewise.
1982 * elf32-mcore.c: Likewise.
1983 * elf32-mep.c: Likewise.
1984 * elf32-metag.c: Likewise.
1985 * elf32-microblaze.c: Likewise.
1986 * elf32-moxie.c: Likewise.
1987 * elf32-msp430.c: Likewise.
1988 * elf32-mt.c: Likewise.
1989 * elf32-nds32.c: Likewise.
1990 * elf32-nios2.c: Likewise.
1991 * elf32-or1k.c: Likewise.
1992 * elf32-pj.c: Likewise.
1993 * elf32-ppc.c: Likewise.
1994 * elf32-rl78.c: Likewise.
1995 * elf32-rx.c: Likewise.
1996 * elf32-s390.c: Likewise.
1997 * elf32-score.c: Likewise.
1998 * elf32-score7.c: Likewise.
1999 * elf32-sh-symbian.c: Likewise.
2000 * elf32-sh.c: Likewise.
2001 * elf32-sh64.c: Likewise.
2002 * elf32-sparc.c: Likewise.
2003 * elf32-spu.c: Likewise.
2004 * elf32-tic6x.c: Likewise.
2005 * elf32-tilepro.c: Likewise.
2006 * elf32-v850.c: Likewise.
2007 * elf32-vax.c: Likewise.
2008 * elf32-visium.c: Likewise.
2009 * elf32-wasm32.c: Likewise.
2010 * elf32-xgate.c: Likewise.
2011 * elf32-xtensa.c: Likewise.
2012 * elf64-alpha.c: Likewise.
2013 * elf64-gen.c: Likewise.
2014 * elf64-hppa.c: Likewise.
2015 * elf64-ia64-vms.c: Likewise.
2016 * elf64-mmix.c: Likewise.
2017 * elf64-ppc.c: Likewise.
2018 * elf64-s390.c: Likewise.
2019 * elf64-sh64.c: Likewise.
2020 * elf64-sparc.c: Likewise.
2021 * elf64-x86-64.c: Likewise.
2022 * elfcode.h: Likewise.
2023 * elfcore.h: Likewise.
2024 * elflink.c: Likewise.
2025 * elfnn-aarch64.c: Likewise.
2026 * elfnn-ia64.c: Likewise.
2027 * elfnn-riscv.c: Likewise.
2028 * elfxx-mips.c: Likewise.
2029 * elfxx-sparc.c: Likewise.
2030 * elfxx-tilegx.c: Likewise.
2031 * elfxx-x86.c: Likewise.
2032 * hpux-core.c: Likewise.
2035 * libbfd.c: Likewise.
2036 * linker.c: Likewise.
2037 * mach-o.c: Likewise.
2038 * merge.c: Likewise.
2040 * oasys.c: Likewise.
2041 * pdp11.c: Likewise.
2042 * pe-mips.c: Likewise.
2043 * peXXigen.c: Likewise.
2044 * peicode.h: Likewise.
2045 * reloc.c: Likewise.
2046 * rs6000-core.c: Likewise.
2048 * stabs.c: Likewise.
2049 * vms-alpha.c: Likewise.
2050 * xcofflink.c: Likewise.
2052 2018-02-19 Alan Modra <amodra@gmail.com>
2055 * elf.c (IS_TBSS): Define.
2056 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
2057 (assign_file_positions_for_non_load_sections): Revert last change.
2058 Properly calculate load segment limits to compare against relro limits.
2060 2018-02-17 Alan Modra <amodra@gmail.com>
2063 * elf.c (assign_file_positions_for_non_load_sections): Ignore
2064 degenerate zero size PT_LOAD segments when finding one overlapping
2065 the PT_GNU_RELRO segment.
2067 2018-02-16 Alan Modra <amodra@gmail.com>
2069 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
2070 (_bfd_bool_bfd_true): Rename from bfd_true.
2071 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
2072 (_bfd_int_bfd_0): Rename from bfd_0.
2073 (_bfd_uint_bfd_0): Rename from bfd_0u.
2074 (_bfd_long_bfd_0): Rename from bfd_0l.
2075 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
2076 (_bfd_void_bfd): Rename from bfd_void.
2077 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
2078 (_bfd_bool_bfd_link_false_error),
2079 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
2080 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
2081 (_bfd_bool_bfd_asection_bfd_asection_true),
2082 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
2083 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
2084 * archive.c (_bfd_noarchive_get_elt_at_index),
2085 (_bfd_noarchive_openr_next_archived_file),
2086 (_bfd_noarchive_construct_extended_name_table),
2087 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
2088 (_bfd_noarchive_write_armap): New functions.
2089 * archures.c (_bfd_nowrite_set_arch_mach): New function.
2090 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
2091 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
2092 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
2093 (alpha_ecoff_swap_coff_lineno_out),
2094 (alpha_ecoff_swap_coff_reloc_out): New functions.
2095 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
2096 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
2097 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
2098 (mips_ecoff_swap_coff_lineno_out),
2099 (mips_ecoff_swap_coff_reloc_out): New functions.
2100 * coffcode.h (coff_set_alignment_hook): Replace define with
2102 (symname_in_debug_hook): Likewise.
2103 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
2104 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
2105 * elf.c (assign_file_positions_except_relocs): Test
2106 elf_backend_allow_non_load_phdr for NULL.
2107 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
2108 _bfd_elf_link_omit_section_dynsym. Update uses.
2109 (_bfd_elf_omit_section_dynsym_all): New function.
2110 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
2111 (_bfd_elf_omit_section_dynsym_default): Declare.
2112 (_bfd_elf_omit_section_dynsym_all): Declare.
2113 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
2114 (_bfd_nolink_bfd_get_relocated_section_contents),
2115 (_bfd_nolink_bfd_lookup_section_flags),
2116 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
2117 (_bfd_nolink_bfd_link_hash_table_create),
2118 (_bfd_nolink_bfd_link_just_syms),
2119 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
2120 (_bfd_nolink_bfd_link_split_section),
2121 (_bfd_nolink_section_already_linked),
2122 (_bfd_nolink_bfd_define_common_symbol),
2123 (_bfd_nolink_bfd_define_start_stop): New functions.
2124 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
2125 (_bfd_norelocs_bfd_reloc_name_lookup),
2126 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
2127 * section.c (_bfd_nowrite_set_section_contents): New function.
2128 * syms.c (_bfd_nosymbols_canonicalize_symtab),
2129 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
2130 (_bfd_nosymbols_get_symbol_version_string),
2131 (_bfd_nosymbols_bfd_is_local_label_name),
2132 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
2133 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
2134 (_bfd_nosymbols_bfd_make_debug_symbol),
2135 ( _bfd_nosymbols_read_minisymbols),
2136 ( _bfd_nosymbols_minisymbol_to_symbol),
2137 (_bfd_nodynamic_get_synthetic_symtab): New functions.
2138 * libbfd-in.h: Declare new functions. Update existing defines,
2140 * aix386-core.c: Update to use new hooks. Formatting.
2141 * aout-adobe.c: Likewise.
2142 * aout-arm.c: Likewise.
2143 * aout-target.h: Likewise.
2144 * aout-tic30.c: Likewise.
2145 * aoutf1.h: Likewise.
2146 * binary.c: Likewise.
2148 * cisco-core.c: Likewise.
2149 * coff-alpha.c: Likewise.
2150 * coff-i386.c: Likewise.
2151 * coff-i860.c: Likewise.
2152 * coff-i960.c: Likewise.
2153 * coff-ia64.c: Likewise.
2154 * coff-mips.c: Likewise.
2155 * coff-ppc.c: Likewise.
2156 * coff-rs6000.c: Likewise.
2157 * coff-sh.c: Likewise.
2158 * coff-tic30.c: Likewise.
2159 * coff-tic54x.c: Likewise.
2160 * coff-x86_64.c: Likewise.
2161 * coff64-rs6000.c: Likewise.
2162 * coffcode.h: Likewise.
2163 * elf-m10300.c: Likewise.
2164 * elf32-cr16.c: Likewise.
2165 * elf32-lm32.c: Likewise.
2166 * elf32-m32r.c: Likewise.
2167 * elf32-metag.c: Likewise.
2168 * elf32-score.c: Likewise.
2169 * elf32-score7.c: Likewise.
2170 * elf32-tilepro.c: Likewise.
2171 * elf32-xstormy16.c: Likewise.
2172 * elf32-xtensa.c: Likewise.
2173 * elf64-alpha.c: Likewise.
2174 * elf64-hppa.c: Likewise.
2175 * elf64-ia64-vms.c: Likewise.
2176 * elf64-mmix.c: Likewise.
2177 * elf64-sh64.c: Likewise.
2178 * elfnn-ia64.c: Likewise.
2179 * elfxx-sparc.c: Likewise.
2180 * elfxx-target.h: Likewise.
2181 * elfxx-tilegx.c: Likewise.
2182 * elfxx-x86.h: Likewise.
2183 * hp300hpux.c: Likewise.
2184 * hppabsd-core.c: Likewise.
2185 * hpux-core.c: Likewise.
2186 * i386msdos.c: Likewise.
2187 * i386os9k.c: Likewise.
2190 * irix-core.c: Likewise.
2191 * libaout.h: Likewise.
2192 * libecoff.h: Likewise.
2193 * mach-o-target.c: Likewise.
2194 * mach-o.c: Likewise.
2195 * mipsbsd.c: Likewise.
2197 * netbsd-core.c: Likewise.
2198 * nlm-target.h: Likewise.
2199 * oasys.c: Likewise.
2200 * osf-core.c: Likewise.
2201 * pdp11.c: Likewise.
2202 * pe-mips.c: Likewise.
2203 * pe-x86_64.c: Likewise.
2205 * plugin.c: Likewise.
2206 * ppcboot.c: Likewise.
2207 * ptrace-core.c: Likewise.
2208 * sco5-core.c: Likewise.
2210 * sparclynx.c: Likewise.
2212 * tekhex.c: Likewise.
2213 * trad-core.c: Likewise.
2214 * verilog.c: Likewise.
2215 * versados.c: Likewise.
2216 * vms-alpha.c: Likewise.
2217 * vms-lib.c: Likewise.
2218 * wasm-module.c: Likewise.
2220 * libbfd.h: Regenerate.
2222 2018-02-15 Jim Wilson <jimw@sifive.com>
2224 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
2225 symbols whose section address is zero.
2227 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
2228 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
2229 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
2230 Add %X%P to error messages.
2232 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
2235 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2236 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
2237 and assert that the result of the call is not NULL.
2239 2018-02-14 Nick Clifton <nickc@redhat.com>
2242 Revert previous delta. Add extra casts to avoid compile time
2244 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
2245 cast to avoid warning from gcc v8 compiler.
2246 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2247 (_bfd_generic_bfd_set_private_flags): Likewise.
2248 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2249 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2250 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2251 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2252 (_bfd_noarchive_construct_extended_name_table): Likewise.
2253 (_bfd_noarchive_truncate_arname): Likewise.
2254 (_bfd_noarchive_write_ar_hdr): Likewise.
2255 (_bfd_noarchive_get_elt_at_index): Likewise.
2256 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2257 (_bfd_nosymbols_print_symbol): Likewise.
2258 (_bfd_nosymbols_get_symbol_info): Likewise.
2259 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2260 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2261 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2262 (_bfd_nosymbols_get_lineno): Likewise.
2263 (_bfd_nosymbols_find_nearest_line): Likewise.
2264 (_bfd_nosymbols_find_line): Likewise.
2265 (_bfd_nosymbols_find_inliner_info): Likewise.
2266 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2267 (_bfd_nosymbols_read_minisymbols): Likewise.
2268 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2269 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2270 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2271 (_bfd_nowrite_set_arch_mach): Likewise.
2272 (_bfd_nowrite_set_section_contents): Likewise.
2273 (_bfd_nolink_sizeof_headers): Likewise.
2274 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2275 (_bfd_nolink_bfd_relax_section): Likewise.
2276 (_bfd_nolink_bfd_gc_sections): Likewise.
2277 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2278 (_bfd_nolink_bfd_merge_sections): Likewise.
2279 (_bfd_nolink_bfd_is_group_section): Likewise.
2280 (_bfd_nolink_bfd_discard_group): Likewise.
2281 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2282 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2283 (_bfd_nolink_bfd_link_just_syms): Likewise.
2284 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2285 (_bfd_nolink_bfd_final_link): Likewise.
2286 (_bfd_nolink_bfd_link_split_section): Likewise.
2287 (_bfd_nolink_section_already_linked): Likewise.
2288 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2289 (_bfd_nolink_bfd_define_start_stop): Likewise.
2290 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2291 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2292 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2293 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2294 * libbfd.c (bfd_false_any): Delete.
2295 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
2296 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
2297 * libbfd.h (extern): Regenerate
2298 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
2299 cast to avoid warning from gcc v8 compiler.
2300 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2301 * binary.c (binary_get_symbol_info): Likewise.
2302 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2303 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2304 * coffcode.h (coff_set_alignment_hook): Likewise.
2305 (symname_in_debug_hook): Likewise.
2306 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2307 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2308 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2309 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2310 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2311 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2312 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2313 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2314 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2315 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2316 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2317 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2318 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2319 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2320 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2321 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2322 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2323 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2324 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2325 (bfd_elfNN_bfd_set_private_flags): Likewise.
2326 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2327 (elf_backend_init_index_section): Likewise.
2328 (elf_backend_allow_non_load_phdr): Likewise.
2329 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2330 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2331 * ieee.c (ieee_construct_extended_name_table): Likewise.
2332 (ieee_write_armap): Likewise.
2333 (ieee_write_ar_hdr): Likewise.
2334 (ieee_bfd_is_target_special_symbol): Likewise.
2335 * ihex.c (ihex_canonicalize_symtab): Likewise.
2336 (ihex_bfd_is_target_special_symbol): Likewise.
2337 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2338 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2339 (_bfd_ecoff_set_alignment_hook): Likewise.
2340 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2341 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2342 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2343 * oasys.c (oasys_construct_extended_name_table): Likewise.
2344 (oasys_write_armap): Likewise.
2345 (oasys_write_ar_hdr): Likewise.
2346 (oasys_bfd_is_target_special_symbol): Likewise.
2347 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2348 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2349 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2350 * som.c (som_bfd_is_target_special_symbol): Likewise.
2351 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2352 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2353 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2354 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2355 (versados_bfd_reloc_name_lookup): Likewise.
2356 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2357 (vms_bfd_define_start_stop): Likewise.
2358 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2359 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2360 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2362 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2365 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2366 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2367 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2368 R_X86_64_PC32 reloc against dynamic function in data section.
2369 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2370 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2371 against dynamic function in data section.
2372 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2373 function address only if pcrel_plt is true.
2374 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2375 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2376 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2377 PC-relative relocation against a function definition in data
2378 secton in PIE. Remove the obsolete comments.
2379 (elf_x86_link_hash_table): Add pcrel_plt.
2381 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2383 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2384 instead of bfd_link_pic, for building shared library.
2386 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2389 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2390 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2391 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2392 against protected function in shared object.
2394 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2397 * po/ru.po: Fix typo in Russian translation.
2399 2018-02-13 Maciej W. Rozycki <macro@mips.com>
2401 * wasm-module.c (wasm_scan_name_function_section): Rename
2402 `index' local variable to `idx'.
2404 2018-02-13 Nick Clifton <nickc@redhat.com>
2407 Fix compile time warnings generated by gcc version 8.
2408 * libbfd-in.h: Remove extraneous text from prototypes.
2409 Add prototypes for bfd_false_any, bfd_true_any,
2410 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2411 bfd_n1_any, bfd_void_any.
2412 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2414 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2415 (_bfd_generic_bfd_set_private_flags): Likewise.
2416 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2417 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2418 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2419 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2420 (_bfd_noarchive_construct_extended_name_table): Likewise.
2421 (_bfd_noarchive_truncate_arname): Likewise.
2422 (_bfd_noarchive_write_ar_hdr): Likewise.
2423 (_bfd_noarchive_get_elt_at_index): Likewise.
2424 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2425 (_bfd_nosymbols_print_symbol): Likewise.
2426 (_bfd_nosymbols_get_symbol_info): Likewise.
2427 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2428 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2429 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2430 (_bfd_nosymbols_get_lineno): Likewise.
2431 (_bfd_nosymbols_find_nearest_line): Likewise.
2432 (_bfd_nosymbols_find_line): Likewise.
2433 (_bfd_nosymbols_find_inliner_info): Likewise.
2434 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2435 (_bfd_nosymbols_read_minisymbols): Likewise.
2436 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2437 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2438 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2439 (_bfd_nowrite_set_arch_mach): Likewise.
2440 (_bfd_nowrite_set_section_contents): Likewise.
2441 (_bfd_nolink_sizeof_headers): Likewise.
2442 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2443 (_bfd_nolink_bfd_relax_section): Likewise.
2444 (_bfd_nolink_bfd_gc_sections): Likewise.
2445 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2446 (_bfd_nolink_bfd_merge_sections): Likewise.
2447 (_bfd_nolink_bfd_is_group_section): Likewise.
2448 (_bfd_nolink_bfd_discard_group): Likewise.
2449 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2450 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2451 (_bfd_nolink_bfd_link_just_syms): Likewise.
2452 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2453 (_bfd_nolink_bfd_final_link): Likewise.
2454 (_bfd_nolink_bfd_link_split_section): Likewise.
2455 (_bfd_nolink_section_already_linked): Likewise.
2456 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2457 (_bfd_nolink_bfd_define_start_stop): Likewise.
2458 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2459 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2460 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2461 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2462 * libbfd.c (bfd_false_any): New function. Like bfd_false but
2463 accepts one or more arguments.
2464 (bfd_true_any): Likewise.
2465 (bfd_nullvoidptr_any): Likewise.
2466 (bfd_0_any): Likewise.
2467 (bfd_0u_any): Likewise.
2468 (bfd_0l_any): Likewise.
2469 (_bfd_n1_any): Likewise.
2470 (bfd_void_any): Likewise.
2471 * libbfd.h (extern): Regenerate
2472 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
2473 based dummy function.
2474 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2475 * binary.c (binary_get_symbol_info): Likewise.
2476 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2477 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2478 * coffcode.h (coff_set_alignment_hook): Likewise.
2479 (symname_in_debug_hook): Likewise.
2480 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2481 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2482 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2483 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2484 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2485 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2486 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2487 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2488 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2489 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2490 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2491 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2492 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2493 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2494 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2495 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2496 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2497 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2498 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2499 (bfd_elfNN_bfd_set_private_flags): Likewise.
2500 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2501 (elf_backend_init_index_section): Likewise.
2502 (elf_backend_allow_non_load_phdr): Likewise.
2503 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2504 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2505 * ieee.c (ieee_construct_extended_name_table): Likewise.
2506 (ieee_write_armap): Likewise.
2507 (ieee_write_ar_hdr): Likewise.
2508 (ieee_bfd_is_target_special_symbol): Likewise.
2509 * ihex.c (ihex_canonicalize_symtab): Likewise.
2510 (ihex_bfd_is_target_special_symbol): Likewise.
2511 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2512 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2513 (_bfd_ecoff_set_alignment_hook): Likewise.
2514 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2515 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2516 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2517 * oasys.c (oasys_construct_extended_name_table): Likewise.
2518 (oasys_write_armap): Likewise.
2519 (oasys_write_ar_hdr): Likewise.
2520 (oasys_bfd_is_target_special_symbol): Likewise.
2521 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2522 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2523 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2524 * som.c (som_bfd_is_target_special_symbol): Likewise.
2525 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2526 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2527 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2528 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2529 (versados_bfd_reloc_name_lookup): Likewise.
2530 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2531 (vms_bfd_define_start_stop): Likewise.
2532 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2533 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2534 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2535 * elf32-arc.c (get_replace_function): Assign replacement function
2537 * elf32-i370.c (i370_noop): Update prototype.
2539 2018-02-13 Alan Modra <amodra@gmail.com>
2542 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
2543 relocation sections. If size reduces to just the flag word,
2544 remove that too and mark with SEC_EXCLUDE.
2545 * elflink.c (bfd_elf_final_link): Strip empty group sections.
2547 2018-02-13 Alan Modra <amodra@gmail.com>
2550 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
2553 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
2555 * i386msdos.c (msdos_mkobject); New function.
2556 (msdos_object_p): New function.
2557 (i386_msdos_vec): Use msdos_object_p as the check_format
2559 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
2560 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
2562 * peXXigen.c: Likewise.
2563 * coff-ia64.c: Likewise.
2565 2018-02-12 Nick Clifton <nickc@redhat.com>
2567 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
2569 * elf32-arc.c (elf_arc_relocate_section): Likewise.
2571 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
2573 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
2574 (sparc_elf_append_rela): Assert that there is enough room in section.
2575 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
2576 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
2577 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
2578 For a symbol subject to a GOT relocation, reserve a slot in the
2579 relocation section if the symbol isn't dynamic and we are in PIC mode.
2580 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
2581 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
2582 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
2583 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
2584 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
2585 resolved_to_zero. Do not generate a dynamic GOT relocation for an
2586 undefined weak symbol with non-default visibility. Remove superfluous
2587 'else' and fix formatting.
2589 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
2591 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
2593 (i386_elf32_sol2_vec): Don't declare.
2594 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
2595 Don't set need_global_offset_table.
2596 (elf_i386_solaris_arch_bed): New.
2597 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
2599 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
2600 target_os != is_nacl instead of target_os == is_normal.
2601 (x86_64_elf64_sol2_vec): Don't declare.
2602 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
2603 is_nacl instead of target_os == is_normal. Don't set
2604 need_global_offset_table.
2605 (elf_x86_64_solaris_arch_bed): New.
2606 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
2608 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
2609 _GLOBAL_OFFSET_TABLE_ for Solaris.
2610 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
2611 need_global_offset_table.
2612 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
2613 (elf_x86_link_hash_table): Remove need_global_offset_table.
2614 (elf_x86_init_table): Likewise.
2616 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2618 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2620 (i386_elf32_sol2_vec): Declared.
2621 (elf_i386_link_setup_gnu_properties): Set
2622 need_global_offset_table with info->output_bfd->xvec.
2623 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2625 (x86_64_elf64_sol2_vec): Declared.
2626 (elf_x86_64_link_setup_gnu_properties): Set
2627 need_global_offset_table with info->output_bfd->xvec.
2629 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2631 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2633 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
2635 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2637 (elf_x86_64_link_setup_gnu_properties): Set
2638 need_global_offset_table for Solaris.
2639 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
2640 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
2641 (_bfd_x86_elf_link_setup_gnu_properties): Copy
2642 need_global_offset_table.
2643 * elfxx-x86.h (elf_x86_link_hash_table): Add
2644 need_global_offset_table.
2645 (elf_x86_init_table): Likewise.
2647 2018-02-08 Jim Wilson <jimw@sifive.com>
2649 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
2652 2018-02-08 Nick Clifton <nickc@redhat.com>
2655 * elf.c (elf_parse_notes): Reject notes with excessuively large
2658 2018-02-07 Alan Modra <amodra@gmail.com>
2660 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
2661 * elf32-ppc.c: Remove speculation barrier support.
2662 * elf32-ppc.h: Likewise.
2663 * elf64-ppc.c: Likewise.
2664 * elf64-ppc.h: Likewise.
2666 2018-02-06 Jim Wilson <jimw@sifive.com>
2668 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
2669 callback to report an error.
2671 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
2674 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
2675 into call to !bfd_link_executable and tidy up.
2676 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
2677 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
2678 !bfd_link_executable.
2679 <R_SPARC_TLS_IE_HI22>: Likewise.
2680 <GOT relocations>: Remove useless code, tidy and merge related blocks.
2681 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
2682 !bfd_link_executable.
2683 <R_SPARC_WPLT30>: Tidy up.
2684 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
2685 !bfd_link_executable.
2686 (allocate_dynrelocs): Likewise.
2687 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
2688 <R_SPARC_TLS_GD_HI22>: Merge into...
2689 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
2690 sparc_elf_tls_transition and remove redundant code.
2691 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
2692 !bfd_link_executable.
2693 <R_SPARC_TLS_LDO_HIX22>: Likewise.
2694 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
2695 <R_SPARC_TLS_LDM_CALL>: Likewise.
2696 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
2697 <R_SPARC_TLS_GD_ADD>: Likewise.
2698 <R_SPARC_TLS_LDM_ADD>: Likewise.
2699 <R_SPARC_TLS_LDO_ADD>: Likewise.
2700 <R_SPARC_TLS_IE_LD>: Likewise.
2702 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
2705 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
2706 functions failed to find the function name, try the generic elf
2707 find function instead.
2709 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
2711 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
2712 'memcpy' instead of 'strncpy' when writing the magic number.
2714 2018-02-06 Nick Clifton <nickc@redhat.com>
2717 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
2718 section before attempting to read it in.
2719 (bfd_get_alt_debug_link_info): Likewise.
2721 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
2723 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
2724 line information in addition to name, if they can be found.
2726 2018-02-05 Renlin Li <renlin.li@arm.com>
2729 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
2730 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
2731 check for writeable section as well.
2733 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
2736 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
2737 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
2738 undefined weak symbol to 0.
2739 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
2740 if _GLOBAL_OFFSET_TABLE_ is referenced.
2741 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
2742 got_referenced instead of ref_regular_nonweak. Remove the
2743 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
2744 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
2746 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2748 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
2749 initialize `hi_reloc'.
2751 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2753 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
2754 SHT_MIPS_REGINFO sections don't assert the correct size and
2755 report an error instead.
2757 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2759 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
2760 status from `->elf_backend_section_processing'.
2762 2018-02-02 Jim Wilson <jimw@sifive.com>
2765 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
2766 If link_info->wrap_hash, check for a duplicate symbol and ignore.
2767 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
2768 Pass new argument to riscv_relax_delete_bytes.
2769 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
2770 ATTRIBUTE_UNUSED from link_info parameter.
2772 2018-02-02 Alan Modra <amodra@gmail.com>
2774 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
2775 emitted for toc sequence optimization. Set and use "howto" later.
2777 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
2779 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
2780 arithmetic on NULL pointer.
2781 * elflink.c (_bfd_elf_archive_symbol_lookup,
2782 elf_link_add_archive_symbols): Likewise.
2784 2018-01-31 Michael Matz <matz@suse.de>
2786 * elflink.c (bfd_elf_define_start_stop): Fix check of
2789 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
2792 * elflink.c (bfd_elf_define_start_stop): Check if __start and
2793 __stop symbols are referenced by shared objects.
2795 2018-01-30 Alan Modra <amodra@gmail.com>
2798 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
2799 segment when demand paged with lma on the same page. Test this
2800 before load/non-load, executable/non-executable,
2801 writable/non-writable tests and simplify. Delete bogus relro
2802 condition in writable/non-writable test. Delete outdated
2803 comment. Formatting.
2805 2018-01-30 Alan Modra <amodra@gmail.com>
2807 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
2810 2018-01-29 Alan Modra <amodra@gmail.com>
2813 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
2814 range before converting to a symbol table pointer.
2816 2018-01-27 Nick Clifton <nickc@redhat.com>
2818 * po/ru.po: Updated Russian translation.
2820 2018-01-26 Alan Modra <amodra@gmail.com>
2822 * elflink.c (bfd_elf_define_start_stop): Override symbols when
2823 they are defined dynamically.
2825 2018-01-26 Alan Modra <amodra@gmail.com>
2827 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
2828 .branch_lt changes size.
2830 2018-01-25 Alan Modra <amodra@gmail.com>
2833 * elfcode.h (elf_object_p): Avoid integer overflow.
2835 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
2838 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2839 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
2842 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
2845 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
2846 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
2847 bfd_link_executable for TLS check.
2848 (_bfd_sparc_elf_check_relocs): Likewise.
2849 (allocate_dynrelocs): Likewise.
2850 (_bfd_sparc_elf_relocate_section): Likewise.
2852 2018-01-24 Renlin Li <renlin.li@arm.com>
2854 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
2855 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2856 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2857 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2858 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2859 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
2860 (_bfd_aarch64_elf_resolve_relocation): Likewise.
2862 2018-01-24 Renlin Li <renlin.li@arm.com>
2864 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
2865 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
2866 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
2867 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
2868 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
2869 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2870 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2871 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2872 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2873 * bfd-in2.h: Regenerate.
2874 * libbfd.h: Regenerate.
2876 2018-01-23 Maciej W. Rozycki <macro@mips.com>
2878 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
2879 `mips_elf32_section_processing' comment reference.
2881 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
2884 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
2885 versioned __tls_get_addr symbol.
2887 2018-01-19 Nick Clifton <nickc@redhat.com>
2889 * po/fr.po: Updated French translation.
2891 2018-01-18 Alan Modra <amodra@gmail.com>
2893 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
2894 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
2895 (ppc64_elf_build_stubs): Likewise.
2897 2018-01-17 Nick Clifton <nickc@redhat.com>
2899 * po/ru.po: Updated Russian translation.
2900 * po/uk/po: Updated Ukranian translation.
2902 2018-01-17 Alan Modra <amodra@gmail.com>
2904 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
2906 2018-01-17 Alan Modra <amodra@gmail.com>
2908 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
2909 (CRSETEQ, BEQCTRM): Define.
2910 (is_nonpic_glink_stub): Don't check bctr.
2911 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2912 (ppc_elf_relax_section): Size speculation barrier.
2913 (output_bctr): New function.
2914 (write_glink_stub): Use output_bctr.
2915 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
2916 (ppc_elf_finish_dynamic_symbol): Likewise.
2917 (ppc_elf_finish_dynamic_sections): Use output_bctr.
2918 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
2919 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
2920 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
2921 (size_global_entry_stubs): Handle speculation barrier sizing.
2922 (plt_stub_size): Likewise.
2923 (output_bctr): New function.
2924 (build_plt_stub, build_tls_get_addr_stub): Output speculation
2926 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
2927 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
2928 (build_global_entry_stubs): Output speculation barrier.
2929 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
2930 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
2932 2018-01-17 Alan Modra <amodra@gmail.com>
2934 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
2935 __tls_get_addr_opt, and alignment sizing.
2936 (TLS_GET_ADDR_GLINK_SIZE): Delete.
2937 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
2938 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
2940 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2941 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
2942 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
2944 (write_glink_stub): Handle __tls_get_addr_opt stub.
2945 Pad out to size given by GLINK_ENTRY_SIZE.
2946 (ppc_elf_relocate_section): Adjust write_glink_stub call.
2947 (ppc_elf_finish_dynamic_symbol): Likewise.
2948 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
2949 insn array since so many need rewriting.
2950 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
2951 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
2952 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
2953 nops. Adjust all uses.
2954 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
2955 in glink_vma calculation.
2956 (struct ppc_link_hash_table): Add global_entry section pointer.
2957 (create_linkage_sections): Create separate section for global
2959 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
2960 (size_global_entry_stubs): Handle sizing for aligned stubs.
2961 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
2962 and don't stash end of glink branch table in rawsize.
2963 (ppc_build_one_stub): Rewrite stub size calculations.
2964 (build_global_entry_stubs): Use new section.
2965 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
2966 Build lazy link stubs out to end of section. Build global entry
2967 stubs in new section.
2969 2018-01-15 Nick Clifton <nickc@redhat.com>
2971 * po/uk.po: Updated Ukranian translation.
2973 2018-01-13 Nick Clifton <nickc@redhat.com>
2975 * po/bfd.pot: Regenerated.
2977 2018-01-13 Nick Clifton <nickc@redhat.com>
2979 * version.m4: Bump version to 2.30.51
2980 * configure: Regenerate.
2982 2018-01-13 Nick Clifton <nickc@redhat.com>
2984 2.30 branch created.
2986 2018-01-12 Jens Widell <jl@opera.com>
2988 * elf.c (setup_group): Optimize search for group by remembering
2989 last found group and restarting search at that index.
2990 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
2992 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
2994 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
2995 bfd_link_common_skip_none in switch.
2997 2018-01-12 Alan Modra <amodra@gmail.com>
3000 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
3001 references on forced local symbols.
3003 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
3005 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
3006 .reginfo section has wrong size.
3008 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3011 * elf.c (_bfd_elf_map_sections_to_segments): When generating
3012 separate code and read-only data LOAD segments, create a new
3013 LOAD segment if the previous section contains text and the
3014 current section doesn't or vice versa. Don't put a writable
3015 section in a read-only segment if there is a RELRO segment.
3017 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3020 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
3021 references on forced local symbols.
3023 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3026 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
3027 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
3029 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
3032 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
3034 2018-01-03 John Baldwin <jhb@FreeBSD.org>
3036 * elf.c (elfcore_grok_freebsd_note): Handle
3037 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
3038 NT_FREEBSD_PROCSTAT_VMMAP.
3040 2018-01-03 Alan Modra <amodra@gmail.com>
3042 Update year range in copyright notice of all files.
3044 For older changes see ChangeLog-2017
3046 Copyright (C) 2018 Free Software Foundation, Inc.
3048 Copying and distribution of this file, with or without modification,
3049 are permitted in any medium without royalty provided the copyright
3050 notice and this notice are preserved.
3056 version-control: never