1 2019-08-20 Tamar Christina <tamar.christina@arm.com>
3 * elf32-arm.c (elf32_thumb2_plt_entry, elf32_arm_plt_thumb_stub,
4 elf32_arm_stub_long_branch_v4t_thumb_thumb,
5 elf32_arm_stub_long_branch_v4t_thumb_arm,
6 elf32_arm_stub_short_branch_v4t_thumb_arm,
7 elf32_arm_stub_long_branch_v4t_thumb_arm_pic,
8 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic,
9 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): Change nop to branch to
12 2019-08-19 Tom Tromey <tromey@adacore.com>
14 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Create hash table
17 2019-08-19 Alan Modra <amodra@gmail.com>
19 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename has_gotrel
21 (struct _ppc64_elf_section_data): Likewise.
22 (ppc64_elf_check_relocs): Set has_optrel for more relocs.
23 (ppc64_elf_edit_toc): Do ha/lo insn checks in GOT loop rather
24 than TOC loop. Check PLT16 insns too.
26 2019-08-16 H.J. Lu <hongjiu.lu@intel.com>
29 * elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for
30 PC-relative relocations back to ...
31 (elf_x86_64_relocate_section): Here.
33 2019-08-16 Martin Liska <mliska@suse.cz>
36 * elflink.c: Report error only for not relocatable.
37 * linker.c (_bfd_generic_link_add_one_symbol): Do not handle
38 here lto_slim_object as it's handled in caller.
40 2019-08-16 Alan Modra <amodra@gmail.com>
42 * elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs.
44 2019-08-15 Jim Wilson <jimw@sifive.com>
46 * elfnn-riscv.c (perform_relocation) <R_RISCV_RVC_LUI>: If
47 RISCV_CONST_HIGH_PART (value) is zero, then convert c.lui instruction
48 to c.li instruction, and use ENCODE_RVC_IMM to set value.
50 2019-08-15 Tom Tromey <tromey@adacore.com>
52 * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end
55 2019-08-14 Alan Modra <amodra@gmail.com>
58 * dwarf2.c (stash_comp_unit): New function, extracted from..
59 (_bfd_dwarf2_find_nearest_line): ..here.
60 (find_abstract_instance): Parse comp units and decode line info
63 2019-08-14 Alan Modra <amodra@gmail.com>
65 * dwarf2.c (comp_unit_maybe_decode_line_info): Declare.
66 (comp_unit_find_nearest_line): Use it here..
67 (_bfd_dwarf2_find_symbol_bias): ..and here.
69 2019-08-14 Alan Modra <amodra@gmail.com>
71 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove addr_size parameter.
72 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
73 * coffgen.c (coff_find_nearest_line_with_names): Adjust
74 _bfd_dwarf2_find_nearest_line calls.
75 * elf.c (_bfd_elf_find_nearest_line, _bfd_elf_find_line): Likewise.
76 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
77 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
78 * elfnn-aarch64.c (elfNN_aarch64_find_nearest_line): Likewise.
79 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
80 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
81 * libbfd.h: Regenerate.
83 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
85 * elf-bfd.h (struct elf_backend_data): New members.
86 * elflink.c (_bfd_elf_link_create_dynamic_sections): Create
87 .gnu.hash section if necessary.
88 (struct collect_gnu_hash_codes): New member.
89 (elf_gnu_hash_process_symidx): New function name.
90 (elf_renumber_gnu_hash_syms): Ignore local and undefined
91 symbols. Record xlat location for every symbol which should have
93 (bfd_elf_size_dynamic_sections): Add DT_GNU_HASH dynamic tag to
94 dynamic section if necessary.
95 (GNU_HASH_SECTION_NAME): New define.
96 (bfd_elf_size_dynsym_hash_dynstr): Get .MIPS.xhash section.
97 Update the section size info.
98 * elfxx-mips.c (struct mips_elf_hash_sort_data): New members.
99 (struct mips_elf_link_hash_entry): New member.
100 (mips_elf_link_hash_newfunc): Initialize .MIPS.xhash translation
102 (mips_elf_sort_hash_table): Initialize the pointer to the
104 (mips_elf_sort_hash_table_f): Populate the .MIPS.xhash
105 translation table entry with the symbol dynindx.
106 (_bfd_mips_elf_section_from_shdr): Add SHT_MIPS_XHASH.
107 (_bfd_mips_elf_fake_sections): Initialize .MIPS.xhash section
109 (_bfd_mips_elf_create_dynamic_sections): Create .MIPS.xhash
111 (_bfd_mips_elf_size_dynamic_sections): Add DT_MIPS_XHASH tag to
113 (_bfd_mips_elf_finish_synamic_sections): Add DT_MIPS_XHASH.
114 (_bfd_mips_elf_final_write_processing): Set .MIPS.xhash section
116 (_bfd_mips_elf_get_target_dtag): Get DT_MIPS_XHASH tag.
117 (MIPS_LIBC_ABI_XHASH): New ABI version enum value.
118 (_bfd_mips_post_process_headers): Mark the ABI version as
119 MIPS_LIBC_ABI_XHASH if there exists a .MIPS.xhash section,
120 but not a .hash section.
121 (_bfd_mips_elf_record_xhash_symbol): New function. Record a
122 position in the translation table, associated with the hash
124 * elfxx-mips.h (literal_reloc_p): Define
125 elf_backend_record_xhash_symbol backend hook.
126 * elfxx-target.h: Initialize elf_backend_record_xhash_symbol
129 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
131 * elf64-bpf.c (bpf_elf_relocate_section): New function.
132 (bpf_elf_insn_disp_reloc): Delete function.
133 (elf_backend_relocate_section): Define.
135 2019-08-07 Alan Modra <amodra@gmail.com>
138 * archive64.c (_bfd_archive_64_bit_slurp_armap): Properly check
139 for overflow in expressions involving nsymz.
141 2019-08-01 Ilia Diachkov <ilia.diachkov@optimitech.com>
143 * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to
144 two pages in relro presence.
146 2019-08-01 Max Filippov <jcmvbkbc@gmail.com>
148 * elf32-xtensa.c (insn_num_slots, get_rsr_lend_opcode)
149 (get_wsr_lbeg_opcode): New functions.
150 (check_loop_aligned): Detect relaxed loops and adjust loop_len
151 and insn_len for the first actual instruction of the loop.
153 2019-07-30 Alan Modra <amodra@gmail.com>
156 * bfd.c (struct bfd): Add lto_slim_object flag.
157 * bfd-in2.h: Regenerate.
159 2019-07-29 Martin Liska <mliska@suse.cz>
162 * archive.c (_bfd_compute_and_write_armap): Come up with
163 report_plugin_err variable.
164 * bfd-in2.h (struct bfd): Add lto_slim_object flag.
165 * elf.c (struct lto_section): New.
166 (_bfd_elf_make_section_from_shdr): Parse content of
167 .gnu_lto_.lto section.
168 * elflink.c: Report error for a missing LTO plugin.
169 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
171 2019-07-28 Alan Modra <amodra@gmail.com>
175 * elflink.c (elf_link_add_object_symbols): Report an informative
176 error on finding local symbols with index equal or greater than
177 symbol table sh_info. Correct comment. Allow such symbols in
178 dynamic objects. Abort on NULL section for symbol.
180 2019-07-26 Alan Modra <amodra@gmail.com>
182 * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field.
183 (elf_linker): Don't define.
184 * elflink.c (bfd_elf_final_link): Don't set elf_linker.
186 2019-07-25 YunQiang Su <syq@debian.org>
189 * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
192 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
194 * elf32-arc.c (bfd_get_32_me): Add a small description, fix
196 (reloc_type_to_name): Fix formating.
197 (arc_elf_object_p): Likewise.
198 (debug_arc_reloc): Likewise.
199 (arc_do_relocation): Likewise.
201 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
203 * elf32-arc.c (bfd_get_32_me): New function.
204 (bfd_put_32_me): Likewise.
205 (arc_elf_relax_section): Likewise.
206 (bfd_elf32_bfd_relax_section): Define.
208 2019-07-24 Alan Modra <amodra@gmail.com>
210 * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from
211 elf_backend_final_write_processing, don't pass linker arg.
212 (_bfd_elf_final_write_processing): Update prototype.
213 * elf.c (_bfd_elf_write_object_contents): Adjust call.
214 (_bfd_elf_final_write_processing): Return error on incompatible
215 OSABI and has_gnu_osabi. Remove linker arg.
216 * elf-nacl.h (nacl_final_write_processing): Update prototype.
217 * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise.
218 * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise.
219 (_bfd_mips_elf_final_write_processing): Likewise.
220 * elf-hppa.h (elf_hppa_final_write_processing): Return status
221 and remove linker arg.
222 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
223 * elf-nacl.c (nacl_final_write_processing): Likewise.
224 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
225 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
226 * elf32-arm.c (arm_final_write_processing): Likewise.
227 (elf32_arm_final_write_processing): Likewise.
228 (elf32_arm_nacl_final_write_processing): Likewise.
229 (elf32_arm_vxworks_final_write_processing): Likewise.
230 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
231 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
232 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
233 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
234 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
235 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
236 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
237 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
238 * elf32-mips.c (mips_vxworks_final_write_processing): Likewise.
239 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
240 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
241 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
242 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
243 * elf32-ppc.c (ppc_final_write_processing): Likewise.
244 (ppc_elf_final_write_processing): Likewise.
245 (ppc_elf_vxworks_final_write_processing): Likewise.
246 * elf32-sparc.c (sparc_final_write_processing): Likewise.
247 (elf32_sparc_final_write_processing): Likewise.
248 (elf32_sparc_vxworks_final_write_processing): Likewise.
249 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
250 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
251 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
252 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
253 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
254 * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise.
255 (_bfd_mips_elf_final_write_processing): Likewise.
257 2019-07-24 Alan Modra <amodra@gmail.com>
259 * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return
261 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
262 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
264 2019-07-24 Alan Modra <amodra@gmail.com>
266 * elf32-visium.c (visium_elf_post_process_headers): Don't set
267 EI_OSABI header byte here.
270 2019-07-23 Alan Modra <amodra@gmail.com>
272 * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind.
273 * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind.
274 (get_program_header_size): Formatting. Only test SH_GNU_MBIND
275 when elf_gnu_osabi_mbind is set.
276 (_bfd_elf_map_sections_to_segments): Likewise.
277 (_bfd_elf_init_private_section_data): Likewise.
278 (_bfd_elf_final_write_processing): Update comment.
279 * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry.
280 (elf_backend_special_sections): Define without .tbss for linux.
282 2019-07-23 Alan Modra <amodra@gmail.com>
284 * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
285 Remove none, any, all enums.
286 (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
287 (_bfd_elf_final_write_processing): Declare.
288 * elf.c (_bfd_elf_write_object_contents): Unconditionally call
289 elf_backend_final_write_processing.
290 (_bfd_elf_post_process_headers): Move body of function to..
291 (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
292 only when not already set. Adjust for rename.
293 * elfxx-target.h (elf_backend_final_write_processing): Default to
294 _bfd_elf_final_write_processing.
295 * elf-hppa.h (elf_hppa_final_write_processing): Call
296 _bfd_elf_final_write_processing.
297 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
298 * elf-nacl.c (nacl_final_write_processing): Likewise.
299 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
300 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
301 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
302 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
303 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
304 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
305 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
306 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
307 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
308 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
309 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
310 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
311 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
312 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
313 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
314 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
315 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
316 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
317 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
318 * elf32-arm.c (arm_final_write_processing): Split out from..
319 (elf32_arm_final_write_processing): ..here. Call
320 _bfd_elf_final_write_processing.
321 (elf32_arm_nacl_final_write_processing): Adjust.
322 * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
323 (_bfd_mips_elf_final_write_processing): ..here. Call
324 _bfd_elf_final_write_processing.
325 * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
326 * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
327 * elf32-ppc.c (ppc_final_write_processing): Split out from..
328 (ppc_elf_final_write_processing): ..here. Call
329 _bfd_elf_final_write_processing.
330 (ppc_elf_vxworks_final_write_processing): Adjust.
331 * elf32-sparc.c (sparc_final_write_processing): Split out from..
332 (elf32_sparc_final_write_processing): ..here. Call
333 _bfd_elf_final_write_processing.
334 (elf32_sparc_vxworks_final_write_processing): Adjust.
335 * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
336 * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
337 * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
338 * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
339 * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
340 * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
341 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
342 * elflink.c (elf_link_add_object_symbols): Likewise.
343 (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
346 2019-07-23 Omar Majid <omajid@redhat.com>
348 * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
349 I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
350 AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
352 * peXXigen.c: Add comment about source of .NET magic numbers.
354 2019-07-19 Alan Modra <amodra@gmail.com>
356 * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
357 (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
358 (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
359 (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
360 * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
361 (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
362 (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
363 (ppc64_elf_check_relocs): Support pcrel tls relocs.
364 (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
365 * bfd-in2.h: Regenerate.
366 * libbfd.h: Regenerate.
368 2019-07-18 Alan Modra <amodra@gmail.com>
370 * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
371 a TLS section symbol for edited relocs. Tighten TLS symbol/reloc
374 2019-07-18 Alan Modra <amodra@gmail.com>
376 * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
377 (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
379 (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and
380 tls_type vars unsigned int.
381 (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
382 to select r_type edit.
384 2019-07-18 Alan Modra <amodra@gmail.com>
386 * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
388 * elf64-ppc.c (TLS_GDIE): Likewise.
390 2019-07-18 Alan Modra <amodra@gmail.com>
392 * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
393 range of tp-relative offsets.
395 2019-07-15 Alan Modra <amodra@gmail.com>
397 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
398 alias is no longer bfd_link_hash_defined, clear the alias.
400 2019-07-13 Alan Modra <amodra@gmail.com>
402 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
404 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
405 (_bfd_elf_init_2_index_sections): Likewise.
406 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
407 relocations for local TLS symbols, use STN_UNDEF as the relocation
409 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
410 leave TLS symbol value in the addend.
412 2019-07-08 Alan Modra <amodra@gmail.com>
415 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
416 size before reading first word.
418 2019-07-02 Nick Clifton <nickc@redhat.com>
421 * elf.c (is_debuginfo_file): New function.
422 (assign_file_positions_for_non_load_sections): Do not warn about
423 allocated sections outside of loadable segments if they are found
425 * elf-bfd.h (is_debuginfo_file): Prototype.
427 2019-07-02 Nick Clifton <nickc@redhat.com>
430 * compress.c (bfd_get_full_section_contents): Do not complain
431 about linker created sections that are larger than the file size.
433 2019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
435 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
436 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
438 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
440 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
442 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
443 sections when .text section contain secure entry functions
446 2019-07-01 Nick Clifton <nickc@redhat.com>
449 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
450 section VMA in the offset used to update exidx relocs.
452 2019-06-28 Nick Clifton <nickc@redhat.com>
455 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
456 large version reference section.
457 * compress.c (bfd_get_full_section_contents): Check for an
458 uncompressed section whose size is larger than the file size.
460 2019-06-28 Alan Modra <amodra@gmail.com>
462 * format.c (bfd_check_format_matches): Don't match plugin target
463 if another target matches. Expand comment.
464 * targets.c (_bfd_target_vector): Move plugin_vec after all other
465 non-corefile targets, outside !SELECT_VECS.
466 * config.bfd: Don't handle targ=plugin here.
467 * configure.ac: Don't add plugin to enable_targets or handle in
468 target loop setting selvecs and other target vars.
469 * configure: Regenerate.
471 2019-06-26 Nick Clifton <nickc@redhat.com>
474 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
475 messages for failures.
476 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
477 if returning an error value.
479 2019-06-25 Jan Beulich <jbeulich@suse.com>
481 * elf-properties.c (elf_find_and_remove_property): Rename last
482 parameter. Mention it in comment.
484 2019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
486 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
487 SEC_MERGE or SEC_CODE flags are set.
488 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
489 symtype consistently. Don't include sec_addr (sym_sec) in symval.
490 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
491 Add sec_addr (sym_sec) after handling merge sections.
493 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
496 * elf-properties.c (elf_merge_gnu_property_list): Remove the
497 property after reporting property removal.
499 2019-06-23 Alan Modra <amodra@gmail.com>
502 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
503 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
504 Reduce range of offsets allowed for other GOT relocs.
506 2019-06-23 Alan Modra <amodra@gmail.com>
509 * elfcode.h (elf_object_p): Warning fix.
511 2019-06-21 Alan Modra <amodra@gmail.com>
514 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
516 2019-06-19 Alan Modra <amodra@gmail.com>
519 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
520 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
522 2019-06-19 Alan Modra <amodra@gmail.com>
524 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
525 functions that require r2 valid to use local entry.
526 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
528 2019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
530 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
531 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
532 with elfNN_aarch64_allocate_local_dynrelocs.
534 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
536 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
538 2019-06-14 Alan Modra <amodra@gmail.com>
540 * Makefile.in: Regenerate.
541 * configure: Regenerate.
543 2019-06-14 Alan Modra <amodra@gmail.com>
545 * elf64-ppc.c: Fix comments involving paddi.
547 2019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
550 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
551 absent, or the bfd is not in the ELF formart.
552 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
554 2019-06-10 Christos Zoulas <christos@zoulas.com>
557 * elf.c (elfcore_make_auxv_note_section): New function.
558 (elfcore_grok_note): Use it.
559 (elfcore_grok_freebsd_note): Likewise.
560 (elfcore_grok_openbsd_note): Likewise.
561 (elfcore_grok_netbsd_note): Likewise. Plus add support for
562 NT_NETBSDCORE_AUXV notes.
564 2019-06-06 Sudakshina Das <sudi.das@arm.com>
566 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
567 alignment of the new gnu property section.
569 2019-06-06 Sudakshina Das <sudi.das@arm.com>
571 * bfd-in.h: Change comment.
572 * bfd-in2.h: Regenerate.
573 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
574 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
577 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
579 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
580 Remove overflow check.
582 2019-05-28 Alan Modra <amodra@gmail.com>
585 * cofflink.c (coff_link_check_archive_element): Don't assume
586 element is a coff object file after calling add_archive_element.
588 2019-05-28 Alan Modra <amodra@gmail.com>
591 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
592 attempt to set sh_entsize for excluded PLT section.
594 2019-05-28 Alan Modra <amodra@gmail.com>
597 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
598 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
599 allocated in alpha_dynamic_entries_for_reloc.
601 2019-05-28 Alan Modra <amodra@gmail.com>
604 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
605 on NULL output_section.
606 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
608 2019-05-28 Alan Modra <amodra@gmail.com>
611 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
612 entry when MUST_FIND. Abort when MUST_FIND not found.
613 (elf_m68k_get_bfd2got_entry): Likewise.
614 (elf_m68k_relocate_section): Remove now useless assert.
616 2019-05-28 Alan Modra <amodra@gmail.com>
619 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
620 from bfd_link_info, not an output section owner.
621 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
622 (elf_hppa_final_link_relocate): Likewise.
624 2019-05-28 Alan Modra <amodra@gmail.com>
627 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
628 create_object_symbols_section, obj_textsec, obj_datasec or
629 obj_bsssec. Fix other errors in placement.
630 * config.bfd: Obsolete tic30-aout.
632 2019-05-28 Alan Modra <amodra@gmail.com>
635 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
636 end of section list as well as section_count.
637 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
638 section list before returning error.
640 2019-05-27 Alan Modra <amodra@gmail.com>
642 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
644 2019-05-27 Alan Modra <amodra@gmail.com>
647 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
649 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
651 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
652 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
653 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
654 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
655 (elf_backend_merge_symbol_attribute): Define.
657 2019-05-24 Alan Modra <amodra@gmail.com>
659 * po/SRC-POTFILES.in: Regenerate.
661 2019-05-24 Alan Modra <amodra@gmail.com>
663 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
664 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
665 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
666 (struct ppc_link_hash_table): Add powerxx_stubs.
667 (ppc64_elf_check_relocs): Set powerxx_stubs.
668 (build_powerxx_offset, size_powerxx_offset),
669 (num_relocs_for_powerxx_offset),
670 (emit_relocs_for_powerxx_offset): New functions.
671 (plt_stub_size): Size powerxx stubs.
672 (ppc_build_one_stub): Emit powerxx stubs.
673 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
676 2019-05-24 Alan Modra <amodra@gmail.com>
678 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
680 (xlate_pcrel_opt): New function.
681 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
682 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
683 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
685 2019-05-24 Alan Modra <amodra@gmail.com>
687 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
688 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
689 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
690 (BFD_RELOC_PPC64_PLT_PCREL34),
691 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
692 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
693 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
694 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
695 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
696 * elf64-ppc.c (PNOP): Define.
697 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
698 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
699 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
701 (ppc64_elf_prefix_reloc): New function.
702 (struct ppc_link_hash_table): Add notoc_plt.
703 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
704 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
705 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
706 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
707 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
708 possible need for dynamic relocs on non-pcrel powerxx relocs.
709 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
710 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
711 (toc_adjusting_stub_needed): Likewise.
712 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
713 (ppc64_elf_relocate_section): Handle new powerxx relocs.
714 * bfd-in2.h: Regenerate.
715 * libbfd.h: Regenerate.
717 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
719 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
720 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
722 * configure: Regenerate.
724 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
726 * configure: Regenerated.
727 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
728 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
729 (BFD64_BACKENDS): Add elf64-bpf.lo.
730 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
731 * Makefile.in (SOURCE_HFILES): Regenerate.
732 * config.bfd (targ_cpu): Handle bpf-*-* targets.
733 * cpu-bpf.c: New file.
734 * elf64-bpf.c: Likewise.
735 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
737 * archures.c: Define architecture bfd_arch_bpf and machine
739 * reloc.c: Define BFD relocations used by the BPF target.
740 * bfd-in2.h: Regenerated.
741 * libbfd.h: Likewise.
743 2019-05-22 Alan Modra <amodra@gmail.com>
745 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
748 2019-05-22 Alan Modra <amodra@gmail.com>
750 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
751 processing on "size error in section".
753 2019-05-22 Alan Modra <amodra@gmail.com>
755 * som.c (som_bfd_free_cached_info): Call
756 _bfd_generic_close_and_cleanup.
758 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
760 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
761 for TLS_TPREL_HI16(/LO16) relocations in shared library.
763 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
765 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
766 checks. Search the RELA table for n64 relocations.
768 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
769 Faraz Shahbazker <fshahbazker@wavecomp.com>
771 * elfxx-mips.c (LA25_BC): New macro.
772 (mips_elf_link_hash_table)<compact_branches>: New field.
773 (STUB_JALRC): New macro.
774 (mipsr6_o32_exec_plt0_entry_compact): New array.
775 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
776 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
777 (mipsr6_exec_plt_entry_compact): Likewise.
778 (mips_elf_create_la25_stub): Use BC instead of J for stubs
779 when compact_branches is true.
780 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
781 PLT for MIPSR6 with compact_branches. Do not reorder the
782 compact branches PLT. Switch the lazy stub for MIPSR6
783 with compact_branches to use JALRC.
784 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
785 when compact_branches is true.
786 (_bfd_mips_elf_compact_branches): New function.
787 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
789 2019-05-21 Tamar Christina <tamar.christina@arm.com>
792 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
795 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
798 * elf32-arm.c (get_value_helper): Remove.
799 (elf32_arm_final_link_relocate): Fix branch future relocations.
801 2019-05-21 Tamar Christina <tamar.christina@arm.com>
804 * bfd-in.h (enum erratum_84319_opts): New
805 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
806 int to enum erratum_84319_opts.
807 * bfd-in2.h: Regenerate.
808 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
809 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
810 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
811 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
812 (_bfd_aarch64_resize_stubs): Amend comment.
813 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
815 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
816 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
818 (clear_erratum_843419_entry): Update erratum conditional.
820 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
823 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
824 when computing distance_short_enough.
826 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
829 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
830 Wrap around even if distance equals avr_pc_wrap_around.
832 2019-05-20 Nick Clifton <nickc@redhat.com>
834 * po/fr.po: Updated French translation.
836 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
838 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
840 2019-05-16 Alan Modra <amodra@gmail.com>
842 * elf32-arm.c (elf32_arm_write_section): Revert last change.
844 2019-05-15 Alan Modra <amodra@gmail.com>
846 * elf32-arm.c (elf32_arm_write_section): Don't leave
847 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
848 unitialised section contents.
850 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
853 * verilog.c: (VerilogDataWidth): New variable.
854 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
856 2019-05-08 Nick Clifton <nickc@redhat.com>
859 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
860 rather than FALSE if encountering a non-ELF file.
862 2019-05-06 Alan Modra <amodra@gmail.com>
864 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
866 2019-05-06 Alan Modra <amodra@gmail.com>
868 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
869 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
870 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
871 * libbfd.h: Regenerate.
872 * bfd-in2.h: Regenerate.
874 2019-05-04 Alan Modra <amodra@gmail.com>
877 * syms.c (coff_section_type): Only allow '.', '$' and numeric
878 following the standard section names.
879 (bfd_decode_symclass): Prioritize section flag tests in
880 decode_section_type before name tests in coff_section_type.
881 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
882 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
883 their names and choose standard .text section flags for
886 2019-05-02 Nick Clifton <nickc@redhat.com>
889 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
890 .gnu.debugaltlink sections as debugging sections.
892 2019-04-30 Alan Modra <amodra@gmail.com>
894 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
895 (struct _ppc64_elf_section_data): Likewise.
896 (ppc64_elf_check_relocs): Set above fields.
897 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
898 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
901 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
904 * elflink.c (elf_link_output_extsym): Don't complain undefined
905 weak dynamic reference.
907 2019-04-25 Sudakshina Das <sudi.das@arm.com>
909 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
910 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
911 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
912 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
913 (elfNN_aarch64_small_plt0_pac_entry): Remove.
914 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
915 (elfNN_aarch64_small_plt0_bti_entry): Update.
916 (elfNN_aarch64_small_plt_bti_entry): Update.
917 (elfNN_aarch64_small_plt_pac_entry): Update.
918 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
919 (setup_plt_values): Setup new entries.
920 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
921 (elfNN_aarch64_plt_sym_val): Likewise.
923 2019-04-22 Jim Wilson <jimw@sifive.com>
925 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
927 2019-04-19 Alan Modra <amodra@gmail.com>
929 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
931 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
933 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
934 building shared object.
935 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
937 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
940 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
943 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
945 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
947 * bfd-in2.h: Regenerate.
948 * libbfd.h: Likewise.
950 2019-04-15 Sudakshina Das <sudi.das@arm.com>
952 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
953 * bfd-in2.h: Regenerated.
954 * libbfd.h: Regenerated.
956 2019-04-15 Sudakshina Das <sudi.das@arm.com>
958 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
959 * bfd-in2.h: Regenerated.
960 * libbfd.h: Likewise.
962 2019-04-15 Sudakshina Das <sudi.das@arm.com>
964 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
965 * bfd-in2.h: Regenerated.
966 * libbfd.h: Regenerated.
967 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
968 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
969 and R_ARM_THM_BF12 together.
970 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
972 2019-04-15 Sudakshina Das <sudi.das@arm.com>
974 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
975 * libbfd.h: Regenerated.
976 * bfd-in2.h: Regenerated.
977 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
978 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
979 and R_ARM_THM_BF18 together.
980 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
982 2019-04-15 Sudakshina Das <sudi.das@arm.com>
984 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
985 * bfd-in2.h: Regenerated.
986 * libbfd.h: Regenerated.
987 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
988 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
989 and R_ARM_THM_BF16 together.
990 (get_value_helper): New reloc helper.
991 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
993 2019-04-15 Sudakshina Das <sudi.das@arm.com>
995 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
996 * bfd-in2.h: Regenerate.
997 * libbfd.h: Regenerate.
999 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1001 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
1002 * bfd-in2.h: Regenerate.
1003 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
1004 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
1006 (using_thumb2): Likewise.
1007 (using_thumb2_bl): Update assert.
1008 (arch_has_arm_nop): Likewise.
1009 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
1010 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
1012 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1014 * elf-linker-x86.h (elf_x86_cet_report): New.
1015 (elf_linker_x86_params): Add cet_report.
1016 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
1017 missing IBT and SHSTK properties if needed.
1019 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1022 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
1023 "h != NULL". Don't check "h != NULL" before calling.
1024 bfd_elf_gc_record_vtentry.
1025 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1026 * elf32-bfin.c (bfin_check_relocs): Likewise.
1027 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1028 * elf32-csky.c (csky_elf_check_relocs): Likewise.
1029 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1030 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1031 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1032 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1033 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1034 * elf32-i386.c (elf_i386_check_relocs): Likewise.
1035 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1036 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1037 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1038 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1039 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1040 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1041 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1042 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1043 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1044 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1045 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1046 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1047 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1048 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1049 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1050 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1051 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1052 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
1053 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1054 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1055 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
1058 2019-04-11 Alan Modra <amodra@gmail.com>
1061 * elflink.c (elf_link_add_object_symbols): Don't read partial
1062 dynamic entries from fuzzed objects.
1064 2019-04-11 Tamar Christina <tamar.christina@arm.com>
1067 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
1068 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
1069 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
1071 2019-04-10 Michael Forney <mforney@mforney.org>
1074 * doc/chew.c (free_words): Correctly free "push_text" strings.
1076 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1078 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
1080 2019-04-08 Alan Modra <amodra@gmail.com>
1082 * configure.ac (elfxx_x86): Define and use.
1083 * configure: Regenerate.
1085 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1087 * elf-linker-x86.h: New file.
1088 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
1089 to get x86-specific linker options.
1090 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
1091 (elf_x86_64_check_relocs): Likewise.
1092 (elf_x86_64_relocate_section): Likewise.
1093 (elf_x86_64_link_setup_gnu_properties): Likewise.
1094 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
1095 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
1096 (_bfd_elf_linker_x86_set_options): New function.
1097 * elfxx-x86.h: Include "elf-linker-x86.h".
1098 (elf_x86_link_hash_table): Add params.
1100 2019-04-03 Alan Modra <amodra@gmail.com>
1102 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
1103 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
1104 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
1105 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
1106 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
1107 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
1109 2019-04-02 Jim Wilson <jimw@sifive.com>
1112 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
1113 ELF header flags to after check for ELF object file. Loop through
1114 sections looking for code sections, if none, then skip ABI checks.
1116 2019-03-30 Andrew Waterman <andrew@sifive.com>
1118 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
1121 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1123 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
1124 info->export_dynamic to the conditional.
1126 2019-03-28 Alan Modra <amodra@gmail.com>
1129 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
1130 * configure: Regenerate.
1131 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
1132 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
1133 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
1134 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
1135 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1137 2019-03-21 Jim Wilson <jimw@sifive.com>
1140 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
1141 verify sym non-NULL before using. Add identical check using h.
1143 2019-03-21 Sudakshina Das <sudi.das@arm.com>
1145 * elf-bfd.h (struct elf_backend_data): Add argument to
1146 merge_gnu_properties.
1147 * elf-properties.c (elf_merge_gnu_properties): Add argument to
1148 itself and while calling bed->merge_gnu_properties.
1149 (elf_merge_gnu_property_list): Update the calls for
1150 elf_merge_gnu_properties.
1151 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
1152 of --force-bti warning and add argument.
1153 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
1155 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
1156 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
1159 2019-03-20 Sudakshina Das <sudi.das@arm.com>
1161 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
1162 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
1163 (elf_backend_fixup_gnu_properties): Define for AArch64.
1165 2019-03-18 Alan Modra <amodra@gmail.com>
1168 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
1169 for local iplt syms with ent->plt.offset == -1. Remove ineffective
1170 attempt at writing glink stubs only once.
1172 2019-03-16 Alan Modra <amodra@gmail.com>
1175 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
1176 (_bfd_elf_rel_local_sym): Likewise.
1177 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
1178 section of symbols with unrecognized shndx.
1180 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1183 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
1185 * cofflink.c (coff_link_add_symbols): Check for symbols defined
1186 in discarded section.
1188 2019-03-15 Alan Modra <amodra@gmail.com>
1191 * elflink.c (elf_link_add_object_symbols): Bail out on a local
1192 symbol after globals if elf_bad_symtab is not set.
1194 2019-03-15 Alan Modra <amodra@gmail.com>
1197 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
1198 (_bfd_elf_rel_local_sym): Likewise.
1200 2019-03-15 Alan Modra <amodra@gmail.com>
1203 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
1204 object files with sh_size not a multiple of sh_entsize.
1206 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1209 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
1210 input with bad relocation.
1212 22019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1214 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
1216 2019-03-14 Nick Clifton <nickc@redhat.com>
1219 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
1220 (save_section_vma): Initialise field to the number of entries in
1222 (section_vma_same): Check that the number of entries in the
1223 sec_vma table matches the number of sections in the bfd.
1225 2019-03-14 Nick Clifton <nickc@redhat.com>
1228 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
1229 section owner pointer when adding the default symbol.
1231 2019-03-14 Nick Clifton <nickc@redhat.com>
1234 * elflink.c (elf_link_add_object_symbols): Add new local variable
1235 extversym_end. Initialise it to point to the end of the version
1236 symbol table, if present. Check it when initialising and updating
1239 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1241 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
1242 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
1243 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
1244 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
1246 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
1247 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
1248 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
1250 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1251 Szabolcs Nagy <szabolcs.nagy@arm.com>
1253 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
1254 (aarch64_bti_pac_info): New.
1255 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
1256 (bfd_elf32_aarch64_set_options): Likewise.
1257 * bfd-in2.h: Regenerate
1258 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
1259 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
1260 (elfNN_aarch64_small_plt0_bti_entry): New.
1261 (elfNN_aarch64_small_plt_bti_entry): New.
1262 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
1263 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
1264 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
1265 tlsdesc_plt_entry_size fields.
1266 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
1267 (setup_plt_values): New helper function.
1268 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
1270 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
1272 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
1273 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
1274 to plt stubs instead of fixed ones and update filling them according
1275 to the need for bti.
1276 (elfNN_aarch64_init_small_plt0_entry): Likewise.
1277 (elfNN_aarch64_finish_dynamic_sections): Likewise.
1278 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
1279 (elfNN_aarch64_plt_sym_val): Update size accordingly.
1280 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
1282 (bfd_elfNN_get_synthetic_symtab): Define.
1283 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
1284 and mising BTI NOTE SECTION.
1287 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1289 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
1290 linker created inputs from merge.
1291 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
1292 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
1293 (elfNN_aarch64_link_setup_gnu_properties): New.
1294 (elfNN_aarch64_merge_gnu_properties): New.
1295 (elf_backend_setup_gnu_properties): Define for AArch64.
1296 (elf_backend_merge_gnu_properties): Likewise.
1297 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
1298 (_bfd_aarch64_elf_parse_gnu_properties): Define.
1299 (_bfd_aarch64_elf_merge_gnu_properties): Define.
1300 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
1301 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
1302 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
1303 (elf_backend_parse_gnu_properties): Define for AArch64.
1305 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1308 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
1309 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
1311 2019-03-12 Alan Modra <amodra@gmail.com>
1313 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
1314 nmemb parameter. Use bfd_alloc2.
1315 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
1317 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
1318 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
1319 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
1321 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
1322 (assign_section_numbers): Style fix.
1323 (swap_out_syms): Use bfd_malloc2.
1324 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
1326 (_bfd_elf_make_empty_symbol): Style fix.
1327 (elfobj_grok_stapsdt_note_1): Formatting.
1328 * elfcode.h (elf_object_p): Use bfd_alloc2.
1329 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
1330 (elf_slurp_symbol_table): Use bfd_zalloc2.
1331 (elf_slurp_reloc_table): Use bfd_alloc2.
1332 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
1333 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
1334 size calculation doesn't overflow.
1335 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
1336 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1337 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
1339 2019-03-08 Alan Modra <amodra@gmail.com>
1342 * merge.c (merge_strings): Return secinfo. Don't pad section
1344 (_bfd_merge_sections): Pad section to alignment here, if input
1345 sections contributing to merged output all pad to alignment.
1348 2019-03-06 Nick Clifton <nickc@redhat.com>
1350 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
1352 * coffgen.c (coff_find_nearest_line_with_names): Do not call
1353 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
1355 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1357 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1358 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1361 * elf32-s390.c (allocate_dynrelocs): Update comment.
1363 2019-02-28 Tamar Christina <tamar.christina@arm.com>
1365 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
1367 2019-02-28 Nick Clifton <nickc@redhat.com>
1370 * elf.c (bfd_elf_string_from_elf_section): Check for a string
1371 section that is not NUL terminated.
1373 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1376 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
1377 by linker when checking copy reloc on protected symbol.
1379 2019-02-24 Alan Modra <amodra@gmail.com>
1382 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
1384 2019-02-20 Eric Tsai <erictsai@cadence.com>
1386 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
1387 sections between the call site and call destination and adjust
1388 call distance by the largest alignment.
1390 2019-02-20 Alan Hayward <alan.hayward@arm.com>
1392 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
1393 * elf.c (elfcore_grok_aarch_pauth): New function.
1394 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
1395 (elfcore_write_aarch_pauth): New function.
1396 (elfcore_write_register_note): Check for AArch64 pauth section.
1398 2019-02-20 Alan Modra <amodra@gmail.com>
1401 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
1404 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
1406 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
1407 Darwin hosts, not just or1k.
1408 * configure: Regenerate.
1410 2019-02-20 Alan Modra <amodra@gmail.com>
1413 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
1414 sentinel NUL to string buffer nearer to loop where it is used.
1415 Don't go past sentinel when scanning strings, and don't write
1417 * archive.c (do_slurp_coff_armap): Simplify string handling to
1420 2019-02-19 Alan Modra <amodra@gmail.com>
1423 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
1424 attempting to prevent read past end of section.
1426 2019-02-18 Alan Modra <amodra@gmail.com>
1429 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
1430 PRIx64 to generate warning messages. Print local sym names too.
1432 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
1434 * elf32-arc (INIT_SYM_STRING): Delete.
1435 (FINI_SYM_STRING): Likewise.
1436 (init_str): Likewise.
1437 (fini_str): Likewise.
1439 2019-02-08 Alan Modra <amodra@gmail.com>
1441 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
1442 for bss-plt" warning to make it an error.
1444 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1447 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
1448 reloc_class_ifunc for ifunc symbols.
1449 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
1451 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1453 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
1454 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
1456 2019-02-07 Nick Clifton <nickc@redhat.com>
1458 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
1459 into the definitely obsolete list.
1461 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1464 * elf64-x86-64.c (elf_x86_64_need_pic): Check
1465 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
1466 (elf_x86_64_relocate_section): Move PIC check for PC-relative
1468 (elf_x86_64_check_relocs): Here.
1469 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
1470 to check if a symbol is defined in a non-shared object.
1471 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
1473 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
1475 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
1476 of 'labs' (and fix GCC warning).
1478 2019-01-25 Nick Clifton <nickc@redhat.com>
1480 * po/ru.po: Updated Russian translation.
1482 2019-01-23 Nick Clifton <nickc@redhat.com>
1484 * po/fr.po: Updated French translation.
1486 2019-01-21 Nick Clifton <nickc@redhat.com>
1488 * po/pt.po: Updated Portuguese translation.
1489 * po/uk.po: Updated Ukranian translation.
1491 2019-01-21 Yuri Chornoivan <yurchor@ukr.net>
1494 * elf32-nds32.c (nds32_relocate_section): Add space between words
1496 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
1498 (riscv_i_or_e_p): Likewise.
1499 (riscv_merge_arch_attr_info): Likewise.
1501 2019-01-19 Nick Clifton <nickc@redhat.com>
1503 * version.m4: Reset to 2.32.51
1504 * configure: Regenerate.
1505 * po/bfd.pot: Regenerate.
1507 2018-06-24 Nick Clifton <nickc@redhat.com>
1509 2.32 branch created.
1511 2019-01-16 Kito Cheng <kito@andestech.com>
1513 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
1516 2019-01-16 Kito Cheng <kito@andestech.com>
1517 Nelson Chu <nelson@andestech.com>
1519 * elfnn-riscv.c (in_subsets): New.
1520 (out_subsets): Likewise.
1521 (merged_subsets): Likewise.
1522 (riscv_std_ext_p): Likewise.
1523 (riscv_non_std_ext_p): Likewise.
1524 (riscv_std_sv_ext_p): Likewise.
1525 (riscv_non_std_sv_ext_p): Likewise.
1526 (riscv_version_mismatch): Likewise.
1527 (riscv_i_or_e_p): Likewise.
1528 (riscv_merge_std_ext): Likewise.
1529 (riscv_merge_non_std_and_sv_ext): Likewise.
1530 (riscv_merge_arch_attr_info): Likewise.
1531 (riscv_merge_attributes): Likewise.
1532 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
1534 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
1535 (elf_backend_obj_attrs_vendor): Define.
1536 (elf_backend_obj_attrs_section_type): Likewise.
1537 (elf_backend_obj_attrs_section): Likewise.
1538 (elf_backend_obj_attrs_arg_type): Define as
1539 riscv_elf_obj_attrs_arg_type.
1540 * elfxx-riscv.c (riscv_estimate_digit): New.
1541 (riscv_estimate_arch_strlen1): Likewise.
1542 (riscv_estimate_arch_strlen): Likewise.
1543 (riscv_arch_str1): Likewise.
1544 (riscv_arch_str): Likewise.
1545 * elfxx-riscv.h (riscv_arch_str): Declare.
1547 2019-01-14 John Darrington <john@darrington.wattle.id.au>
1549 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
1551 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
1552 source field. (md_apply_fix): Apply final fix
1553 to BFD_RELOC_S12Z_OPR.
1554 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
1556 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1559 * elf32-s390.c (allocate_dynrelocs): Update comment.
1561 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1563 * warning.m4: Adjust egrep pattern for non-GNU compilers.
1564 * configure: Regenerate.
1566 2019-01-08 Alan Modra <amodra@gmail.com>
1570 * ihex.c (ihex_write_object_contents): Properly check 32-bit
1573 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1575 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
1576 * bfd/bfd-in2.h: Regenerate.
1577 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
1578 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
1580 2019-01-04 Lifang Xia <lifang_xia@c-sky.com>
1582 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
1583 default target, little endian target is more suitable.
1585 2019-01-04 Alan Modra <amodra@gmail.com>
1589 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
1591 (EQ_VALUE_IN_FIELD): Likewise.
1592 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
1594 2019-01-01 Alan Modra <amodra@gmail.com>
1596 Update year range in copyright notice of all files.
1598 For older changes see ChangeLog-2018
1600 Copyright (C) 2019 Free Software Foundation, Inc.
1602 Copying and distribution of this file, with or without modification,
1603 are permitted in any medium without royalty provided the copyright
1604 notice and this notice are preserved.
1610 version-control: never