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