1 2019-07-23 Alan Modra <amodra@gmail.com>
3 * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
4 Remove none, any, all enums.
5 (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
6 (_bfd_elf_final_write_processing): Declare.
7 * elf.c (_bfd_elf_write_object_contents): Unconditionally call
8 elf_backend_final_write_processing.
9 (_bfd_elf_post_process_headers): Move body of function to..
10 (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
11 only when not already set. Adjust for rename.
12 * elfxx-target.h (elf_backend_final_write_processing): Default to
13 _bfd_elf_final_write_processing.
14 * elf-hppa.h (elf_hppa_final_write_processing): Call
15 _bfd_elf_final_write_processing.
16 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
17 * elf-nacl.c (nacl_final_write_processing): Likewise.
18 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
19 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
20 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
21 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
22 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
23 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
24 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
25 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
26 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
27 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
28 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
29 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
30 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
31 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
32 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
33 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
34 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
35 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
36 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
37 * elf32-arm.c (arm_final_write_processing): Split out from..
38 (elf32_arm_final_write_processing): ..here. Call
39 _bfd_elf_final_write_processing.
40 (elf32_arm_nacl_final_write_processing): Adjust.
41 * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
42 (_bfd_mips_elf_final_write_processing): ..here. Call
43 _bfd_elf_final_write_processing.
44 * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
45 * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
46 * elf32-ppc.c (ppc_final_write_processing): Split out from..
47 (ppc_elf_final_write_processing): ..here. Call
48 _bfd_elf_final_write_processing.
49 (ppc_elf_vxworks_final_write_processing): Adjust.
50 * elf32-sparc.c (sparc_final_write_processing): Split out from..
51 (elf32_sparc_final_write_processing): ..here. Call
52 _bfd_elf_final_write_processing.
53 (elf32_sparc_vxworks_final_write_processing): Adjust.
54 * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
55 * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
56 * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
57 * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
58 * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
59 * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
60 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
61 * elflink.c (elf_link_add_object_symbols): Likewise.
62 (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
65 2019-07-23 Omar Majid <omajid@redhat.com>
67 * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
68 I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
69 AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
71 * peXXigen.c: Add comment about source of .NET magic numbers.
73 2019-07-19 Alan Modra <amodra@gmail.com>
75 * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
76 (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
77 (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
78 (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
79 * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
80 (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
81 (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
82 (ppc64_elf_check_relocs): Support pcrel tls relocs.
83 (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
84 * bfd-in2.h: Regenerate.
85 * libbfd.h: Regenerate.
87 2019-07-18 Alan Modra <amodra@gmail.com>
89 * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
90 a TLS section symbol for edited relocs. Tighten TLS symbol/reloc
93 2019-07-18 Alan Modra <amodra@gmail.com>
95 * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
96 (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
98 (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and
99 tls_type vars unsigned int.
100 (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
101 to select r_type edit.
103 2019-07-18 Alan Modra <amodra@gmail.com>
105 * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
107 * elf64-ppc.c (TLS_GDIE): Likewise.
109 2019-07-18 Alan Modra <amodra@gmail.com>
111 * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
112 range of tp-relative offsets.
114 2019-07-15 Alan Modra <amodra@gmail.com>
116 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
117 alias is no longer bfd_link_hash_defined, clear the alias.
119 2019-07-13 Alan Modra <amodra@gmail.com>
121 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
123 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
124 (_bfd_elf_init_2_index_sections): Likewise.
125 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
126 relocations for local TLS symbols, use STN_UNDEF as the relocation
128 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
129 leave TLS symbol value in the addend.
131 2019-07-08 Alan Modra <amodra@gmail.com>
134 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
135 size before reading first word.
137 2019-07-02 Nick Clifton <nickc@redhat.com>
140 * elf.c (is_debuginfo_file): New function.
141 (assign_file_positions_for_non_load_sections): Do not warn about
142 allocated sections outside of loadable segments if they are found
144 * elf-bfd.h (is_debuginfo_file): Prototype.
146 2019-07-02 Nick Clifton <nickc@redhat.com>
149 * compress.c (bfd_get_full_section_contents): Do not complain
150 about linker created sections that are larger than the file size.
152 2019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
154 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
155 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
157 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
159 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
161 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
162 sections when .text section contain secure entry functions
165 2019-07-01 Nick Clifton <nickc@redhat.com>
168 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
169 section VMA in the offset used to update exidx relocs.
171 2019-06-28 Nick Clifton <nickc@redhat.com>
174 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
175 large version reference section.
176 * compress.c (bfd_get_full_section_contents): Check for an
177 uncompressed section whose size is larger than the file size.
179 2019-06-28 Alan Modra <amodra@gmail.com>
181 * format.c (bfd_check_format_matches): Don't match plugin target
182 if another target matches. Expand comment.
183 * targets.c (_bfd_target_vector): Move plugin_vec after all other
184 non-corefile targets, outside !SELECT_VECS.
185 * config.bfd: Don't handle targ=plugin here.
186 * configure.ac: Don't add plugin to enable_targets or handle in
187 target loop setting selvecs and other target vars.
188 * configure: Regenerate.
190 2019-06-26 Nick Clifton <nickc@redhat.com>
193 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
194 messages for failures.
195 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
196 if returning an error value.
198 2019-06-25 Jan Beulich <jbeulich@suse.com>
200 * elf-properties.c (elf_find_and_remove_property): Rename last
201 parameter. Mention it in comment.
203 2019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
205 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
206 SEC_MERGE or SEC_CODE flags are set.
207 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
208 symtype consistently. Don't include sec_addr (sym_sec) in symval.
209 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
210 Add sec_addr (sym_sec) after handling merge sections.
212 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
215 * elf-properties.c (elf_merge_gnu_property_list): Remove the
216 property after reporting property removal.
218 2019-06-23 Alan Modra <amodra@gmail.com>
221 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
222 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
223 Reduce range of offsets allowed for other GOT relocs.
225 2019-06-23 Alan Modra <amodra@gmail.com>
228 * elfcode.h (elf_object_p): Warning fix.
230 2019-06-21 Alan Modra <amodra@gmail.com>
233 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
235 2019-06-19 Alan Modra <amodra@gmail.com>
238 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
239 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
241 2019-06-19 Alan Modra <amodra@gmail.com>
243 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
244 functions that require r2 valid to use local entry.
245 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
247 2019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
249 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
250 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
251 with elfNN_aarch64_allocate_local_dynrelocs.
253 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
255 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
257 2019-06-14 Alan Modra <amodra@gmail.com>
259 * Makefile.in: Regenerate.
260 * configure: Regenerate.
262 2019-06-14 Alan Modra <amodra@gmail.com>
264 * elf64-ppc.c: Fix comments involving paddi.
266 2019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
269 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
270 absent, or the bfd is not in the ELF formart.
271 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
273 2019-06-10 Christos Zoulas <christos@zoulas.com>
276 * elf.c (elfcore_make_auxv_note_section): New function.
277 (elfcore_grok_note): Use it.
278 (elfcore_grok_freebsd_note): Likewise.
279 (elfcore_grok_openbsd_note): Likewise.
280 (elfcore_grok_netbsd_note): Likewise. Plus add support for
281 NT_NETBSDCORE_AUXV notes.
283 2019-06-06 Sudakshina Das <sudi.das@arm.com>
285 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
286 alignment of the new gnu property section.
288 2019-06-06 Sudakshina Das <sudi.das@arm.com>
290 * bfd-in.h: Change comment.
291 * bfd-in2.h: Regenerate.
292 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
293 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
296 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
298 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
299 Remove overflow check.
301 2019-05-28 Alan Modra <amodra@gmail.com>
304 * cofflink.c (coff_link_check_archive_element): Don't assume
305 element is a coff object file after calling add_archive_element.
307 2019-05-28 Alan Modra <amodra@gmail.com>
310 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
311 attempt to set sh_entsize for excluded PLT section.
313 2019-05-28 Alan Modra <amodra@gmail.com>
316 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
317 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
318 allocated in alpha_dynamic_entries_for_reloc.
320 2019-05-28 Alan Modra <amodra@gmail.com>
323 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
324 on NULL output_section.
325 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
327 2019-05-28 Alan Modra <amodra@gmail.com>
330 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
331 entry when MUST_FIND. Abort when MUST_FIND not found.
332 (elf_m68k_get_bfd2got_entry): Likewise.
333 (elf_m68k_relocate_section): Remove now useless assert.
335 2019-05-28 Alan Modra <amodra@gmail.com>
338 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
339 from bfd_link_info, not an output section owner.
340 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
341 (elf_hppa_final_link_relocate): Likewise.
343 2019-05-28 Alan Modra <amodra@gmail.com>
346 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
347 create_object_symbols_section, obj_textsec, obj_datasec or
348 obj_bsssec. Fix other errors in placement.
349 * config.bfd: Obsolete tic30-aout.
351 2019-05-28 Alan Modra <amodra@gmail.com>
354 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
355 end of section list as well as section_count.
356 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
357 section list before returning error.
359 2019-05-27 Alan Modra <amodra@gmail.com>
361 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
363 2019-05-27 Alan Modra <amodra@gmail.com>
366 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
368 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
370 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
371 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
372 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
373 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
374 (elf_backend_merge_symbol_attribute): Define.
376 2019-05-24 Alan Modra <amodra@gmail.com>
378 * po/SRC-POTFILES.in: Regenerate.
380 2019-05-24 Alan Modra <amodra@gmail.com>
382 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
383 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
384 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
385 (struct ppc_link_hash_table): Add powerxx_stubs.
386 (ppc64_elf_check_relocs): Set powerxx_stubs.
387 (build_powerxx_offset, size_powerxx_offset),
388 (num_relocs_for_powerxx_offset),
389 (emit_relocs_for_powerxx_offset): New functions.
390 (plt_stub_size): Size powerxx stubs.
391 (ppc_build_one_stub): Emit powerxx stubs.
392 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
395 2019-05-24 Alan Modra <amodra@gmail.com>
397 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
399 (xlate_pcrel_opt): New function.
400 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
401 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
402 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
404 2019-05-24 Alan Modra <amodra@gmail.com>
406 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
407 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
408 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
409 (BFD_RELOC_PPC64_PLT_PCREL34),
410 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
411 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
412 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
413 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
414 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
415 * elf64-ppc.c (PNOP): Define.
416 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
417 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
418 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
420 (ppc64_elf_prefix_reloc): New function.
421 (struct ppc_link_hash_table): Add notoc_plt.
422 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
423 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
424 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
425 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
426 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
427 possible need for dynamic relocs on non-pcrel powerxx relocs.
428 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
429 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
430 (toc_adjusting_stub_needed): Likewise.
431 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
432 (ppc64_elf_relocate_section): Handle new powerxx relocs.
433 * bfd-in2.h: Regenerate.
434 * libbfd.h: Regenerate.
436 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
438 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
439 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
441 * configure: Regenerate.
443 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
445 * configure: Regenerated.
446 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
447 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
448 (BFD64_BACKENDS): Add elf64-bpf.lo.
449 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
450 * Makefile.in (SOURCE_HFILES): Regenerate.
451 * config.bfd (targ_cpu): Handle bpf-*-* targets.
452 * cpu-bpf.c: New file.
453 * elf64-bpf.c: Likewise.
454 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
456 * archures.c: Define architecture bfd_arch_bpf and machine
458 * reloc.c: Define BFD relocations used by the BPF target.
459 * bfd-in2.h: Regenerated.
460 * libbfd.h: Likewise.
462 2019-05-22 Alan Modra <amodra@gmail.com>
464 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
467 2019-05-22 Alan Modra <amodra@gmail.com>
469 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
470 processing on "size error in section".
472 2019-05-22 Alan Modra <amodra@gmail.com>
474 * som.c (som_bfd_free_cached_info): Call
475 _bfd_generic_close_and_cleanup.
477 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
479 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
480 for TLS_TPREL_HI16(/LO16) relocations in shared library.
482 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
484 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
485 checks. Search the RELA table for n64 relocations.
487 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
488 Faraz Shahbazker <fshahbazker@wavecomp.com>
490 * elfxx-mips.c (LA25_BC): New macro.
491 (mips_elf_link_hash_table)<compact_branches>: New field.
492 (STUB_JALRC): New macro.
493 (mipsr6_o32_exec_plt0_entry_compact): New array.
494 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
495 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
496 (mipsr6_exec_plt_entry_compact): Likewise.
497 (mips_elf_create_la25_stub): Use BC instead of J for stubs
498 when compact_branches is true.
499 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
500 PLT for MIPSR6 with compact_branches. Do not reorder the
501 compact branches PLT. Switch the lazy stub for MIPSR6
502 with compact_branches to use JALRC.
503 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
504 when compact_branches is true.
505 (_bfd_mips_elf_compact_branches): New function.
506 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
508 2019-05-21 Tamar Christina <tamar.christina@arm.com>
511 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
514 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
517 * elf32-arm.c (get_value_helper): Remove.
518 (elf32_arm_final_link_relocate): Fix branch future relocations.
520 2019-05-21 Tamar Christina <tamar.christina@arm.com>
523 * bfd-in.h (enum erratum_84319_opts): New
524 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
525 int to enum erratum_84319_opts.
526 * bfd-in2.h: Regenerate.
527 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
528 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
529 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
530 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
531 (_bfd_aarch64_resize_stubs): Amend comment.
532 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
534 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
535 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
537 (clear_erratum_843419_entry): Update erratum conditional.
539 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
542 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
543 when computing distance_short_enough.
545 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
548 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
549 Wrap around even if distance equals avr_pc_wrap_around.
551 2019-05-20 Nick Clifton <nickc@redhat.com>
553 * po/fr.po: Updated French translation.
555 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
557 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
559 2019-05-16 Alan Modra <amodra@gmail.com>
561 * elf32-arm.c (elf32_arm_write_section): Revert last change.
563 2019-05-15 Alan Modra <amodra@gmail.com>
565 * elf32-arm.c (elf32_arm_write_section): Don't leave
566 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
567 unitialised section contents.
569 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
572 * verilog.c: (VerilogDataWidth): New variable.
573 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
575 2019-05-08 Nick Clifton <nickc@redhat.com>
578 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
579 rather than FALSE if encountering a non-ELF file.
581 2019-05-06 Alan Modra <amodra@gmail.com>
583 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
585 2019-05-06 Alan Modra <amodra@gmail.com>
587 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
588 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
589 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
590 * libbfd.h: Regenerate.
591 * bfd-in2.h: Regenerate.
593 2019-05-04 Alan Modra <amodra@gmail.com>
596 * syms.c (coff_section_type): Only allow '.', '$' and numeric
597 following the standard section names.
598 (bfd_decode_symclass): Prioritize section flag tests in
599 decode_section_type before name tests in coff_section_type.
600 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
601 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
602 their names and choose standard .text section flags for
605 2019-05-02 Nick Clifton <nickc@redhat.com>
608 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
609 .gnu.debugaltlink sections as debugging sections.
611 2019-04-30 Alan Modra <amodra@gmail.com>
613 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
614 (struct _ppc64_elf_section_data): Likewise.
615 (ppc64_elf_check_relocs): Set above fields.
616 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
617 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
620 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
623 * elflink.c (elf_link_output_extsym): Don't complain undefined
624 weak dynamic reference.
626 2019-04-25 Sudakshina Das <sudi.das@arm.com>
628 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
629 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
630 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
631 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
632 (elfNN_aarch64_small_plt0_pac_entry): Remove.
633 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
634 (elfNN_aarch64_small_plt0_bti_entry): Update.
635 (elfNN_aarch64_small_plt_bti_entry): Update.
636 (elfNN_aarch64_small_plt_pac_entry): Update.
637 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
638 (setup_plt_values): Setup new entries.
639 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
640 (elfNN_aarch64_plt_sym_val): Likewise.
642 2019-04-22 Jim Wilson <jimw@sifive.com>
644 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
646 2019-04-19 Alan Modra <amodra@gmail.com>
648 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
650 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
652 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
653 building shared object.
654 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
656 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
659 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
662 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
664 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
666 * bfd-in2.h: Regenerate.
667 * libbfd.h: Likewise.
669 2019-04-15 Sudakshina Das <sudi.das@arm.com>
671 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
672 * bfd-in2.h: Regenerated.
673 * libbfd.h: Regenerated.
675 2019-04-15 Sudakshina Das <sudi.das@arm.com>
677 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
678 * bfd-in2.h: Regenerated.
679 * libbfd.h: Likewise.
681 2019-04-15 Sudakshina Das <sudi.das@arm.com>
683 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
684 * bfd-in2.h: Regenerated.
685 * libbfd.h: Regenerated.
686 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
687 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
688 and R_ARM_THM_BF12 together.
689 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
691 2019-04-15 Sudakshina Das <sudi.das@arm.com>
693 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
694 * libbfd.h: Regenerated.
695 * bfd-in2.h: Regenerated.
696 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
697 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
698 and R_ARM_THM_BF18 together.
699 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
701 2019-04-15 Sudakshina Das <sudi.das@arm.com>
703 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
704 * bfd-in2.h: Regenerated.
705 * libbfd.h: Regenerated.
706 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
707 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
708 and R_ARM_THM_BF16 together.
709 (get_value_helper): New reloc helper.
710 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
712 2019-04-15 Sudakshina Das <sudi.das@arm.com>
714 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
715 * bfd-in2.h: Regenerate.
716 * libbfd.h: Regenerate.
718 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
720 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
721 * bfd-in2.h: Regenerate.
722 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
723 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
725 (using_thumb2): Likewise.
726 (using_thumb2_bl): Update assert.
727 (arch_has_arm_nop): Likewise.
728 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
729 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
731 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
733 * elf-linker-x86.h (elf_x86_cet_report): New.
734 (elf_linker_x86_params): Add cet_report.
735 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
736 missing IBT and SHSTK properties if needed.
738 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
741 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
742 "h != NULL". Don't check "h != NULL" before calling.
743 bfd_elf_gc_record_vtentry.
744 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
745 * elf32-bfin.c (bfin_check_relocs): Likewise.
746 * elf32-cris.c (cris_elf_check_relocs): Likewise.
747 * elf32-csky.c (csky_elf_check_relocs): Likewise.
748 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
749 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
750 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
751 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
752 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
753 * elf32-i386.c (elf_i386_check_relocs): Likewise.
754 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
755 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
756 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
757 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
758 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
759 * elf32-metag.c (elf_metag_check_relocs): Likewise.
760 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
761 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
762 * elf32-s390.c (elf_s390_check_relocs): Likewise.
763 * elf32-sh.c (sh_elf_check_relocs): Likewise.
764 * elf32-v850.c (v850_elf_check_relocs): Likewise.
765 * elf32-vax.c (elf_vax_check_relocs): Likewise.
766 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
767 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
768 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
769 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
770 * elf64-s390.c (elf_s390_check_relocs): Likewise.
771 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
772 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
773 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
774 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
777 2019-04-11 Alan Modra <amodra@gmail.com>
780 * elflink.c (elf_link_add_object_symbols): Don't read partial
781 dynamic entries from fuzzed objects.
783 2019-04-11 Tamar Christina <tamar.christina@arm.com>
786 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
787 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
788 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
790 2019-04-10 Michael Forney <mforney@mforney.org>
793 * doc/chew.c (free_words): Correctly free "push_text" strings.
795 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
797 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
799 2019-04-08 Alan Modra <amodra@gmail.com>
801 * configure.ac (elfxx_x86): Define and use.
802 * configure: Regenerate.
804 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
806 * elf-linker-x86.h: New file.
807 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
808 to get x86-specific linker options.
809 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
810 (elf_x86_64_check_relocs): Likewise.
811 (elf_x86_64_relocate_section): Likewise.
812 (elf_x86_64_link_setup_gnu_properties): Likewise.
813 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
814 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
815 (_bfd_elf_linker_x86_set_options): New function.
816 * elfxx-x86.h: Include "elf-linker-x86.h".
817 (elf_x86_link_hash_table): Add params.
819 2019-04-03 Alan Modra <amodra@gmail.com>
821 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
822 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
823 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
824 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
825 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
826 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
828 2019-04-02 Jim Wilson <jimw@sifive.com>
831 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
832 ELF header flags to after check for ELF object file. Loop through
833 sections looking for code sections, if none, then skip ABI checks.
835 2019-03-30 Andrew Waterman <andrew@sifive.com>
837 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
840 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
842 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
843 info->export_dynamic to the conditional.
845 2019-03-28 Alan Modra <amodra@gmail.com>
848 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
849 * configure: Regenerate.
850 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
851 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
852 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
853 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
854 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
856 2019-03-21 Jim Wilson <jimw@sifive.com>
859 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
860 verify sym non-NULL before using. Add identical check using h.
862 2019-03-21 Sudakshina Das <sudi.das@arm.com>
864 * elf-bfd.h (struct elf_backend_data): Add argument to
865 merge_gnu_properties.
866 * elf-properties.c (elf_merge_gnu_properties): Add argument to
867 itself and while calling bed->merge_gnu_properties.
868 (elf_merge_gnu_property_list): Update the calls for
869 elf_merge_gnu_properties.
870 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
871 of --force-bti warning and add argument.
872 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
874 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
875 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
878 2019-03-20 Sudakshina Das <sudi.das@arm.com>
880 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
881 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
882 (elf_backend_fixup_gnu_properties): Define for AArch64.
884 2019-03-18 Alan Modra <amodra@gmail.com>
887 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
888 for local iplt syms with ent->plt.offset == -1. Remove ineffective
889 attempt at writing glink stubs only once.
891 2019-03-16 Alan Modra <amodra@gmail.com>
894 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
895 (_bfd_elf_rel_local_sym): Likewise.
896 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
897 section of symbols with unrecognized shndx.
899 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
902 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
904 * cofflink.c (coff_link_add_symbols): Check for symbols defined
905 in discarded section.
907 2019-03-15 Alan Modra <amodra@gmail.com>
910 * elflink.c (elf_link_add_object_symbols): Bail out on a local
911 symbol after globals if elf_bad_symtab is not set.
913 2019-03-15 Alan Modra <amodra@gmail.com>
916 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
917 (_bfd_elf_rel_local_sym): Likewise.
919 2019-03-15 Alan Modra <amodra@gmail.com>
922 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
923 object files with sh_size not a multiple of sh_entsize.
925 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
928 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
929 input with bad relocation.
931 22019-03-15 H.J. Lu <hongjiu.lu@intel.com>
933 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
935 2019-03-14 Nick Clifton <nickc@redhat.com>
938 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
939 (save_section_vma): Initialise field to the number of entries in
941 (section_vma_same): Check that the number of entries in the
942 sec_vma table matches the number of sections in the bfd.
944 2019-03-14 Nick Clifton <nickc@redhat.com>
947 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
948 section owner pointer when adding the default symbol.
950 2019-03-14 Nick Clifton <nickc@redhat.com>
953 * elflink.c (elf_link_add_object_symbols): Add new local variable
954 extversym_end. Initialise it to point to the end of the version
955 symbol table, if present. Check it when initialising and updating
958 2019-03-13 Sudakshina Das <sudi.das@arm.com>
960 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
961 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
962 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
963 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
965 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
966 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
967 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
969 2019-03-13 Sudakshina Das <sudi.das@arm.com>
970 Szabolcs Nagy <szabolcs.nagy@arm.com>
972 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
973 (aarch64_bti_pac_info): New.
974 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
975 (bfd_elf32_aarch64_set_options): Likewise.
976 * bfd-in2.h: Regenerate
977 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
978 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
979 (elfNN_aarch64_small_plt0_bti_entry): New.
980 (elfNN_aarch64_small_plt_bti_entry): New.
981 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
982 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
983 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
984 tlsdesc_plt_entry_size fields.
985 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
986 (setup_plt_values): New helper function.
987 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
989 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
991 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
992 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
993 to plt stubs instead of fixed ones and update filling them according
995 (elfNN_aarch64_init_small_plt0_entry): Likewise.
996 (elfNN_aarch64_finish_dynamic_sections): Likewise.
997 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
998 (elfNN_aarch64_plt_sym_val): Update size accordingly.
999 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
1001 (bfd_elfNN_get_synthetic_symtab): Define.
1002 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
1003 and mising BTI NOTE SECTION.
1006 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1008 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
1009 linker created inputs from merge.
1010 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
1011 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
1012 (elfNN_aarch64_link_setup_gnu_properties): New.
1013 (elfNN_aarch64_merge_gnu_properties): New.
1014 (elf_backend_setup_gnu_properties): Define for AArch64.
1015 (elf_backend_merge_gnu_properties): Likewise.
1016 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
1017 (_bfd_aarch64_elf_parse_gnu_properties): Define.
1018 (_bfd_aarch64_elf_merge_gnu_properties): Define.
1019 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
1020 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
1021 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
1022 (elf_backend_parse_gnu_properties): Define for AArch64.
1024 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1027 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
1028 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
1030 2019-03-12 Alan Modra <amodra@gmail.com>
1032 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
1033 nmemb parameter. Use bfd_alloc2.
1034 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
1036 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
1037 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
1038 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
1040 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
1041 (assign_section_numbers): Style fix.
1042 (swap_out_syms): Use bfd_malloc2.
1043 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
1045 (_bfd_elf_make_empty_symbol): Style fix.
1046 (elfobj_grok_stapsdt_note_1): Formatting.
1047 * elfcode.h (elf_object_p): Use bfd_alloc2.
1048 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
1049 (elf_slurp_symbol_table): Use bfd_zalloc2.
1050 (elf_slurp_reloc_table): Use bfd_alloc2.
1051 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
1052 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
1053 size calculation doesn't overflow.
1054 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
1055 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1056 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
1058 2019-03-08 Alan Modra <amodra@gmail.com>
1061 * merge.c (merge_strings): Return secinfo. Don't pad section
1063 (_bfd_merge_sections): Pad section to alignment here, if input
1064 sections contributing to merged output all pad to alignment.
1067 2019-03-06 Nick Clifton <nickc@redhat.com>
1069 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
1071 * coffgen.c (coff_find_nearest_line_with_names): Do not call
1072 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
1074 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1076 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1077 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1080 * elf32-s390.c (allocate_dynrelocs): Update comment.
1082 2019-02-28 Tamar Christina <tamar.christina@arm.com>
1084 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
1086 2019-02-28 Nick Clifton <nickc@redhat.com>
1089 * elf.c (bfd_elf_string_from_elf_section): Check for a string
1090 section that is not NUL terminated.
1092 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1095 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
1096 by linker when checking copy reloc on protected symbol.
1098 2019-02-24 Alan Modra <amodra@gmail.com>
1101 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
1103 2019-02-20 Eric Tsai <erictsai@cadence.com>
1105 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
1106 sections between the call site and call destination and adjust
1107 call distance by the largest alignment.
1109 2019-02-20 Alan Hayward <alan.hayward@arm.com>
1111 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
1112 * elf.c (elfcore_grok_aarch_pauth): New function.
1113 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
1114 (elfcore_write_aarch_pauth): New function.
1115 (elfcore_write_register_note): Check for AArch64 pauth section.
1117 2019-02-20 Alan Modra <amodra@gmail.com>
1120 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
1123 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
1125 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
1126 Darwin hosts, not just or1k.
1127 * configure: Regenerate.
1129 2019-02-20 Alan Modra <amodra@gmail.com>
1132 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
1133 sentinel NUL to string buffer nearer to loop where it is used.
1134 Don't go past sentinel when scanning strings, and don't write
1136 * archive.c (do_slurp_coff_armap): Simplify string handling to
1139 2019-02-19 Alan Modra <amodra@gmail.com>
1142 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
1143 attempting to prevent read past end of section.
1145 2019-02-18 Alan Modra <amodra@gmail.com>
1148 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
1149 PRIx64 to generate warning messages. Print local sym names too.
1151 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
1153 * elf32-arc (INIT_SYM_STRING): Delete.
1154 (FINI_SYM_STRING): Likewise.
1155 (init_str): Likewise.
1156 (fini_str): Likewise.
1158 2019-02-08 Alan Modra <amodra@gmail.com>
1160 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
1161 for bss-plt" warning to make it an error.
1163 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1166 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
1167 reloc_class_ifunc for ifunc symbols.
1168 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
1170 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1172 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
1173 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
1175 2019-02-07 Nick Clifton <nickc@redhat.com>
1177 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
1178 into the definitely obsolete list.
1180 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1183 * elf64-x86-64.c (elf_x86_64_need_pic): Check
1184 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
1185 (elf_x86_64_relocate_section): Move PIC check for PC-relative
1187 (elf_x86_64_check_relocs): Here.
1188 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
1189 to check if a symbol is defined in a non-shared object.
1190 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
1192 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
1194 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
1195 of 'labs' (and fix GCC warning).
1197 2019-01-25 Nick Clifton <nickc@redhat.com>
1199 * po/ru.po: Updated Russian translation.
1201 2019-01-23 Nick Clifton <nickc@redhat.com>
1203 * po/fr.po: Updated French translation.
1205 2019-01-21 Nick Clifton <nickc@redhat.com>
1207 * po/pt.po: Updated Portuguese translation.
1208 * po/uk.po: Updated Ukranian translation.
1210 2019-01-21 Yuri Chornoivan <yurchor@ukr.net>
1213 * elf32-nds32.c (nds32_relocate_section): Add space between words
1215 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
1217 (riscv_i_or_e_p): Likewise.
1218 (riscv_merge_arch_attr_info): Likewise.
1220 2019-01-19 Nick Clifton <nickc@redhat.com>
1222 * version.m4: Reset to 2.32.51
1223 * configure: Regenerate.
1224 * po/bfd.pot: Regenerate.
1226 2018-06-24 Nick Clifton <nickc@redhat.com>
1228 2.32 branch created.
1230 2019-01-16 Kito Cheng <kito@andestech.com>
1232 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
1235 2019-01-16 Kito Cheng <kito@andestech.com>
1236 Nelson Chu <nelson@andestech.com>
1238 * elfnn-riscv.c (in_subsets): New.
1239 (out_subsets): Likewise.
1240 (merged_subsets): Likewise.
1241 (riscv_std_ext_p): Likewise.
1242 (riscv_non_std_ext_p): Likewise.
1243 (riscv_std_sv_ext_p): Likewise.
1244 (riscv_non_std_sv_ext_p): Likewise.
1245 (riscv_version_mismatch): Likewise.
1246 (riscv_i_or_e_p): Likewise.
1247 (riscv_merge_std_ext): Likewise.
1248 (riscv_merge_non_std_and_sv_ext): Likewise.
1249 (riscv_merge_arch_attr_info): Likewise.
1250 (riscv_merge_attributes): Likewise.
1251 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
1253 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
1254 (elf_backend_obj_attrs_vendor): Define.
1255 (elf_backend_obj_attrs_section_type): Likewise.
1256 (elf_backend_obj_attrs_section): Likewise.
1257 (elf_backend_obj_attrs_arg_type): Define as
1258 riscv_elf_obj_attrs_arg_type.
1259 * elfxx-riscv.c (riscv_estimate_digit): New.
1260 (riscv_estimate_arch_strlen1): Likewise.
1261 (riscv_estimate_arch_strlen): Likewise.
1262 (riscv_arch_str1): Likewise.
1263 (riscv_arch_str): Likewise.
1264 * elfxx-riscv.h (riscv_arch_str): Declare.
1266 2019-01-14 John Darrington <john@darrington.wattle.id.au>
1268 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
1270 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
1271 source field. (md_apply_fix): Apply final fix
1272 to BFD_RELOC_S12Z_OPR.
1273 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
1275 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1278 * elf32-s390.c (allocate_dynrelocs): Update comment.
1280 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1282 * warning.m4: Adjust egrep pattern for non-GNU compilers.
1283 * configure: Regenerate.
1285 2019-01-08 Alan Modra <amodra@gmail.com>
1289 * ihex.c (ihex_write_object_contents): Properly check 32-bit
1292 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1294 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
1295 * bfd/bfd-in2.h: Regenerate.
1296 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
1297 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
1299 2019-01-04 Lifang Xia <lifang_xia@c-sky.com>
1301 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
1302 default target, little endian target is more suitable.
1304 2019-01-04 Alan Modra <amodra@gmail.com>
1308 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
1310 (EQ_VALUE_IN_FIELD): Likewise.
1311 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
1313 2019-01-01 Alan Modra <amodra@gmail.com>
1315 Update year range in copyright notice of all files.
1317 For older changes see ChangeLog-2018
1319 Copyright (C) 2019 Free Software Foundation, Inc.
1321 Copying and distribution of this file, with or without modification,
1322 are permitted in any medium without royalty provided the copyright
1323 notice and this notice are preserved.
1329 version-control: never