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