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