1 2019-05-04 Alan Modra <amodra@gmail.com>
4 * syms.c (coff_section_type): Only allow '.', '$' and numeric
5 following the standard section names.
6 (bfd_decode_symclass): Prioritize section flag tests in
7 decode_section_type before name tests in coff_section_type.
8 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
9 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
10 their names and choose standard .text section flags for
13 2019-05-02 Nick Clifton <nickc@redhat.com>
16 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
17 .gnu.debugaltlink sections as debugging sections.
19 2019-04-30 Alan Modra <amodra@gmail.com>
21 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
22 (struct _ppc64_elf_section_data): Likewise.
23 (ppc64_elf_check_relocs): Set above fields.
24 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
25 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
28 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
31 * elflink.c (elf_link_output_extsym): Don't complain undefined
32 weak dynamic reference.
34 2019-04-25 Sudakshina Das <sudi.das@arm.com>
36 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
37 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
38 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
39 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
40 (elfNN_aarch64_small_plt0_pac_entry): Remove.
41 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
42 (elfNN_aarch64_small_plt0_bti_entry): Update.
43 (elfNN_aarch64_small_plt_bti_entry): Update.
44 (elfNN_aarch64_small_plt_pac_entry): Update.
45 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
46 (setup_plt_values): Setup new entries.
47 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
48 (elfNN_aarch64_plt_sym_val): Likewise.
50 2019-04-22 Jim Wilson <jimw@sifive.com>
52 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
54 2019-04-19 Alan Modra <amodra@gmail.com>
56 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
58 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
60 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
61 building shared object.
62 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
64 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
67 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
70 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
72 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
74 * bfd-in2.h: Regenerate.
77 2019-04-15 Sudakshina Das <sudi.das@arm.com>
79 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
80 * bfd-in2.h: Regenerated.
81 * libbfd.h: Regenerated.
83 2019-04-15 Sudakshina Das <sudi.das@arm.com>
85 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
86 * bfd-in2.h: Regenerated.
89 2019-04-15 Sudakshina Das <sudi.das@arm.com>
91 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
92 * bfd-in2.h: Regenerated.
93 * libbfd.h: Regenerated.
94 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
95 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
96 and R_ARM_THM_BF12 together.
97 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
99 2019-04-15 Sudakshina Das <sudi.das@arm.com>
101 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
102 * libbfd.h: Regenerated.
103 * bfd-in2.h: Regenerated.
104 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
105 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
106 and R_ARM_THM_BF18 together.
107 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
109 2019-04-15 Sudakshina Das <sudi.das@arm.com>
111 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
112 * bfd-in2.h: Regenerated.
113 * libbfd.h: Regenerated.
114 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
115 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
116 and R_ARM_THM_BF16 together.
117 (get_value_helper): New reloc helper.
118 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
120 2019-04-15 Sudakshina Das <sudi.das@arm.com>
122 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
123 * bfd-in2.h: Regenerate.
124 * libbfd.h: Regenerate.
126 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
128 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
129 * bfd-in2.h: Regenerate.
130 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
131 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
133 (using_thumb2): Likewise.
134 (using_thumb2_bl): Update assert.
135 (arch_has_arm_nop): Likewise.
136 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
137 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
139 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
141 * elf-linker-x86.h (elf_x86_cet_report): New.
142 (elf_linker_x86_params): Add cet_report.
143 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
144 missing IBT and SHSTK properties if needed.
146 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
149 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
150 "h != NULL". Don't check "h != NULL" before calling.
151 bfd_elf_gc_record_vtentry.
152 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
153 * elf32-bfin.c (bfin_check_relocs): Likewise.
154 * elf32-cris.c (cris_elf_check_relocs): Likewise.
155 * elf32-csky.c (csky_elf_check_relocs): Likewise.
156 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
157 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
158 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
159 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
160 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
161 * elf32-i386.c (elf_i386_check_relocs): Likewise.
162 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
163 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
164 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
165 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
166 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
167 * elf32-metag.c (elf_metag_check_relocs): Likewise.
168 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
169 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
170 * elf32-s390.c (elf_s390_check_relocs): Likewise.
171 * elf32-sh.c (sh_elf_check_relocs): Likewise.
172 * elf32-v850.c (v850_elf_check_relocs): Likewise.
173 * elf32-vax.c (elf_vax_check_relocs): Likewise.
174 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
175 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
176 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
177 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
178 * elf64-s390.c (elf_s390_check_relocs): Likewise.
179 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
180 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
181 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
182 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
185 2019-04-11 Alan Modra <amodra@gmail.com>
188 * elflink.c (elf_link_add_object_symbols): Don't read partial
189 dynamic entries from fuzzed objects.
191 2019-04-11 Tamar Christina <tamar.christina@arm.com>
194 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
195 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
196 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
198 2019-04-10 Michael Forney <mforney@mforney.org>
201 * doc/chew.c (free_words): Correctly free "push_text" strings.
203 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
205 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
207 2019-04-08 Alan Modra <amodra@gmail.com>
209 * configure.ac (elfxx_x86): Define and use.
210 * configure: Regenerate.
212 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
214 * elf-linker-x86.h: New file.
215 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
216 to get x86-specific linker options.
217 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
218 (elf_x86_64_check_relocs): Likewise.
219 (elf_x86_64_relocate_section): Likewise.
220 (elf_x86_64_link_setup_gnu_properties): Likewise.
221 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
222 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
223 (_bfd_elf_linker_x86_set_options): New function.
224 * elfxx-x86.h: Include "elf-linker-x86.h".
225 (elf_x86_link_hash_table): Add params.
227 2019-04-03 Alan Modra <amodra@gmail.com>
229 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
230 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
231 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
232 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
233 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
234 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
236 2019-04-02 Jim Wilson <jimw@sifive.com>
239 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
240 ELF header flags to after check for ELF object file. Loop through
241 sections looking for code sections, if none, then skip ABI checks.
243 2019-03-30 Andrew Waterman <andrew@sifive.com>
245 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
248 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
250 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
251 info->export_dynamic to the conditional.
253 2019-03-28 Alan Modra <amodra@gmail.com>
256 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
257 * configure: Regenerate.
258 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
259 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
260 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
261 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
262 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
264 2019-03-21 Jim Wilson <jimw@sifive.com>
267 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
268 verify sym non-NULL before using. Add identical check using h.
270 2019-03-21 Sudakshina Das <sudi.das@arm.com>
272 * elf-bfd.h (struct elf_backend_data): Add argument to
273 merge_gnu_properties.
274 * elf-properties.c (elf_merge_gnu_properties): Add argument to
275 itself and while calling bed->merge_gnu_properties.
276 (elf_merge_gnu_property_list): Update the calls for
277 elf_merge_gnu_properties.
278 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
279 of --force-bti warning and add argument.
280 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
282 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
283 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
286 2019-03-20 Sudakshina Das <sudi.das@arm.com>
288 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
289 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
290 (elf_backend_fixup_gnu_properties): Define for AArch64.
292 2019-03-18 Alan Modra <amodra@gmail.com>
295 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
296 for local iplt syms with ent->plt.offset == -1. Remove ineffective
297 attempt at writing glink stubs only once.
299 2019-03-16 Alan Modra <amodra@gmail.com>
302 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
303 (_bfd_elf_rel_local_sym): Likewise.
304 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
305 section of symbols with unrecognized shndx.
307 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
310 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
312 * cofflink.c (coff_link_add_symbols): Check for symbols defined
313 in discarded section.
315 2019-03-15 Alan Modra <amodra@gmail.com>
318 * elflink.c (elf_link_add_object_symbols): Bail out on a local
319 symbol after globals if elf_bad_symtab is not set.
321 2019-03-15 Alan Modra <amodra@gmail.com>
324 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
325 (_bfd_elf_rel_local_sym): Likewise.
327 2019-03-15 Alan Modra <amodra@gmail.com>
330 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
331 object files with sh_size not a multiple of sh_entsize.
333 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
336 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
337 input with bad relocation.
339 22019-03-15 H.J. Lu <hongjiu.lu@intel.com>
341 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
343 2019-03-14 Nick Clifton <nickc@redhat.com>
346 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
347 (save_section_vma): Initialise field to the number of entries in
349 (section_vma_same): Check that the number of entries in the
350 sec_vma table matches the number of sections in the bfd.
352 2019-03-14 Nick Clifton <nickc@redhat.com>
355 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
356 section owner pointer when adding the default symbol.
358 2019-03-14 Nick Clifton <nickc@redhat.com>
361 * elflink.c (elf_link_add_object_symbols): Add new local variable
362 extversym_end. Initialise it to point to the end of the version
363 symbol table, if present. Check it when initialising and updating
366 2019-03-13 Sudakshina Das <sudi.das@arm.com>
368 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
369 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
370 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
371 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
373 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
374 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
375 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
377 2019-03-13 Sudakshina Das <sudi.das@arm.com>
378 Szabolcs Nagy <szabolcs.nagy@arm.com>
380 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
381 (aarch64_bti_pac_info): New.
382 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
383 (bfd_elf32_aarch64_set_options): Likewise.
384 * bfd-in2.h: Regenerate
385 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
386 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
387 (elfNN_aarch64_small_plt0_bti_entry): New.
388 (elfNN_aarch64_small_plt_bti_entry): New.
389 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
390 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
391 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
392 tlsdesc_plt_entry_size fields.
393 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
394 (setup_plt_values): New helper function.
395 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
397 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
399 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
400 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
401 to plt stubs instead of fixed ones and update filling them according
403 (elfNN_aarch64_init_small_plt0_entry): Likewise.
404 (elfNN_aarch64_finish_dynamic_sections): Likewise.
405 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
406 (elfNN_aarch64_plt_sym_val): Update size accordingly.
407 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
409 (bfd_elfNN_get_synthetic_symtab): Define.
410 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
411 and mising BTI NOTE SECTION.
414 2019-03-13 Sudakshina Das <sudi.das@arm.com>
416 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
417 linker created inputs from merge.
418 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
419 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
420 (elfNN_aarch64_link_setup_gnu_properties): New.
421 (elfNN_aarch64_merge_gnu_properties): New.
422 (elf_backend_setup_gnu_properties): Define for AArch64.
423 (elf_backend_merge_gnu_properties): Likewise.
424 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
425 (_bfd_aarch64_elf_parse_gnu_properties): Define.
426 (_bfd_aarch64_elf_merge_gnu_properties): Define.
427 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
428 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
429 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
430 (elf_backend_parse_gnu_properties): Define for AArch64.
432 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
435 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
436 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
438 2019-03-12 Alan Modra <amodra@gmail.com>
440 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
441 nmemb parameter. Use bfd_alloc2.
442 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
444 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
445 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
446 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
448 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
449 (assign_section_numbers): Style fix.
450 (swap_out_syms): Use bfd_malloc2.
451 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
453 (_bfd_elf_make_empty_symbol): Style fix.
454 (elfobj_grok_stapsdt_note_1): Formatting.
455 * elfcode.h (elf_object_p): Use bfd_alloc2.
456 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
457 (elf_slurp_symbol_table): Use bfd_zalloc2.
458 (elf_slurp_reloc_table): Use bfd_alloc2.
459 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
460 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
461 size calculation doesn't overflow.
462 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
463 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
464 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
466 2019-03-08 Alan Modra <amodra@gmail.com>
469 * merge.c (merge_strings): Return secinfo. Don't pad section
471 (_bfd_merge_sections): Pad section to alignment here, if input
472 sections contributing to merged output all pad to alignment.
475 2019-03-06 Nick Clifton <nickc@redhat.com>
477 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
479 * coffgen.c (coff_find_nearest_line_with_names): Do not call
480 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
482 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
484 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
485 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
488 * elf32-s390.c (allocate_dynrelocs): Update comment.
490 2019-02-28 Tamar Christina <tamar.christina@arm.com>
492 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
494 2019-02-28 Nick Clifton <nickc@redhat.com>
497 * elf.c (bfd_elf_string_from_elf_section): Check for a string
498 section that is not NUL terminated.
500 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
503 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
504 by linker when checking copy reloc on protected symbol.
506 2019-02-24 Alan Modra <amodra@gmail.com>
509 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
511 2019-02-20 Eric Tsai <erictsai@cadence.com>
513 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
514 sections between the call site and call destination and adjust
515 call distance by the largest alignment.
517 2019-02-20 Alan Hayward <alan.hayward@arm.com>
519 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
520 * elf.c (elfcore_grok_aarch_pauth): New function.
521 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
522 (elfcore_write_aarch_pauth): New function.
523 (elfcore_write_register_note): Check for AArch64 pauth section.
525 2019-02-20 Alan Modra <amodra@gmail.com>
528 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
531 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
533 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
534 Darwin hosts, not just or1k.
535 * configure: Regenerate.
537 2019-02-20 Alan Modra <amodra@gmail.com>
540 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
541 sentinel NUL to string buffer nearer to loop where it is used.
542 Don't go past sentinel when scanning strings, and don't write
544 * archive.c (do_slurp_coff_armap): Simplify string handling to
547 2019-02-19 Alan Modra <amodra@gmail.com>
550 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
551 attempting to prevent read past end of section.
553 2019-02-18 Alan Modra <amodra@gmail.com>
556 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
557 PRIx64 to generate warning messages. Print local sym names too.
559 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
561 * elf32-arc (INIT_SYM_STRING): Delete.
562 (FINI_SYM_STRING): Likewise.
563 (init_str): Likewise.
564 (fini_str): Likewise.
566 2019-02-08 Alan Modra <amodra@gmail.com>
568 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
569 for bss-plt" warning to make it an error.
571 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
574 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
575 reloc_class_ifunc for ifunc symbols.
576 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
578 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
580 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
581 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
583 2019-02-07 Nick Clifton <nickc@redhat.com>
585 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
586 into the definitely obsolete list.
588 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
591 * elf64-x86-64.c (elf_x86_64_need_pic): Check
592 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
593 (elf_x86_64_relocate_section): Move PIC check for PC-relative
595 (elf_x86_64_check_relocs): Here.
596 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
597 to check if a symbol is defined in a non-shared object.
598 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
600 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
602 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
603 of 'labs' (and fix GCC warning).
605 2019-01-25 Nick Clifton <nickc@redhat.com>
607 * po/ru.po: Updated Russian translation.
609 2019-01-23 Nick Clifton <nickc@redhat.com>
611 * po/fr.po: Updated French translation.
613 2019-01-21 Nick Clifton <nickc@redhat.com>
615 * po/pt.po: Updated Portuguese translation.
616 * po/uk.po: Updated Ukranian translation.
618 2019-01-21 Yuri Chornoivan <yurchor@ukr.net>
621 * elf32-nds32.c (nds32_relocate_section): Add space between words
623 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
625 (riscv_i_or_e_p): Likewise.
626 (riscv_merge_arch_attr_info): Likewise.
628 2019-01-19 Nick Clifton <nickc@redhat.com>
630 * version.m4: Reset to 2.32.51
631 * configure: Regenerate.
632 * po/bfd.pot: Regenerate.
634 2018-06-24 Nick Clifton <nickc@redhat.com>
638 2019-01-16 Kito Cheng <kito@andestech.com>
640 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
643 2019-01-16 Kito Cheng <kito@andestech.com>
644 Nelson Chu <nelson@andestech.com>
646 * elfnn-riscv.c (in_subsets): New.
647 (out_subsets): Likewise.
648 (merged_subsets): Likewise.
649 (riscv_std_ext_p): Likewise.
650 (riscv_non_std_ext_p): Likewise.
651 (riscv_std_sv_ext_p): Likewise.
652 (riscv_non_std_sv_ext_p): Likewise.
653 (riscv_version_mismatch): Likewise.
654 (riscv_i_or_e_p): Likewise.
655 (riscv_merge_std_ext): Likewise.
656 (riscv_merge_non_std_and_sv_ext): Likewise.
657 (riscv_merge_arch_attr_info): Likewise.
658 (riscv_merge_attributes): Likewise.
659 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
661 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
662 (elf_backend_obj_attrs_vendor): Define.
663 (elf_backend_obj_attrs_section_type): Likewise.
664 (elf_backend_obj_attrs_section): Likewise.
665 (elf_backend_obj_attrs_arg_type): Define as
666 riscv_elf_obj_attrs_arg_type.
667 * elfxx-riscv.c (riscv_estimate_digit): New.
668 (riscv_estimate_arch_strlen1): Likewise.
669 (riscv_estimate_arch_strlen): Likewise.
670 (riscv_arch_str1): Likewise.
671 (riscv_arch_str): Likewise.
672 * elfxx-riscv.h (riscv_arch_str): Declare.
674 2019-01-14 John Darrington <john@darrington.wattle.id.au>
676 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
678 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
679 source field. (md_apply_fix): Apply final fix
680 to BFD_RELOC_S12Z_OPR.
681 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
683 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
686 * elf32-s390.c (allocate_dynrelocs): Update comment.
688 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
690 * warning.m4: Adjust egrep pattern for non-GNU compilers.
691 * configure: Regenerate.
693 2019-01-08 Alan Modra <amodra@gmail.com>
697 * ihex.c (ihex_write_object_contents): Properly check 32-bit
700 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
702 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
703 * bfd/bfd-in2.h: Regenerate.
704 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
705 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
707 2019-01-04 Lifang Xia <lifang_xia@c-sky.com>
709 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
710 default target, little endian target is more suitable.
712 2019-01-04 Alan Modra <amodra@gmail.com>
716 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
718 (EQ_VALUE_IN_FIELD): Likewise.
719 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
721 2019-01-01 Alan Modra <amodra@gmail.com>
723 Update year range in copyright notice of all files.
725 For older changes see ChangeLog-2018
727 Copyright (C) 2019 Free Software Foundation, Inc.
729 Copying and distribution of this file, with or without modification,
730 are permitted in any medium without royalty provided the copyright
731 notice and this notice are preserved.
737 version-control: never