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