1 2018-06-14 H.J. Lu <hongjiu.lu@intel.com>
4 * elf.c (_bfd_elf_get_symbol_version_string): Check if the first
5 symbol version is base version.
7 2018-06-14 Alan Modra <amodra@gmail.com>
9 * elf-bfd.h (struct elf_link_hash_table): Add "dynamic_relocs".
10 * elflink.c (_bfd_elf_init_2_index_sections): Comment fix.
11 (_bfd_elf_add_dynamic_entry): Set "dynamic_relocs".
12 (_bfd_elf_link_renumber_dynsyms): Exclude all section symbols when
13 "dynamic_relocs" is not set.
14 * elfxx-mips.c (count_section_dynsyms): Likewise.
16 2018-06-14 Alan Modra <amodra@gmail.com>
19 * bfdio.c (bfd_seek): Optimize away seeks to current position.
21 2018-06-13 Scott Egerton <scott.egerton@imgtec.com>
22 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
24 * elfxx-mips.c (print_mips_ases): Add CRC.
26 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
29 * elfxx-x86.c (elf_x86_hide_linker_defined): New function.
30 (_bfd_x86_elf_link_check_relocs): Use it to hide hidden
31 __bss_start, _end and _edata in shared libraries.
33 2018-06-07 Alan Modra <amodra@gmail.com>
35 * elf32-tic6x.c (elf32_tic6x_check_relocs): Reference
36 __c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs.
38 2018-06-05 Alan Modra <amodra@gmail.com>
40 * bfd.c (struct bfd): Update comment on "where" usage.
41 * bfdio.c (bfd_bwrite, bfd_stat): Use and update "iovec",
42 "iostream", and "where" from containing archive file. Return
44 (bfd_bread): Similarly, and return error attempted out of
45 bounds archive element access.
46 (bfd_tell, bfd_flush): Use and update "iovec", "iostream", and
47 "where" from containing archive file.
48 (bfd_seek): Likewise. Return error on NULL iovec. Don't
49 attempt to optimize away seeks. Don't paper over errors by
51 (bfd_get_mtime): Call bfd_stat rather than iovec->bstat.
52 (bfd_get_size): Likewise.
53 (bfd_mmap): Operate on and use iovec of containing archive
54 file. Return error on NULL iovec.
55 * cache.c (bfd_cache_lookup_worker): Abort if working on
57 (cache_bread_1): Delete bfd parameter, add FILE* parameter.
58 Don't ignore zero byte reads.
59 (cache_bread): Look up FILE* in cache here. Error on NULL
61 (cache_bwrite): Rename "where" to "from".
62 (cache_bmmap): Don't handle archive elements.
63 * coffcode.h (coff_slurp_line_table): Exit early on zero
65 * bfd-in2.h: Regenerate.
67 2018-06-05 Alan Modra <amodra@gmail.com>
70 * plugin.c (bfd_plugin_open_input): Allow for possibility of
71 nested archives. Open file again for plugin.
72 (try_claim): Don't save and restore file position. Close file
74 * sysdep.h (O_BINARY): Define.
76 2018-06-04 Max Filippov <jcmvbkbc@gmail.com>
78 * elf32-xtensa.c (xtensa_read_table_entries): Make global.
79 (compute_fill_extra_space): Drop declaration. Rename function to
80 xtensa_compute_fill_extra_space.
81 (compute_ebb_actions, remove_dead_literal): Update references to
82 compute_fill_extra_space.
84 2018-06-04 Volodymyr Arbatov <arbatov@cadence.com>
86 * elf32-xtensa.c (elf32xtensa_separate_props): New global
88 (xtensa_add_names): New function.
89 (xtensa_property_section_name): Add new parameter
90 separate_sections, use it to choose property section name.
91 (xtensa_get_separate_property_section): New function.
92 (xtensa_get_property_section): Invoke
93 xtensa_get_separate_property_section to get individual property
94 section if it exists, common property section otherwise.
95 (xtensa_make_property_section): Pass elf32xtensa_separate_props
96 to xtensa_property_section_name.
98 2018-06-04 H.J. Lu <hongjiu.lu@intel.com>
101 * bfd-in.h: Include "diagnostics.h".
102 * bfd-in2.h: Regenerated.
103 * elf32-arm.c (elf32_arm_nabi_write_core_note): Use
104 DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and
105 DIAGNOSTIC_POP to silence GCC 8.1 warnings with
106 -Wstringop-truncation.
107 * elf32-ppc.c (ppc_elf_write_core_note): Likewse.
108 * elf32-s390.c (elf_s390_write_core_note): Likewse.
109 * elf64-ppc.c (ppc64_elf_write_core_note): Likewse.
110 * elf64-s390.c (elf_s390_write_core_note): Likewse.
111 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse.
113 2018-06-03 Jim Wilson <jimw@sifive.com>
116 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check
117 for and handle an undefined weak with no PLT.
120 * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check
121 to code that ignores duplicate symbols.
123 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
125 * version.m4: Bump version to 2.30.52
126 * configure: Regenerated.
128 2018-06-01 Alan Modra <amodra@gmail.com>
130 * bfd.c (_bfd_error_handler): Arrange for this function to be
131 declared in bfd-in2.h.
132 * libbfd-in.h (_bfd_error_handler): Don't declare.
133 * libbfd.h: Regenerate.
134 * bfd-in2.h: Regenerate.
136 2018-05-30 Amaan Cheval <amaan.cheval@gmail.com>
138 * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems*
139 This is needed to generate UEFI application image files from ELFs.
141 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
143 * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry,
144 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
145 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
146 plt_tlsdesc_got2_insn_end for TLSDESC entry.
147 (elf_i386_lazy_ibt_plt): Likewise.
148 (elf_i386_nacl_plt): Likewise.
149 * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ...
150 (elf_x86_64_tlsdesc_plt_entry): This.
151 (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry,
152 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
153 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
154 plt_tlsdesc_got2_insn_end for TLSDESC entry.
155 (elf_x86_64_lazy_bnd_plt): Likewise.
156 (elf_x86_64_lazy_ibt_plt): Likewise.
157 (elf_x32_lazy_ibt_plt): Likewise.
158 (elf_x86_64_nacl_plt): Likewise.
159 (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry,
160 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
161 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
162 plt_tlsdesc_got2_insn_end to update TLSDESC entry.
163 * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments.
164 Add plt_tlsdesc_entry, plt_tlsdesc_entry_size,
165 plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset,
166 plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end.
167 (elf_x86_non_lazy_plt_layout): Update comments.
168 (elf_x86_plt_layout): Likewise.
170 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
173 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed.
174 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
175 (elf_backend_add_symbol_hook): Likewise.
176 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
177 (elf_backend_add_symbol_hook): Likewise.
178 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise.
179 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
180 (elf_backend_add_symbol_hook): Likewise.
181 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise.
182 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
183 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise.
184 (elf_backend_add_symbol_hook): Likewise.
185 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC
187 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
188 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
189 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
190 * elflink.c (elf_link_add_object_symbols): Set
191 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols.
193 2018-05-26 H.J. Lu <hongjiu.lu@intel.com>
196 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New.
197 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function.
198 Extracted from _bfd_elf_link_assign_sym_version.
199 (_bfd_elf_link_hide_sym_by_version): New function.
200 (_bfd_elf_link_assign_sym_version): Use
201 _bfd_elf_link_hide_versioned_symbol.
202 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call
203 _bfd_elf_link_hide_sym_by_version instead of
204 bfd_hide_sym_by_version. Don't check unversioned symbol.
206 2018-05-25 Alan Modra <amodra@gmail.com>
208 * Makefile.in: Regenerate.
209 * po/SRC-POTFILES.in: Regenerate.
211 2018-05-25 Alan Modra <amodra@gmail.com>
213 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS.
214 * configure: Regenerate.
216 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
218 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING
221 2018-05-22 Alan Modra <amodra@gmail.com>
224 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
226 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code
228 (final_link_relocate): Revert last change.
230 2018-05-22 Alan Modra <amodra@gmail.com>
233 * elf32-hppa.c (final_link_relocate): Don't look for plt call
234 stubs in non-alloc sections.
236 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
239 * aout-target.h (MY_bfd_link_hide_symbol): New.
240 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise.
241 * binary.c (binary_bfd_link_hide_symbol): Likewise.
242 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
243 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
244 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise.
245 * coffcode.h (coff_bfd_link_hide_symbol): Likewise.
246 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise.
247 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise.
248 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise.
249 * ihex.c (ihex_bfd_link_hide_symbol): Likewise.
250 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise.
251 * linker.c (_bfd_generic_link_hide_symbol): Likewise.
252 (bfd_link_hide_symbol): Likewise.
253 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise.
254 * mmo.c (mmo_bfd_link_hide_symbol): Likewise.
255 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise.
256 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise.
257 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise.
258 * som.c (som_bfd_link_hide_symbol): Likewise.
259 * srec.c (srec_bfd_link_hide_symbol): Likewise.
260 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise.
261 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise.
262 (alpha_vms_bfd_link_hide_symbol): Likewise.
263 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise.
264 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
265 _bfd_generic_link_hide_symbol.
266 (rs6000_xcoff64_aix_vec): Likewise.
267 * elflink.c (bfd_elf_record_link_assignment): Don't make forced
268 local symbol dynamic.
269 (_bfd_elf_link_hide_symbol): New function.
270 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
271 check root.ldscript_def.
272 * targets.c (bfd_target): Add _bfd_link_hide_symbol.
273 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol.
274 * bfd-in2.h: Regenerated.
275 * libbfd.h: Likewise.
277 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
280 * elf.c (setup_group): Mark section in a section group with
283 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
286 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
287 set eh->local_ref to 1 if a symbol is versioned and there is a
290 2018-05-18 Kito Cheng <kito.cheng@gmail.com>
292 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle
295 2018-05-18 Jim Wilson <jimw@sifive.com>
297 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
298 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
299 (riscv_elf_relocate_section): Don't generate dynamic relocation if
300 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
301 (riscv_elf_finish_dynamic_symbol): Likewise.
303 2018-05-18 John Darrington <john@darrington.wattle.id.au>
305 * Makefile.am: Add s12z files.
306 * Makefile.in: Regenerate.
307 * archures.c: Add bfd_s12z_arch.
308 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24.
309 * bfd-in2.h: Regenerate.
310 * config.bfd: Add s12z target.
311 * configure.ac: Add s12z target.
312 * configure: Regenerate.
313 * cpu-s12z.c: New file.
314 * elf32-s12z.c: New file.
315 * libbfd.c (bfd_putb24): New function.
316 (bfd_putl24): New function.
317 * libbfd.h: Regenerate.
318 * reloc.c: Add s12z relocations.
319 (bfd_get_reloc_size): Handle size 5 relocs.
320 * targets.c: Add s12z_elf32_vec.
322 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
325 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
327 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
328 set eh->local_ref to 1 for linker defined symbols.
330 2018-05-18 Alan Modra <amodra@gmail.com>
333 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries
334 don't point at other SHT_GROUP sections. Set shdr corresponding
335 to invalid entry, to NULL rather than section 0. Identify
336 SHT_GROUP section index when reporting an error. Cope with NULL
339 2018-05-18 Alan Modra <amodra@gmail.com>
341 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout.
342 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden
344 * libbfd.h: Regenerate.
345 * configure: Regenerate.
346 * config.in: Regenerate.
348 2018-05-18 Alan Modra <amodra@gmail.com>
350 * libbfd-in.h: Add include guard.
351 * libcoff-in.h: Likewise.
352 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
353 * doc/Makefile.in: Regenerate.
354 * libbfd.h: Regenerate.
355 * libcoff.h: Regenerate.
357 2018-05-16 Maciej W. Rozycki <macro@mips.com>
359 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
361 2018-05-16 Alan Modra <amodra@gmail.com>
364 * format.c (struct bfd_preserve): Add section_id.
365 (bfd_preserve_save, bfd_preserve_restore): Save and restore
367 (bfd_reinit): Set _bfd_section_id.
368 (bfd_check_format_matches): Put all matches of any priority into
369 matching_vector. Save initial section id and start each attempted
370 match at that section id.
371 * libbfd-in.h (_bfd_section_id): Declare.
372 * section.c (_bfd_section_id): Rename from section_id and make
374 (bfd_get_next_section_id): Delete.
375 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
376 bfd_get_section_id with _bfd_section_id.
377 * libbfd.h: Regenerate.
378 * bfd-in2.h: Regenerate.
380 2018-05-15 Christophe Guillon <christophe.guillon@st.com>
382 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
383 of the aux structure are initialised.
385 2018-05-15 Francois H. Theron <francois.theron@netronome.com>
387 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
389 2018-05-15 Nick Clifton <nickc@redhat.com>
391 * po/pt.po: New Portuguese translation.
392 * configure.ac (ALL_LINGUAS): Add pt.
393 * configure: Regenerate.
395 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
398 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
399 an error on IFUNC pointer defined in PDE.
400 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
401 _bfd_x86_elf_link_fixup_ifunc_symbol.
402 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
403 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
405 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
407 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
410 * elfxx-x86.c (elf_x86_linker_defined): New function.
411 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
412 _end and _edata locally defined within executables.
414 2018-05-12 Alan Modra <amodra@gmail.com>
417 * elf.c (rewrite_elf_program_header): Use segment_mark only for
418 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
419 Instead make matching_lma and suggested_lma pointers to the
420 sections. Align section vma and lma calculated from segment.
421 Don't clear includes_phdrs or includes_filehdr based on p_paddr
422 test. Try to handle alignment padding before first section by
423 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
425 2018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
427 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
428 conformant to TI ABI.
429 (pru_elf32_relax_section): Likewise.
430 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
431 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
432 (pru_elf32_pmem_relocate): Trap - should not get here.
433 (pru_elf32_relocate_section): Add support for REL relocations.
434 (elf_info_to_howto_rel): Enable REL.
435 (elf_backend_may_use_rel_p): Likewise.
436 (elf_backend_may_use_rela_p): Likewise.
437 (elf_backend_default_use_rela_p): Likewise.
439 2018-05-09 Alan Modra <amodra@gmail.com>
442 * peXXigen.c (pe_print_edata): Correct minimum size.
444 2018-05-09 Alan Modra <amodra@gmail.com>
447 * peXXigen.c (pe_print_idata): Bound check hint_addr.
449 2018-05-08 Nick Clifton <nickc@redhat.com>
452 * elf.c (bfd_elf_get_str_section): Check for an excessively large
454 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
455 attribute section is larger than the size of the file.
457 2018-05-07 Alan Modra <amodra@gmail.com>
459 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
460 strncmp when checking for ".bf" special symbol.
461 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
462 section name a char array, remove sentinal known_sections entry,
463 and adjust loop over known_sections to suit. Use memcmp rather
466 2018-05-04 Alan Modra <amodra@gmail.com>
468 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
469 (struct elf_external_linux_prpsinfo32_ugid16),
470 (struct elf_external_linux_prpsinfo64_ugid32),
471 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
472 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
474 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
476 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
478 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
479 * elf32-s390.c (elf_s390_write_core_note): Likewise.
480 * elf64-s390.c (elf_s390_write_core_note): Likewise.
481 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
482 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
484 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
485 false positive gcc-8 warning.
486 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
488 2018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
490 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
491 of arguments when warning about different long double types.
493 2018-05-03 Simon Atanasyan <simon@atanasyan.com>
495 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
496 (elf_backend_fixup_symbol): New macro.
497 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
499 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
501 2018-04-30 Francois H. Theron <francois.theron@netronome.com>
503 * Makefile.am: Added NFP files to build.
504 * archures.c: Added bfd_arch_nfp
505 * config.bfd: Added NFP support.
506 * configure.ac: Added NFP support.
507 * cpu-nfp.c: New, for NFP support.
508 * elf-bfd.h: Added elf_section_info()
509 * elf64-nfp.c: New, for NFP support.
510 * po/SRC-POTFILES.in: Added NFP source files.
511 * targets.c: Added nfp_elf64_vec
512 * bfd-in2.h: Regenerate.
513 * Makefile.in: Regenerate.
514 * configure: Regenerate.
516 2018-04-27 Alan Modra <amodra@gmail.com>
518 * bfd-in2.h: Regenerate.
519 * libbfd.h: Regenerate.
521 2018-04-27 Alan Modra <amodra@gmail.com>
525 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
527 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
529 2018-04-26 Pedro Alves <palves@redhat.com>
531 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
532 ifunc and non-ifunc symbols duplicates.
534 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
535 Mickaël Guêné <mickael.guene@st.com>
537 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
538 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
539 (elf32_arm_populate_plt_entry): Likewise.
540 (elf32_arm_output_plt_map_1): Likewise.
541 (elf32_arm_output_arch_local_syms): Likewise.
543 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
544 Mickaël Guêné <mickael.guene@st.com>
546 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
547 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
549 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
550 Mickaël Guêné <mickael.guene@st.com>
552 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
555 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
556 Mickaël Guêné <mickael.guene@st.com>
558 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
559 (elf32_arm_always_size_sections): Create stack segment.
561 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
562 Mickaël Guêné <mickael.guene@st.com>
564 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
565 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
567 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
568 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
569 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
570 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
571 (struct elf32_arm_link_hash_table): Update comment.
572 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
573 (IS_ARM_TLS_RELOC): Likewise.
574 (elf32_arm_check_relocs): Likewise.
575 (allocate_dynrelocs_for_symbol): Likewise.
576 (elf32_arm_size_dynamic_sections): Update comment.
577 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
578 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
580 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
581 Mickaël Guêné <mickael.guene@st.com>
583 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
584 (elf32_arm_create_dynamic_sections): Handle FDPIC.
585 (elf32_arm_allocate_plt_entry): Likewise.
586 (elf32_arm_populate_plt_entry): Likewise.
587 (elf32_arm_output_plt_map_1): Likewise.
589 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
590 Mickaël Guêné <mickael.guene@st.com>
592 * elf32-arm.c (struct fdpic_local): New.
593 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
594 (elf32_arm_local_fdpic_cnts): New.
595 (struct fdpic_global): New.
596 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
597 (elf32_arm_link_hash_table): Add srofixup field.
598 (arm_elf_add_rofixup): New.
599 (arm_elf_fill_funcdesc): New.
600 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
601 (elf32_arm_allocate_local_sym_info): Likewise.
602 (create_got_section): Create .rofixup section.
603 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
604 (bfd_elf32_arm_set_target_params): Handle FDPIC.
605 (elf32_arm_final_link_relocate): Likewise.
606 (elf32_arm_check_relocs): Likewise.
607 (allocate_dynrelocs_for_symbol): Likewise.
608 (elf32_arm_size_dynamic_sections): Likewise.
609 (elf32_arm_finish_dynamic_sections): Likewise.
610 (elf32_arm_output_arch_local_syms): Likewise.
611 (elf32_arm_fdpic_omit_section_dynsym): New.
613 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
614 Mickaël Guêné <mickael.guene@st.com>
616 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
617 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
618 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
619 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
620 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
621 (elf32_arm_howto_from_type): Take new members of
622 elf32_arm_howto_table_2 into account.
623 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
624 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
625 BFD_RELOC_ARM_FUNCDESC_VALUE.
626 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
627 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
628 BFD_RELOC_ARM_FUNCDESC_VALUE.
630 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
631 Mickaël Guêné <mickael.guene@st.com>
633 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
634 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
635 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
636 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
638 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
639 Mickaël Guêné <mickael.guene@st.com>
641 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
642 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
643 arm*-*-uclinuxfdpiceabi.
644 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
645 arm_elf32_fdpic_le_vec.
646 * configure: Regenerate.
647 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
648 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
649 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
650 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
651 (elf32_arm_fdpic_link_hash_table_create): New.
652 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
653 arm_elf32_fdpic_le_vec.
655 2018-04-25 Alan Modra <amodra@gmail.com>
657 * elf-linux-core.h: Disable gcc-8 string truncation warning.
658 * elf.c (elfcore_write_prpsinfo): Likewise.
660 2018-04-25 Alan Modra <amodra@gmail.com>
662 * Makefile.am: Remove arm-aout and arm-coff support.
663 * config.bfd: Likewise.
664 * configure.ac: Likewise.
665 * targets.c: Likewise.
666 * aout-arm.c: Delete.
667 * armnetbsd.c: Delete.
669 * Makefile.in: Regenerate.
670 * configure: Regenerate.
671 * po/SRC-POTFILES.in: Regenerate.
673 2018-04-24 Nick Clifton <nickc@redhat.com>
676 * elf.c (ignore_section_sym): Check for the output_section pointer
677 being NULL before dereferencing it.
680 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
681 a negative PE_DEBUG_DATA size before iterating over the debug data.
683 2018-04-23 Alan Modra <amodra@gmail.com>
685 * elf-linux-core.h: Revert last change.
688 2018-04-23 Nick Clifton <nickc@redhat.com>
691 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
692 the end of the string table, and zero it.
694 2018-04-23 Alan Modra <amodra@gmail.com>
696 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
697 gcc-8 string truncation warning.
698 (swap_linux_prpsinfo32_ugid16_out): Likewise.
699 (swap_linux_prpsinfo64_ugid32_out): Likewise.
700 (swap_linux_prpsinfo64_ugid16_out): Likewise.
701 * elf.c (elfcore_write_prpsinfo): Likewise.
703 2018-04-23 Nick Clifton <nickc@redhat.com>
706 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
707 the end of the string table, and zero it.
709 2018-04-20 Alan Modra <amodra@gmail.com>
712 * elf32-hppa.c (got_relocs_needed): Add extra param to special
713 case both dtprel and tprel relocs.
714 (allocate_dynrelocs): Adjust conditions for got relocs.
715 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
716 Emit dynamic relocs on TLS GOT entries for shared libraries,
717 not when pic. Omit dynamic reloc on dtprel entry when local,
718 and on tprel entry when local and executable.
720 2018-04-19 Alan Modra <amodra@gmail.com>
723 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
724 (hppa_type_of_stub): Don't return a long branch stub for
725 symbols other than those defined statically.
727 2018-04-19 Alan Modra <amodra@gmail.com>
729 * Makefile.am: Revert 2018-04-18 coff-mips changes.
730 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
731 to selvecs for mips targets change 2018-04-18.
732 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
733 and mips_ecoff_bele_vec.
734 * targets.c: Likewise.
735 * coff-mips.c: Resurrect.
736 * Makefile.in: Regenerate.
737 * configure: Regenerate.
738 * po/SRC-POTFILES.in: Regenerate.
740 2018-04-18 Alan Modra <amodra@gmail.com>
742 * Makefile.am: Remove mips aout and coff support.
743 * config.bfd: Likewise.
744 * configure.ac: Likewise.
745 * targets.c: Likewise.
746 * coff-mips.c: Delete
750 * Makefile.in: Regenerate.
751 * configure: Regenerate.
752 * po/SRC-POTFILES.in: Regenerate.
754 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
756 * elf32-i386.c (elf32_bed): Define before including
758 * elf64-x86-64.c (elf64_bed): Define before including
760 (elf32_bed): Define before including "elf32-target.h".
762 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
765 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
766 normal input file with compatible relocation.
768 2018-04-18 Alan Modra <amodra@gmail.com>
770 * Makefile.am: Remove support for assorted i386 aout and coff targets.
771 * config.bfd: Likewise.
772 * configure.ac: Likewise.
773 * doc/bfdint.texi: Likewise.
774 * targets.c: Likewise.
776 * i386dynix.c: Delete.
777 * i386freebsd.c: Delete.
778 * i386linux.c: Delete.
779 * i386mach3.c: Delete.
780 * i386netbsd.c: Delete.
781 * i386os9k.c: Delete.
782 * Makefile.in: Regenerate.
783 * configure: Regenerate.
784 * po/SRC-POTFILES.in: Regenerate.
786 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
788 Microblaze Target: PIC data text relative
790 * bfd/reloc.c (2 new BFD relocations):
791 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
792 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
793 * bfd/bfd-in2.h: Regenerate
794 * bfd/libbfd.h: Regenerate
795 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
796 new relocs and handle them in both relocate and relax functions.
797 (microblaze_elf_reloc_type_lookup): add mapping between for new
799 (microblaze_elf_relocate_section): Handle new relocs in case of
801 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
803 2018-04-17 Nick Clifton <nickc@redhat.com>
806 * aoutx.h (find_nearest_line): Check that the symbol name exists
807 and is long enough, before attempting to see if it is for a .o
809 * hash.c (bfd_hash_hash): Add an assertion that the string is not
811 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
813 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
817 * dwarf2.c (concat_filename): Check for a NULL table pointer.
819 2018-04-16 Nick Clifton <nickc@redhat.com>
822 * coffgen.c (coff_pointerize_aux): Check for an out of range
825 2018-04-16 Alan Modra <amodra@gmail.com>
827 * Makefile.am: Remove arm-epoc-pe support.
828 * coff-arm.c: Likewise.
829 * config.bfd: Likewise.
830 * configure.ac: Likewise.
831 * targets.c: Likewise.
832 * epoc-pe-arm.c: Delete.
833 * epoc-pei-arm.c: Delete.
834 * Makefile.in: Regenerate.
835 * configure: Regenerate.
836 * po/SRC-POTFILES.in: Regenerate.
838 2018-04-16 Alan Modra <amodra@gmail.com>
840 * Makefile.am: Remove sparc-aout and sparc-coff support.
841 * config.bfd: Likewise.
842 * configure.ac: Likewise.
843 * targets.c: Likewise.
844 * aout-sparcle.c: Delete.
846 * cf-sparclynx.c: Delete.
847 * coff-sparc.c: Delete.
849 * sparclinux.c: Delete.
850 * sparclynx.c: Delete.
851 * sparcnetbsd.c: Delete.
853 * Makefile.in: Regenerate.
854 * configure: Regenerate.
855 * po/SRC-POTFILES.in: Regenerate.
857 2018-04-16 Alan Modra <amodra@gmail.com>
859 * Makefile.am: Remove m68k-aout and m68k-coff support.
860 * aoutf1.h: Likewise.
862 * archive.c: Likewise.
863 * bfd-in.h: Likewise.
865 * coffcode.h: Likewise.
866 * coffswap.h: Likewise.
867 * config.bfd: Likewise.
868 * configure.ac: Likewise.
869 * configure.host: Likewise.
870 * doc/bfd.texinfo: Likewise.
871 * doc/bfdint.texi: Likewise.
872 * freebsd.h: Likewise.
873 * gen-aout.c: Likewise.
874 * hpux-core.c: Likewise.
875 * libaout.h: Likewise.
876 * libbfd-in.h: Likewise.
878 * peicode.h: Likewise.
879 * riscix.c: Likewise.
880 * targets.c: Likewise.
882 * coff-apollo.c: Delete.
883 * coff-aux.c: Delete.
884 * coff-m68k.c: Delete.
885 * coff-svm68k.c: Delete.
886 * coff-u68k.c: Delete.
887 * hosts/delta68.h: Delete.
888 * hosts/hp300bsd.h: Delete.
889 * hosts/m68kaux.h: Delete.
890 * hosts/news.h: Delete.
891 * hp300bsd.c: Delete.
892 * hp300hpux.c: Delete.
893 * liboasys.h: Delete.
894 * m68k4knetbsd.c: Delete.
895 * m68klinux.c: Delete.
896 * m68knetbsd.c: Delete.
898 * versados.c: Delete.
899 * Makefile.in: Regenerate.
900 * bfd-in2.h: Regenerate.
901 * configure: Regenerate.
902 * libbfd.h: Regenerate.
903 * po/SRC-POTFILES.in: Regenerate.
905 2018-04-16 Alan Modra <amodra@gmail.com>
907 * Makefile.am: Remove sh5 and sh64 support.
908 * archures.c: Likewise.
909 * config.bfd: Likewise.
910 * configure.ac: Likewise.
911 * cpu-sh.c: Likewise.
912 * elf32-sh-relocs.h: Likewise.
913 * elf32-sh.c: Likewise.
914 * targets.c: Likewise.
915 * elf32-sh64-com.c: Delete.
916 * elf32-sh64.c: Delete.
917 * elf32-sh64.h: Delete.
918 * elf64-sh64.c: Delete.
919 * Makefile.in: Regenerate.
920 * bfd-in2.h: Regenerate.
921 * configure: Regenerate.
922 * po/SRC-POTFILES.in: Regenerate.
924 2018-04-16 Alan Modra <amodra@gmail.com>
926 * Makefile.am: Remove sh-symbianelf support.
927 * config.bfd: Likewise.
928 * configure.ac: Likewise.
929 * targets.c: Likewise.
930 * elf32-sh-symbian.c: Delete.
931 * Makefile.in: Regenerate.
932 * configure: Regenerate.
933 * po/SRC-POTFILES.in: Regenerate.
935 2018-04-16 Alan Modra <amodra@gmail.com>
937 * Makefile.am: Remove vax-bsd and vax-ultrix support.
938 * config.bfd: Likewise.
939 * configure.ac: Likewise.
940 * targets.c: Likewise.
942 * Makefile.in: Regenerate.
943 * configure: Regenerate.
944 * po/SRC-POTFILES.in: Regenerate.
946 2018-04-16 Alan Modra <amodra@gmail.com>
948 * Makefile.am: Remove w65 support.
949 * archures.c: Likewise.
950 * coffcode.h: Likewise.
951 * config.bfd: Likewise.
952 * configure.ac: Likewise.
953 * targets.c: Likewise.
954 * coff-w65.c: Delete.
956 * Makefile.in: Regenerate.
957 * bfd-in2.h: Regenerate.
958 * configure: Regenerate.
959 * po/SRC-POTFILES.in: Regenerate.
961 2018-04-16 Alan Modra <amodra@gmail.com>
963 * Makefile.am: Remove we32k support.
964 * archures.c: Likewise.
965 * coffcode.h: Likewise.
966 * config.bfd: Likewise.
967 * configure.ac: Likewise.
968 * targets.c: Likewise.
969 * coff-we32k.c: Delete.
970 * cpu-we32k.c: Delete.
971 * Makefile.in: Regenerate.
972 * bfd-in2.h: Regenerate.
973 * configure: Regenerate.
974 * po/SRC-POTFILES.in: Regenerate.
976 2018-04-16 Alan Modra <amodra@gmail.com>
978 * Makefile.am: Remove m88k support.
980 * archures.c: Likewise.
981 * coffcode.h: Likewise.
982 * coffswap.h: Likewise.
983 * config.bfd: Likewise.
984 * configure.ac: Likewise.
985 * cpu-ns32k.c: Likewise.
986 * elf32-nds32.c: Likewise.
987 * mach-o.c: Likewise.
988 * netbsd-core.c: Likewise.
990 * targets.c: Likewise.
991 * coff-m88k.c: Delete.
992 * cpu-m88k.c: Delete.
993 * elf32-m88k.c: Delete.
994 * hosts/m88kmach3.h: Delete.
995 * m88kmach3.c: Delete.
996 * m88kopenbsd.c: Delete.
997 * Makefile.in: Regenerate.
998 * bfd-in2.h: Regenerate.
999 * configure: Regenerate.
1000 * po/SRC-POTFILES.in: Regenerate.
1002 2018-04-16 Alan Modra <amodra@gmail.com>
1004 * Makefile.am: Remove i370 support.
1005 * archures.c: Likewise.
1006 * config.bfd: Likewise.
1007 * configure.ac: Likewise.
1008 * targets.c: Likewise.
1009 * cpu-i370.c: Delete.
1010 * elf32-i370.c: Delete.
1011 * Makefile.in: Regenerate.
1012 * bfd-in2.h: Regenerate.
1013 * configure: Regenerate.
1014 * po/SRC-POTFILES.in: Regenerate.
1016 2018-04-16 Alan Modra <amodra@gmail.com>
1018 * Makefile.am: Remove h8500 support.
1019 * archures.c: Likewise.
1020 * coffcode.h: Likewise.
1021 * config.bfd: Likewise.
1022 * configure.ac: Likewise.
1023 * targets.c: Likewise.
1024 * coff-h8500.c: Delete.
1025 * cpu-h8500.c: Delete.
1026 * Makefile.in: Regenerate.
1027 * bfd-in2.h: Regenerate.
1028 * configure: Regenerate.
1029 * po/SRC-POTFILES.in: Regenerate.
1031 2018-04-16 Alan Modra <amodra@gmail.com>
1033 * Makefile.am: Remove h8300-coff support.
1034 * coffcode.h: Likewise.
1035 * config.bfd: Likewise.
1036 * configure.ac: Likewise.
1037 * reloc16.c: Likewise.
1038 * targets.c: Likewise.
1039 * coff-h8300.c: Delete.
1040 * Makefile.in: Regenerate.
1041 * configure: Regenerate.
1042 * po/SRC-POTFILES.in: Regenerate.
1044 2018-04-16 Alan Modra <amodra@gmail.com>
1046 * Makefile.am: Remove IEEE 695 support.
1047 * archures.c: Likewise.
1049 * config.bfd: Likewise.
1050 * configure.ac: Likewise.
1051 * doc/bfd.texinfo: Likewise.
1052 * doc/bfdint.texi: Likewise.
1053 * doc/bfdsumm.texi: Likewise.
1054 * section.c: Likewise.
1055 * targets.c: Likewise.
1057 * libieee.h: Delete.
1058 * Makefile.in: Regenerate.
1059 * bfd-in2.h: Regenerate.
1060 * configure: Regenerate.
1061 * po/SRC-POTFILES.in: Regenerate.
1063 2018-04-16 Alan Modra <amodra@gmail.com>
1065 * config.bfd: Remove tandem support.
1067 2018-04-16 Alan Modra <amodra@gmail.com>
1069 * Makefile.am: Remove newsos3 support.
1070 * aoutx.h: Likewise.
1071 * config.bfd: Likewise.
1072 * configure.ac: Likewise.
1073 * targets.c: Likewise.
1074 * newsos3.c: Delete.
1075 * Makefile.in: Regenerate.
1076 * configure: Regenerate.
1077 * po/SRC-POTFILES.in: Regenerate.
1079 2018-04-16 Alan Modra <amodra@gmail.com>
1081 * Makefile.am: Remove netware support.
1082 * bfd-in.h: Likewise.
1084 * config.bfd: Likewise.
1085 * configure.ac: Likewise.
1086 * doc/bfdint.texi: Likewise.
1087 * ecoff.c: Likewise.
1088 * targets.c: Likewise.
1090 * nlm-target.h: Delete.
1092 * nlm32-alpha.c: Delete.
1093 * nlm32-i386.c: Delete.
1094 * nlm32-ppc.c: Delete.
1095 * nlm32-sparc.c: Delete.
1098 * nlmcode.h: Delete.
1099 * nlmswap.h: Delete.
1100 * Makefile.in: Regenerate.
1101 * bfd-in2.h: Regenerate.
1102 * configure: Regenerate.
1103 * po/SRC-POTFILES.in: Regenerate.
1105 2018-04-16 Alan Modra <amodra@gmail.com>
1107 * archures.c: Remove tahoe support.
1108 * config.bfd: Likewise.
1109 * configure.ac: Likewise.
1110 * hosts/tahoe.h: Delete.
1111 * bfd-in2.h: Regenerate.
1112 * configure: Regenerate.
1114 2018-04-14 Alan Modra <amodra@gmail.com>
1116 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
1117 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
1119 (elfNN_bed): Init relropagesize.
1120 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
1121 select relropagesize.
1122 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1123 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1124 (ELF_MINPAGESIZE): Don't define.
1125 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1126 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1127 * bfd-in2.h: Regenerate.
1129 2018-04-14 Alan Modra <amodra@gmail.com>
1131 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
1132 on __QNXTARGET__ define.
1134 2018-04-14 Alan Modra <amodra@gmail.com>
1136 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
1139 2018-04-11 Alan Modra <amodra@gmail.com>
1141 * aout-adobe.c: Delete.
1143 * coff-i860.c: Delete.
1144 * coff-i960.c: Delete.
1145 * cpu-i860.c: Delete.
1146 * cpu-i960.c: Delete.
1147 * elf32-i860.c: Delete.
1148 * elf32-i960.c: Delete.
1149 * hosts/i860mach3.h: Delete.
1150 * Makefile.am: Remove i860, i960, bout, and adobe support.
1151 * archures.c: Remove i860 and i960 support.
1152 * coffcode.h: Likewise.
1153 * reloc.c: Likewise.
1154 * aoutx.h: Comment updates.
1155 * archive.c: Remove BOUT and i960 support.
1156 * bfd.c: Remove BOUT support.
1157 * coffswap.h: Remove i960 support.
1158 * config.bfd: Remove i860, i960 and adobe targets.
1159 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
1160 * targets.c: Likewise.
1161 * ieee.c: Remove i960 support.
1162 * mach-o.c: Remove i860 support.
1163 * Makefile.in: Regenerate.
1164 * bfd-in2.h: Regenerate.
1165 * configure: Regenerate.
1166 * libbfd.h: Regenerate.
1167 * po/SRC-POTFILES.in: Regenerate.
1169 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1171 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
1172 in the BFD symbol referred by the relocation.
1173 (mips_elf64_write_rela): Likewise.
1175 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1177 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
1178 error for out-of-range `r_sym' values.
1180 2018-04-09 Alan Modra <amodra@gmail.com>
1182 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
1183 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
1184 (ppc64_elf_check_relocs): Set has_pltcall.
1185 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
1186 (ppc64_elf_inline_plt): New function.
1187 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
1188 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
1189 * elf32-ppc.c (has_pltcall): Define.
1190 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
1191 (ppc_elf_check_relocs): Set has_pltcall.
1192 (ppc_elf_inline_plt): New function.
1193 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
1194 (ppc_elf_size_dynamic_sections): Likewise.
1195 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
1197 2018-04-09 Alan Modra <amodra@gmail.com>
1199 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
1200 (is_plt_seq_reloc): New function.
1201 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
1202 (ppc_elf_tls_optimize): Handle inline plt call sequence.
1203 (ppc_elf_relax_section): Handle PLTCALL reloc.
1204 (ppc_elf_relocate_section): Nop out inline plt call sequence when
1206 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
1207 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
1208 (has_tls_get_addr_call): Correct comment.
1209 (is_branch_reloc): Add PLTCALL.
1210 (is_plt_seq_reloc): New function.
1211 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
1212 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
1213 entry for R_PPC64_PLTCALL.
1214 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
1215 (ppc_type_of_stub): Handle PLTCALL reloc.
1216 (toc_adjusting_stub_needed): Likewise.
1217 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
1218 reloc insn. Nop out inline plt call sequence when resolving
1219 locally. Handle __tls_get_addr inline plt call optimization.
1221 2018-04-09 Alan Modra <amodra@gmail.com>
1223 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
1224 (struct ppc_stub_hash_entry): Add symtype field.
1226 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
1227 (create_linkage_sections): Create pltlocal and relpltlocal.
1228 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
1230 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1231 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1232 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1233 Keep PLT entries for inline calls against locals.
1234 (ppc_build_one_stub): Use pltlocal as appropriate.
1235 (ppc_size_one_stub): Likewise.
1236 (ppc64_elf_size_stubs): Set symtype.
1237 (build_global_entry_stubs_and_plt): Init pltlocal and write
1238 relpltlocal for globals.
1239 (write_plt_relocs_for_local_syms): Likewise for local syms.
1240 (ppc64_elf_relocate_section): Support PLT for local syms.
1241 * elf32-ppc.c (PLT_KEEP): Define.
1242 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
1243 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
1244 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
1245 Set PLT_KEEP. Adjust update_local_sym_info call.
1246 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1247 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1248 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1249 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
1250 (write_global_sym_plt): Init pltlocal and write relpltlocal.
1251 (ppc_finish_symbols): Likewise for locals.
1253 2018-04-09 Alan Modra <amodra@gmail.com>
1255 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
1256 for local symbols to..
1257 (write_plt_relocs_for_local_syms): ..here. New function.
1258 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
1260 (build_global_entry_stubs_and_plt): ..here. Rename from
1261 build_global_entry_stubs.
1262 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
1263 Call write_plt_relocs_for_local_syms.
1264 * elf32-ppc.c (get_sym_h): New function.
1265 (ppc_elf_relax_section): Use get_sym_h.
1266 (ppc_elf_relocate_section): Move output of PLT relocs and glink
1267 stubs for local symbols to..
1268 (ppc_finish_symbols): ..here. New function.
1269 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
1271 (write_global_sym_plt): ..here. New function.
1272 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
1273 (ppc_finish_symbols): Declare.
1275 2018-04-09 Alan Modra <amodra@gmail.com>
1277 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
1278 (ppc_elf_relocate_section): Likewise.
1279 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
1280 (ppc64_elf_relocate_section): Likewise. Correct PLT16
1281 resolution to plt entry relative to toc pointer.
1283 2018-04-09 Alan Modra <amodra@gmail.com>
1285 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1286 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
1287 file when other TLS flags are tested in a mask.
1288 (TLS_MARK, NON_GOT): Define.
1289 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1290 (update_local_sym_info): Don't create got entry when NON_GOT.
1291 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1293 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
1294 (ppc64_elf_relocate_section): Likewise.
1295 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
1296 __tls_get_addr calls lacking a marker reloc.
1297 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1298 TLS_TPRELGD): Renumber. Update comment.
1299 (TLS_MARK, NON_GOT): Define.
1300 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1301 (update_local_sym_info): Don't create got entry when NON_GOT.
1302 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1304 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
1305 __tls_get_addr calls lacking a marker reloc.
1307 2018-04-06 H.J. Lu <hongjiu.lu@intel.com>
1309 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
1310 R_X86_64_converted_reloc_bit.
1312 2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
1315 * configure: Regenerated.
1317 2018-04-05 Alan Modra <amodra@gmail.com>
1319 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
1320 (elf_hppa_info_to_howto_rel): Likewise.
1322 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1324 * elf-hppa.h (elf_hppa_info_to_howto): Also return
1325 unsuccessfully for unimplemented relocations.
1326 (elf_hppa_info_to_howto_rel): Likewise.
1328 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1330 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
1331 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
1332 howto lookup failure.
1333 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
1335 (elf32_i860_info_to_howto_rela): Likewise.
1336 (elf32_i860_relocate_splitn): Likewise.
1337 (elf32_i860_relocate_pc16): Likewise.
1338 (elf32_i860_relocate_pc26): Likewise.
1339 (elf32_i860_relocate_section): Likewise.
1341 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1343 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
1344 check for `visium_elf_howto_table' table access.
1346 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1348 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
1349 check for `iq2000_elf_howto_table' table access.
1351 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1353 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
1354 for `elf32_frv_howto_table' table access.
1356 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1358 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1359 unsuccessfully for placeholder howtos.
1360 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1361 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1363 2018-03-29 Maciej W. Rozycki <macro@mips.com>
1365 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1366 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1368 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1370 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1371 ATTRIBUTE_UNUSED from `abfd'.
1373 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1375 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1376 `_bfd_error_handler' call formatting.
1378 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1380 * elf32-mips.c (mips_info_to_howto_rel): Call
1381 `mips_elf32_rtype_to_howto' directly rather than via
1382 `->elf_backend_mips_rtype_to_howto'.
1384 2018-03-28 Renlin Li <renlin.li@arm.com>
1387 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1388 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1389 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1390 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1391 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1392 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1393 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1394 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1395 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1396 (elfNN_aarch64_final_link_relocate): Support new relocations.
1397 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1399 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1401 2018-03-28 Renlin Li <renlin.li@arm.com>
1404 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1405 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1406 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1407 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1408 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1409 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1410 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1411 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1412 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1413 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1414 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1415 TLSLE_LDST16_TPREL_LO12,
1416 TLSLE_LDST16_TPREL_LO12_NC,
1417 TLSLE_LDST32_TPREL_LO12,
1418 TLSLE_LDST32_TPREL_LO12_NC,
1419 TLSLE_LDST64_TPREL_LO12,
1420 TLSLE_LDST64_TPREL_LO12_NC,
1421 TLSLE_LDST8_TPREL_LO12,
1422 TLSLE_LDST8_TPREL_LO12_NC.
1423 * bfd-in2.h: Regenerated.
1424 * libbfd.h: Regenerated.
1426 2018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1429 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1430 has_old_style_got_reloc.
1431 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1432 relocations. Fix a couple of long lines.
1433 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1434 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1437 2018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1440 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1441 ENDBR64 to the TLSDESC PLT entry.
1443 2018-03-21 Alan Modra <amodra@gmail.com>
1445 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1446 symbols. Use size_t counts. Delete redundant opd test.
1448 2018-03-21 Alan Modra <amodra@gmail.com>
1450 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1452 2018-03-21 Alan Modra <amodra@gmail.com>
1454 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1456 (update_local_sym_info): Likewise for local_got_tls_masks.
1457 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1459 2018-03-21 Alan Modra <amodra@gmail.com>
1461 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1462 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1463 do in size_dynamic_sections.
1465 2018-03-21 Alan Modra <amodra@gmail.com>
1467 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1468 without first checking array bounds.
1469 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1471 2018-03-20 H.J. Lu <hongjiu.lu@intel.com>
1474 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
1475 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
1477 2018-03-19 Nick Clifton <nickc@redhat.com>
1479 * po/es.po: Updated Spanish translation.
1481 2018-03-15 Max Filippov <jcmvbkbc@gmail.com>
1483 * elf32-xtensa.c (xlate_map_entry): Change types of address
1484 fields from 'unsigned' to 'bfd_vma'.
1485 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
1486 the key argument to bsearch. Allow offsets past the end of a
1487 section, use the last map entry for translation of such offsets.
1489 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1491 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
1492 Not support the target feature.
1493 (nds32_elf_ex9_itb_base): Likewise.
1494 (nds32_elf_ex9_import_table): Likewise.
1495 (nds32_elf_ex9_finish): Likewise.
1496 (nds32_elf_ex9_reloc_jmp): Likewise.
1497 (nds32_elf_get_insn_with_reg): Likewise.
1498 (nds32_get_local_syms): Likewise.
1499 (nds32_elf_ex9_replace_instruction): Likewise.
1500 (nds32_elf_ifc_calc): Likewise.
1501 (nds32_elf_ifc_finish): Likewise.
1502 (nds32_elf_ifc_replace): Likewise.
1503 (nds32_elf_ifc_reloc): Likewise.
1505 2018-03-14 Alan Modra <amodra@gmail.com>
1507 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
1508 sfpr size added before defining alias symbols.
1509 (ppc64_elf_build_stubs): Add stub section padding before
1510 copying sfpr contents and defining save/restore alias symbols.
1512 2018-03-14 H.J. Lu <hongjiu.lu@intel.com>
1515 * elflink.c (elf_gc_mark_debug_section): Also check the local
1516 debug definition section.
1518 2018-03-13 Nick Clifton <nickc@redhat.com>
1521 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
1522 function. Add an end address parameter. Check access of the data
1523 pointer to make sure that they do not extend beyond the end
1524 address. Return FALSE if any check fails. Add the end address
1525 pointer to the ui structure.
1526 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
1527 codes to make sure that they do not extend beyond the end address
1528 pointer. Print an error message and return immediately if any
1531 2018-03-09 Nick Clifton <nickc@redhat.com>
1533 * elf64-s390.c (elf_s390_relocate_section): Move check for
1534 relocations against non-allocated sections to before the code that
1535 handles ifunc relocations.
1536 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1537 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
1538 relocs against IFUNC symbols in non-allocated sections as relocs
1539 against FUNC symbols.
1540 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1542 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
1545 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
1546 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
1547 relocation against FUNC symbol.
1548 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1550 2018-03-07 Renlin Li <renlin.li@arm.com>
1553 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
1554 symbol, and don't emit relocation in specific case.
1556 2018-03-07 Alan Modra <amodra@gmail.com>
1558 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
1559 (mips_elf64_slurp_one_reloc_table): Pass on error.
1561 2018-03-03 James Cowgill <james.cowgill@mips.com>
1562 Maciej W. Rozycki <macro@mips.com>
1565 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
1566 after calling `undefined_symbol' hook if this is an error
1567 condition. Assume the value of 0 for the symbol requested
1570 2018-03-02 Jim Wilson <jimw@sifive.com>
1573 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
1574 and nop instead of 4.
1575 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
1578 2018-03-01 Jim Wilson <jimw@sifive.com>
1581 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
1582 else if instead of if.
1584 2018-03-01 Alan Modra <amodra@gmail.com>
1586 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
1588 2018-02-28 Alan Modra <amodra@gmail.com>
1591 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
1593 2018-02-28 Nick Clifton <nickc@redhat.com>
1597 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
1598 pointer. Drop unused abfd parameter. Check the size of the block
1599 before initialising the data field. Return the end pointer if the
1601 (read_attribute_value): Adjust invocations of read_n_bytes.
1604 * dwarf1.c (parse_die): Check the length of form blocks before
1605 advancing the data pointer.
1607 2018-02-28 Alan Modra <amodra@gmail.com>
1610 * aoutx.h (translate_symbol_table): Print an error message and set
1611 bfd_error on finding an invalid name string offset.
1613 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
1615 * config.in: Regenerated.
1616 * configure: Likewise.
1617 * configure.ac: Add --enable-separate-code.
1618 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
1619 to 1 for Linux/x86 targets,
1620 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
1621 DEFAULT_LD_Z_SEPARATE_CODE is 1.
1623 2018-02-27 Nick Clifton <nickc@redhat.com>
1625 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
1627 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
1628 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
1629 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
1630 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
1631 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1632 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
1633 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1634 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
1635 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
1638 * elf-bfd.h (struct elf_backend_data): Change the return type of
1639 the elf_info_to_howto and elf_info_to_howto_rel function pointers
1641 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
1642 value from the info_to_howto function and fail if that function
1644 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
1645 from the info_to_howto function.
1646 (elf32_h8_relax_section): Likewise.
1647 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1648 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1649 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1650 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1651 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1652 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1653 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
1654 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
1655 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1656 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
1657 (riscv_elf_relocate_section): Likewise.
1658 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
1659 bfd_boolean. Issue an error message, set an error value and
1660 return FALSE if the reloc is not recognized.
1661 (elf_hppa_info_to_howto_rel): Likewise.
1662 * elf-m10200.c (mn10200_info_to_howto): Likewise.
1663 * elf-m10300.c (mn10300_info_to_howto): Likewise.
1664 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
1665 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
1666 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
1667 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
1668 * elf32-bfin.c (bfin_info_to_howto): Likewise.
1669 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
1670 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
1671 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
1672 (cris_info_to_howto_rela): Likewise.
1673 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
1674 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
1675 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
1677 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
1678 (elf32_dlx_info_to_howto_rel): Likewise.
1679 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
1680 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
1681 * elf32-frv.c (frv_info_to_howto_rela)
1682 (frvfdpic_info_to_howto_rel): Likewise.
1683 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
1684 * elf32-gen.c (elf_generic_info_to_howto)
1685 (elf_generic_info_to_howto_rel): Likewise.
1686 * elf32-h8300.c (elf32_h8_info_to_howto)
1687 (elf32_h8_info_to_howto_rel): Likewise.
1688 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1689 * elf32-i386.c (elf_i386_reloc_type_lookup)
1690 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
1691 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
1693 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
1694 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
1695 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
1696 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
1697 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
1698 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
1700 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
1701 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
1702 * elf32-m68k.c (rtype_to_howto): Likewise.
1703 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1704 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
1705 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
1706 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1707 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1709 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
1710 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
1711 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
1712 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
1714 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
1715 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
1716 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1717 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1718 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
1719 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
1720 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
1721 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
1722 * elf32-score.c (s3_bfd_score_info_to_howto)
1723 (_bfd_score_info_to_howto): Likewise.
1724 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1725 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
1726 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
1727 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
1728 (elf32_tic6x_info_to_howto_rel): Likewise.
1729 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
1730 * elf32-v850.c (v850_elf_info_to_howto_rel)
1731 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
1732 * elf32-vax.c (rtype_to_howto): Likewise.
1733 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
1734 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
1735 (elf32_wasm32_info_to_howto_rela): Likewise.
1736 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
1737 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
1738 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
1739 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
1740 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
1741 * elf64-gen.c (elf_generic_info_to_howto)
1742 (elf_generic_info_to_howto_rel): Likewise.
1743 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
1744 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
1745 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
1746 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
1747 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1748 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
1750 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
1751 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1753 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
1754 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
1755 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
1756 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1757 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
1758 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
1759 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
1760 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
1761 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
1762 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
1765 2018-02-26 Jim Wilson <jimw@sifive.com>
1766 Stephan Schreiber <info@fs-driver.org>
1769 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
1770 call, set changed_contents and changed_relocs. Likewise after
1771 successful ia64_elf_relax_br call.
1773 2018-02-26 Alan Modra <amodra@gmail.com>
1775 * elf.c (assign_file_positions_except_relocs): Don't segfault
1776 when actual number of phdrs is less than allocated. Delete
1777 outdated comment. Formatting.
1779 2018-02-26 Alan Modra <amodra@gmail.com>
1781 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
1782 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
1783 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
1784 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
1785 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
1786 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
1787 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
1788 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
1789 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
1790 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
1791 error/warning messages.
1793 2018-02-26 Alan Modra <amodra@gmail.com>
1795 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
1796 * syms.c: Standardize error/warning messages.
1798 2018-02-26 Alan Modra <amodra@gmail.com>
1800 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
1801 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
1802 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
1803 * peXXigen.c, * peicode.h: Standardize error/warning messages.
1805 2018-02-26 Alan Modra <amodra@gmail.com>
1807 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
1809 2018-02-26 Alan Modra <amodra@gmail.com>
1811 * elfxx-mips.c: Standardize error/warning messages.
1813 2018-02-26 Alan Modra <amodra@gmail.com>
1815 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
1816 * elflink.c: Standardize error/warning messages. Replace use of
1817 linker callback einfo with _bfd_error_handler when possible.
1819 2018-02-26 Alan Modra <amodra@gmail.com>
1821 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
1822 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
1823 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
1824 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
1825 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
1826 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
1827 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
1828 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
1829 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
1830 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
1831 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
1832 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
1833 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
1834 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
1835 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
1836 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
1837 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
1838 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
1839 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
1840 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
1841 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
1842 unrecognized/unsupported reloc message.
1844 2018-02-26 Alan Modra <amodra@gmail.com>
1846 * elf32-ppc.c: Standardize error/warning messages. Use
1847 _bfd_error_handler rather than einfo when einfo features not used.
1848 * elf64-ppc.c: Likewise.
1850 2018-02-23 Alan Modra <amodra@gmail.com>
1853 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
1854 segment if no matching LOAD segment.
1856 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1858 * elf32-nds32.h: Define mask for ict_model.
1860 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
1862 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
1864 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1867 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
1869 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
1870 .reginfo section has wrong size.
1872 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1874 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
1875 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
1876 `.MIPS.abiflags' sections.
1877 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
1880 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1882 * section.c (SEC_FIXED_SIZE): New macro.
1883 * bfd-in2.h: Regenerate.
1885 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1887 * section.c (SEC_HAS_GOT_REF): Remove macro.
1888 * bfd-in2.h: Regenerate.
1890 2018-02-19 Alan Modra <amodra@gmail.com>
1892 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
1894 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
1895 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
1896 (_bfd_riscv_relax_pc): Likewise and fix typos.
1897 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
1898 * libbfd.h: Regenerate.
1900 2018-02-19 Alan Modra <amodra@gmail.com>
1902 * dwarf2.c (read_section): Don't use 'll' format modifier.
1903 (find_abstract_instance): Likewise.
1904 * elfcore.h (elf_core_file_p): Likewise.
1906 2018-02-19 Alan Modra <amodra@gmail.com>
1908 * bfd-in.h: Include inttypes.h or if not available define
1909 PRId64, PRIu64 and PRIx64.
1910 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
1911 modifier to print bfd_vma.
1912 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
1913 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
1914 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
1915 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
1916 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
1917 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
1918 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
1919 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
1920 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
1921 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
1922 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
1923 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
1924 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
1925 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
1926 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
1927 and cast input to uint64_t, and similarly for Ld and Lu.
1928 * bfd-in2.h: Regenerate.
1930 2018-02-19 Alan Modra <amodra@gmail.com>
1932 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
1933 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
1934 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
1935 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
1936 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
1937 * reloc.c: Replace use of %R and %T in format strings passed to
1938 einfo and friends by %pR and %pT.
1940 2018-02-19 Alan Modra <amodra@gmail.com>
1942 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
1944 * aout-adobe.c: Update all messages using %A and %B.
1945 * aout-cris.c: Likewise.
1946 * aoutx.h: Likewise.
1947 * archive.c: Likewise.
1948 * binary.c: Likewise.
1949 * cache.c: Likewise.
1950 * coff-alpha.c: Likewise.
1951 * coff-arm.c: Likewise.
1952 * coff-i860.c: Likewise.
1953 * coff-mcore.c: Likewise.
1954 * coff-ppc.c: Likewise.
1955 * coff-rs6000.c: Likewise.
1956 * coff-sh.c: Likewise.
1957 * coff-tic4x.c: Likewise.
1958 * coff-tic54x.c: Likewise.
1959 * coff-tic80.c: Likewise.
1960 * coff64-rs6000.c: Likewise.
1961 * coffcode.h: Likewise.
1962 * coffgen.c: Likewise.
1963 * cofflink.c: Likewise.
1964 * coffswap.h: Likewise.
1965 * compress.c: Likewise.
1966 * cpu-arm.c: Likewise.
1967 * ecoff.c: Likewise.
1968 * elf-attrs.c: Likewise.
1969 * elf-eh-frame.c: Likewise.
1970 * elf-ifunc.c: Likewise.
1971 * elf-m10300.c: Likewise.
1972 * elf-properties.c: Likewise.
1973 * elf-s390-common.c: Likewise.
1975 * elf32-arc.c: Likewise.
1976 * elf32-arm.c: Likewise.
1977 * elf32-avr.c: Likewise.
1978 * elf32-bfin.c: Likewise.
1979 * elf32-cr16.c: Likewise.
1980 * elf32-cr16c.c: Likewise.
1981 * elf32-cris.c: Likewise.
1982 * elf32-crx.c: Likewise.
1983 * elf32-d10v.c: Likewise.
1984 * elf32-d30v.c: Likewise.
1985 * elf32-epiphany.c: Likewise.
1986 * elf32-fr30.c: Likewise.
1987 * elf32-frv.c: Likewise.
1988 * elf32-gen.c: Likewise.
1989 * elf32-hppa.c: Likewise.
1990 * elf32-i370.c: Likewise.
1991 * elf32-i386.c: Likewise.
1992 * elf32-i960.c: Likewise.
1993 * elf32-ip2k.c: Likewise.
1994 * elf32-iq2000.c: Likewise.
1995 * elf32-lm32.c: Likewise.
1996 * elf32-m32c.c: Likewise.
1997 * elf32-m32r.c: Likewise.
1998 * elf32-m68hc11.c: Likewise.
1999 * elf32-m68hc12.c: Likewise.
2000 * elf32-m68hc1x.c: Likewise.
2001 * elf32-m68k.c: Likewise.
2002 * elf32-mcore.c: Likewise.
2003 * elf32-mep.c: Likewise.
2004 * elf32-metag.c: Likewise.
2005 * elf32-microblaze.c: Likewise.
2006 * elf32-moxie.c: Likewise.
2007 * elf32-msp430.c: Likewise.
2008 * elf32-mt.c: Likewise.
2009 * elf32-nds32.c: Likewise.
2010 * elf32-nios2.c: Likewise.
2011 * elf32-or1k.c: Likewise.
2012 * elf32-pj.c: Likewise.
2013 * elf32-ppc.c: Likewise.
2014 * elf32-rl78.c: Likewise.
2015 * elf32-rx.c: Likewise.
2016 * elf32-s390.c: Likewise.
2017 * elf32-score.c: Likewise.
2018 * elf32-score7.c: Likewise.
2019 * elf32-sh-symbian.c: Likewise.
2020 * elf32-sh.c: Likewise.
2021 * elf32-sh64.c: Likewise.
2022 * elf32-sparc.c: Likewise.
2023 * elf32-spu.c: Likewise.
2024 * elf32-tic6x.c: Likewise.
2025 * elf32-tilepro.c: Likewise.
2026 * elf32-v850.c: Likewise.
2027 * elf32-vax.c: Likewise.
2028 * elf32-visium.c: Likewise.
2029 * elf32-wasm32.c: Likewise.
2030 * elf32-xgate.c: Likewise.
2031 * elf32-xtensa.c: Likewise.
2032 * elf64-alpha.c: Likewise.
2033 * elf64-gen.c: Likewise.
2034 * elf64-hppa.c: Likewise.
2035 * elf64-ia64-vms.c: Likewise.
2036 * elf64-mmix.c: Likewise.
2037 * elf64-ppc.c: Likewise.
2038 * elf64-s390.c: Likewise.
2039 * elf64-sh64.c: Likewise.
2040 * elf64-sparc.c: Likewise.
2041 * elf64-x86-64.c: Likewise.
2042 * elfcode.h: Likewise.
2043 * elfcore.h: Likewise.
2044 * elflink.c: Likewise.
2045 * elfnn-aarch64.c: Likewise.
2046 * elfnn-ia64.c: Likewise.
2047 * elfnn-riscv.c: Likewise.
2048 * elfxx-mips.c: Likewise.
2049 * elfxx-sparc.c: Likewise.
2050 * elfxx-tilegx.c: Likewise.
2051 * elfxx-x86.c: Likewise.
2052 * hpux-core.c: Likewise.
2055 * libbfd.c: Likewise.
2056 * linker.c: Likewise.
2057 * mach-o.c: Likewise.
2058 * merge.c: Likewise.
2060 * oasys.c: Likewise.
2061 * pdp11.c: Likewise.
2062 * pe-mips.c: Likewise.
2063 * peXXigen.c: Likewise.
2064 * peicode.h: Likewise.
2065 * reloc.c: Likewise.
2066 * rs6000-core.c: Likewise.
2068 * stabs.c: Likewise.
2069 * vms-alpha.c: Likewise.
2070 * xcofflink.c: Likewise.
2072 2018-02-19 Alan Modra <amodra@gmail.com>
2075 * elf.c (IS_TBSS): Define.
2076 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
2077 (assign_file_positions_for_non_load_sections): Revert last change.
2078 Properly calculate load segment limits to compare against relro limits.
2080 2018-02-17 Alan Modra <amodra@gmail.com>
2083 * elf.c (assign_file_positions_for_non_load_sections): Ignore
2084 degenerate zero size PT_LOAD segments when finding one overlapping
2085 the PT_GNU_RELRO segment.
2087 2018-02-16 Alan Modra <amodra@gmail.com>
2089 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
2090 (_bfd_bool_bfd_true): Rename from bfd_true.
2091 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
2092 (_bfd_int_bfd_0): Rename from bfd_0.
2093 (_bfd_uint_bfd_0): Rename from bfd_0u.
2094 (_bfd_long_bfd_0): Rename from bfd_0l.
2095 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
2096 (_bfd_void_bfd): Rename from bfd_void.
2097 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
2098 (_bfd_bool_bfd_link_false_error),
2099 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
2100 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
2101 (_bfd_bool_bfd_asection_bfd_asection_true),
2102 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
2103 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
2104 * archive.c (_bfd_noarchive_get_elt_at_index),
2105 (_bfd_noarchive_openr_next_archived_file),
2106 (_bfd_noarchive_construct_extended_name_table),
2107 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
2108 (_bfd_noarchive_write_armap): New functions.
2109 * archures.c (_bfd_nowrite_set_arch_mach): New function.
2110 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
2111 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
2112 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
2113 (alpha_ecoff_swap_coff_lineno_out),
2114 (alpha_ecoff_swap_coff_reloc_out): New functions.
2115 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
2116 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
2117 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
2118 (mips_ecoff_swap_coff_lineno_out),
2119 (mips_ecoff_swap_coff_reloc_out): New functions.
2120 * coffcode.h (coff_set_alignment_hook): Replace define with
2122 (symname_in_debug_hook): Likewise.
2123 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
2124 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
2125 * elf.c (assign_file_positions_except_relocs): Test
2126 elf_backend_allow_non_load_phdr for NULL.
2127 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
2128 _bfd_elf_link_omit_section_dynsym. Update uses.
2129 (_bfd_elf_omit_section_dynsym_all): New function.
2130 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
2131 (_bfd_elf_omit_section_dynsym_default): Declare.
2132 (_bfd_elf_omit_section_dynsym_all): Declare.
2133 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
2134 (_bfd_nolink_bfd_get_relocated_section_contents),
2135 (_bfd_nolink_bfd_lookup_section_flags),
2136 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
2137 (_bfd_nolink_bfd_link_hash_table_create),
2138 (_bfd_nolink_bfd_link_just_syms),
2139 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
2140 (_bfd_nolink_bfd_link_split_section),
2141 (_bfd_nolink_section_already_linked),
2142 (_bfd_nolink_bfd_define_common_symbol),
2143 (_bfd_nolink_bfd_define_start_stop): New functions.
2144 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
2145 (_bfd_norelocs_bfd_reloc_name_lookup),
2146 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
2147 * section.c (_bfd_nowrite_set_section_contents): New function.
2148 * syms.c (_bfd_nosymbols_canonicalize_symtab),
2149 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
2150 (_bfd_nosymbols_get_symbol_version_string),
2151 (_bfd_nosymbols_bfd_is_local_label_name),
2152 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
2153 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
2154 (_bfd_nosymbols_bfd_make_debug_symbol),
2155 ( _bfd_nosymbols_read_minisymbols),
2156 ( _bfd_nosymbols_minisymbol_to_symbol),
2157 (_bfd_nodynamic_get_synthetic_symtab): New functions.
2158 * libbfd-in.h: Declare new functions. Update existing defines,
2160 * aix386-core.c: Update to use new hooks. Formatting.
2161 * aout-adobe.c: Likewise.
2162 * aout-arm.c: Likewise.
2163 * aout-target.h: Likewise.
2164 * aout-tic30.c: Likewise.
2165 * aoutf1.h: Likewise.
2166 * binary.c: Likewise.
2168 * cisco-core.c: Likewise.
2169 * coff-alpha.c: Likewise.
2170 * coff-i386.c: Likewise.
2171 * coff-i860.c: Likewise.
2172 * coff-i960.c: Likewise.
2173 * coff-ia64.c: Likewise.
2174 * coff-mips.c: Likewise.
2175 * coff-ppc.c: Likewise.
2176 * coff-rs6000.c: Likewise.
2177 * coff-sh.c: Likewise.
2178 * coff-tic30.c: Likewise.
2179 * coff-tic54x.c: Likewise.
2180 * coff-x86_64.c: Likewise.
2181 * coff64-rs6000.c: Likewise.
2182 * coffcode.h: Likewise.
2183 * elf-m10300.c: Likewise.
2184 * elf32-cr16.c: Likewise.
2185 * elf32-lm32.c: Likewise.
2186 * elf32-m32r.c: Likewise.
2187 * elf32-metag.c: Likewise.
2188 * elf32-score.c: Likewise.
2189 * elf32-score7.c: Likewise.
2190 * elf32-tilepro.c: Likewise.
2191 * elf32-xstormy16.c: Likewise.
2192 * elf32-xtensa.c: Likewise.
2193 * elf64-alpha.c: Likewise.
2194 * elf64-hppa.c: Likewise.
2195 * elf64-ia64-vms.c: Likewise.
2196 * elf64-mmix.c: Likewise.
2197 * elf64-sh64.c: Likewise.
2198 * elfnn-ia64.c: Likewise.
2199 * elfxx-sparc.c: Likewise.
2200 * elfxx-target.h: Likewise.
2201 * elfxx-tilegx.c: Likewise.
2202 * elfxx-x86.h: Likewise.
2203 * hp300hpux.c: Likewise.
2204 * hppabsd-core.c: Likewise.
2205 * hpux-core.c: Likewise.
2206 * i386msdos.c: Likewise.
2207 * i386os9k.c: Likewise.
2210 * irix-core.c: Likewise.
2211 * libaout.h: Likewise.
2212 * libecoff.h: Likewise.
2213 * mach-o-target.c: Likewise.
2214 * mach-o.c: Likewise.
2215 * mipsbsd.c: Likewise.
2217 * netbsd-core.c: Likewise.
2218 * nlm-target.h: Likewise.
2219 * oasys.c: Likewise.
2220 * osf-core.c: Likewise.
2221 * pdp11.c: Likewise.
2222 * pe-mips.c: Likewise.
2223 * pe-x86_64.c: Likewise.
2225 * plugin.c: Likewise.
2226 * ppcboot.c: Likewise.
2227 * ptrace-core.c: Likewise.
2228 * sco5-core.c: Likewise.
2230 * sparclynx.c: Likewise.
2232 * tekhex.c: Likewise.
2233 * trad-core.c: Likewise.
2234 * verilog.c: Likewise.
2235 * versados.c: Likewise.
2236 * vms-alpha.c: Likewise.
2237 * vms-lib.c: Likewise.
2238 * wasm-module.c: Likewise.
2240 * libbfd.h: Regenerate.
2242 2018-02-15 Jim Wilson <jimw@sifive.com>
2244 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
2245 symbols whose section address is zero.
2247 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
2248 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
2249 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
2250 Add %X%P to error messages.
2252 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
2255 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2256 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
2257 and assert that the result of the call is not NULL.
2259 2018-02-14 Nick Clifton <nickc@redhat.com>
2262 Revert previous delta. Add extra casts to avoid compile time
2264 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
2265 cast to avoid warning from gcc v8 compiler.
2266 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2267 (_bfd_generic_bfd_set_private_flags): Likewise.
2268 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2269 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2270 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2271 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2272 (_bfd_noarchive_construct_extended_name_table): Likewise.
2273 (_bfd_noarchive_truncate_arname): Likewise.
2274 (_bfd_noarchive_write_ar_hdr): Likewise.
2275 (_bfd_noarchive_get_elt_at_index): Likewise.
2276 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2277 (_bfd_nosymbols_print_symbol): Likewise.
2278 (_bfd_nosymbols_get_symbol_info): Likewise.
2279 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2280 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2281 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2282 (_bfd_nosymbols_get_lineno): Likewise.
2283 (_bfd_nosymbols_find_nearest_line): Likewise.
2284 (_bfd_nosymbols_find_line): Likewise.
2285 (_bfd_nosymbols_find_inliner_info): Likewise.
2286 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2287 (_bfd_nosymbols_read_minisymbols): Likewise.
2288 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2289 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2290 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2291 (_bfd_nowrite_set_arch_mach): Likewise.
2292 (_bfd_nowrite_set_section_contents): Likewise.
2293 (_bfd_nolink_sizeof_headers): Likewise.
2294 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2295 (_bfd_nolink_bfd_relax_section): Likewise.
2296 (_bfd_nolink_bfd_gc_sections): Likewise.
2297 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2298 (_bfd_nolink_bfd_merge_sections): Likewise.
2299 (_bfd_nolink_bfd_is_group_section): Likewise.
2300 (_bfd_nolink_bfd_discard_group): Likewise.
2301 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2302 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2303 (_bfd_nolink_bfd_link_just_syms): Likewise.
2304 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2305 (_bfd_nolink_bfd_final_link): Likewise.
2306 (_bfd_nolink_bfd_link_split_section): Likewise.
2307 (_bfd_nolink_section_already_linked): Likewise.
2308 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2309 (_bfd_nolink_bfd_define_start_stop): Likewise.
2310 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2311 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2312 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2313 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2314 * libbfd.c (bfd_false_any): Delete.
2315 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
2316 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
2317 * libbfd.h (extern): Regenerate
2318 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
2319 cast to avoid warning from gcc v8 compiler.
2320 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2321 * binary.c (binary_get_symbol_info): Likewise.
2322 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2323 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2324 * coffcode.h (coff_set_alignment_hook): Likewise.
2325 (symname_in_debug_hook): Likewise.
2326 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2327 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2328 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2329 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2330 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2331 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2332 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2333 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2334 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2335 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2336 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2337 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2338 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2339 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2340 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2341 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2342 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2343 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2344 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2345 (bfd_elfNN_bfd_set_private_flags): Likewise.
2346 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2347 (elf_backend_init_index_section): Likewise.
2348 (elf_backend_allow_non_load_phdr): Likewise.
2349 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2350 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2351 * ieee.c (ieee_construct_extended_name_table): Likewise.
2352 (ieee_write_armap): Likewise.
2353 (ieee_write_ar_hdr): Likewise.
2354 (ieee_bfd_is_target_special_symbol): Likewise.
2355 * ihex.c (ihex_canonicalize_symtab): Likewise.
2356 (ihex_bfd_is_target_special_symbol): Likewise.
2357 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2358 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2359 (_bfd_ecoff_set_alignment_hook): Likewise.
2360 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2361 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2362 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2363 * oasys.c (oasys_construct_extended_name_table): Likewise.
2364 (oasys_write_armap): Likewise.
2365 (oasys_write_ar_hdr): Likewise.
2366 (oasys_bfd_is_target_special_symbol): Likewise.
2367 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2368 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2369 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2370 * som.c (som_bfd_is_target_special_symbol): Likewise.
2371 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2372 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2373 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2374 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2375 (versados_bfd_reloc_name_lookup): Likewise.
2376 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2377 (vms_bfd_define_start_stop): Likewise.
2378 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2379 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2380 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2382 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2385 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2386 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2387 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2388 R_X86_64_PC32 reloc against dynamic function in data section.
2389 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2390 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2391 against dynamic function in data section.
2392 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2393 function address only if pcrel_plt is true.
2394 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2395 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2396 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2397 PC-relative relocation against a function definition in data
2398 secton in PIE. Remove the obsolete comments.
2399 (elf_x86_link_hash_table): Add pcrel_plt.
2401 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2403 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2404 instead of bfd_link_pic, for building shared library.
2406 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2409 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2410 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2411 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2412 against protected function in shared object.
2414 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2417 * po/ru.po: Fix typo in Russian translation.
2419 2018-02-13 Maciej W. Rozycki <macro@mips.com>
2421 * wasm-module.c (wasm_scan_name_function_section): Rename
2422 `index' local variable to `idx'.
2424 2018-02-13 Nick Clifton <nickc@redhat.com>
2427 Fix compile time warnings generated by gcc version 8.
2428 * libbfd-in.h: Remove extraneous text from prototypes.
2429 Add prototypes for bfd_false_any, bfd_true_any,
2430 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2431 bfd_n1_any, bfd_void_any.
2432 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2434 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2435 (_bfd_generic_bfd_set_private_flags): Likewise.
2436 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2437 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2438 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2439 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2440 (_bfd_noarchive_construct_extended_name_table): Likewise.
2441 (_bfd_noarchive_truncate_arname): Likewise.
2442 (_bfd_noarchive_write_ar_hdr): Likewise.
2443 (_bfd_noarchive_get_elt_at_index): Likewise.
2444 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2445 (_bfd_nosymbols_print_symbol): Likewise.
2446 (_bfd_nosymbols_get_symbol_info): Likewise.
2447 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2448 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2449 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2450 (_bfd_nosymbols_get_lineno): Likewise.
2451 (_bfd_nosymbols_find_nearest_line): Likewise.
2452 (_bfd_nosymbols_find_line): Likewise.
2453 (_bfd_nosymbols_find_inliner_info): Likewise.
2454 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2455 (_bfd_nosymbols_read_minisymbols): Likewise.
2456 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2457 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2458 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2459 (_bfd_nowrite_set_arch_mach): Likewise.
2460 (_bfd_nowrite_set_section_contents): Likewise.
2461 (_bfd_nolink_sizeof_headers): Likewise.
2462 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2463 (_bfd_nolink_bfd_relax_section): Likewise.
2464 (_bfd_nolink_bfd_gc_sections): Likewise.
2465 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2466 (_bfd_nolink_bfd_merge_sections): Likewise.
2467 (_bfd_nolink_bfd_is_group_section): Likewise.
2468 (_bfd_nolink_bfd_discard_group): Likewise.
2469 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2470 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2471 (_bfd_nolink_bfd_link_just_syms): Likewise.
2472 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2473 (_bfd_nolink_bfd_final_link): Likewise.
2474 (_bfd_nolink_bfd_link_split_section): Likewise.
2475 (_bfd_nolink_section_already_linked): Likewise.
2476 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2477 (_bfd_nolink_bfd_define_start_stop): Likewise.
2478 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2479 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2480 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2481 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2482 * libbfd.c (bfd_false_any): New function. Like bfd_false but
2483 accepts one or more arguments.
2484 (bfd_true_any): Likewise.
2485 (bfd_nullvoidptr_any): Likewise.
2486 (bfd_0_any): Likewise.
2487 (bfd_0u_any): Likewise.
2488 (bfd_0l_any): Likewise.
2489 (_bfd_n1_any): Likewise.
2490 (bfd_void_any): Likewise.
2491 * libbfd.h (extern): Regenerate
2492 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
2493 based dummy function.
2494 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2495 * binary.c (binary_get_symbol_info): Likewise.
2496 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2497 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2498 * coffcode.h (coff_set_alignment_hook): Likewise.
2499 (symname_in_debug_hook): Likewise.
2500 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2501 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2502 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2503 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2504 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2505 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2506 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2507 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2508 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2509 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2510 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2511 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2512 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2513 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2514 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2515 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2516 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2517 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2518 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2519 (bfd_elfNN_bfd_set_private_flags): Likewise.
2520 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2521 (elf_backend_init_index_section): Likewise.
2522 (elf_backend_allow_non_load_phdr): Likewise.
2523 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2524 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2525 * ieee.c (ieee_construct_extended_name_table): Likewise.
2526 (ieee_write_armap): Likewise.
2527 (ieee_write_ar_hdr): Likewise.
2528 (ieee_bfd_is_target_special_symbol): Likewise.
2529 * ihex.c (ihex_canonicalize_symtab): Likewise.
2530 (ihex_bfd_is_target_special_symbol): Likewise.
2531 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2532 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2533 (_bfd_ecoff_set_alignment_hook): Likewise.
2534 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2535 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2536 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2537 * oasys.c (oasys_construct_extended_name_table): Likewise.
2538 (oasys_write_armap): Likewise.
2539 (oasys_write_ar_hdr): Likewise.
2540 (oasys_bfd_is_target_special_symbol): Likewise.
2541 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2542 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2543 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2544 * som.c (som_bfd_is_target_special_symbol): Likewise.
2545 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2546 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2547 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2548 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2549 (versados_bfd_reloc_name_lookup): Likewise.
2550 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2551 (vms_bfd_define_start_stop): Likewise.
2552 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2553 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2554 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2555 * elf32-arc.c (get_replace_function): Assign replacement function
2557 * elf32-i370.c (i370_noop): Update prototype.
2559 2018-02-13 Alan Modra <amodra@gmail.com>
2562 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
2563 relocation sections. If size reduces to just the flag word,
2564 remove that too and mark with SEC_EXCLUDE.
2565 * elflink.c (bfd_elf_final_link): Strip empty group sections.
2567 2018-02-13 Alan Modra <amodra@gmail.com>
2570 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
2573 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
2575 * i386msdos.c (msdos_mkobject); New function.
2576 (msdos_object_p): New function.
2577 (i386_msdos_vec): Use msdos_object_p as the check_format
2579 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
2580 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
2582 * peXXigen.c: Likewise.
2583 * coff-ia64.c: Likewise.
2585 2018-02-12 Nick Clifton <nickc@redhat.com>
2587 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
2589 * elf32-arc.c (elf_arc_relocate_section): Likewise.
2591 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
2593 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
2594 (sparc_elf_append_rela): Assert that there is enough room in section.
2595 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
2596 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
2597 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
2598 For a symbol subject to a GOT relocation, reserve a slot in the
2599 relocation section if the symbol isn't dynamic and we are in PIC mode.
2600 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
2601 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
2602 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
2603 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
2604 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
2605 resolved_to_zero. Do not generate a dynamic GOT relocation for an
2606 undefined weak symbol with non-default visibility. Remove superfluous
2607 'else' and fix formatting.
2609 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
2611 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
2613 (i386_elf32_sol2_vec): Don't declare.
2614 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
2615 Don't set need_global_offset_table.
2616 (elf_i386_solaris_arch_bed): New.
2617 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
2619 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
2620 target_os != is_nacl instead of target_os == is_normal.
2621 (x86_64_elf64_sol2_vec): Don't declare.
2622 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
2623 is_nacl instead of target_os == is_normal. Don't set
2624 need_global_offset_table.
2625 (elf_x86_64_solaris_arch_bed): New.
2626 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
2628 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
2629 _GLOBAL_OFFSET_TABLE_ for Solaris.
2630 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
2631 need_global_offset_table.
2632 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
2633 (elf_x86_link_hash_table): Remove need_global_offset_table.
2634 (elf_x86_init_table): Likewise.
2636 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2638 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2640 (i386_elf32_sol2_vec): Declared.
2641 (elf_i386_link_setup_gnu_properties): Set
2642 need_global_offset_table with info->output_bfd->xvec.
2643 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2645 (x86_64_elf64_sol2_vec): Declared.
2646 (elf_x86_64_link_setup_gnu_properties): Set
2647 need_global_offset_table with info->output_bfd->xvec.
2649 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2651 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2653 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
2655 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2657 (elf_x86_64_link_setup_gnu_properties): Set
2658 need_global_offset_table for Solaris.
2659 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
2660 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
2661 (_bfd_x86_elf_link_setup_gnu_properties): Copy
2662 need_global_offset_table.
2663 * elfxx-x86.h (elf_x86_link_hash_table): Add
2664 need_global_offset_table.
2665 (elf_x86_init_table): Likewise.
2667 2018-02-08 Jim Wilson <jimw@sifive.com>
2669 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
2672 2018-02-08 Nick Clifton <nickc@redhat.com>
2675 * elf.c (elf_parse_notes): Reject notes with excessuively large
2678 2018-02-07 Alan Modra <amodra@gmail.com>
2680 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
2681 * elf32-ppc.c: Remove speculation barrier support.
2682 * elf32-ppc.h: Likewise.
2683 * elf64-ppc.c: Likewise.
2684 * elf64-ppc.h: Likewise.
2686 2018-02-06 Jim Wilson <jimw@sifive.com>
2688 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
2689 callback to report an error.
2691 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
2694 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
2695 into call to !bfd_link_executable and tidy up.
2696 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
2697 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
2698 !bfd_link_executable.
2699 <R_SPARC_TLS_IE_HI22>: Likewise.
2700 <GOT relocations>: Remove useless code, tidy and merge related blocks.
2701 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
2702 !bfd_link_executable.
2703 <R_SPARC_WPLT30>: Tidy up.
2704 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
2705 !bfd_link_executable.
2706 (allocate_dynrelocs): Likewise.
2707 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
2708 <R_SPARC_TLS_GD_HI22>: Merge into...
2709 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
2710 sparc_elf_tls_transition and remove redundant code.
2711 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
2712 !bfd_link_executable.
2713 <R_SPARC_TLS_LDO_HIX22>: Likewise.
2714 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
2715 <R_SPARC_TLS_LDM_CALL>: Likewise.
2716 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
2717 <R_SPARC_TLS_GD_ADD>: Likewise.
2718 <R_SPARC_TLS_LDM_ADD>: Likewise.
2719 <R_SPARC_TLS_LDO_ADD>: Likewise.
2720 <R_SPARC_TLS_IE_LD>: Likewise.
2722 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
2725 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
2726 functions failed to find the function name, try the generic elf
2727 find function instead.
2729 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
2731 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
2732 'memcpy' instead of 'strncpy' when writing the magic number.
2734 2018-02-06 Nick Clifton <nickc@redhat.com>
2737 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
2738 section before attempting to read it in.
2739 (bfd_get_alt_debug_link_info): Likewise.
2741 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
2743 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
2744 line information in addition to name, if they can be found.
2746 2018-02-05 Renlin Li <renlin.li@arm.com>
2749 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
2750 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
2751 check for writeable section as well.
2753 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
2756 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
2757 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
2758 undefined weak symbol to 0.
2759 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
2760 if _GLOBAL_OFFSET_TABLE_ is referenced.
2761 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
2762 got_referenced instead of ref_regular_nonweak. Remove the
2763 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
2764 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
2766 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2768 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
2769 initialize `hi_reloc'.
2771 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2773 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
2774 SHT_MIPS_REGINFO sections don't assert the correct size and
2775 report an error instead.
2777 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2779 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
2780 status from `->elf_backend_section_processing'.
2782 2018-02-02 Jim Wilson <jimw@sifive.com>
2785 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
2786 If link_info->wrap_hash, check for a duplicate symbol and ignore.
2787 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
2788 Pass new argument to riscv_relax_delete_bytes.
2789 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
2790 ATTRIBUTE_UNUSED from link_info parameter.
2792 2018-02-02 Alan Modra <amodra@gmail.com>
2794 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
2795 emitted for toc sequence optimization. Set and use "howto" later.
2797 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
2799 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
2800 arithmetic on NULL pointer.
2801 * elflink.c (_bfd_elf_archive_symbol_lookup,
2802 elf_link_add_archive_symbols): Likewise.
2804 2018-01-31 Michael Matz <matz@suse.de>
2806 * elflink.c (bfd_elf_define_start_stop): Fix check of
2809 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
2812 * elflink.c (bfd_elf_define_start_stop): Check if __start and
2813 __stop symbols are referenced by shared objects.
2815 2018-01-30 Alan Modra <amodra@gmail.com>
2818 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
2819 segment when demand paged with lma on the same page. Test this
2820 before load/non-load, executable/non-executable,
2821 writable/non-writable tests and simplify. Delete bogus relro
2822 condition in writable/non-writable test. Delete outdated
2823 comment. Formatting.
2825 2018-01-30 Alan Modra <amodra@gmail.com>
2827 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
2830 2018-01-29 Alan Modra <amodra@gmail.com>
2833 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
2834 range before converting to a symbol table pointer.
2836 2018-01-27 Nick Clifton <nickc@redhat.com>
2838 * po/ru.po: Updated Russian translation.
2840 2018-01-26 Alan Modra <amodra@gmail.com>
2842 * elflink.c (bfd_elf_define_start_stop): Override symbols when
2843 they are defined dynamically.
2845 2018-01-26 Alan Modra <amodra@gmail.com>
2847 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
2848 .branch_lt changes size.
2850 2018-01-25 Alan Modra <amodra@gmail.com>
2853 * elfcode.h (elf_object_p): Avoid integer overflow.
2855 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
2858 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2859 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
2862 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
2865 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
2866 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
2867 bfd_link_executable for TLS check.
2868 (_bfd_sparc_elf_check_relocs): Likewise.
2869 (allocate_dynrelocs): Likewise.
2870 (_bfd_sparc_elf_relocate_section): Likewise.
2872 2018-01-24 Renlin Li <renlin.li@arm.com>
2874 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
2875 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2876 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2877 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2878 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2879 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
2880 (_bfd_aarch64_elf_resolve_relocation): Likewise.
2882 2018-01-24 Renlin Li <renlin.li@arm.com>
2884 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
2885 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
2886 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
2887 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
2888 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
2889 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2890 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2891 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2892 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2893 * bfd-in2.h: Regenerate.
2894 * libbfd.h: Regenerate.
2896 2018-01-23 Maciej W. Rozycki <macro@mips.com>
2898 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
2899 `mips_elf32_section_processing' comment reference.
2901 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
2904 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
2905 versioned __tls_get_addr symbol.
2907 2018-01-19 Nick Clifton <nickc@redhat.com>
2909 * po/fr.po: Updated French translation.
2911 2018-01-18 Alan Modra <amodra@gmail.com>
2913 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
2914 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
2915 (ppc64_elf_build_stubs): Likewise.
2917 2018-01-17 Nick Clifton <nickc@redhat.com>
2919 * po/ru.po: Updated Russian translation.
2920 * po/uk/po: Updated Ukranian translation.
2922 2018-01-17 Alan Modra <amodra@gmail.com>
2924 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
2926 2018-01-17 Alan Modra <amodra@gmail.com>
2928 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
2929 (CRSETEQ, BEQCTRM): Define.
2930 (is_nonpic_glink_stub): Don't check bctr.
2931 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2932 (ppc_elf_relax_section): Size speculation barrier.
2933 (output_bctr): New function.
2934 (write_glink_stub): Use output_bctr.
2935 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
2936 (ppc_elf_finish_dynamic_symbol): Likewise.
2937 (ppc_elf_finish_dynamic_sections): Use output_bctr.
2938 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
2939 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
2940 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
2941 (size_global_entry_stubs): Handle speculation barrier sizing.
2942 (plt_stub_size): Likewise.
2943 (output_bctr): New function.
2944 (build_plt_stub, build_tls_get_addr_stub): Output speculation
2946 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
2947 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
2948 (build_global_entry_stubs): Output speculation barrier.
2949 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
2950 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
2952 2018-01-17 Alan Modra <amodra@gmail.com>
2954 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
2955 __tls_get_addr_opt, and alignment sizing.
2956 (TLS_GET_ADDR_GLINK_SIZE): Delete.
2957 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
2958 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
2960 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2961 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
2962 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
2964 (write_glink_stub): Handle __tls_get_addr_opt stub.
2965 Pad out to size given by GLINK_ENTRY_SIZE.
2966 (ppc_elf_relocate_section): Adjust write_glink_stub call.
2967 (ppc_elf_finish_dynamic_symbol): Likewise.
2968 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
2969 insn array since so many need rewriting.
2970 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
2971 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
2972 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
2973 nops. Adjust all uses.
2974 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
2975 in glink_vma calculation.
2976 (struct ppc_link_hash_table): Add global_entry section pointer.
2977 (create_linkage_sections): Create separate section for global
2979 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
2980 (size_global_entry_stubs): Handle sizing for aligned stubs.
2981 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
2982 and don't stash end of glink branch table in rawsize.
2983 (ppc_build_one_stub): Rewrite stub size calculations.
2984 (build_global_entry_stubs): Use new section.
2985 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
2986 Build lazy link stubs out to end of section. Build global entry
2987 stubs in new section.
2989 2018-01-15 Nick Clifton <nickc@redhat.com>
2991 * po/uk.po: Updated Ukranian translation.
2993 2018-01-13 Nick Clifton <nickc@redhat.com>
2995 * po/bfd.pot: Regenerated.
2997 2018-01-13 Nick Clifton <nickc@redhat.com>
2999 * version.m4: Bump version to 2.30.51
3000 * configure: Regenerate.
3002 2018-01-13 Nick Clifton <nickc@redhat.com>
3004 2.30 branch created.
3006 2018-01-12 Jens Widell <jl@opera.com>
3008 * elf.c (setup_group): Optimize search for group by remembering
3009 last found group and restarting search at that index.
3010 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
3012 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
3014 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
3015 bfd_link_common_skip_none in switch.
3017 2018-01-12 Alan Modra <amodra@gmail.com>
3020 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
3021 references on forced local symbols.
3023 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
3025 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
3026 .reginfo section has wrong size.
3028 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3031 * elf.c (_bfd_elf_map_sections_to_segments): When generating
3032 separate code and read-only data LOAD segments, create a new
3033 LOAD segment if the previous section contains text and the
3034 current section doesn't or vice versa. Don't put a writable
3035 section in a read-only segment if there is a RELRO segment.
3037 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3040 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
3041 references on forced local symbols.
3043 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3046 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
3047 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
3049 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
3052 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
3054 2018-01-03 John Baldwin <jhb@FreeBSD.org>
3056 * elf.c (elfcore_grok_freebsd_note): Handle
3057 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
3058 NT_FREEBSD_PROCSTAT_VMMAP.
3060 2018-01-03 Alan Modra <amodra@gmail.com>
3062 Update year range in copyright notice of all files.
3064 For older changes see ChangeLog-2017
3066 Copyright (C) 2018 Free Software Foundation, Inc.
3068 Copying and distribution of this file, with or without modification,
3069 are permitted in any medium without royalty provided the copyright
3070 notice and this notice are preserved.
3076 version-control: never