1 2020-01-20 Nick Clifton <nickc@redhat.com>
3 * po/pt.po: Updates Portuguese translation.
4 * po/ru.po: Updated Russian translation.
5 * po/uk.po: Updated Ukranian translation.
7 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
10 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Support
11 "rex leal x@tlsdesc(%rip), %reg" and "call *x@tlsdesc(%eax)" in
13 (elf_x86_64_relocate_section): In x32 mode, for GDesc -> LE
14 transition, relax "rex leal x@tlsdesc(%rip), %reg" to
15 "rex movl $x@tpoff, %reg", for GDesc -> IE transition, relax
16 "rex leal x@tlsdesc(%rip), %reg" to
17 "rex movl x@gottpoff(%rip), %eax". For both transitions, relax
18 "call *(%eax)" to "nopl (%rax)".
20 2020-01-20 Alan Modra <amodra@gmail.com>
22 * elf64-ppc.c (LD_R11_0R3, CMPDI_R11_0, STD_R11_0R1, LD_R11_0R1),
23 (MTLR_R11): Don't define.
24 (LD_R0_0R3, CMPDI_R0_0): Define.
25 (build_tls_get_addr_stub): Don't use r11 in stub.
27 2020-01-20 Alan Modra <amodra@gmail.com>
29 * elf64-ppc.c (ppc_elf_hash_entry): New function, use throughout file.
30 (defined_sym_val, is_tls_get_addr): Likewise.
32 2020-01-18 Nick Clifton <nickc@redhat.com>
34 * version.m4 (BFD_VERSION): Set to 2.34.50.
35 * configure: Regenerate.
36 * po/bfd.pot: Regenerate.
38 2020-01-18 Nick Clifton <nickc@redhat.com>
40 Binutils 2.34 branch created.
42 2020-01-17 Christian Biesinger <cbiesinger@google.com>
44 * coff-arm.c: Fix spelling error (seperate).
45 * elfxx-riscv.c (riscv_parse_sv_or_non_std_ext): Fix spelling
47 * sysdep.h (strnlen): Fix spelling error (seperate).
49 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
52 * pdp11.c (TARGET_PAGE_SIZE): Set to 8192.
54 2020-01-15 Alan Modra <amodra@gmail.com>
57 * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Update comment.
58 (ppc64_elf_adjust_dynamic_symbol): Don't allow .dynbss copies
59 of function symbols unless dot symbols are present. Do warn
60 whenever one is created, regardles of whether a PLT entry is
61 also emitted for the function symbol.
63 2020-01-14 Alan Modra <amodra@gmail.com>
65 * som.c (som_bfd_count_ar_symbols): Error when file position
66 of symbols on chains is not strictly increasing.
68 2020-01-14 Alan Modra <amodra@gmail.com>
70 * vms.h (VMS_DEBUG): Define as 0.
71 * vms-alpha.c (image_write): Move debug output after bounds check.
73 (_bfd_vms_slurp_eihd): Warning fix.
74 (_bfd_vms_slurp_etir): Init variables to avoid bogus warnings.
76 2020-01-13 Alan Modra <amodra@gmail.com>
78 * vms-alpha.c (_bfd_vms_slurp_egsd): Ensure minimum size even
79 for "ignored" records.
81 2020-01-13 Alan Modra <amodra@gmail.com>
83 * wasm-module.c (wasm_scan_name_function_section): Formatting.
84 Delete asect name check. Move asect NULL check to wasm_object_p.
85 Correct bounds check of sizes against end. Replace uses of
86 bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use
88 (wasm_scan): Don't use malloc/strdup for section names,
89 bfd_alloc instead. Simplify code prefixing section name.
90 Formatting. Don't attempt to free memory here..
91 (wasm_object_p): ..do so here.
93 2020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
96 * elf32-arm.c (elf32_arm_final_link_relocate): Use
97 UNDEFWEAK_NO_DYNAMIC_RELOC.
98 (allocate_dynrelocs_for_symbol): Likewise.
100 2020-01-10 Tamar Christina <tamar.christina@arm.com>
103 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass.
105 2020-01-10 Alan Modra <amodra@gmail.com>
107 * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
109 2020-01-09 Nick Clifton <nickc@redhat.com>
112 * bfd.c (bfd_convert_section_contents): Check for a compress
113 header size that is larger than the actual section size.
115 2020-01-08 Alan Modra <amodra@gmail.com>
118 * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms
119 after removing sections.
121 2020-01-06 Jim Wilson <jimw@sifive.com>
124 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
125 check for !bfd_link_pic (info).
126 <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
127 <R_RISCV_JAL>: Add comment.
128 (_bfd_riscv_relax_section): For plt.offset check, add check for
129 bfd_link_pic (info). Add comment.
131 2020-01-06 Alan Modra <amodra@gmail.com>
133 * format.c (bfd_check_format_matches): Ignore bfd_error on target
134 match failures. Don't init to bfd_error_wrong_format before
135 calling _bfd_check_format.
137 2020-01-06 Alan Modra <amodra@gmail.com>
139 * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail
140 status rather than exiting on stack overflow or underflow.
141 (_bfd_vms_slurp_etir): Adjust to suit.
143 2020-01-06 Alan Modra <amodra@gmail.com>
145 * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index.
147 2020-01-06 Alan Modra <amodra@gmail.com>
149 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
150 command. Check name offset is within command.
151 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
152 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
153 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
154 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
155 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
156 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
157 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
158 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
159 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
160 (bfd_mach_o_read_segment): Similarly.
161 (bfd_mach_o_read_thread): Properly bound check thread struct.
162 Don't repeat checks on second loop.
163 (bfd_mach_o_read_command): Fail on invalid command length.
165 2020-01-04 Alan Modra <amodra@gmail.com>
167 * format.c (bfd_check_format_matches): Add preserve_match.
168 Save initial bfd state in "preserve", matched bfd state in
169 "preserve_match". Save just the first match. Release
170 bfd_alloc memory. Restore and finish preserved state as
171 appropriate on all function exit paths.
173 2020-01-04 Alan Modra <amodra@gmail.com>
175 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
177 2020-01-04 Alan Modra <amodra@gmail.com>
179 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
182 2020-01-03 Nick Clifton <nickc@redhat.com>
185 (bfd_pef_parse_function_stubs): Correct the test that ensures that
186 there is enough data remaining in the code buffer before
187 attempting to read a function stub.
189 2020-01-03 Nick Clifton <nickc@redhat.com>
192 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
193 return value from bfd_malloc.
194 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
195 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
196 (elf32_arm_filter_cmse_symbols): Likewise.
197 (elf32_arm_write_section): Likewise.
198 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
199 (bfd_mach_o_follow_dsym): Likewise.
200 * pef.c (bfd_pef_print_loader_section): Likewise.
201 (bfd_pef_scan_start_address): Likewise.
202 (bfd_pef_parse_function_stubs): Likewise.
203 (bfd_pef_parse_symbols): Likewise.
205 2020-01-03 Sergei Trofimovich <siarheit@google.com>
207 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
208 on binary inputs ld/PR25316.
209 (is_ia64_elf): new helper to filter on ia64 objects.
211 2020-01-03 Jan Beulich <jbeulich@suse.com>
213 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
215 (bfd_mach_o_scan): Insert underscore in two variable names.
217 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
219 * Makefile.am: Add z80-elf target support.
220 * configure.ac: Likewise.
221 * targets.c: Likewise.
222 * Makefile.in: Regenerate.
223 * configure: Regenerate.
224 * config.bfd: Add z80-elf target support and new arches: ez80 and
226 * elf32-z80.c: New file.
227 * archures.c: Add new z80 architectures: eZ80 and Z180.
228 * coffcode.h: Likewise.
229 * cpu-z80.c: Likewise.
230 * coff-z80.c: Add new relocations for Z80 target and local label
232 * reloc.c: Add new relocs.
233 * bfd-in2.h: Regenerate.
234 * libbfd.h: Regenerate.
236 2020-01-02 Tamar Christina <tamar.christina@arm.com>
240 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
242 2020-01-01 Alan Modra <amodra@gmail.com>
244 Update year range in copyright notice of all files.
246 For older changes see ChangeLog-2019
248 Copyright (C) 2020 Free Software Foundation, Inc.
250 Copying and distribution of this file, with or without modification,
251 are permitted in any medium without royalty provided the copyright
252 notice and this notice are preserved.
258 version-control: never