1 2019-08-24 Alan Modra <amodra@gmail.com>
3 * elf64-ppc.c (ppc64_elf_edit_toc): Exclude undefined weak
4 symbols from GOT optimisation.
6 2019-08-23 Stafford Horne <shorne@gmail.com>
8 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Use correct value for
11 2019-08-23 Nick Clifton <nickc@redhat.com>
14 * elf.c (bfd_section_from_shdr): Issue an informative warning
15 message and continue processing other sections after encountering
16 a reloc section for a section which already has other relocs
19 2019-08-23 Alan Modra <amodra@gmail.com>
22 * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Don't exit
23 on error without freeing plts[] contents.
25 2019-08-22 Dennis Zhang <dennis.zhang@arm.com>
27 * cpu-arm.c: New entries for Cortex-M35P, Cortex-A77, Cortex-A76AE.
29 2019-08-22 Nick Clifton <nickc@redhat.com>
32 * pei-x86_64.c (pex64_xdata_print_uwd_codes): Add checks before
33 reading data from extra records.
35 2019-08-22 Tamar Christina <tamar.christina@arm.com>
38 * elfnn-aarch64.c (aarch64_relocate): Handle weak TLS and undefined TLS.
39 Also Pass input_bfd to _bfd_aarch64_elf_resolve_relocation.
40 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use it.
41 * elfxx-aarch64.h (_bfd_aarch64_elf_resolve_relocation): Emit warning
44 2019-08-22 Alan Modra <amodra@gmail.com>
46 * elf32-arm.c (cmse_scan): Don't use ARM_GET_SYM_CMSE_SPCL,
47 instead recognize CMSE_PREFIX in symbol name.
48 (elf32_arm_gc_mark_extra_sections): Likewise.
49 (elf32_arm_filter_cmse_symbols): Don't test ARM_GET_SYM_CMSE_SPCL.
50 (elf32_arm_swap_symbol_in): Don't invoke ARM_SET_SYM_CMSE_SPCL.
52 2019-08-20 Dennis Zhang <dennis.zhang@arm.com>
54 * cpu-aarch64.c: New entries for Cortex-A34, Cortex-A65,
55 Cortex-A77, cortex-A65AE, and Cortex-A76AE.
57 2019-08-20 Tamar Christina <tamar.christina@arm.com>
59 * elf32-arm.c (elf32_thumb2_plt_entry, elf32_arm_plt_thumb_stub,
60 elf32_arm_stub_long_branch_v4t_thumb_thumb,
61 elf32_arm_stub_long_branch_v4t_thumb_arm,
62 elf32_arm_stub_short_branch_v4t_thumb_arm,
63 elf32_arm_stub_long_branch_v4t_thumb_arm_pic,
64 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic,
65 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): Change nop to branch to
68 2019-08-19 Tom Tromey <tromey@adacore.com>
70 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Create hash table
73 2019-08-19 Alan Modra <amodra@gmail.com>
75 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename has_gotrel
77 (struct _ppc64_elf_section_data): Likewise.
78 (ppc64_elf_check_relocs): Set has_optrel for more relocs.
79 (ppc64_elf_edit_toc): Do ha/lo insn checks in GOT loop rather
80 than TOC loop. Check PLT16 insns too.
82 2019-08-16 H.J. Lu <hongjiu.lu@intel.com>
85 * elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for
86 PC-relative relocations back to ...
87 (elf_x86_64_relocate_section): Here.
89 2019-08-16 Martin Liska <mliska@suse.cz>
92 * elflink.c: Report error only for not relocatable.
93 * linker.c (_bfd_generic_link_add_one_symbol): Do not handle
94 here lto_slim_object as it's handled in caller.
96 2019-08-16 Alan Modra <amodra@gmail.com>
98 * elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs.
100 2019-08-15 Jim Wilson <jimw@sifive.com>
102 * elfnn-riscv.c (perform_relocation) <R_RISCV_RVC_LUI>: If
103 RISCV_CONST_HIGH_PART (value) is zero, then convert c.lui instruction
104 to c.li instruction, and use ENCODE_RVC_IMM to set value.
106 2019-08-15 Tom Tromey <tromey@adacore.com>
108 * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end
111 2019-08-14 Alan Modra <amodra@gmail.com>
114 * dwarf2.c (stash_comp_unit): New function, extracted from..
115 (_bfd_dwarf2_find_nearest_line): ..here.
116 (find_abstract_instance): Parse comp units and decode line info
119 2019-08-14 Alan Modra <amodra@gmail.com>
121 * dwarf2.c (comp_unit_maybe_decode_line_info): Declare.
122 (comp_unit_find_nearest_line): Use it here..
123 (_bfd_dwarf2_find_symbol_bias): ..and here.
125 2019-08-14 Alan Modra <amodra@gmail.com>
127 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove addr_size parameter.
128 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
129 * coffgen.c (coff_find_nearest_line_with_names): Adjust
130 _bfd_dwarf2_find_nearest_line calls.
131 * elf.c (_bfd_elf_find_nearest_line, _bfd_elf_find_line): Likewise.
132 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
133 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
134 * elfnn-aarch64.c (elfNN_aarch64_find_nearest_line): Likewise.
135 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
136 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
137 * libbfd.h: Regenerate.
139 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
141 * elf-bfd.h (struct elf_backend_data): New members.
142 * elflink.c (_bfd_elf_link_create_dynamic_sections): Create
143 .gnu.hash section if necessary.
144 (struct collect_gnu_hash_codes): New member.
145 (elf_gnu_hash_process_symidx): New function name.
146 (elf_renumber_gnu_hash_syms): Ignore local and undefined
147 symbols. Record xlat location for every symbol which should have
149 (bfd_elf_size_dynamic_sections): Add DT_GNU_HASH dynamic tag to
150 dynamic section if necessary.
151 (GNU_HASH_SECTION_NAME): New define.
152 (bfd_elf_size_dynsym_hash_dynstr): Get .MIPS.xhash section.
153 Update the section size info.
154 * elfxx-mips.c (struct mips_elf_hash_sort_data): New members.
155 (struct mips_elf_link_hash_entry): New member.
156 (mips_elf_link_hash_newfunc): Initialize .MIPS.xhash translation
158 (mips_elf_sort_hash_table): Initialize the pointer to the
160 (mips_elf_sort_hash_table_f): Populate the .MIPS.xhash
161 translation table entry with the symbol dynindx.
162 (_bfd_mips_elf_section_from_shdr): Add SHT_MIPS_XHASH.
163 (_bfd_mips_elf_fake_sections): Initialize .MIPS.xhash section
165 (_bfd_mips_elf_create_dynamic_sections): Create .MIPS.xhash
167 (_bfd_mips_elf_size_dynamic_sections): Add DT_MIPS_XHASH tag to
169 (_bfd_mips_elf_finish_synamic_sections): Add DT_MIPS_XHASH.
170 (_bfd_mips_elf_final_write_processing): Set .MIPS.xhash section
172 (_bfd_mips_elf_get_target_dtag): Get DT_MIPS_XHASH tag.
173 (MIPS_LIBC_ABI_XHASH): New ABI version enum value.
174 (_bfd_mips_post_process_headers): Mark the ABI version as
175 MIPS_LIBC_ABI_XHASH if there exists a .MIPS.xhash section,
176 but not a .hash section.
177 (_bfd_mips_elf_record_xhash_symbol): New function. Record a
178 position in the translation table, associated with the hash
180 * elfxx-mips.h (literal_reloc_p): Define
181 elf_backend_record_xhash_symbol backend hook.
182 * elfxx-target.h: Initialize elf_backend_record_xhash_symbol
185 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
187 * elf64-bpf.c (bpf_elf_relocate_section): New function.
188 (bpf_elf_insn_disp_reloc): Delete function.
189 (elf_backend_relocate_section): Define.
191 2019-08-07 Alan Modra <amodra@gmail.com>
194 * archive64.c (_bfd_archive_64_bit_slurp_armap): Properly check
195 for overflow in expressions involving nsymz.
197 2019-08-01 Ilia Diachkov <ilia.diachkov@optimitech.com>
199 * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to
200 two pages in relro presence.
202 2019-08-01 Max Filippov <jcmvbkbc@gmail.com>
204 * elf32-xtensa.c (insn_num_slots, get_rsr_lend_opcode)
205 (get_wsr_lbeg_opcode): New functions.
206 (check_loop_aligned): Detect relaxed loops and adjust loop_len
207 and insn_len for the first actual instruction of the loop.
209 2019-07-30 Alan Modra <amodra@gmail.com>
212 * bfd.c (struct bfd): Add lto_slim_object flag.
213 * bfd-in2.h: Regenerate.
215 2019-07-29 Martin Liska <mliska@suse.cz>
218 * archive.c (_bfd_compute_and_write_armap): Come up with
219 report_plugin_err variable.
220 * bfd-in2.h (struct bfd): Add lto_slim_object flag.
221 * elf.c (struct lto_section): New.
222 (_bfd_elf_make_section_from_shdr): Parse content of
223 .gnu_lto_.lto section.
224 * elflink.c: Report error for a missing LTO plugin.
225 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
227 2019-07-28 Alan Modra <amodra@gmail.com>
231 * elflink.c (elf_link_add_object_symbols): Report an informative
232 error on finding local symbols with index equal or greater than
233 symbol table sh_info. Correct comment. Allow such symbols in
234 dynamic objects. Abort on NULL section for symbol.
236 2019-07-26 Alan Modra <amodra@gmail.com>
238 * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field.
239 (elf_linker): Don't define.
240 * elflink.c (bfd_elf_final_link): Don't set elf_linker.
242 2019-07-25 YunQiang Su <syq@debian.org>
245 * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
248 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
250 * elf32-arc.c (bfd_get_32_me): Add a small description, fix
252 (reloc_type_to_name): Fix formating.
253 (arc_elf_object_p): Likewise.
254 (debug_arc_reloc): Likewise.
255 (arc_do_relocation): Likewise.
257 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
259 * elf32-arc.c (bfd_get_32_me): New function.
260 (bfd_put_32_me): Likewise.
261 (arc_elf_relax_section): Likewise.
262 (bfd_elf32_bfd_relax_section): Define.
264 2019-07-24 Alan Modra <amodra@gmail.com>
266 * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from
267 elf_backend_final_write_processing, don't pass linker arg.
268 (_bfd_elf_final_write_processing): Update prototype.
269 * elf.c (_bfd_elf_write_object_contents): Adjust call.
270 (_bfd_elf_final_write_processing): Return error on incompatible
271 OSABI and has_gnu_osabi. Remove linker arg.
272 * elf-nacl.h (nacl_final_write_processing): Update prototype.
273 * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise.
274 * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise.
275 (_bfd_mips_elf_final_write_processing): Likewise.
276 * elf-hppa.h (elf_hppa_final_write_processing): Return status
277 and remove linker arg.
278 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
279 * elf-nacl.c (nacl_final_write_processing): Likewise.
280 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
281 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
282 * elf32-arm.c (arm_final_write_processing): Likewise.
283 (elf32_arm_final_write_processing): Likewise.
284 (elf32_arm_nacl_final_write_processing): Likewise.
285 (elf32_arm_vxworks_final_write_processing): Likewise.
286 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
287 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
288 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
289 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
290 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
291 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
292 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
293 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
294 * elf32-mips.c (mips_vxworks_final_write_processing): Likewise.
295 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
296 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
297 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
298 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
299 * elf32-ppc.c (ppc_final_write_processing): Likewise.
300 (ppc_elf_final_write_processing): Likewise.
301 (ppc_elf_vxworks_final_write_processing): Likewise.
302 * elf32-sparc.c (sparc_final_write_processing): Likewise.
303 (elf32_sparc_final_write_processing): Likewise.
304 (elf32_sparc_vxworks_final_write_processing): Likewise.
305 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
306 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
307 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
308 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
309 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
310 * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise.
311 (_bfd_mips_elf_final_write_processing): Likewise.
313 2019-07-24 Alan Modra <amodra@gmail.com>
315 * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return
317 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
318 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
320 2019-07-24 Alan Modra <amodra@gmail.com>
322 * elf32-visium.c (visium_elf_post_process_headers): Don't set
323 EI_OSABI header byte here.
326 2019-07-23 Alan Modra <amodra@gmail.com>
328 * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind.
329 * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind.
330 (get_program_header_size): Formatting. Only test SH_GNU_MBIND
331 when elf_gnu_osabi_mbind is set.
332 (_bfd_elf_map_sections_to_segments): Likewise.
333 (_bfd_elf_init_private_section_data): Likewise.
334 (_bfd_elf_final_write_processing): Update comment.
335 * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry.
336 (elf_backend_special_sections): Define without .tbss for linux.
338 2019-07-23 Alan Modra <amodra@gmail.com>
340 * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
341 Remove none, any, all enums.
342 (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
343 (_bfd_elf_final_write_processing): Declare.
344 * elf.c (_bfd_elf_write_object_contents): Unconditionally call
345 elf_backend_final_write_processing.
346 (_bfd_elf_post_process_headers): Move body of function to..
347 (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
348 only when not already set. Adjust for rename.
349 * elfxx-target.h (elf_backend_final_write_processing): Default to
350 _bfd_elf_final_write_processing.
351 * elf-hppa.h (elf_hppa_final_write_processing): Call
352 _bfd_elf_final_write_processing.
353 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
354 * elf-nacl.c (nacl_final_write_processing): Likewise.
355 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
356 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
357 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
358 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
359 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
360 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
361 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
362 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
363 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
364 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
365 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
366 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
367 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
368 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
369 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
370 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
371 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
372 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
373 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
374 * elf32-arm.c (arm_final_write_processing): Split out from..
375 (elf32_arm_final_write_processing): ..here. Call
376 _bfd_elf_final_write_processing.
377 (elf32_arm_nacl_final_write_processing): Adjust.
378 * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
379 (_bfd_mips_elf_final_write_processing): ..here. Call
380 _bfd_elf_final_write_processing.
381 * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
382 * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
383 * elf32-ppc.c (ppc_final_write_processing): Split out from..
384 (ppc_elf_final_write_processing): ..here. Call
385 _bfd_elf_final_write_processing.
386 (ppc_elf_vxworks_final_write_processing): Adjust.
387 * elf32-sparc.c (sparc_final_write_processing): Split out from..
388 (elf32_sparc_final_write_processing): ..here. Call
389 _bfd_elf_final_write_processing.
390 (elf32_sparc_vxworks_final_write_processing): Adjust.
391 * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
392 * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
393 * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
394 * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
395 * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
396 * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
397 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
398 * elflink.c (elf_link_add_object_symbols): Likewise.
399 (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
402 2019-07-23 Omar Majid <omajid@redhat.com>
404 * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
405 I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
406 AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
408 * peXXigen.c: Add comment about source of .NET magic numbers.
410 2019-07-19 Alan Modra <amodra@gmail.com>
412 * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
413 (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
414 (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
415 (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
416 * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
417 (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
418 (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
419 (ppc64_elf_check_relocs): Support pcrel tls relocs.
420 (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
421 * bfd-in2.h: Regenerate.
422 * libbfd.h: Regenerate.
424 2019-07-18 Alan Modra <amodra@gmail.com>
426 * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
427 a TLS section symbol for edited relocs. Tighten TLS symbol/reloc
430 2019-07-18 Alan Modra <amodra@gmail.com>
432 * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
433 (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
435 (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and
436 tls_type vars unsigned int.
437 (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
438 to select r_type edit.
440 2019-07-18 Alan Modra <amodra@gmail.com>
442 * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
444 * elf64-ppc.c (TLS_GDIE): Likewise.
446 2019-07-18 Alan Modra <amodra@gmail.com>
448 * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
449 range of tp-relative offsets.
451 2019-07-15 Alan Modra <amodra@gmail.com>
453 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
454 alias is no longer bfd_link_hash_defined, clear the alias.
456 2019-07-13 Alan Modra <amodra@gmail.com>
458 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
460 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
461 (_bfd_elf_init_2_index_sections): Likewise.
462 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
463 relocations for local TLS symbols, use STN_UNDEF as the relocation
465 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
466 leave TLS symbol value in the addend.
468 2019-07-08 Alan Modra <amodra@gmail.com>
471 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
472 size before reading first word.
474 2019-07-02 Nick Clifton <nickc@redhat.com>
477 * elf.c (is_debuginfo_file): New function.
478 (assign_file_positions_for_non_load_sections): Do not warn about
479 allocated sections outside of loadable segments if they are found
481 * elf-bfd.h (is_debuginfo_file): Prototype.
483 2019-07-02 Nick Clifton <nickc@redhat.com>
486 * compress.c (bfd_get_full_section_contents): Do not complain
487 about linker created sections that are larger than the file size.
489 2019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
491 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
492 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
494 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
496 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
498 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
499 sections when .text section contain secure entry functions
502 2019-07-01 Nick Clifton <nickc@redhat.com>
505 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
506 section VMA in the offset used to update exidx relocs.
508 2019-06-28 Nick Clifton <nickc@redhat.com>
511 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
512 large version reference section.
513 * compress.c (bfd_get_full_section_contents): Check for an
514 uncompressed section whose size is larger than the file size.
516 2019-06-28 Alan Modra <amodra@gmail.com>
518 * format.c (bfd_check_format_matches): Don't match plugin target
519 if another target matches. Expand comment.
520 * targets.c (_bfd_target_vector): Move plugin_vec after all other
521 non-corefile targets, outside !SELECT_VECS.
522 * config.bfd: Don't handle targ=plugin here.
523 * configure.ac: Don't add plugin to enable_targets or handle in
524 target loop setting selvecs and other target vars.
525 * configure: Regenerate.
527 2019-06-26 Nick Clifton <nickc@redhat.com>
530 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
531 messages for failures.
532 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
533 if returning an error value.
535 2019-06-25 Jan Beulich <jbeulich@suse.com>
537 * elf-properties.c (elf_find_and_remove_property): Rename last
538 parameter. Mention it in comment.
540 2019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
542 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
543 SEC_MERGE or SEC_CODE flags are set.
544 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
545 symtype consistently. Don't include sec_addr (sym_sec) in symval.
546 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
547 Add sec_addr (sym_sec) after handling merge sections.
549 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
552 * elf-properties.c (elf_merge_gnu_property_list): Remove the
553 property after reporting property removal.
555 2019-06-23 Alan Modra <amodra@gmail.com>
558 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
559 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
560 Reduce range of offsets allowed for other GOT relocs.
562 2019-06-23 Alan Modra <amodra@gmail.com>
565 * elfcode.h (elf_object_p): Warning fix.
567 2019-06-21 Alan Modra <amodra@gmail.com>
570 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
572 2019-06-19 Alan Modra <amodra@gmail.com>
575 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
576 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
578 2019-06-19 Alan Modra <amodra@gmail.com>
580 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
581 functions that require r2 valid to use local entry.
582 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
584 2019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
586 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
587 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
588 with elfNN_aarch64_allocate_local_dynrelocs.
590 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
592 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
594 2019-06-14 Alan Modra <amodra@gmail.com>
596 * Makefile.in: Regenerate.
597 * configure: Regenerate.
599 2019-06-14 Alan Modra <amodra@gmail.com>
601 * elf64-ppc.c: Fix comments involving paddi.
603 2019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
606 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
607 absent, or the bfd is not in the ELF formart.
608 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
610 2019-06-10 Christos Zoulas <christos@zoulas.com>
613 * elf.c (elfcore_make_auxv_note_section): New function.
614 (elfcore_grok_note): Use it.
615 (elfcore_grok_freebsd_note): Likewise.
616 (elfcore_grok_openbsd_note): Likewise.
617 (elfcore_grok_netbsd_note): Likewise. Plus add support for
618 NT_NETBSDCORE_AUXV notes.
620 2019-06-06 Sudakshina Das <sudi.das@arm.com>
622 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
623 alignment of the new gnu property section.
625 2019-06-06 Sudakshina Das <sudi.das@arm.com>
627 * bfd-in.h: Change comment.
628 * bfd-in2.h: Regenerate.
629 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
630 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
633 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
635 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
636 Remove overflow check.
638 2019-05-28 Alan Modra <amodra@gmail.com>
641 * cofflink.c (coff_link_check_archive_element): Don't assume
642 element is a coff object file after calling add_archive_element.
644 2019-05-28 Alan Modra <amodra@gmail.com>
647 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
648 attempt to set sh_entsize for excluded PLT section.
650 2019-05-28 Alan Modra <amodra@gmail.com>
653 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
654 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
655 allocated in alpha_dynamic_entries_for_reloc.
657 2019-05-28 Alan Modra <amodra@gmail.com>
660 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
661 on NULL output_section.
662 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
664 2019-05-28 Alan Modra <amodra@gmail.com>
667 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
668 entry when MUST_FIND. Abort when MUST_FIND not found.
669 (elf_m68k_get_bfd2got_entry): Likewise.
670 (elf_m68k_relocate_section): Remove now useless assert.
672 2019-05-28 Alan Modra <amodra@gmail.com>
675 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
676 from bfd_link_info, not an output section owner.
677 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
678 (elf_hppa_final_link_relocate): Likewise.
680 2019-05-28 Alan Modra <amodra@gmail.com>
683 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
684 create_object_symbols_section, obj_textsec, obj_datasec or
685 obj_bsssec. Fix other errors in placement.
686 * config.bfd: Obsolete tic30-aout.
688 2019-05-28 Alan Modra <amodra@gmail.com>
691 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
692 end of section list as well as section_count.
693 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
694 section list before returning error.
696 2019-05-27 Alan Modra <amodra@gmail.com>
698 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
700 2019-05-27 Alan Modra <amodra@gmail.com>
703 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
705 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
707 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
708 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
709 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
710 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
711 (elf_backend_merge_symbol_attribute): Define.
713 2019-05-24 Alan Modra <amodra@gmail.com>
715 * po/SRC-POTFILES.in: Regenerate.
717 2019-05-24 Alan Modra <amodra@gmail.com>
719 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
720 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
721 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
722 (struct ppc_link_hash_table): Add powerxx_stubs.
723 (ppc64_elf_check_relocs): Set powerxx_stubs.
724 (build_powerxx_offset, size_powerxx_offset),
725 (num_relocs_for_powerxx_offset),
726 (emit_relocs_for_powerxx_offset): New functions.
727 (plt_stub_size): Size powerxx stubs.
728 (ppc_build_one_stub): Emit powerxx stubs.
729 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
732 2019-05-24 Alan Modra <amodra@gmail.com>
734 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
736 (xlate_pcrel_opt): New function.
737 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
738 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
739 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
741 2019-05-24 Alan Modra <amodra@gmail.com>
743 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
744 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
745 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
746 (BFD_RELOC_PPC64_PLT_PCREL34),
747 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
748 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
749 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
750 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
751 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
752 * elf64-ppc.c (PNOP): Define.
753 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
754 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
755 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
757 (ppc64_elf_prefix_reloc): New function.
758 (struct ppc_link_hash_table): Add notoc_plt.
759 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
760 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
761 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
762 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
763 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
764 possible need for dynamic relocs on non-pcrel powerxx relocs.
765 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
766 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
767 (toc_adjusting_stub_needed): Likewise.
768 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
769 (ppc64_elf_relocate_section): Handle new powerxx relocs.
770 * bfd-in2.h: Regenerate.
771 * libbfd.h: Regenerate.
773 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
775 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
776 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
778 * configure: Regenerate.
780 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
782 * configure: Regenerated.
783 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
784 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
785 (BFD64_BACKENDS): Add elf64-bpf.lo.
786 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
787 * Makefile.in (SOURCE_HFILES): Regenerate.
788 * config.bfd (targ_cpu): Handle bpf-*-* targets.
789 * cpu-bpf.c: New file.
790 * elf64-bpf.c: Likewise.
791 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
793 * archures.c: Define architecture bfd_arch_bpf and machine
795 * reloc.c: Define BFD relocations used by the BPF target.
796 * bfd-in2.h: Regenerated.
797 * libbfd.h: Likewise.
799 2019-05-22 Alan Modra <amodra@gmail.com>
801 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
804 2019-05-22 Alan Modra <amodra@gmail.com>
806 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
807 processing on "size error in section".
809 2019-05-22 Alan Modra <amodra@gmail.com>
811 * som.c (som_bfd_free_cached_info): Call
812 _bfd_generic_close_and_cleanup.
814 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
816 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
817 for TLS_TPREL_HI16(/LO16) relocations in shared library.
819 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
821 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
822 checks. Search the RELA table for n64 relocations.
824 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
825 Faraz Shahbazker <fshahbazker@wavecomp.com>
827 * elfxx-mips.c (LA25_BC): New macro.
828 (mips_elf_link_hash_table)<compact_branches>: New field.
829 (STUB_JALRC): New macro.
830 (mipsr6_o32_exec_plt0_entry_compact): New array.
831 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
832 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
833 (mipsr6_exec_plt_entry_compact): Likewise.
834 (mips_elf_create_la25_stub): Use BC instead of J for stubs
835 when compact_branches is true.
836 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
837 PLT for MIPSR6 with compact_branches. Do not reorder the
838 compact branches PLT. Switch the lazy stub for MIPSR6
839 with compact_branches to use JALRC.
840 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
841 when compact_branches is true.
842 (_bfd_mips_elf_compact_branches): New function.
843 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
845 2019-05-21 Tamar Christina <tamar.christina@arm.com>
848 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
851 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
854 * elf32-arm.c (get_value_helper): Remove.
855 (elf32_arm_final_link_relocate): Fix branch future relocations.
857 2019-05-21 Tamar Christina <tamar.christina@arm.com>
860 * bfd-in.h (enum erratum_84319_opts): New
861 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
862 int to enum erratum_84319_opts.
863 * bfd-in2.h: Regenerate.
864 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
865 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
866 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
867 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
868 (_bfd_aarch64_resize_stubs): Amend comment.
869 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
871 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
872 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
874 (clear_erratum_843419_entry): Update erratum conditional.
876 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
879 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
880 when computing distance_short_enough.
882 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
885 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
886 Wrap around even if distance equals avr_pc_wrap_around.
888 2019-05-20 Nick Clifton <nickc@redhat.com>
890 * po/fr.po: Updated French translation.
892 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
894 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
896 2019-05-16 Alan Modra <amodra@gmail.com>
898 * elf32-arm.c (elf32_arm_write_section): Revert last change.
900 2019-05-15 Alan Modra <amodra@gmail.com>
902 * elf32-arm.c (elf32_arm_write_section): Don't leave
903 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
904 unitialised section contents.
906 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
909 * verilog.c: (VerilogDataWidth): New variable.
910 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
912 2019-05-08 Nick Clifton <nickc@redhat.com>
915 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
916 rather than FALSE if encountering a non-ELF file.
918 2019-05-06 Alan Modra <amodra@gmail.com>
920 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
922 2019-05-06 Alan Modra <amodra@gmail.com>
924 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
925 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
926 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
927 * libbfd.h: Regenerate.
928 * bfd-in2.h: Regenerate.
930 2019-05-04 Alan Modra <amodra@gmail.com>
933 * syms.c (coff_section_type): Only allow '.', '$' and numeric
934 following the standard section names.
935 (bfd_decode_symclass): Prioritize section flag tests in
936 decode_section_type before name tests in coff_section_type.
937 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
938 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
939 their names and choose standard .text section flags for
942 2019-05-02 Nick Clifton <nickc@redhat.com>
945 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
946 .gnu.debugaltlink sections as debugging sections.
948 2019-04-30 Alan Modra <amodra@gmail.com>
950 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
951 (struct _ppc64_elf_section_data): Likewise.
952 (ppc64_elf_check_relocs): Set above fields.
953 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
954 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
957 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
960 * elflink.c (elf_link_output_extsym): Don't complain undefined
961 weak dynamic reference.
963 2019-04-25 Sudakshina Das <sudi.das@arm.com>
965 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
966 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
967 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
968 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
969 (elfNN_aarch64_small_plt0_pac_entry): Remove.
970 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
971 (elfNN_aarch64_small_plt0_bti_entry): Update.
972 (elfNN_aarch64_small_plt_bti_entry): Update.
973 (elfNN_aarch64_small_plt_pac_entry): Update.
974 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
975 (setup_plt_values): Setup new entries.
976 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
977 (elfNN_aarch64_plt_sym_val): Likewise.
979 2019-04-22 Jim Wilson <jimw@sifive.com>
981 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
983 2019-04-19 Alan Modra <amodra@gmail.com>
985 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
987 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
989 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
990 building shared object.
991 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
993 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
996 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
999 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1001 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
1003 * bfd-in2.h: Regenerate.
1004 * libbfd.h: Likewise.
1006 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1008 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
1009 * bfd-in2.h: Regenerated.
1010 * libbfd.h: Regenerated.
1012 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1014 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
1015 * bfd-in2.h: Regenerated.
1016 * libbfd.h: Likewise.
1018 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1020 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
1021 * bfd-in2.h: Regenerated.
1022 * libbfd.h: Regenerated.
1023 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
1024 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
1025 and R_ARM_THM_BF12 together.
1026 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
1028 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1030 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
1031 * libbfd.h: Regenerated.
1032 * bfd-in2.h: Regenerated.
1033 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
1034 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
1035 and R_ARM_THM_BF18 together.
1036 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
1038 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1040 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
1041 * bfd-in2.h: Regenerated.
1042 * libbfd.h: Regenerated.
1043 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
1044 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
1045 and R_ARM_THM_BF16 together.
1046 (get_value_helper): New reloc helper.
1047 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
1049 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1051 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
1052 * bfd-in2.h: Regenerate.
1053 * libbfd.h: Regenerate.
1055 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1057 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
1058 * bfd-in2.h: Regenerate.
1059 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
1060 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
1062 (using_thumb2): Likewise.
1063 (using_thumb2_bl): Update assert.
1064 (arch_has_arm_nop): Likewise.
1065 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
1066 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
1068 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1070 * elf-linker-x86.h (elf_x86_cet_report): New.
1071 (elf_linker_x86_params): Add cet_report.
1072 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
1073 missing IBT and SHSTK properties if needed.
1075 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1078 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
1079 "h != NULL". Don't check "h != NULL" before calling.
1080 bfd_elf_gc_record_vtentry.
1081 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1082 * elf32-bfin.c (bfin_check_relocs): Likewise.
1083 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1084 * elf32-csky.c (csky_elf_check_relocs): Likewise.
1085 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1086 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1087 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1088 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1089 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1090 * elf32-i386.c (elf_i386_check_relocs): Likewise.
1091 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1092 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1093 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1094 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1095 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1096 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1097 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1098 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1099 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1100 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1101 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1102 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1103 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1104 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1105 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1106 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1107 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1108 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
1109 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1110 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1111 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
1114 2019-04-11 Alan Modra <amodra@gmail.com>
1117 * elflink.c (elf_link_add_object_symbols): Don't read partial
1118 dynamic entries from fuzzed objects.
1120 2019-04-11 Tamar Christina <tamar.christina@arm.com>
1123 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
1124 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
1125 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
1127 2019-04-10 Michael Forney <mforney@mforney.org>
1130 * doc/chew.c (free_words): Correctly free "push_text" strings.
1132 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1134 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
1136 2019-04-08 Alan Modra <amodra@gmail.com>
1138 * configure.ac (elfxx_x86): Define and use.
1139 * configure: Regenerate.
1141 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1143 * elf-linker-x86.h: New file.
1144 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
1145 to get x86-specific linker options.
1146 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
1147 (elf_x86_64_check_relocs): Likewise.
1148 (elf_x86_64_relocate_section): Likewise.
1149 (elf_x86_64_link_setup_gnu_properties): Likewise.
1150 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
1151 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
1152 (_bfd_elf_linker_x86_set_options): New function.
1153 * elfxx-x86.h: Include "elf-linker-x86.h".
1154 (elf_x86_link_hash_table): Add params.
1156 2019-04-03 Alan Modra <amodra@gmail.com>
1158 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
1159 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
1160 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
1161 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
1162 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
1163 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
1165 2019-04-02 Jim Wilson <jimw@sifive.com>
1168 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
1169 ELF header flags to after check for ELF object file. Loop through
1170 sections looking for code sections, if none, then skip ABI checks.
1172 2019-03-30 Andrew Waterman <andrew@sifive.com>
1174 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
1177 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1179 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
1180 info->export_dynamic to the conditional.
1182 2019-03-28 Alan Modra <amodra@gmail.com>
1185 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
1186 * configure: Regenerate.
1187 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
1188 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
1189 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
1190 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
1191 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1193 2019-03-21 Jim Wilson <jimw@sifive.com>
1196 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
1197 verify sym non-NULL before using. Add identical check using h.
1199 2019-03-21 Sudakshina Das <sudi.das@arm.com>
1201 * elf-bfd.h (struct elf_backend_data): Add argument to
1202 merge_gnu_properties.
1203 * elf-properties.c (elf_merge_gnu_properties): Add argument to
1204 itself and while calling bed->merge_gnu_properties.
1205 (elf_merge_gnu_property_list): Update the calls for
1206 elf_merge_gnu_properties.
1207 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
1208 of --force-bti warning and add argument.
1209 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
1211 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
1212 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
1215 2019-03-20 Sudakshina Das <sudi.das@arm.com>
1217 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
1218 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
1219 (elf_backend_fixup_gnu_properties): Define for AArch64.
1221 2019-03-18 Alan Modra <amodra@gmail.com>
1224 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
1225 for local iplt syms with ent->plt.offset == -1. Remove ineffective
1226 attempt at writing glink stubs only once.
1228 2019-03-16 Alan Modra <amodra@gmail.com>
1231 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
1232 (_bfd_elf_rel_local_sym): Likewise.
1233 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
1234 section of symbols with unrecognized shndx.
1236 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1239 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
1241 * cofflink.c (coff_link_add_symbols): Check for symbols defined
1242 in discarded section.
1244 2019-03-15 Alan Modra <amodra@gmail.com>
1247 * elflink.c (elf_link_add_object_symbols): Bail out on a local
1248 symbol after globals if elf_bad_symtab is not set.
1250 2019-03-15 Alan Modra <amodra@gmail.com>
1253 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
1254 (_bfd_elf_rel_local_sym): Likewise.
1256 2019-03-15 Alan Modra <amodra@gmail.com>
1259 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
1260 object files with sh_size not a multiple of sh_entsize.
1262 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1265 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
1266 input with bad relocation.
1268 22019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1270 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
1272 2019-03-14 Nick Clifton <nickc@redhat.com>
1275 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
1276 (save_section_vma): Initialise field to the number of entries in
1278 (section_vma_same): Check that the number of entries in the
1279 sec_vma table matches the number of sections in the bfd.
1281 2019-03-14 Nick Clifton <nickc@redhat.com>
1284 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
1285 section owner pointer when adding the default symbol.
1287 2019-03-14 Nick Clifton <nickc@redhat.com>
1290 * elflink.c (elf_link_add_object_symbols): Add new local variable
1291 extversym_end. Initialise it to point to the end of the version
1292 symbol table, if present. Check it when initialising and updating
1295 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1297 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
1298 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
1299 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
1300 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
1302 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
1303 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
1304 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
1306 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1307 Szabolcs Nagy <szabolcs.nagy@arm.com>
1309 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
1310 (aarch64_bti_pac_info): New.
1311 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
1312 (bfd_elf32_aarch64_set_options): Likewise.
1313 * bfd-in2.h: Regenerate
1314 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
1315 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
1316 (elfNN_aarch64_small_plt0_bti_entry): New.
1317 (elfNN_aarch64_small_plt_bti_entry): New.
1318 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
1319 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
1320 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
1321 tlsdesc_plt_entry_size fields.
1322 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
1323 (setup_plt_values): New helper function.
1324 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
1326 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
1328 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
1329 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
1330 to plt stubs instead of fixed ones and update filling them according
1331 to the need for bti.
1332 (elfNN_aarch64_init_small_plt0_entry): Likewise.
1333 (elfNN_aarch64_finish_dynamic_sections): Likewise.
1334 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
1335 (elfNN_aarch64_plt_sym_val): Update size accordingly.
1336 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
1338 (bfd_elfNN_get_synthetic_symtab): Define.
1339 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
1340 and mising BTI NOTE SECTION.
1343 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1345 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
1346 linker created inputs from merge.
1347 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
1348 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
1349 (elfNN_aarch64_link_setup_gnu_properties): New.
1350 (elfNN_aarch64_merge_gnu_properties): New.
1351 (elf_backend_setup_gnu_properties): Define for AArch64.
1352 (elf_backend_merge_gnu_properties): Likewise.
1353 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
1354 (_bfd_aarch64_elf_parse_gnu_properties): Define.
1355 (_bfd_aarch64_elf_merge_gnu_properties): Define.
1356 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
1357 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
1358 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
1359 (elf_backend_parse_gnu_properties): Define for AArch64.
1361 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1364 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
1365 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
1367 2019-03-12 Alan Modra <amodra@gmail.com>
1369 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
1370 nmemb parameter. Use bfd_alloc2.
1371 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
1373 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
1374 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
1375 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
1377 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
1378 (assign_section_numbers): Style fix.
1379 (swap_out_syms): Use bfd_malloc2.
1380 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
1382 (_bfd_elf_make_empty_symbol): Style fix.
1383 (elfobj_grok_stapsdt_note_1): Formatting.
1384 * elfcode.h (elf_object_p): Use bfd_alloc2.
1385 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
1386 (elf_slurp_symbol_table): Use bfd_zalloc2.
1387 (elf_slurp_reloc_table): Use bfd_alloc2.
1388 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
1389 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
1390 size calculation doesn't overflow.
1391 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
1392 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1393 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
1395 2019-03-08 Alan Modra <amodra@gmail.com>
1398 * merge.c (merge_strings): Return secinfo. Don't pad section
1400 (_bfd_merge_sections): Pad section to alignment here, if input
1401 sections contributing to merged output all pad to alignment.
1404 2019-03-06 Nick Clifton <nickc@redhat.com>
1406 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
1408 * coffgen.c (coff_find_nearest_line_with_names): Do not call
1409 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
1411 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1413 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1414 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1417 * elf32-s390.c (allocate_dynrelocs): Update comment.
1419 2019-02-28 Tamar Christina <tamar.christina@arm.com>
1421 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
1423 2019-02-28 Nick Clifton <nickc@redhat.com>
1426 * elf.c (bfd_elf_string_from_elf_section): Check for a string
1427 section that is not NUL terminated.
1429 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1432 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
1433 by linker when checking copy reloc on protected symbol.
1435 2019-02-24 Alan Modra <amodra@gmail.com>
1438 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
1440 2019-02-20 Eric Tsai <erictsai@cadence.com>
1442 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
1443 sections between the call site and call destination and adjust
1444 call distance by the largest alignment.
1446 2019-02-20 Alan Hayward <alan.hayward@arm.com>
1448 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
1449 * elf.c (elfcore_grok_aarch_pauth): New function.
1450 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
1451 (elfcore_write_aarch_pauth): New function.
1452 (elfcore_write_register_note): Check for AArch64 pauth section.
1454 2019-02-20 Alan Modra <amodra@gmail.com>
1457 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
1460 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
1462 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
1463 Darwin hosts, not just or1k.
1464 * configure: Regenerate.
1466 2019-02-20 Alan Modra <amodra@gmail.com>
1469 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
1470 sentinel NUL to string buffer nearer to loop where it is used.
1471 Don't go past sentinel when scanning strings, and don't write
1473 * archive.c (do_slurp_coff_armap): Simplify string handling to
1476 2019-02-19 Alan Modra <amodra@gmail.com>
1479 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
1480 attempting to prevent read past end of section.
1482 2019-02-18 Alan Modra <amodra@gmail.com>
1485 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
1486 PRIx64 to generate warning messages. Print local sym names too.
1488 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
1490 * elf32-arc (INIT_SYM_STRING): Delete.
1491 (FINI_SYM_STRING): Likewise.
1492 (init_str): Likewise.
1493 (fini_str): Likewise.
1495 2019-02-08 Alan Modra <amodra@gmail.com>
1497 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
1498 for bss-plt" warning to make it an error.
1500 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1503 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
1504 reloc_class_ifunc for ifunc symbols.
1505 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
1507 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1509 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
1510 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
1512 2019-02-07 Nick Clifton <nickc@redhat.com>
1514 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
1515 into the definitely obsolete list.
1517 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1520 * elf64-x86-64.c (elf_x86_64_need_pic): Check
1521 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
1522 (elf_x86_64_relocate_section): Move PIC check for PC-relative
1524 (elf_x86_64_check_relocs): Here.
1525 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
1526 to check if a symbol is defined in a non-shared object.
1527 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
1529 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
1531 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
1532 of 'labs' (and fix GCC warning).
1534 2019-01-25 Nick Clifton <nickc@redhat.com>
1536 * po/ru.po: Updated Russian translation.
1538 2019-01-23 Nick Clifton <nickc@redhat.com>
1540 * po/fr.po: Updated French translation.
1542 2019-01-21 Nick Clifton <nickc@redhat.com>
1544 * po/pt.po: Updated Portuguese translation.
1545 * po/uk.po: Updated Ukranian translation.
1547 2019-01-21 Yuri Chornoivan <yurchor@ukr.net>
1550 * elf32-nds32.c (nds32_relocate_section): Add space between words
1552 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
1554 (riscv_i_or_e_p): Likewise.
1555 (riscv_merge_arch_attr_info): Likewise.
1557 2019-01-19 Nick Clifton <nickc@redhat.com>
1559 * version.m4: Reset to 2.32.51
1560 * configure: Regenerate.
1561 * po/bfd.pot: Regenerate.
1563 2018-06-24 Nick Clifton <nickc@redhat.com>
1565 2.32 branch created.
1567 2019-01-16 Kito Cheng <kito@andestech.com>
1569 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
1572 2019-01-16 Kito Cheng <kito@andestech.com>
1573 Nelson Chu <nelson@andestech.com>
1575 * elfnn-riscv.c (in_subsets): New.
1576 (out_subsets): Likewise.
1577 (merged_subsets): Likewise.
1578 (riscv_std_ext_p): Likewise.
1579 (riscv_non_std_ext_p): Likewise.
1580 (riscv_std_sv_ext_p): Likewise.
1581 (riscv_non_std_sv_ext_p): Likewise.
1582 (riscv_version_mismatch): Likewise.
1583 (riscv_i_or_e_p): Likewise.
1584 (riscv_merge_std_ext): Likewise.
1585 (riscv_merge_non_std_and_sv_ext): Likewise.
1586 (riscv_merge_arch_attr_info): Likewise.
1587 (riscv_merge_attributes): Likewise.
1588 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
1590 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
1591 (elf_backend_obj_attrs_vendor): Define.
1592 (elf_backend_obj_attrs_section_type): Likewise.
1593 (elf_backend_obj_attrs_section): Likewise.
1594 (elf_backend_obj_attrs_arg_type): Define as
1595 riscv_elf_obj_attrs_arg_type.
1596 * elfxx-riscv.c (riscv_estimate_digit): New.
1597 (riscv_estimate_arch_strlen1): Likewise.
1598 (riscv_estimate_arch_strlen): Likewise.
1599 (riscv_arch_str1): Likewise.
1600 (riscv_arch_str): Likewise.
1601 * elfxx-riscv.h (riscv_arch_str): Declare.
1603 2019-01-14 John Darrington <john@darrington.wattle.id.au>
1605 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
1607 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
1608 source field. (md_apply_fix): Apply final fix
1609 to BFD_RELOC_S12Z_OPR.
1610 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
1612 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1615 * elf32-s390.c (allocate_dynrelocs): Update comment.
1617 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1619 * warning.m4: Adjust egrep pattern for non-GNU compilers.
1620 * configure: Regenerate.
1622 2019-01-08 Alan Modra <amodra@gmail.com>
1626 * ihex.c (ihex_write_object_contents): Properly check 32-bit
1629 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1631 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
1632 * bfd/bfd-in2.h: Regenerate.
1633 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
1634 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
1636 2019-01-04 Lifang Xia <lifang_xia@c-sky.com>
1638 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
1639 default target, little endian target is more suitable.
1641 2019-01-04 Alan Modra <amodra@gmail.com>
1645 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
1647 (EQ_VALUE_IN_FIELD): Likewise.
1648 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
1650 2019-01-01 Alan Modra <amodra@gmail.com>
1652 Update year range in copyright notice of all files.
1654 For older changes see ChangeLog-2018
1656 Copyright (C) 2019 Free Software Foundation, Inc.
1658 Copying and distribution of this file, with or without modification,
1659 are permitted in any medium without royalty provided the copyright
1660 notice and this notice are preserved.
1666 version-control: never