1 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
4 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed.
5 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
6 (elf_backend_add_symbol_hook): Likewise.
7 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
8 (elf_backend_add_symbol_hook): Likewise.
9 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise.
10 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
11 (elf_backend_add_symbol_hook): Likewise.
12 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise.
13 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
14 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise.
15 (elf_backend_add_symbol_hook): Likewise.
16 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC
18 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
19 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
20 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
21 * elflink.c (elf_link_add_object_symbols): Set
22 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols.
24 2018-05-26 H.J. Lu <hongjiu.lu@intel.com>
27 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New.
28 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function.
29 Extracted from _bfd_elf_link_assign_sym_version.
30 (_bfd_elf_link_hide_sym_by_version): New function.
31 (_bfd_elf_link_assign_sym_version): Use
32 _bfd_elf_link_hide_versioned_symbol.
33 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call
34 _bfd_elf_link_hide_sym_by_version instead of
35 bfd_hide_sym_by_version. Don't check unversioned symbol.
37 2018-05-25 Alan Modra <amodra@gmail.com>
39 * Makefile.in: Regenerate.
40 * po/SRC-POTFILES.in: Regenerate.
42 2018-05-25 Alan Modra <amodra@gmail.com>
44 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS.
45 * configure: Regenerate.
47 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
49 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING
52 2018-05-22 Alan Modra <amodra@gmail.com>
55 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
57 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code
59 (final_link_relocate): Revert last change.
61 2018-05-22 Alan Modra <amodra@gmail.com>
64 * elf32-hppa.c (final_link_relocate): Don't look for plt call
65 stubs in non-alloc sections.
67 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
70 * aout-target.h (MY_bfd_link_hide_symbol): New.
71 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise.
72 * binary.c (binary_bfd_link_hide_symbol): Likewise.
73 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
74 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
75 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise.
76 * coffcode.h (coff_bfd_link_hide_symbol): Likewise.
77 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise.
78 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise.
79 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise.
80 * ihex.c (ihex_bfd_link_hide_symbol): Likewise.
81 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise.
82 * linker.c (_bfd_generic_link_hide_symbol): Likewise.
83 (bfd_link_hide_symbol): Likewise.
84 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise.
85 * mmo.c (mmo_bfd_link_hide_symbol): Likewise.
86 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise.
87 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise.
88 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise.
89 * som.c (som_bfd_link_hide_symbol): Likewise.
90 * srec.c (srec_bfd_link_hide_symbol): Likewise.
91 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise.
92 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise.
93 (alpha_vms_bfd_link_hide_symbol): Likewise.
94 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise.
95 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
96 _bfd_generic_link_hide_symbol.
97 (rs6000_xcoff64_aix_vec): Likewise.
98 * elflink.c (bfd_elf_record_link_assignment): Don't make forced
100 (_bfd_elf_link_hide_symbol): New function.
101 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
102 check root.ldscript_def.
103 * targets.c (bfd_target): Add _bfd_link_hide_symbol.
104 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol.
105 * bfd-in2.h: Regenerated.
106 * libbfd.h: Likewise.
108 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
111 * elf.c (setup_group): Mark section in a section group with
114 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
117 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
118 set eh->local_ref to 1 if a symbol is versioned and there is a
121 2018-05-18 Kito Cheng <kito.cheng@gmail.com>
123 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle
126 2018-05-18 Jim Wilson <jimw@sifive.com>
128 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
129 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
130 (riscv_elf_relocate_section): Don't generate dynamic relocation if
131 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
132 (riscv_elf_finish_dynamic_symbol): Likewise.
134 2018-05-18 John Darrington <john@darrington.wattle.id.au>
136 * Makefile.am: Add s12z files.
137 * Makefile.in: Regenerate.
138 * archures.c: Add bfd_s12z_arch.
139 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24.
140 * bfd-in2.h: Regenerate.
141 * config.bfd: Add s12z target.
142 * configure.ac: Add s12z target.
143 * configure: Regenerate.
144 * cpu-s12z.c: New file.
145 * elf32-s12z.c: New file.
146 * libbfd.c (bfd_putb24): New function.
147 (bfd_putl24): New function.
148 * libbfd.h: Regenerate.
149 * reloc.c: Add s12z relocations.
150 (bfd_get_reloc_size): Handle size 5 relocs.
151 * targets.c: Add s12z_elf32_vec.
153 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
156 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
158 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
159 set eh->local_ref to 1 for linker defined symbols.
161 2018-05-18 Alan Modra <amodra@gmail.com>
164 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries
165 don't point at other SHT_GROUP sections. Set shdr corresponding
166 to invalid entry, to NULL rather than section 0. Identify
167 SHT_GROUP section index when reporting an error. Cope with NULL
170 2018-05-18 Alan Modra <amodra@gmail.com>
172 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout.
173 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden
175 * libbfd.h: Regenerate.
176 * configure: Regenerate.
177 * config.in: Regenerate.
179 2018-05-18 Alan Modra <amodra@gmail.com>
181 * libbfd-in.h: Add include guard.
182 * libcoff-in.h: Likewise.
183 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
184 * doc/Makefile.in: Regenerate.
185 * libbfd.h: Regenerate.
186 * libcoff.h: Regenerate.
188 2018-05-16 Maciej W. Rozycki <macro@mips.com>
190 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
192 2018-05-16 Alan Modra <amodra@gmail.com>
195 * format.c (struct bfd_preserve): Add section_id.
196 (bfd_preserve_save, bfd_preserve_restore): Save and restore
198 (bfd_reinit): Set _bfd_section_id.
199 (bfd_check_format_matches): Put all matches of any priority into
200 matching_vector. Save initial section id and start each attempted
201 match at that section id.
202 * libbfd-in.h (_bfd_section_id): Declare.
203 * section.c (_bfd_section_id): Rename from section_id and make
205 (bfd_get_next_section_id): Delete.
206 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
207 bfd_get_section_id with _bfd_section_id.
208 * libbfd.h: Regenerate.
209 * bfd-in2.h: Regenerate.
211 2018-05-15 Christophe Guillon <christophe.guillon@st.com>
213 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
214 of the aux structure are initialised.
216 2018-05-15 Francois H. Theron <francois.theron@netronome.com>
218 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
220 2018-05-15 Nick Clifton <nickc@redhat.com>
222 * po/pt.po: New Portuguese translation.
223 * configure.ac (ALL_LINGUAS): Add pt.
224 * configure: Regenerate.
226 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
229 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
230 an error on IFUNC pointer defined in PDE.
231 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
232 _bfd_x86_elf_link_fixup_ifunc_symbol.
233 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
234 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
236 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
238 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
241 * elfxx-x86.c (elf_x86_linker_defined): New function.
242 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
243 _end and _edata locally defined within executables.
245 2018-05-12 Alan Modra <amodra@gmail.com>
248 * elf.c (rewrite_elf_program_header): Use segment_mark only for
249 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
250 Instead make matching_lma and suggested_lma pointers to the
251 sections. Align section vma and lma calculated from segment.
252 Don't clear includes_phdrs or includes_filehdr based on p_paddr
253 test. Try to handle alignment padding before first section by
254 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
256 2018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
258 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
259 conformant to TI ABI.
260 (pru_elf32_relax_section): Likewise.
261 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
262 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
263 (pru_elf32_pmem_relocate): Trap - should not get here.
264 (pru_elf32_relocate_section): Add support for REL relocations.
265 (elf_info_to_howto_rel): Enable REL.
266 (elf_backend_may_use_rel_p): Likewise.
267 (elf_backend_may_use_rela_p): Likewise.
268 (elf_backend_default_use_rela_p): Likewise.
270 2018-05-09 Alan Modra <amodra@gmail.com>
273 * peXXigen.c (pe_print_edata): Correct minimum size.
275 2018-05-09 Alan Modra <amodra@gmail.com>
278 * peXXigen.c (pe_print_idata): Bound check hint_addr.
280 2018-05-08 Nick Clifton <nickc@redhat.com>
283 * elf.c (bfd_elf_get_str_section): Check for an excessively large
285 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
286 attribute section is larger than the size of the file.
288 2018-05-07 Alan Modra <amodra@gmail.com>
290 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
291 strncmp when checking for ".bf" special symbol.
292 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
293 section name a char array, remove sentinal known_sections entry,
294 and adjust loop over known_sections to suit. Use memcmp rather
297 2018-05-04 Alan Modra <amodra@gmail.com>
299 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
300 (struct elf_external_linux_prpsinfo32_ugid16),
301 (struct elf_external_linux_prpsinfo64_ugid32),
302 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
303 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
305 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
307 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
309 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
310 * elf32-s390.c (elf_s390_write_core_note): Likewise.
311 * elf64-s390.c (elf_s390_write_core_note): Likewise.
312 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
313 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
315 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
316 false positive gcc-8 warning.
317 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
319 2018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
321 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
322 of arguments when warning about different long double types.
324 2018-05-03 Simon Atanasyan <simon@atanasyan.com>
326 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
327 (elf_backend_fixup_symbol): New macro.
328 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
330 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
332 2018-04-30 Francois H. Theron <francois.theron@netronome.com>
334 * Makefile.am: Added NFP files to build.
335 * archures.c: Added bfd_arch_nfp
336 * config.bfd: Added NFP support.
337 * configure.ac: Added NFP support.
338 * cpu-nfp.c: New, for NFP support.
339 * elf-bfd.h: Added elf_section_info()
340 * elf64-nfp.c: New, for NFP support.
341 * po/SRC-POTFILES.in: Added NFP source files.
342 * targets.c: Added nfp_elf64_vec
343 * bfd-in2.h: Regenerate.
344 * Makefile.in: Regenerate.
345 * configure: Regenerate.
347 2018-04-27 Alan Modra <amodra@gmail.com>
349 * bfd-in2.h: Regenerate.
350 * libbfd.h: Regenerate.
352 2018-04-27 Alan Modra <amodra@gmail.com>
356 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
358 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
360 2018-04-26 Pedro Alves <palves@redhat.com>
362 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
363 ifunc and non-ifunc symbols duplicates.
365 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
366 Mickaël Guêné <mickael.guene@st.com>
368 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
369 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
370 (elf32_arm_populate_plt_entry): Likewise.
371 (elf32_arm_output_plt_map_1): Likewise.
372 (elf32_arm_output_arch_local_syms): Likewise.
374 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
375 Mickaël Guêné <mickael.guene@st.com>
377 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
378 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
380 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
381 Mickaël Guêné <mickael.guene@st.com>
383 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
386 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
387 Mickaël Guêné <mickael.guene@st.com>
389 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
390 (elf32_arm_always_size_sections): Create stack segment.
392 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
393 Mickaël Guêné <mickael.guene@st.com>
395 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
396 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
398 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
399 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
400 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
401 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
402 (struct elf32_arm_link_hash_table): Update comment.
403 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
404 (IS_ARM_TLS_RELOC): Likewise.
405 (elf32_arm_check_relocs): Likewise.
406 (allocate_dynrelocs_for_symbol): Likewise.
407 (elf32_arm_size_dynamic_sections): Update comment.
408 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
409 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
411 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
412 Mickaël Guêné <mickael.guene@st.com>
414 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
415 (elf32_arm_create_dynamic_sections): Handle FDPIC.
416 (elf32_arm_allocate_plt_entry): Likewise.
417 (elf32_arm_populate_plt_entry): Likewise.
418 (elf32_arm_output_plt_map_1): Likewise.
420 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
421 Mickaël Guêné <mickael.guene@st.com>
423 * elf32-arm.c (struct fdpic_local): New.
424 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
425 (elf32_arm_local_fdpic_cnts): New.
426 (struct fdpic_global): New.
427 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
428 (elf32_arm_link_hash_table): Add srofixup field.
429 (arm_elf_add_rofixup): New.
430 (arm_elf_fill_funcdesc): New.
431 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
432 (elf32_arm_allocate_local_sym_info): Likewise.
433 (create_got_section): Create .rofixup section.
434 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
435 (bfd_elf32_arm_set_target_params): Handle FDPIC.
436 (elf32_arm_final_link_relocate): Likewise.
437 (elf32_arm_check_relocs): Likewise.
438 (allocate_dynrelocs_for_symbol): Likewise.
439 (elf32_arm_size_dynamic_sections): Likewise.
440 (elf32_arm_finish_dynamic_sections): Likewise.
441 (elf32_arm_output_arch_local_syms): Likewise.
442 (elf32_arm_fdpic_omit_section_dynsym): New.
444 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
445 Mickaël Guêné <mickael.guene@st.com>
447 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
448 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
449 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
450 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
451 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
452 (elf32_arm_howto_from_type): Take new members of
453 elf32_arm_howto_table_2 into account.
454 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
455 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
456 BFD_RELOC_ARM_FUNCDESC_VALUE.
457 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
458 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
459 BFD_RELOC_ARM_FUNCDESC_VALUE.
461 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
462 Mickaël Guêné <mickael.guene@st.com>
464 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
465 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
466 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
467 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
469 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
470 Mickaël Guêné <mickael.guene@st.com>
472 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
473 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
474 arm*-*-uclinuxfdpiceabi.
475 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
476 arm_elf32_fdpic_le_vec.
477 * configure: Regenerate.
478 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
479 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
480 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
481 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
482 (elf32_arm_fdpic_link_hash_table_create): New.
483 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
484 arm_elf32_fdpic_le_vec.
486 2018-04-25 Alan Modra <amodra@gmail.com>
488 * elf-linux-core.h: Disable gcc-8 string truncation warning.
489 * elf.c (elfcore_write_prpsinfo): Likewise.
491 2018-04-25 Alan Modra <amodra@gmail.com>
493 * Makefile.am: Remove arm-aout and arm-coff support.
494 * config.bfd: Likewise.
495 * configure.ac: Likewise.
496 * targets.c: Likewise.
497 * aout-arm.c: Delete.
498 * armnetbsd.c: Delete.
500 * Makefile.in: Regenerate.
501 * configure: Regenerate.
502 * po/SRC-POTFILES.in: Regenerate.
504 2018-04-24 Nick Clifton <nickc@redhat.com>
507 * elf.c (ignore_section_sym): Check for the output_section pointer
508 being NULL before dereferencing it.
511 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
512 a negative PE_DEBUG_DATA size before iterating over the debug data.
514 2018-04-23 Alan Modra <amodra@gmail.com>
516 * elf-linux-core.h: Revert last change.
519 2018-04-23 Nick Clifton <nickc@redhat.com>
522 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
523 the end of the string table, and zero it.
525 2018-04-23 Alan Modra <amodra@gmail.com>
527 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
528 gcc-8 string truncation warning.
529 (swap_linux_prpsinfo32_ugid16_out): Likewise.
530 (swap_linux_prpsinfo64_ugid32_out): Likewise.
531 (swap_linux_prpsinfo64_ugid16_out): Likewise.
532 * elf.c (elfcore_write_prpsinfo): Likewise.
534 2018-04-23 Nick Clifton <nickc@redhat.com>
537 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
538 the end of the string table, and zero it.
540 2018-04-20 Alan Modra <amodra@gmail.com>
543 * elf32-hppa.c (got_relocs_needed): Add extra param to special
544 case both dtprel and tprel relocs.
545 (allocate_dynrelocs): Adjust conditions for got relocs.
546 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
547 Emit dynamic relocs on TLS GOT entries for shared libraries,
548 not when pic. Omit dynamic reloc on dtprel entry when local,
549 and on tprel entry when local and executable.
551 2018-04-19 Alan Modra <amodra@gmail.com>
554 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
555 (hppa_type_of_stub): Don't return a long branch stub for
556 symbols other than those defined statically.
558 2018-04-19 Alan Modra <amodra@gmail.com>
560 * Makefile.am: Revert 2018-04-18 coff-mips changes.
561 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
562 to selvecs for mips targets change 2018-04-18.
563 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
564 and mips_ecoff_bele_vec.
565 * targets.c: Likewise.
566 * coff-mips.c: Resurrect.
567 * Makefile.in: Regenerate.
568 * configure: Regenerate.
569 * po/SRC-POTFILES.in: Regenerate.
571 2018-04-18 Alan Modra <amodra@gmail.com>
573 * Makefile.am: Remove mips aout and coff support.
574 * config.bfd: Likewise.
575 * configure.ac: Likewise.
576 * targets.c: Likewise.
577 * coff-mips.c: Delete
581 * Makefile.in: Regenerate.
582 * configure: Regenerate.
583 * po/SRC-POTFILES.in: Regenerate.
585 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
587 * elf32-i386.c (elf32_bed): Define before including
589 * elf64-x86-64.c (elf64_bed): Define before including
591 (elf32_bed): Define before including "elf32-target.h".
593 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
596 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
597 normal input file with compatible relocation.
599 2018-04-18 Alan Modra <amodra@gmail.com>
601 * Makefile.am: Remove support for assorted i386 aout and coff targets.
602 * config.bfd: Likewise.
603 * configure.ac: Likewise.
604 * doc/bfdint.texi: Likewise.
605 * targets.c: Likewise.
607 * i386dynix.c: Delete.
608 * i386freebsd.c: Delete.
609 * i386linux.c: Delete.
610 * i386mach3.c: Delete.
611 * i386netbsd.c: Delete.
612 * i386os9k.c: Delete.
613 * Makefile.in: Regenerate.
614 * configure: Regenerate.
615 * po/SRC-POTFILES.in: Regenerate.
617 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
619 Microblaze Target: PIC data text relative
621 * bfd/reloc.c (2 new BFD relocations):
622 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
623 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
624 * bfd/bfd-in2.h: Regenerate
625 * bfd/libbfd.h: Regenerate
626 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
627 new relocs and handle them in both relocate and relax functions.
628 (microblaze_elf_reloc_type_lookup): add mapping between for new
630 (microblaze_elf_relocate_section): Handle new relocs in case of
632 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
634 2018-04-17 Nick Clifton <nickc@redhat.com>
637 * aoutx.h (find_nearest_line): Check that the symbol name exists
638 and is long enough, before attempting to see if it is for a .o
640 * hash.c (bfd_hash_hash): Add an assertion that the string is not
642 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
644 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
648 * dwarf2.c (concat_filename): Check for a NULL table pointer.
650 2018-04-16 Nick Clifton <nickc@redhat.com>
653 * coffgen.c (coff_pointerize_aux): Check for an out of range
656 2018-04-16 Alan Modra <amodra@gmail.com>
658 * Makefile.am: Remove arm-epoc-pe support.
659 * coff-arm.c: Likewise.
660 * config.bfd: Likewise.
661 * configure.ac: Likewise.
662 * targets.c: Likewise.
663 * epoc-pe-arm.c: Delete.
664 * epoc-pei-arm.c: Delete.
665 * Makefile.in: Regenerate.
666 * configure: Regenerate.
667 * po/SRC-POTFILES.in: Regenerate.
669 2018-04-16 Alan Modra <amodra@gmail.com>
671 * Makefile.am: Remove sparc-aout and sparc-coff support.
672 * config.bfd: Likewise.
673 * configure.ac: Likewise.
674 * targets.c: Likewise.
675 * aout-sparcle.c: Delete.
677 * cf-sparclynx.c: Delete.
678 * coff-sparc.c: Delete.
680 * sparclinux.c: Delete.
681 * sparclynx.c: Delete.
682 * sparcnetbsd.c: Delete.
684 * Makefile.in: Regenerate.
685 * configure: Regenerate.
686 * po/SRC-POTFILES.in: Regenerate.
688 2018-04-16 Alan Modra <amodra@gmail.com>
690 * Makefile.am: Remove m68k-aout and m68k-coff support.
691 * aoutf1.h: Likewise.
693 * archive.c: Likewise.
694 * bfd-in.h: Likewise.
696 * coffcode.h: Likewise.
697 * coffswap.h: Likewise.
698 * config.bfd: Likewise.
699 * configure.ac: Likewise.
700 * configure.host: Likewise.
701 * doc/bfd.texinfo: Likewise.
702 * doc/bfdint.texi: Likewise.
703 * freebsd.h: Likewise.
704 * gen-aout.c: Likewise.
705 * hpux-core.c: Likewise.
706 * libaout.h: Likewise.
707 * libbfd-in.h: Likewise.
709 * peicode.h: Likewise.
710 * riscix.c: Likewise.
711 * targets.c: Likewise.
713 * coff-apollo.c: Delete.
714 * coff-aux.c: Delete.
715 * coff-m68k.c: Delete.
716 * coff-svm68k.c: Delete.
717 * coff-u68k.c: Delete.
718 * hosts/delta68.h: Delete.
719 * hosts/hp300bsd.h: Delete.
720 * hosts/m68kaux.h: Delete.
721 * hosts/news.h: Delete.
722 * hp300bsd.c: Delete.
723 * hp300hpux.c: Delete.
724 * liboasys.h: Delete.
725 * m68k4knetbsd.c: Delete.
726 * m68klinux.c: Delete.
727 * m68knetbsd.c: Delete.
729 * versados.c: Delete.
730 * Makefile.in: Regenerate.
731 * bfd-in2.h: Regenerate.
732 * configure: Regenerate.
733 * libbfd.h: Regenerate.
734 * po/SRC-POTFILES.in: Regenerate.
736 2018-04-16 Alan Modra <amodra@gmail.com>
738 * Makefile.am: Remove sh5 and sh64 support.
739 * archures.c: Likewise.
740 * config.bfd: Likewise.
741 * configure.ac: Likewise.
742 * cpu-sh.c: Likewise.
743 * elf32-sh-relocs.h: Likewise.
744 * elf32-sh.c: Likewise.
745 * targets.c: Likewise.
746 * elf32-sh64-com.c: Delete.
747 * elf32-sh64.c: Delete.
748 * elf32-sh64.h: Delete.
749 * elf64-sh64.c: Delete.
750 * Makefile.in: Regenerate.
751 * bfd-in2.h: Regenerate.
752 * configure: Regenerate.
753 * po/SRC-POTFILES.in: Regenerate.
755 2018-04-16 Alan Modra <amodra@gmail.com>
757 * Makefile.am: Remove sh-symbianelf support.
758 * config.bfd: Likewise.
759 * configure.ac: Likewise.
760 * targets.c: Likewise.
761 * elf32-sh-symbian.c: Delete.
762 * Makefile.in: Regenerate.
763 * configure: Regenerate.
764 * po/SRC-POTFILES.in: Regenerate.
766 2018-04-16 Alan Modra <amodra@gmail.com>
768 * Makefile.am: Remove vax-bsd and vax-ultrix support.
769 * config.bfd: Likewise.
770 * configure.ac: Likewise.
771 * targets.c: Likewise.
773 * Makefile.in: Regenerate.
774 * configure: Regenerate.
775 * po/SRC-POTFILES.in: Regenerate.
777 2018-04-16 Alan Modra <amodra@gmail.com>
779 * Makefile.am: Remove w65 support.
780 * archures.c: Likewise.
781 * coffcode.h: Likewise.
782 * config.bfd: Likewise.
783 * configure.ac: Likewise.
784 * targets.c: Likewise.
785 * coff-w65.c: Delete.
787 * Makefile.in: Regenerate.
788 * bfd-in2.h: Regenerate.
789 * configure: Regenerate.
790 * po/SRC-POTFILES.in: Regenerate.
792 2018-04-16 Alan Modra <amodra@gmail.com>
794 * Makefile.am: Remove we32k support.
795 * archures.c: Likewise.
796 * coffcode.h: Likewise.
797 * config.bfd: Likewise.
798 * configure.ac: Likewise.
799 * targets.c: Likewise.
800 * coff-we32k.c: Delete.
801 * cpu-we32k.c: Delete.
802 * Makefile.in: Regenerate.
803 * bfd-in2.h: Regenerate.
804 * configure: Regenerate.
805 * po/SRC-POTFILES.in: Regenerate.
807 2018-04-16 Alan Modra <amodra@gmail.com>
809 * Makefile.am: Remove m88k support.
811 * archures.c: Likewise.
812 * coffcode.h: Likewise.
813 * coffswap.h: Likewise.
814 * config.bfd: Likewise.
815 * configure.ac: Likewise.
816 * cpu-ns32k.c: Likewise.
817 * elf32-nds32.c: Likewise.
818 * mach-o.c: Likewise.
819 * netbsd-core.c: Likewise.
821 * targets.c: Likewise.
822 * coff-m88k.c: Delete.
823 * cpu-m88k.c: Delete.
824 * elf32-m88k.c: Delete.
825 * hosts/m88kmach3.h: Delete.
826 * m88kmach3.c: Delete.
827 * m88kopenbsd.c: Delete.
828 * Makefile.in: Regenerate.
829 * bfd-in2.h: Regenerate.
830 * configure: Regenerate.
831 * po/SRC-POTFILES.in: Regenerate.
833 2018-04-16 Alan Modra <amodra@gmail.com>
835 * Makefile.am: Remove i370 support.
836 * archures.c: Likewise.
837 * config.bfd: Likewise.
838 * configure.ac: Likewise.
839 * targets.c: Likewise.
840 * cpu-i370.c: Delete.
841 * elf32-i370.c: Delete.
842 * Makefile.in: Regenerate.
843 * bfd-in2.h: Regenerate.
844 * configure: Regenerate.
845 * po/SRC-POTFILES.in: Regenerate.
847 2018-04-16 Alan Modra <amodra@gmail.com>
849 * Makefile.am: Remove h8500 support.
850 * archures.c: Likewise.
851 * coffcode.h: Likewise.
852 * config.bfd: Likewise.
853 * configure.ac: Likewise.
854 * targets.c: Likewise.
855 * coff-h8500.c: Delete.
856 * cpu-h8500.c: Delete.
857 * Makefile.in: Regenerate.
858 * bfd-in2.h: Regenerate.
859 * configure: Regenerate.
860 * po/SRC-POTFILES.in: Regenerate.
862 2018-04-16 Alan Modra <amodra@gmail.com>
864 * Makefile.am: Remove h8300-coff support.
865 * coffcode.h: Likewise.
866 * config.bfd: Likewise.
867 * configure.ac: Likewise.
868 * reloc16.c: Likewise.
869 * targets.c: Likewise.
870 * coff-h8300.c: Delete.
871 * Makefile.in: Regenerate.
872 * configure: Regenerate.
873 * po/SRC-POTFILES.in: Regenerate.
875 2018-04-16 Alan Modra <amodra@gmail.com>
877 * Makefile.am: Remove IEEE 695 support.
878 * archures.c: Likewise.
880 * config.bfd: Likewise.
881 * configure.ac: Likewise.
882 * doc/bfd.texinfo: Likewise.
883 * doc/bfdint.texi: Likewise.
884 * doc/bfdsumm.texi: Likewise.
885 * section.c: Likewise.
886 * targets.c: Likewise.
889 * Makefile.in: Regenerate.
890 * bfd-in2.h: Regenerate.
891 * configure: Regenerate.
892 * po/SRC-POTFILES.in: Regenerate.
894 2018-04-16 Alan Modra <amodra@gmail.com>
896 * config.bfd: Remove tandem support.
898 2018-04-16 Alan Modra <amodra@gmail.com>
900 * Makefile.am: Remove newsos3 support.
902 * config.bfd: Likewise.
903 * configure.ac: Likewise.
904 * targets.c: Likewise.
906 * Makefile.in: Regenerate.
907 * configure: Regenerate.
908 * po/SRC-POTFILES.in: Regenerate.
910 2018-04-16 Alan Modra <amodra@gmail.com>
912 * Makefile.am: Remove netware support.
913 * bfd-in.h: Likewise.
915 * config.bfd: Likewise.
916 * configure.ac: Likewise.
917 * doc/bfdint.texi: Likewise.
919 * targets.c: Likewise.
921 * nlm-target.h: Delete.
923 * nlm32-alpha.c: Delete.
924 * nlm32-i386.c: Delete.
925 * nlm32-ppc.c: Delete.
926 * nlm32-sparc.c: Delete.
931 * Makefile.in: Regenerate.
932 * bfd-in2.h: Regenerate.
933 * configure: Regenerate.
934 * po/SRC-POTFILES.in: Regenerate.
936 2018-04-16 Alan Modra <amodra@gmail.com>
938 * archures.c: Remove tahoe support.
939 * config.bfd: Likewise.
940 * configure.ac: Likewise.
941 * hosts/tahoe.h: Delete.
942 * bfd-in2.h: Regenerate.
943 * configure: Regenerate.
945 2018-04-14 Alan Modra <amodra@gmail.com>
947 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
948 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
950 (elfNN_bed): Init relropagesize.
951 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
952 select relropagesize.
953 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
954 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
955 (ELF_MINPAGESIZE): Don't define.
956 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
957 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
958 * bfd-in2.h: Regenerate.
960 2018-04-14 Alan Modra <amodra@gmail.com>
962 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
963 on __QNXTARGET__ define.
965 2018-04-14 Alan Modra <amodra@gmail.com>
967 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
970 2018-04-11 Alan Modra <amodra@gmail.com>
972 * aout-adobe.c: Delete.
974 * coff-i860.c: Delete.
975 * coff-i960.c: Delete.
976 * cpu-i860.c: Delete.
977 * cpu-i960.c: Delete.
978 * elf32-i860.c: Delete.
979 * elf32-i960.c: Delete.
980 * hosts/i860mach3.h: Delete.
981 * Makefile.am: Remove i860, i960, bout, and adobe support.
982 * archures.c: Remove i860 and i960 support.
983 * coffcode.h: Likewise.
985 * aoutx.h: Comment updates.
986 * archive.c: Remove BOUT and i960 support.
987 * bfd.c: Remove BOUT support.
988 * coffswap.h: Remove i960 support.
989 * config.bfd: Remove i860, i960 and adobe targets.
990 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
991 * targets.c: Likewise.
992 * ieee.c: Remove i960 support.
993 * mach-o.c: Remove i860 support.
994 * Makefile.in: Regenerate.
995 * bfd-in2.h: Regenerate.
996 * configure: Regenerate.
997 * libbfd.h: Regenerate.
998 * po/SRC-POTFILES.in: Regenerate.
1000 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1002 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
1003 in the BFD symbol referred by the relocation.
1004 (mips_elf64_write_rela): Likewise.
1006 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1008 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
1009 error for out-of-range `r_sym' values.
1011 2018-04-09 Alan Modra <amodra@gmail.com>
1013 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
1014 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
1015 (ppc64_elf_check_relocs): Set has_pltcall.
1016 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
1017 (ppc64_elf_inline_plt): New function.
1018 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
1019 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
1020 * elf32-ppc.c (has_pltcall): Define.
1021 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
1022 (ppc_elf_check_relocs): Set has_pltcall.
1023 (ppc_elf_inline_plt): New function.
1024 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
1025 (ppc_elf_size_dynamic_sections): Likewise.
1026 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
1028 2018-04-09 Alan Modra <amodra@gmail.com>
1030 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
1031 (is_plt_seq_reloc): New function.
1032 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
1033 (ppc_elf_tls_optimize): Handle inline plt call sequence.
1034 (ppc_elf_relax_section): Handle PLTCALL reloc.
1035 (ppc_elf_relocate_section): Nop out inline plt call sequence when
1037 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
1038 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
1039 (has_tls_get_addr_call): Correct comment.
1040 (is_branch_reloc): Add PLTCALL.
1041 (is_plt_seq_reloc): New function.
1042 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
1043 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
1044 entry for R_PPC64_PLTCALL.
1045 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
1046 (ppc_type_of_stub): Handle PLTCALL reloc.
1047 (toc_adjusting_stub_needed): Likewise.
1048 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
1049 reloc insn. Nop out inline plt call sequence when resolving
1050 locally. Handle __tls_get_addr inline plt call optimization.
1052 2018-04-09 Alan Modra <amodra@gmail.com>
1054 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
1055 (struct ppc_stub_hash_entry): Add symtype field.
1057 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
1058 (create_linkage_sections): Create pltlocal and relpltlocal.
1059 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
1061 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1062 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1063 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1064 Keep PLT entries for inline calls against locals.
1065 (ppc_build_one_stub): Use pltlocal as appropriate.
1066 (ppc_size_one_stub): Likewise.
1067 (ppc64_elf_size_stubs): Set symtype.
1068 (build_global_entry_stubs_and_plt): Init pltlocal and write
1069 relpltlocal for globals.
1070 (write_plt_relocs_for_local_syms): Likewise for local syms.
1071 (ppc64_elf_relocate_section): Support PLT for local syms.
1072 * elf32-ppc.c (PLT_KEEP): Define.
1073 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
1074 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
1075 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
1076 Set PLT_KEEP. Adjust update_local_sym_info call.
1077 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1078 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1079 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1080 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
1081 (write_global_sym_plt): Init pltlocal and write relpltlocal.
1082 (ppc_finish_symbols): Likewise for locals.
1084 2018-04-09 Alan Modra <amodra@gmail.com>
1086 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
1087 for local symbols to..
1088 (write_plt_relocs_for_local_syms): ..here. New function.
1089 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
1091 (build_global_entry_stubs_and_plt): ..here. Rename from
1092 build_global_entry_stubs.
1093 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
1094 Call write_plt_relocs_for_local_syms.
1095 * elf32-ppc.c (get_sym_h): New function.
1096 (ppc_elf_relax_section): Use get_sym_h.
1097 (ppc_elf_relocate_section): Move output of PLT relocs and glink
1098 stubs for local symbols to..
1099 (ppc_finish_symbols): ..here. New function.
1100 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
1102 (write_global_sym_plt): ..here. New function.
1103 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
1104 (ppc_finish_symbols): Declare.
1106 2018-04-09 Alan Modra <amodra@gmail.com>
1108 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
1109 (ppc_elf_relocate_section): Likewise.
1110 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
1111 (ppc64_elf_relocate_section): Likewise. Correct PLT16
1112 resolution to plt entry relative to toc pointer.
1114 2018-04-09 Alan Modra <amodra@gmail.com>
1116 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1117 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
1118 file when other TLS flags are tested in a mask.
1119 (TLS_MARK, NON_GOT): Define.
1120 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1121 (update_local_sym_info): Don't create got entry when NON_GOT.
1122 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1124 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
1125 (ppc64_elf_relocate_section): Likewise.
1126 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
1127 __tls_get_addr calls lacking a marker reloc.
1128 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1129 TLS_TPRELGD): Renumber. Update comment.
1130 (TLS_MARK, NON_GOT): Define.
1131 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1132 (update_local_sym_info): Don't create got entry when NON_GOT.
1133 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1135 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
1136 __tls_get_addr calls lacking a marker reloc.
1138 2018-04-06 H.J. Lu <hongjiu.lu@intel.com>
1140 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
1141 R_X86_64_converted_reloc_bit.
1143 2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
1146 * configure: Regenerated.
1148 2018-04-05 Alan Modra <amodra@gmail.com>
1150 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
1151 (elf_hppa_info_to_howto_rel): Likewise.
1153 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1155 * elf-hppa.h (elf_hppa_info_to_howto): Also return
1156 unsuccessfully for unimplemented relocations.
1157 (elf_hppa_info_to_howto_rel): Likewise.
1159 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1161 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
1162 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
1163 howto lookup failure.
1164 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
1166 (elf32_i860_info_to_howto_rela): Likewise.
1167 (elf32_i860_relocate_splitn): Likewise.
1168 (elf32_i860_relocate_pc16): Likewise.
1169 (elf32_i860_relocate_pc26): Likewise.
1170 (elf32_i860_relocate_section): Likewise.
1172 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1174 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
1175 check for `visium_elf_howto_table' table access.
1177 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1179 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
1180 check for `iq2000_elf_howto_table' table access.
1182 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1184 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
1185 for `elf32_frv_howto_table' table access.
1187 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1189 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1190 unsuccessfully for placeholder howtos.
1191 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1192 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1194 2018-03-29 Maciej W. Rozycki <macro@mips.com>
1196 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1197 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1199 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1201 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1202 ATTRIBUTE_UNUSED from `abfd'.
1204 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1206 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1207 `_bfd_error_handler' call formatting.
1209 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1211 * elf32-mips.c (mips_info_to_howto_rel): Call
1212 `mips_elf32_rtype_to_howto' directly rather than via
1213 `->elf_backend_mips_rtype_to_howto'.
1215 2018-03-28 Renlin Li <renlin.li@arm.com>
1218 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1219 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1220 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1221 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1222 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1223 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1224 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1225 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1226 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1227 (elfNN_aarch64_final_link_relocate): Support new relocations.
1228 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1230 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1232 2018-03-28 Renlin Li <renlin.li@arm.com>
1235 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1236 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1237 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1238 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1239 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1240 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1241 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1242 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1243 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1244 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1245 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1246 TLSLE_LDST16_TPREL_LO12,
1247 TLSLE_LDST16_TPREL_LO12_NC,
1248 TLSLE_LDST32_TPREL_LO12,
1249 TLSLE_LDST32_TPREL_LO12_NC,
1250 TLSLE_LDST64_TPREL_LO12,
1251 TLSLE_LDST64_TPREL_LO12_NC,
1252 TLSLE_LDST8_TPREL_LO12,
1253 TLSLE_LDST8_TPREL_LO12_NC.
1254 * bfd-in2.h: Regenerated.
1255 * libbfd.h: Regenerated.
1257 2018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1260 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1261 has_old_style_got_reloc.
1262 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1263 relocations. Fix a couple of long lines.
1264 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1265 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1268 2018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1271 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1272 ENDBR64 to the TLSDESC PLT entry.
1274 2018-03-21 Alan Modra <amodra@gmail.com>
1276 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1277 symbols. Use size_t counts. Delete redundant opd test.
1279 2018-03-21 Alan Modra <amodra@gmail.com>
1281 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1283 2018-03-21 Alan Modra <amodra@gmail.com>
1285 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1287 (update_local_sym_info): Likewise for local_got_tls_masks.
1288 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1290 2018-03-21 Alan Modra <amodra@gmail.com>
1292 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1293 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1294 do in size_dynamic_sections.
1296 2018-03-21 Alan Modra <amodra@gmail.com>
1298 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1299 without first checking array bounds.
1300 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1302 2018-03-20 H.J. Lu <hongjiu.lu@intel.com>
1305 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
1306 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
1308 2018-03-19 Nick Clifton <nickc@redhat.com>
1310 * po/es.po: Updated Spanish translation.
1312 2018-03-15 Max Filippov <jcmvbkbc@gmail.com>
1314 * elf32-xtensa.c (xlate_map_entry): Change types of address
1315 fields from 'unsigned' to 'bfd_vma'.
1316 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
1317 the key argument to bsearch. Allow offsets past the end of a
1318 section, use the last map entry for translation of such offsets.
1320 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1322 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
1323 Not support the target feature.
1324 (nds32_elf_ex9_itb_base): Likewise.
1325 (nds32_elf_ex9_import_table): Likewise.
1326 (nds32_elf_ex9_finish): Likewise.
1327 (nds32_elf_ex9_reloc_jmp): Likewise.
1328 (nds32_elf_get_insn_with_reg): Likewise.
1329 (nds32_get_local_syms): Likewise.
1330 (nds32_elf_ex9_replace_instruction): Likewise.
1331 (nds32_elf_ifc_calc): Likewise.
1332 (nds32_elf_ifc_finish): Likewise.
1333 (nds32_elf_ifc_replace): Likewise.
1334 (nds32_elf_ifc_reloc): Likewise.
1336 2018-03-14 Alan Modra <amodra@gmail.com>
1338 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
1339 sfpr size added before defining alias symbols.
1340 (ppc64_elf_build_stubs): Add stub section padding before
1341 copying sfpr contents and defining save/restore alias symbols.
1343 2018-03-14 H.J. Lu <hongjiu.lu@intel.com>
1346 * elflink.c (elf_gc_mark_debug_section): Also check the local
1347 debug definition section.
1349 2018-03-13 Nick Clifton <nickc@redhat.com>
1352 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
1353 function. Add an end address parameter. Check access of the data
1354 pointer to make sure that they do not extend beyond the end
1355 address. Return FALSE if any check fails. Add the end address
1356 pointer to the ui structure.
1357 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
1358 codes to make sure that they do not extend beyond the end address
1359 pointer. Print an error message and return immediately if any
1362 2018-03-09 Nick Clifton <nickc@redhat.com>
1364 * elf64-s390.c (elf_s390_relocate_section): Move check for
1365 relocations against non-allocated sections to before the code that
1366 handles ifunc relocations.
1367 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1368 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
1369 relocs against IFUNC symbols in non-allocated sections as relocs
1370 against FUNC symbols.
1371 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1373 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
1376 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
1377 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
1378 relocation against FUNC symbol.
1379 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1381 2018-03-07 Renlin Li <renlin.li@arm.com>
1384 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
1385 symbol, and don't emit relocation in specific case.
1387 2018-03-07 Alan Modra <amodra@gmail.com>
1389 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
1390 (mips_elf64_slurp_one_reloc_table): Pass on error.
1392 2018-03-03 James Cowgill <james.cowgill@mips.com>
1393 Maciej W. Rozycki <macro@mips.com>
1396 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
1397 after calling `undefined_symbol' hook if this is an error
1398 condition. Assume the value of 0 for the symbol requested
1401 2018-03-02 Jim Wilson <jimw@sifive.com>
1404 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
1405 and nop instead of 4.
1406 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
1409 2018-03-01 Jim Wilson <jimw@sifive.com>
1412 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
1413 else if instead of if.
1415 2018-03-01 Alan Modra <amodra@gmail.com>
1417 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
1419 2018-02-28 Alan Modra <amodra@gmail.com>
1422 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
1424 2018-02-28 Nick Clifton <nickc@redhat.com>
1428 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
1429 pointer. Drop unused abfd parameter. Check the size of the block
1430 before initialising the data field. Return the end pointer if the
1432 (read_attribute_value): Adjust invocations of read_n_bytes.
1435 * dwarf1.c (parse_die): Check the length of form blocks before
1436 advancing the data pointer.
1438 2018-02-28 Alan Modra <amodra@gmail.com>
1441 * aoutx.h (translate_symbol_table): Print an error message and set
1442 bfd_error on finding an invalid name string offset.
1444 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
1446 * config.in: Regenerated.
1447 * configure: Likewise.
1448 * configure.ac: Add --enable-separate-code.
1449 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
1450 to 1 for Linux/x86 targets,
1451 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
1452 DEFAULT_LD_Z_SEPARATE_CODE is 1.
1454 2018-02-27 Nick Clifton <nickc@redhat.com>
1456 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
1458 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
1459 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
1460 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
1461 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
1462 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1463 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
1464 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1465 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
1466 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
1469 * elf-bfd.h (struct elf_backend_data): Change the return type of
1470 the elf_info_to_howto and elf_info_to_howto_rel function pointers
1472 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
1473 value from the info_to_howto function and fail if that function
1475 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
1476 from the info_to_howto function.
1477 (elf32_h8_relax_section): Likewise.
1478 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1479 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1480 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1481 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1482 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1483 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1484 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
1485 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
1486 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1487 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
1488 (riscv_elf_relocate_section): Likewise.
1489 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
1490 bfd_boolean. Issue an error message, set an error value and
1491 return FALSE if the reloc is not recognized.
1492 (elf_hppa_info_to_howto_rel): Likewise.
1493 * elf-m10200.c (mn10200_info_to_howto): Likewise.
1494 * elf-m10300.c (mn10300_info_to_howto): Likewise.
1495 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
1496 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
1497 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
1498 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
1499 * elf32-bfin.c (bfin_info_to_howto): Likewise.
1500 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
1501 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
1502 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
1503 (cris_info_to_howto_rela): Likewise.
1504 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
1505 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
1506 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
1508 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
1509 (elf32_dlx_info_to_howto_rel): Likewise.
1510 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
1511 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
1512 * elf32-frv.c (frv_info_to_howto_rela)
1513 (frvfdpic_info_to_howto_rel): Likewise.
1514 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
1515 * elf32-gen.c (elf_generic_info_to_howto)
1516 (elf_generic_info_to_howto_rel): Likewise.
1517 * elf32-h8300.c (elf32_h8_info_to_howto)
1518 (elf32_h8_info_to_howto_rel): Likewise.
1519 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1520 * elf32-i386.c (elf_i386_reloc_type_lookup)
1521 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
1522 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
1524 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
1525 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
1526 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
1527 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
1528 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
1529 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
1531 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
1532 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
1533 * elf32-m68k.c (rtype_to_howto): Likewise.
1534 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1535 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
1536 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
1537 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1538 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1540 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
1541 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
1542 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
1543 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
1545 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
1546 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
1547 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1548 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1549 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
1550 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
1551 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
1552 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
1553 * elf32-score.c (s3_bfd_score_info_to_howto)
1554 (_bfd_score_info_to_howto): Likewise.
1555 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1556 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
1557 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
1558 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
1559 (elf32_tic6x_info_to_howto_rel): Likewise.
1560 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
1561 * elf32-v850.c (v850_elf_info_to_howto_rel)
1562 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
1563 * elf32-vax.c (rtype_to_howto): Likewise.
1564 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
1565 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
1566 (elf32_wasm32_info_to_howto_rela): Likewise.
1567 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
1568 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
1569 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
1570 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
1571 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
1572 * elf64-gen.c (elf_generic_info_to_howto)
1573 (elf_generic_info_to_howto_rel): Likewise.
1574 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
1575 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
1576 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
1577 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
1578 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1579 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
1581 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
1582 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1584 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
1585 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
1586 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
1587 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1588 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
1589 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
1590 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
1591 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
1592 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
1593 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
1596 2018-02-26 Jim Wilson <jimw@sifive.com>
1597 Stephan Schreiber <info@fs-driver.org>
1600 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
1601 call, set changed_contents and changed_relocs. Likewise after
1602 successful ia64_elf_relax_br call.
1604 2018-02-26 Alan Modra <amodra@gmail.com>
1606 * elf.c (assign_file_positions_except_relocs): Don't segfault
1607 when actual number of phdrs is less than allocated. Delete
1608 outdated comment. Formatting.
1610 2018-02-26 Alan Modra <amodra@gmail.com>
1612 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
1613 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
1614 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
1615 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
1616 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
1617 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
1618 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
1619 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
1620 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
1621 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
1622 error/warning messages.
1624 2018-02-26 Alan Modra <amodra@gmail.com>
1626 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
1627 * syms.c: Standardize error/warning messages.
1629 2018-02-26 Alan Modra <amodra@gmail.com>
1631 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
1632 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
1633 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
1634 * peXXigen.c, * peicode.h: Standardize error/warning messages.
1636 2018-02-26 Alan Modra <amodra@gmail.com>
1638 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
1640 2018-02-26 Alan Modra <amodra@gmail.com>
1642 * elfxx-mips.c: Standardize error/warning messages.
1644 2018-02-26 Alan Modra <amodra@gmail.com>
1646 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
1647 * elflink.c: Standardize error/warning messages. Replace use of
1648 linker callback einfo with _bfd_error_handler when possible.
1650 2018-02-26 Alan Modra <amodra@gmail.com>
1652 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
1653 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
1654 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
1655 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
1656 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
1657 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
1658 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
1659 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
1660 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
1661 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
1662 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
1663 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
1664 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
1665 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
1666 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
1667 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
1668 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
1669 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
1670 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
1671 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
1672 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
1673 unrecognized/unsupported reloc message.
1675 2018-02-26 Alan Modra <amodra@gmail.com>
1677 * elf32-ppc.c: Standardize error/warning messages. Use
1678 _bfd_error_handler rather than einfo when einfo features not used.
1679 * elf64-ppc.c: Likewise.
1681 2018-02-23 Alan Modra <amodra@gmail.com>
1684 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
1685 segment if no matching LOAD segment.
1687 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1689 * elf32-nds32.h: Define mask for ict_model.
1691 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
1693 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
1695 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1698 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
1700 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
1701 .reginfo section has wrong size.
1703 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1705 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
1706 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
1707 `.MIPS.abiflags' sections.
1708 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
1711 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1713 * section.c (SEC_FIXED_SIZE): New macro.
1714 * bfd-in2.h: Regenerate.
1716 2018-02-19 Maciej W. Rozycki <macro@mips.com>
1718 * section.c (SEC_HAS_GOT_REF): Remove macro.
1719 * bfd-in2.h: Regenerate.
1721 2018-02-19 Alan Modra <amodra@gmail.com>
1723 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
1725 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
1726 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
1727 (_bfd_riscv_relax_pc): Likewise and fix typos.
1728 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
1729 * libbfd.h: Regenerate.
1731 2018-02-19 Alan Modra <amodra@gmail.com>
1733 * dwarf2.c (read_section): Don't use 'll' format modifier.
1734 (find_abstract_instance): Likewise.
1735 * elfcore.h (elf_core_file_p): Likewise.
1737 2018-02-19 Alan Modra <amodra@gmail.com>
1739 * bfd-in.h: Include inttypes.h or if not available define
1740 PRId64, PRIu64 and PRIx64.
1741 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
1742 modifier to print bfd_vma.
1743 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
1744 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
1745 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
1746 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
1747 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
1748 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
1749 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
1750 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
1751 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
1752 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
1753 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
1754 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
1755 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
1756 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
1757 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
1758 and cast input to uint64_t, and similarly for Ld and Lu.
1759 * bfd-in2.h: Regenerate.
1761 2018-02-19 Alan Modra <amodra@gmail.com>
1763 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
1764 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
1765 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
1766 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
1767 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
1768 * reloc.c: Replace use of %R and %T in format strings passed to
1769 einfo and friends by %pR and %pT.
1771 2018-02-19 Alan Modra <amodra@gmail.com>
1773 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
1775 * aout-adobe.c: Update all messages using %A and %B.
1776 * aout-cris.c: Likewise.
1777 * aoutx.h: Likewise.
1778 * archive.c: Likewise.
1779 * binary.c: Likewise.
1780 * cache.c: Likewise.
1781 * coff-alpha.c: Likewise.
1782 * coff-arm.c: Likewise.
1783 * coff-i860.c: Likewise.
1784 * coff-mcore.c: Likewise.
1785 * coff-ppc.c: Likewise.
1786 * coff-rs6000.c: Likewise.
1787 * coff-sh.c: Likewise.
1788 * coff-tic4x.c: Likewise.
1789 * coff-tic54x.c: Likewise.
1790 * coff-tic80.c: Likewise.
1791 * coff64-rs6000.c: Likewise.
1792 * coffcode.h: Likewise.
1793 * coffgen.c: Likewise.
1794 * cofflink.c: Likewise.
1795 * coffswap.h: Likewise.
1796 * compress.c: Likewise.
1797 * cpu-arm.c: Likewise.
1798 * ecoff.c: Likewise.
1799 * elf-attrs.c: Likewise.
1800 * elf-eh-frame.c: Likewise.
1801 * elf-ifunc.c: Likewise.
1802 * elf-m10300.c: Likewise.
1803 * elf-properties.c: Likewise.
1804 * elf-s390-common.c: Likewise.
1806 * elf32-arc.c: Likewise.
1807 * elf32-arm.c: Likewise.
1808 * elf32-avr.c: Likewise.
1809 * elf32-bfin.c: Likewise.
1810 * elf32-cr16.c: Likewise.
1811 * elf32-cr16c.c: Likewise.
1812 * elf32-cris.c: Likewise.
1813 * elf32-crx.c: Likewise.
1814 * elf32-d10v.c: Likewise.
1815 * elf32-d30v.c: Likewise.
1816 * elf32-epiphany.c: Likewise.
1817 * elf32-fr30.c: Likewise.
1818 * elf32-frv.c: Likewise.
1819 * elf32-gen.c: Likewise.
1820 * elf32-hppa.c: Likewise.
1821 * elf32-i370.c: Likewise.
1822 * elf32-i386.c: Likewise.
1823 * elf32-i960.c: Likewise.
1824 * elf32-ip2k.c: Likewise.
1825 * elf32-iq2000.c: Likewise.
1826 * elf32-lm32.c: Likewise.
1827 * elf32-m32c.c: Likewise.
1828 * elf32-m32r.c: Likewise.
1829 * elf32-m68hc11.c: Likewise.
1830 * elf32-m68hc12.c: Likewise.
1831 * elf32-m68hc1x.c: Likewise.
1832 * elf32-m68k.c: Likewise.
1833 * elf32-mcore.c: Likewise.
1834 * elf32-mep.c: Likewise.
1835 * elf32-metag.c: Likewise.
1836 * elf32-microblaze.c: Likewise.
1837 * elf32-moxie.c: Likewise.
1838 * elf32-msp430.c: Likewise.
1839 * elf32-mt.c: Likewise.
1840 * elf32-nds32.c: Likewise.
1841 * elf32-nios2.c: Likewise.
1842 * elf32-or1k.c: Likewise.
1843 * elf32-pj.c: Likewise.
1844 * elf32-ppc.c: Likewise.
1845 * elf32-rl78.c: Likewise.
1846 * elf32-rx.c: Likewise.
1847 * elf32-s390.c: Likewise.
1848 * elf32-score.c: Likewise.
1849 * elf32-score7.c: Likewise.
1850 * elf32-sh-symbian.c: Likewise.
1851 * elf32-sh.c: Likewise.
1852 * elf32-sh64.c: Likewise.
1853 * elf32-sparc.c: Likewise.
1854 * elf32-spu.c: Likewise.
1855 * elf32-tic6x.c: Likewise.
1856 * elf32-tilepro.c: Likewise.
1857 * elf32-v850.c: Likewise.
1858 * elf32-vax.c: Likewise.
1859 * elf32-visium.c: Likewise.
1860 * elf32-wasm32.c: Likewise.
1861 * elf32-xgate.c: Likewise.
1862 * elf32-xtensa.c: Likewise.
1863 * elf64-alpha.c: Likewise.
1864 * elf64-gen.c: Likewise.
1865 * elf64-hppa.c: Likewise.
1866 * elf64-ia64-vms.c: Likewise.
1867 * elf64-mmix.c: Likewise.
1868 * elf64-ppc.c: Likewise.
1869 * elf64-s390.c: Likewise.
1870 * elf64-sh64.c: Likewise.
1871 * elf64-sparc.c: Likewise.
1872 * elf64-x86-64.c: Likewise.
1873 * elfcode.h: Likewise.
1874 * elfcore.h: Likewise.
1875 * elflink.c: Likewise.
1876 * elfnn-aarch64.c: Likewise.
1877 * elfnn-ia64.c: Likewise.
1878 * elfnn-riscv.c: Likewise.
1879 * elfxx-mips.c: Likewise.
1880 * elfxx-sparc.c: Likewise.
1881 * elfxx-tilegx.c: Likewise.
1882 * elfxx-x86.c: Likewise.
1883 * hpux-core.c: Likewise.
1886 * libbfd.c: Likewise.
1887 * linker.c: Likewise.
1888 * mach-o.c: Likewise.
1889 * merge.c: Likewise.
1891 * oasys.c: Likewise.
1892 * pdp11.c: Likewise.
1893 * pe-mips.c: Likewise.
1894 * peXXigen.c: Likewise.
1895 * peicode.h: Likewise.
1896 * reloc.c: Likewise.
1897 * rs6000-core.c: Likewise.
1899 * stabs.c: Likewise.
1900 * vms-alpha.c: Likewise.
1901 * xcofflink.c: Likewise.
1903 2018-02-19 Alan Modra <amodra@gmail.com>
1906 * elf.c (IS_TBSS): Define.
1907 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
1908 (assign_file_positions_for_non_load_sections): Revert last change.
1909 Properly calculate load segment limits to compare against relro limits.
1911 2018-02-17 Alan Modra <amodra@gmail.com>
1914 * elf.c (assign_file_positions_for_non_load_sections): Ignore
1915 degenerate zero size PT_LOAD segments when finding one overlapping
1916 the PT_GNU_RELRO segment.
1918 2018-02-16 Alan Modra <amodra@gmail.com>
1920 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
1921 (_bfd_bool_bfd_true): Rename from bfd_true.
1922 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
1923 (_bfd_int_bfd_0): Rename from bfd_0.
1924 (_bfd_uint_bfd_0): Rename from bfd_0u.
1925 (_bfd_long_bfd_0): Rename from bfd_0l.
1926 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
1927 (_bfd_void_bfd): Rename from bfd_void.
1928 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
1929 (_bfd_bool_bfd_link_false_error),
1930 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
1931 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
1932 (_bfd_bool_bfd_asection_bfd_asection_true),
1933 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
1934 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
1935 * archive.c (_bfd_noarchive_get_elt_at_index),
1936 (_bfd_noarchive_openr_next_archived_file),
1937 (_bfd_noarchive_construct_extended_name_table),
1938 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
1939 (_bfd_noarchive_write_armap): New functions.
1940 * archures.c (_bfd_nowrite_set_arch_mach): New function.
1941 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
1942 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
1943 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
1944 (alpha_ecoff_swap_coff_lineno_out),
1945 (alpha_ecoff_swap_coff_reloc_out): New functions.
1946 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
1947 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
1948 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
1949 (mips_ecoff_swap_coff_lineno_out),
1950 (mips_ecoff_swap_coff_reloc_out): New functions.
1951 * coffcode.h (coff_set_alignment_hook): Replace define with
1953 (symname_in_debug_hook): Likewise.
1954 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
1955 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
1956 * elf.c (assign_file_positions_except_relocs): Test
1957 elf_backend_allow_non_load_phdr for NULL.
1958 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
1959 _bfd_elf_link_omit_section_dynsym. Update uses.
1960 (_bfd_elf_omit_section_dynsym_all): New function.
1961 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
1962 (_bfd_elf_omit_section_dynsym_default): Declare.
1963 (_bfd_elf_omit_section_dynsym_all): Declare.
1964 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
1965 (_bfd_nolink_bfd_get_relocated_section_contents),
1966 (_bfd_nolink_bfd_lookup_section_flags),
1967 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
1968 (_bfd_nolink_bfd_link_hash_table_create),
1969 (_bfd_nolink_bfd_link_just_syms),
1970 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
1971 (_bfd_nolink_bfd_link_split_section),
1972 (_bfd_nolink_section_already_linked),
1973 (_bfd_nolink_bfd_define_common_symbol),
1974 (_bfd_nolink_bfd_define_start_stop): New functions.
1975 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
1976 (_bfd_norelocs_bfd_reloc_name_lookup),
1977 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
1978 * section.c (_bfd_nowrite_set_section_contents): New function.
1979 * syms.c (_bfd_nosymbols_canonicalize_symtab),
1980 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
1981 (_bfd_nosymbols_get_symbol_version_string),
1982 (_bfd_nosymbols_bfd_is_local_label_name),
1983 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
1984 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
1985 (_bfd_nosymbols_bfd_make_debug_symbol),
1986 ( _bfd_nosymbols_read_minisymbols),
1987 ( _bfd_nosymbols_minisymbol_to_symbol),
1988 (_bfd_nodynamic_get_synthetic_symtab): New functions.
1989 * libbfd-in.h: Declare new functions. Update existing defines,
1991 * aix386-core.c: Update to use new hooks. Formatting.
1992 * aout-adobe.c: Likewise.
1993 * aout-arm.c: Likewise.
1994 * aout-target.h: Likewise.
1995 * aout-tic30.c: Likewise.
1996 * aoutf1.h: Likewise.
1997 * binary.c: Likewise.
1999 * cisco-core.c: Likewise.
2000 * coff-alpha.c: Likewise.
2001 * coff-i386.c: Likewise.
2002 * coff-i860.c: Likewise.
2003 * coff-i960.c: Likewise.
2004 * coff-ia64.c: Likewise.
2005 * coff-mips.c: Likewise.
2006 * coff-ppc.c: Likewise.
2007 * coff-rs6000.c: Likewise.
2008 * coff-sh.c: Likewise.
2009 * coff-tic30.c: Likewise.
2010 * coff-tic54x.c: Likewise.
2011 * coff-x86_64.c: Likewise.
2012 * coff64-rs6000.c: Likewise.
2013 * coffcode.h: Likewise.
2014 * elf-m10300.c: Likewise.
2015 * elf32-cr16.c: Likewise.
2016 * elf32-lm32.c: Likewise.
2017 * elf32-m32r.c: Likewise.
2018 * elf32-metag.c: Likewise.
2019 * elf32-score.c: Likewise.
2020 * elf32-score7.c: Likewise.
2021 * elf32-tilepro.c: Likewise.
2022 * elf32-xstormy16.c: Likewise.
2023 * elf32-xtensa.c: Likewise.
2024 * elf64-alpha.c: Likewise.
2025 * elf64-hppa.c: Likewise.
2026 * elf64-ia64-vms.c: Likewise.
2027 * elf64-mmix.c: Likewise.
2028 * elf64-sh64.c: Likewise.
2029 * elfnn-ia64.c: Likewise.
2030 * elfxx-sparc.c: Likewise.
2031 * elfxx-target.h: Likewise.
2032 * elfxx-tilegx.c: Likewise.
2033 * elfxx-x86.h: Likewise.
2034 * hp300hpux.c: Likewise.
2035 * hppabsd-core.c: Likewise.
2036 * hpux-core.c: Likewise.
2037 * i386msdos.c: Likewise.
2038 * i386os9k.c: Likewise.
2041 * irix-core.c: Likewise.
2042 * libaout.h: Likewise.
2043 * libecoff.h: Likewise.
2044 * mach-o-target.c: Likewise.
2045 * mach-o.c: Likewise.
2046 * mipsbsd.c: Likewise.
2048 * netbsd-core.c: Likewise.
2049 * nlm-target.h: Likewise.
2050 * oasys.c: Likewise.
2051 * osf-core.c: Likewise.
2052 * pdp11.c: Likewise.
2053 * pe-mips.c: Likewise.
2054 * pe-x86_64.c: Likewise.
2056 * plugin.c: Likewise.
2057 * ppcboot.c: Likewise.
2058 * ptrace-core.c: Likewise.
2059 * sco5-core.c: Likewise.
2061 * sparclynx.c: Likewise.
2063 * tekhex.c: Likewise.
2064 * trad-core.c: Likewise.
2065 * verilog.c: Likewise.
2066 * versados.c: Likewise.
2067 * vms-alpha.c: Likewise.
2068 * vms-lib.c: Likewise.
2069 * wasm-module.c: Likewise.
2071 * libbfd.h: Regenerate.
2073 2018-02-15 Jim Wilson <jimw@sifive.com>
2075 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
2076 symbols whose section address is zero.
2078 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
2079 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
2080 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
2081 Add %X%P to error messages.
2083 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
2086 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2087 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
2088 and assert that the result of the call is not NULL.
2090 2018-02-14 Nick Clifton <nickc@redhat.com>
2093 Revert previous delta. Add extra casts to avoid compile time
2095 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
2096 cast to avoid warning from gcc v8 compiler.
2097 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2098 (_bfd_generic_bfd_set_private_flags): Likewise.
2099 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2100 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2101 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2102 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2103 (_bfd_noarchive_construct_extended_name_table): Likewise.
2104 (_bfd_noarchive_truncate_arname): Likewise.
2105 (_bfd_noarchive_write_ar_hdr): Likewise.
2106 (_bfd_noarchive_get_elt_at_index): Likewise.
2107 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2108 (_bfd_nosymbols_print_symbol): Likewise.
2109 (_bfd_nosymbols_get_symbol_info): Likewise.
2110 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2111 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2112 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2113 (_bfd_nosymbols_get_lineno): Likewise.
2114 (_bfd_nosymbols_find_nearest_line): Likewise.
2115 (_bfd_nosymbols_find_line): Likewise.
2116 (_bfd_nosymbols_find_inliner_info): Likewise.
2117 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2118 (_bfd_nosymbols_read_minisymbols): Likewise.
2119 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2120 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2121 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2122 (_bfd_nowrite_set_arch_mach): Likewise.
2123 (_bfd_nowrite_set_section_contents): Likewise.
2124 (_bfd_nolink_sizeof_headers): Likewise.
2125 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2126 (_bfd_nolink_bfd_relax_section): Likewise.
2127 (_bfd_nolink_bfd_gc_sections): Likewise.
2128 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2129 (_bfd_nolink_bfd_merge_sections): Likewise.
2130 (_bfd_nolink_bfd_is_group_section): Likewise.
2131 (_bfd_nolink_bfd_discard_group): Likewise.
2132 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2133 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2134 (_bfd_nolink_bfd_link_just_syms): Likewise.
2135 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2136 (_bfd_nolink_bfd_final_link): Likewise.
2137 (_bfd_nolink_bfd_link_split_section): Likewise.
2138 (_bfd_nolink_section_already_linked): Likewise.
2139 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2140 (_bfd_nolink_bfd_define_start_stop): Likewise.
2141 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2142 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2143 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2144 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2145 * libbfd.c (bfd_false_any): Delete.
2146 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
2147 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
2148 * libbfd.h (extern): Regenerate
2149 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
2150 cast to avoid warning from gcc v8 compiler.
2151 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2152 * binary.c (binary_get_symbol_info): Likewise.
2153 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2154 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2155 * coffcode.h (coff_set_alignment_hook): Likewise.
2156 (symname_in_debug_hook): Likewise.
2157 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2158 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2159 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2160 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2161 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2162 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2163 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2164 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2165 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2166 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2167 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2168 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2169 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2170 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2171 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2172 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2173 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2174 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2175 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2176 (bfd_elfNN_bfd_set_private_flags): Likewise.
2177 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2178 (elf_backend_init_index_section): Likewise.
2179 (elf_backend_allow_non_load_phdr): Likewise.
2180 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2181 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2182 * ieee.c (ieee_construct_extended_name_table): Likewise.
2183 (ieee_write_armap): Likewise.
2184 (ieee_write_ar_hdr): Likewise.
2185 (ieee_bfd_is_target_special_symbol): Likewise.
2186 * ihex.c (ihex_canonicalize_symtab): Likewise.
2187 (ihex_bfd_is_target_special_symbol): Likewise.
2188 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2189 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2190 (_bfd_ecoff_set_alignment_hook): Likewise.
2191 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2192 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2193 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2194 * oasys.c (oasys_construct_extended_name_table): Likewise.
2195 (oasys_write_armap): Likewise.
2196 (oasys_write_ar_hdr): Likewise.
2197 (oasys_bfd_is_target_special_symbol): Likewise.
2198 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2199 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2200 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2201 * som.c (som_bfd_is_target_special_symbol): Likewise.
2202 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2203 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2204 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2205 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2206 (versados_bfd_reloc_name_lookup): Likewise.
2207 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2208 (vms_bfd_define_start_stop): Likewise.
2209 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2210 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2211 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2213 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2216 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2217 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2218 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2219 R_X86_64_PC32 reloc against dynamic function in data section.
2220 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2221 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2222 against dynamic function in data section.
2223 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2224 function address only if pcrel_plt is true.
2225 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2226 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2227 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2228 PC-relative relocation against a function definition in data
2229 secton in PIE. Remove the obsolete comments.
2230 (elf_x86_link_hash_table): Add pcrel_plt.
2232 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2234 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2235 instead of bfd_link_pic, for building shared library.
2237 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2240 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2241 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2242 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2243 against protected function in shared object.
2245 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2248 * po/ru.po: Fix typo in Russian translation.
2250 2018-02-13 Maciej W. Rozycki <macro@mips.com>
2252 * wasm-module.c (wasm_scan_name_function_section): Rename
2253 `index' local variable to `idx'.
2255 2018-02-13 Nick Clifton <nickc@redhat.com>
2258 Fix compile time warnings generated by gcc version 8.
2259 * libbfd-in.h: Remove extraneous text from prototypes.
2260 Add prototypes for bfd_false_any, bfd_true_any,
2261 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2262 bfd_n1_any, bfd_void_any.
2263 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2265 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2266 (_bfd_generic_bfd_set_private_flags): Likewise.
2267 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2268 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2269 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2270 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2271 (_bfd_noarchive_construct_extended_name_table): Likewise.
2272 (_bfd_noarchive_truncate_arname): Likewise.
2273 (_bfd_noarchive_write_ar_hdr): Likewise.
2274 (_bfd_noarchive_get_elt_at_index): Likewise.
2275 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2276 (_bfd_nosymbols_print_symbol): Likewise.
2277 (_bfd_nosymbols_get_symbol_info): Likewise.
2278 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2279 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2280 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2281 (_bfd_nosymbols_get_lineno): Likewise.
2282 (_bfd_nosymbols_find_nearest_line): Likewise.
2283 (_bfd_nosymbols_find_line): Likewise.
2284 (_bfd_nosymbols_find_inliner_info): Likewise.
2285 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2286 (_bfd_nosymbols_read_minisymbols): Likewise.
2287 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2288 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2289 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2290 (_bfd_nowrite_set_arch_mach): Likewise.
2291 (_bfd_nowrite_set_section_contents): Likewise.
2292 (_bfd_nolink_sizeof_headers): Likewise.
2293 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2294 (_bfd_nolink_bfd_relax_section): Likewise.
2295 (_bfd_nolink_bfd_gc_sections): Likewise.
2296 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2297 (_bfd_nolink_bfd_merge_sections): Likewise.
2298 (_bfd_nolink_bfd_is_group_section): Likewise.
2299 (_bfd_nolink_bfd_discard_group): Likewise.
2300 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2301 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2302 (_bfd_nolink_bfd_link_just_syms): Likewise.
2303 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2304 (_bfd_nolink_bfd_final_link): Likewise.
2305 (_bfd_nolink_bfd_link_split_section): Likewise.
2306 (_bfd_nolink_section_already_linked): Likewise.
2307 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2308 (_bfd_nolink_bfd_define_start_stop): Likewise.
2309 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2310 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2311 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2312 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2313 * libbfd.c (bfd_false_any): New function. Like bfd_false but
2314 accepts one or more arguments.
2315 (bfd_true_any): Likewise.
2316 (bfd_nullvoidptr_any): Likewise.
2317 (bfd_0_any): Likewise.
2318 (bfd_0u_any): Likewise.
2319 (bfd_0l_any): Likewise.
2320 (_bfd_n1_any): Likewise.
2321 (bfd_void_any): Likewise.
2322 * libbfd.h (extern): Regenerate
2323 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
2324 based dummy function.
2325 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2326 * binary.c (binary_get_symbol_info): Likewise.
2327 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2328 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2329 * coffcode.h (coff_set_alignment_hook): Likewise.
2330 (symname_in_debug_hook): Likewise.
2331 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2332 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2333 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2334 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2335 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2336 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2337 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2338 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2339 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2340 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2341 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2342 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2343 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2344 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2345 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2346 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2347 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2348 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2349 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2350 (bfd_elfNN_bfd_set_private_flags): Likewise.
2351 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2352 (elf_backend_init_index_section): Likewise.
2353 (elf_backend_allow_non_load_phdr): Likewise.
2354 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2355 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2356 * ieee.c (ieee_construct_extended_name_table): Likewise.
2357 (ieee_write_armap): Likewise.
2358 (ieee_write_ar_hdr): Likewise.
2359 (ieee_bfd_is_target_special_symbol): Likewise.
2360 * ihex.c (ihex_canonicalize_symtab): Likewise.
2361 (ihex_bfd_is_target_special_symbol): Likewise.
2362 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2363 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2364 (_bfd_ecoff_set_alignment_hook): Likewise.
2365 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2366 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2367 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2368 * oasys.c (oasys_construct_extended_name_table): Likewise.
2369 (oasys_write_armap): Likewise.
2370 (oasys_write_ar_hdr): Likewise.
2371 (oasys_bfd_is_target_special_symbol): Likewise.
2372 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2373 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2374 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2375 * som.c (som_bfd_is_target_special_symbol): Likewise.
2376 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2377 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2378 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2379 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2380 (versados_bfd_reloc_name_lookup): Likewise.
2381 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2382 (vms_bfd_define_start_stop): Likewise.
2383 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2384 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2385 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2386 * elf32-arc.c (get_replace_function): Assign replacement function
2388 * elf32-i370.c (i370_noop): Update prototype.
2390 2018-02-13 Alan Modra <amodra@gmail.com>
2393 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
2394 relocation sections. If size reduces to just the flag word,
2395 remove that too and mark with SEC_EXCLUDE.
2396 * elflink.c (bfd_elf_final_link): Strip empty group sections.
2398 2018-02-13 Alan Modra <amodra@gmail.com>
2401 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
2404 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
2406 * i386msdos.c (msdos_mkobject); New function.
2407 (msdos_object_p): New function.
2408 (i386_msdos_vec): Use msdos_object_p as the check_format
2410 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
2411 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
2413 * peXXigen.c: Likewise.
2414 * coff-ia64.c: Likewise.
2416 2018-02-12 Nick Clifton <nickc@redhat.com>
2418 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
2420 * elf32-arc.c (elf_arc_relocate_section): Likewise.
2422 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
2424 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
2425 (sparc_elf_append_rela): Assert that there is enough room in section.
2426 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
2427 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
2428 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
2429 For a symbol subject to a GOT relocation, reserve a slot in the
2430 relocation section if the symbol isn't dynamic and we are in PIC mode.
2431 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
2432 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
2433 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
2434 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
2435 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
2436 resolved_to_zero. Do not generate a dynamic GOT relocation for an
2437 undefined weak symbol with non-default visibility. Remove superfluous
2438 'else' and fix formatting.
2440 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
2442 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
2444 (i386_elf32_sol2_vec): Don't declare.
2445 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
2446 Don't set need_global_offset_table.
2447 (elf_i386_solaris_arch_bed): New.
2448 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
2450 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
2451 target_os != is_nacl instead of target_os == is_normal.
2452 (x86_64_elf64_sol2_vec): Don't declare.
2453 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
2454 is_nacl instead of target_os == is_normal. Don't set
2455 need_global_offset_table.
2456 (elf_x86_64_solaris_arch_bed): New.
2457 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
2459 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
2460 _GLOBAL_OFFSET_TABLE_ for Solaris.
2461 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
2462 need_global_offset_table.
2463 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
2464 (elf_x86_link_hash_table): Remove need_global_offset_table.
2465 (elf_x86_init_table): Likewise.
2467 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2469 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2471 (i386_elf32_sol2_vec): Declared.
2472 (elf_i386_link_setup_gnu_properties): Set
2473 need_global_offset_table with info->output_bfd->xvec.
2474 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2476 (x86_64_elf64_sol2_vec): Declared.
2477 (elf_x86_64_link_setup_gnu_properties): Set
2478 need_global_offset_table with info->output_bfd->xvec.
2480 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2482 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2484 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
2486 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2488 (elf_x86_64_link_setup_gnu_properties): Set
2489 need_global_offset_table for Solaris.
2490 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
2491 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
2492 (_bfd_x86_elf_link_setup_gnu_properties): Copy
2493 need_global_offset_table.
2494 * elfxx-x86.h (elf_x86_link_hash_table): Add
2495 need_global_offset_table.
2496 (elf_x86_init_table): Likewise.
2498 2018-02-08 Jim Wilson <jimw@sifive.com>
2500 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
2503 2018-02-08 Nick Clifton <nickc@redhat.com>
2506 * elf.c (elf_parse_notes): Reject notes with excessuively large
2509 2018-02-07 Alan Modra <amodra@gmail.com>
2511 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
2512 * elf32-ppc.c: Remove speculation barrier support.
2513 * elf32-ppc.h: Likewise.
2514 * elf64-ppc.c: Likewise.
2515 * elf64-ppc.h: Likewise.
2517 2018-02-06 Jim Wilson <jimw@sifive.com>
2519 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
2520 callback to report an error.
2522 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
2525 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
2526 into call to !bfd_link_executable and tidy up.
2527 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
2528 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
2529 !bfd_link_executable.
2530 <R_SPARC_TLS_IE_HI22>: Likewise.
2531 <GOT relocations>: Remove useless code, tidy and merge related blocks.
2532 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
2533 !bfd_link_executable.
2534 <R_SPARC_WPLT30>: Tidy up.
2535 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
2536 !bfd_link_executable.
2537 (allocate_dynrelocs): Likewise.
2538 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
2539 <R_SPARC_TLS_GD_HI22>: Merge into...
2540 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
2541 sparc_elf_tls_transition and remove redundant code.
2542 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
2543 !bfd_link_executable.
2544 <R_SPARC_TLS_LDO_HIX22>: Likewise.
2545 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
2546 <R_SPARC_TLS_LDM_CALL>: Likewise.
2547 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
2548 <R_SPARC_TLS_GD_ADD>: Likewise.
2549 <R_SPARC_TLS_LDM_ADD>: Likewise.
2550 <R_SPARC_TLS_LDO_ADD>: Likewise.
2551 <R_SPARC_TLS_IE_LD>: Likewise.
2553 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
2556 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
2557 functions failed to find the function name, try the generic elf
2558 find function instead.
2560 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
2562 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
2563 'memcpy' instead of 'strncpy' when writing the magic number.
2565 2018-02-06 Nick Clifton <nickc@redhat.com>
2568 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
2569 section before attempting to read it in.
2570 (bfd_get_alt_debug_link_info): Likewise.
2572 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
2574 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
2575 line information in addition to name, if they can be found.
2577 2018-02-05 Renlin Li <renlin.li@arm.com>
2580 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
2581 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
2582 check for writeable section as well.
2584 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
2587 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
2588 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
2589 undefined weak symbol to 0.
2590 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
2591 if _GLOBAL_OFFSET_TABLE_ is referenced.
2592 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
2593 got_referenced instead of ref_regular_nonweak. Remove the
2594 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
2595 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
2597 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2599 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
2600 initialize `hi_reloc'.
2602 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2604 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
2605 SHT_MIPS_REGINFO sections don't assert the correct size and
2606 report an error instead.
2608 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2610 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
2611 status from `->elf_backend_section_processing'.
2613 2018-02-02 Jim Wilson <jimw@sifive.com>
2616 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
2617 If link_info->wrap_hash, check for a duplicate symbol and ignore.
2618 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
2619 Pass new argument to riscv_relax_delete_bytes.
2620 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
2621 ATTRIBUTE_UNUSED from link_info parameter.
2623 2018-02-02 Alan Modra <amodra@gmail.com>
2625 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
2626 emitted for toc sequence optimization. Set and use "howto" later.
2628 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
2630 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
2631 arithmetic on NULL pointer.
2632 * elflink.c (_bfd_elf_archive_symbol_lookup,
2633 elf_link_add_archive_symbols): Likewise.
2635 2018-01-31 Michael Matz <matz@suse.de>
2637 * elflink.c (bfd_elf_define_start_stop): Fix check of
2640 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
2643 * elflink.c (bfd_elf_define_start_stop): Check if __start and
2644 __stop symbols are referenced by shared objects.
2646 2018-01-30 Alan Modra <amodra@gmail.com>
2649 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
2650 segment when demand paged with lma on the same page. Test this
2651 before load/non-load, executable/non-executable,
2652 writable/non-writable tests and simplify. Delete bogus relro
2653 condition in writable/non-writable test. Delete outdated
2654 comment. Formatting.
2656 2018-01-30 Alan Modra <amodra@gmail.com>
2658 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
2661 2018-01-29 Alan Modra <amodra@gmail.com>
2664 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
2665 range before converting to a symbol table pointer.
2667 2018-01-27 Nick Clifton <nickc@redhat.com>
2669 * po/ru.po: Updated Russian translation.
2671 2018-01-26 Alan Modra <amodra@gmail.com>
2673 * elflink.c (bfd_elf_define_start_stop): Override symbols when
2674 they are defined dynamically.
2676 2018-01-26 Alan Modra <amodra@gmail.com>
2678 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
2679 .branch_lt changes size.
2681 2018-01-25 Alan Modra <amodra@gmail.com>
2684 * elfcode.h (elf_object_p): Avoid integer overflow.
2686 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
2689 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2690 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
2693 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
2696 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
2697 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
2698 bfd_link_executable for TLS check.
2699 (_bfd_sparc_elf_check_relocs): Likewise.
2700 (allocate_dynrelocs): Likewise.
2701 (_bfd_sparc_elf_relocate_section): Likewise.
2703 2018-01-24 Renlin Li <renlin.li@arm.com>
2705 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
2706 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2707 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2708 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2709 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2710 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
2711 (_bfd_aarch64_elf_resolve_relocation): Likewise.
2713 2018-01-24 Renlin Li <renlin.li@arm.com>
2715 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
2716 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
2717 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
2718 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
2719 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
2720 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2721 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2722 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2723 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2724 * bfd-in2.h: Regenerate.
2725 * libbfd.h: Regenerate.
2727 2018-01-23 Maciej W. Rozycki <macro@mips.com>
2729 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
2730 `mips_elf32_section_processing' comment reference.
2732 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
2735 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
2736 versioned __tls_get_addr symbol.
2738 2018-01-19 Nick Clifton <nickc@redhat.com>
2740 * po/fr.po: Updated French translation.
2742 2018-01-18 Alan Modra <amodra@gmail.com>
2744 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
2745 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
2746 (ppc64_elf_build_stubs): Likewise.
2748 2018-01-17 Nick Clifton <nickc@redhat.com>
2750 * po/ru.po: Updated Russian translation.
2751 * po/uk/po: Updated Ukranian translation.
2753 2018-01-17 Alan Modra <amodra@gmail.com>
2755 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
2757 2018-01-17 Alan Modra <amodra@gmail.com>
2759 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
2760 (CRSETEQ, BEQCTRM): Define.
2761 (is_nonpic_glink_stub): Don't check bctr.
2762 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2763 (ppc_elf_relax_section): Size speculation barrier.
2764 (output_bctr): New function.
2765 (write_glink_stub): Use output_bctr.
2766 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
2767 (ppc_elf_finish_dynamic_symbol): Likewise.
2768 (ppc_elf_finish_dynamic_sections): Use output_bctr.
2769 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
2770 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
2771 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
2772 (size_global_entry_stubs): Handle speculation barrier sizing.
2773 (plt_stub_size): Likewise.
2774 (output_bctr): New function.
2775 (build_plt_stub, build_tls_get_addr_stub): Output speculation
2777 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
2778 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
2779 (build_global_entry_stubs): Output speculation barrier.
2780 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
2781 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
2783 2018-01-17 Alan Modra <amodra@gmail.com>
2785 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
2786 __tls_get_addr_opt, and alignment sizing.
2787 (TLS_GET_ADDR_GLINK_SIZE): Delete.
2788 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
2789 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
2791 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2792 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
2793 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
2795 (write_glink_stub): Handle __tls_get_addr_opt stub.
2796 Pad out to size given by GLINK_ENTRY_SIZE.
2797 (ppc_elf_relocate_section): Adjust write_glink_stub call.
2798 (ppc_elf_finish_dynamic_symbol): Likewise.
2799 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
2800 insn array since so many need rewriting.
2801 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
2802 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
2803 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
2804 nops. Adjust all uses.
2805 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
2806 in glink_vma calculation.
2807 (struct ppc_link_hash_table): Add global_entry section pointer.
2808 (create_linkage_sections): Create separate section for global
2810 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
2811 (size_global_entry_stubs): Handle sizing for aligned stubs.
2812 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
2813 and don't stash end of glink branch table in rawsize.
2814 (ppc_build_one_stub): Rewrite stub size calculations.
2815 (build_global_entry_stubs): Use new section.
2816 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
2817 Build lazy link stubs out to end of section. Build global entry
2818 stubs in new section.
2820 2018-01-15 Nick Clifton <nickc@redhat.com>
2822 * po/uk.po: Updated Ukranian translation.
2824 2018-01-13 Nick Clifton <nickc@redhat.com>
2826 * po/bfd.pot: Regenerated.
2828 2018-01-13 Nick Clifton <nickc@redhat.com>
2830 * version.m4: Bump version to 2.30.51
2831 * configure: Regenerate.
2833 2018-01-13 Nick Clifton <nickc@redhat.com>
2835 2.30 branch created.
2837 2018-01-12 Jens Widell <jl@opera.com>
2839 * elf.c (setup_group): Optimize search for group by remembering
2840 last found group and restarting search at that index.
2841 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
2843 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
2845 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
2846 bfd_link_common_skip_none in switch.
2848 2018-01-12 Alan Modra <amodra@gmail.com>
2851 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
2852 references on forced local symbols.
2854 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
2856 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
2857 .reginfo section has wrong size.
2859 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2862 * elf.c (_bfd_elf_map_sections_to_segments): When generating
2863 separate code and read-only data LOAD segments, create a new
2864 LOAD segment if the previous section contains text and the
2865 current section doesn't or vice versa. Don't put a writable
2866 section in a read-only segment if there is a RELRO segment.
2868 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2871 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
2872 references on forced local symbols.
2874 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2877 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
2878 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
2880 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2883 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
2885 2018-01-03 John Baldwin <jhb@FreeBSD.org>
2887 * elf.c (elfcore_grok_freebsd_note): Handle
2888 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
2889 NT_FREEBSD_PROCSTAT_VMMAP.
2891 2018-01-03 Alan Modra <amodra@gmail.com>
2893 Update year range in copyright notice of all files.
2895 For older changes see ChangeLog-2017
2897 Copyright (C) 2018 Free Software Foundation, Inc.
2899 Copying and distribution of this file, with or without modification,
2900 are permitted in any medium without royalty provided the copyright
2901 notice and this notice are preserved.
2907 version-control: never