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