1 2020-01-13 Alan Modra <amodra@gmail.com>
3 * wasm-module.c (wasm_scan_name_function_section): Formatting.
4 Delete asect name check. Move asect NULL check to wasm_object_p.
5 Correct bounds check of sizes against end. Replace uses of
6 bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use
8 (wasm_scan): Don't use malloc/strdup for section names,
9 bfd_alloc instead. Simplify code prefixing section name.
10 Formatting. Don't attempt to free memory here..
11 (wasm_object_p): ..do so here.
13 2020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
16 * elf32-arm.c (elf32_arm_final_link_relocate): Use
17 UNDEFWEAK_NO_DYNAMIC_RELOC.
18 (allocate_dynrelocs_for_symbol): Likewise.
20 2020-01-10 Tamar Christina <tamar.christina@arm.com>
23 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass.
25 2020-01-10 Alan Modra <amodra@gmail.com>
27 * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
29 2020-01-09 Nick Clifton <nickc@redhat.com>
32 * bfd.c (bfd_convert_section_contents): Check for a compress
33 header size that is larger than the actual section size.
35 2020-01-08 Alan Modra <amodra@gmail.com>
38 * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms
39 after removing sections.
41 2020-01-06 Jim Wilson <jimw@sifive.com>
44 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
45 check for !bfd_link_pic (info).
46 <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
47 <R_RISCV_JAL>: Add comment.
48 (_bfd_riscv_relax_section): For plt.offset check, add check for
49 bfd_link_pic (info). Add comment.
51 2020-01-06 Alan Modra <amodra@gmail.com>
53 * format.c (bfd_check_format_matches): Ignore bfd_error on target
54 match failures. Don't init to bfd_error_wrong_format before
55 calling _bfd_check_format.
57 2020-01-06 Alan Modra <amodra@gmail.com>
59 * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail
60 status rather than exiting on stack overflow or underflow.
61 (_bfd_vms_slurp_etir): Adjust to suit.
63 2020-01-06 Alan Modra <amodra@gmail.com>
65 * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index.
67 2020-01-06 Alan Modra <amodra@gmail.com>
69 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
70 command. Check name offset is within command.
71 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
72 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
73 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
74 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
75 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
76 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
77 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
78 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
79 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
80 (bfd_mach_o_read_segment): Similarly.
81 (bfd_mach_o_read_thread): Properly bound check thread struct.
82 Don't repeat checks on second loop.
83 (bfd_mach_o_read_command): Fail on invalid command length.
85 2020-01-04 Alan Modra <amodra@gmail.com>
87 * format.c (bfd_check_format_matches): Add preserve_match.
88 Save initial bfd state in "preserve", matched bfd state in
89 "preserve_match". Save just the first match. Release
90 bfd_alloc memory. Restore and finish preserved state as
91 appropriate on all function exit paths.
93 2020-01-04 Alan Modra <amodra@gmail.com>
95 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
97 2020-01-04 Alan Modra <amodra@gmail.com>
99 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
102 2020-01-03 Nick Clifton <nickc@redhat.com>
105 (bfd_pef_parse_function_stubs): Correct the test that ensures that
106 there is enough data remaining in the code buffer before
107 attempting to read a function stub.
109 2020-01-03 Nick Clifton <nickc@redhat.com>
112 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
113 return value from bfd_malloc.
114 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
115 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
116 (elf32_arm_filter_cmse_symbols): Likewise.
117 (elf32_arm_write_section): Likewise.
118 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
119 (bfd_mach_o_follow_dsym): Likewise.
120 * pef.c (bfd_pef_print_loader_section): Likewise.
121 (bfd_pef_scan_start_address): Likewise.
122 (bfd_pef_parse_function_stubs): Likewise.
123 (bfd_pef_parse_symbols): Likewise.
125 2020-01-03 Sergei Trofimovich <siarheit@google.com>
127 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
128 on binary inputs ld/PR25316.
129 (is_ia64_elf): new helper to filter on ia64 objects.
131 2020-01-03 Jan Beulich <jbeulich@suse.com>
133 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
135 (bfd_mach_o_scan): Insert underscore in two variable names.
137 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
139 * Makefile.am: Add z80-elf target support.
140 * configure.ac: Likewise.
141 * targets.c: Likewise.
142 * Makefile.in: Regenerate.
143 * configure: Regenerate.
144 * config.bfd: Add z80-elf target support and new arches: ez80 and
146 * elf32-z80.c: New file.
147 * archures.c: Add new z80 architectures: eZ80 and Z180.
148 * coffcode.h: Likewise.
149 * cpu-z80.c: Likewise.
150 * coff-z80.c: Add new relocations for Z80 target and local label
152 * reloc.c: Add new relocs.
153 * bfd-in2.h: Regenerate.
154 * libbfd.h: Regenerate.
156 2020-01-02 Tamar Christina <tamar.christina@arm.com>
160 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
162 2020-01-01 Alan Modra <amodra@gmail.com>
164 Update year range in copyright notice of all files.
166 For older changes see ChangeLog-2019
168 Copyright (C) 2020 Free Software Foundation, Inc.
170 Copying and distribution of this file, with or without modification,
171 are permitted in any medium without royalty provided the copyright
172 notice and this notice are preserved.
178 version-control: never