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