1 2020-01-22 Alan Modra <amodra@gmail.com>
3 * elf64-ppc.h (struct ppc64_elf_params): Add no_tls_get_addr_regsave.
4 * elf64-ppc.c (struct ppc_link_hash_table): Add tga_desc and
6 (is_tls_get_addr): Match tga_desc and tga_desc_df too.
7 (STDU_R1_0R1, ADDI_R1_R1): Define.
8 (tls_get_addr_prologue, tls_get_addr_epilogue): New functions.
9 (ppc64_elf_tls_setup): Set up tga_desc and tga_desc_fd. Indirect
10 tga_desc_fd to opt_fd, and tga_desc to opt. Set
11 no_tls_get_addr_regsave.
12 (branch_reloc_hash_match): Add hash3 and hash4.
13 (ppc64_elf_tls_optimize): Handle tga_desc_fd and tga_desc too.
14 (ppc64_elf_size_dynamic_sections): Likewise.
15 (ppc64_elf_relocate_section): Likewise.
16 (plt_stub_size, build_plt_stub): Likewise. Size regsave
18 (build_tls_get_addr_stub): Build regsave __tls_get_addr stub and
20 (ppc_size_one_stub): Handle tga_desc_fd and tga_desc too. Size
21 eh_frame for regsave __tls_get_addr.
23 2020-01-22 Alan Modra <amodra@gmail.com>
25 * elf64-ppc.c (ppc64_elf_size_stubs): Correct condition under
26 which __tls_get_addr calls will be eliminated.
28 2020-01-20 Nick Clifton <nickc@redhat.com>
30 * po/pt.po: Updates Portuguese translation.
31 * po/ru.po: Updated Russian translation.
32 * po/uk.po: Updated Ukranian translation.
34 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
37 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Support
38 "rex leal x@tlsdesc(%rip), %reg" and "call *x@tlsdesc(%eax)" in
40 (elf_x86_64_relocate_section): In x32 mode, for GDesc -> LE
41 transition, relax "rex leal x@tlsdesc(%rip), %reg" to
42 "rex movl $x@tpoff, %reg", for GDesc -> IE transition, relax
43 "rex leal x@tlsdesc(%rip), %reg" to
44 "rex movl x@gottpoff(%rip), %eax". For both transitions, relax
45 "call *(%eax)" to "nopl (%rax)".
47 2020-01-20 Alan Modra <amodra@gmail.com>
49 * elf64-ppc.c (LD_R11_0R3, CMPDI_R11_0, STD_R11_0R1, LD_R11_0R1),
50 (MTLR_R11): Don't define.
51 (LD_R0_0R3, CMPDI_R0_0): Define.
52 (build_tls_get_addr_stub): Don't use r11 in stub.
54 2020-01-20 Alan Modra <amodra@gmail.com>
56 * elf64-ppc.c (ppc_elf_hash_entry): New function, use throughout file.
57 (defined_sym_val, is_tls_get_addr): Likewise.
59 2020-01-18 Nick Clifton <nickc@redhat.com>
61 * version.m4 (BFD_VERSION): Set to 2.34.50.
62 * configure: Regenerate.
63 * po/bfd.pot: Regenerate.
65 2020-01-18 Nick Clifton <nickc@redhat.com>
67 Binutils 2.34 branch created.
69 2020-01-17 Christian Biesinger <cbiesinger@google.com>
71 * coff-arm.c: Fix spelling error (seperate).
72 * elfxx-riscv.c (riscv_parse_sv_or_non_std_ext): Fix spelling
74 * sysdep.h (strnlen): Fix spelling error (seperate).
76 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
79 * pdp11.c (TARGET_PAGE_SIZE): Set to 8192.
81 2020-01-15 Alan Modra <amodra@gmail.com>
84 * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Update comment.
85 (ppc64_elf_adjust_dynamic_symbol): Don't allow .dynbss copies
86 of function symbols unless dot symbols are present. Do warn
87 whenever one is created, regardles of whether a PLT entry is
88 also emitted for the function symbol.
90 2020-01-14 Alan Modra <amodra@gmail.com>
92 * som.c (som_bfd_count_ar_symbols): Error when file position
93 of symbols on chains is not strictly increasing.
95 2020-01-14 Alan Modra <amodra@gmail.com>
97 * vms.h (VMS_DEBUG): Define as 0.
98 * vms-alpha.c (image_write): Move debug output after bounds check.
100 (_bfd_vms_slurp_eihd): Warning fix.
101 (_bfd_vms_slurp_etir): Init variables to avoid bogus warnings.
103 2020-01-13 Alan Modra <amodra@gmail.com>
105 * vms-alpha.c (_bfd_vms_slurp_egsd): Ensure minimum size even
106 for "ignored" records.
108 2020-01-13 Alan Modra <amodra@gmail.com>
110 * wasm-module.c (wasm_scan_name_function_section): Formatting.
111 Delete asect name check. Move asect NULL check to wasm_object_p.
112 Correct bounds check of sizes against end. Replace uses of
113 bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use
114 just one bfd_release.
115 (wasm_scan): Don't use malloc/strdup for section names,
116 bfd_alloc instead. Simplify code prefixing section name.
117 Formatting. Don't attempt to free memory here..
118 (wasm_object_p): ..do so here.
120 2020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
123 * elf32-arm.c (elf32_arm_final_link_relocate): Use
124 UNDEFWEAK_NO_DYNAMIC_RELOC.
125 (allocate_dynrelocs_for_symbol): Likewise.
127 2020-01-10 Tamar Christina <tamar.christina@arm.com>
130 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass.
132 2020-01-10 Alan Modra <amodra@gmail.com>
134 * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
136 2020-01-09 Nick Clifton <nickc@redhat.com>
139 * bfd.c (bfd_convert_section_contents): Check for a compress
140 header size that is larger than the actual section size.
142 2020-01-08 Alan Modra <amodra@gmail.com>
145 * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms
146 after removing sections.
148 2020-01-06 Jim Wilson <jimw@sifive.com>
151 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
152 check for !bfd_link_pic (info).
153 <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
154 <R_RISCV_JAL>: Add comment.
155 (_bfd_riscv_relax_section): For plt.offset check, add check for
156 bfd_link_pic (info). Add comment.
158 2020-01-06 Alan Modra <amodra@gmail.com>
160 * format.c (bfd_check_format_matches): Ignore bfd_error on target
161 match failures. Don't init to bfd_error_wrong_format before
162 calling _bfd_check_format.
164 2020-01-06 Alan Modra <amodra@gmail.com>
166 * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail
167 status rather than exiting on stack overflow or underflow.
168 (_bfd_vms_slurp_etir): Adjust to suit.
170 2020-01-06 Alan Modra <amodra@gmail.com>
172 * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index.
174 2020-01-06 Alan Modra <amodra@gmail.com>
176 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
177 command. Check name offset is within command.
178 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
179 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
180 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
181 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
182 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
183 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
184 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
185 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
186 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
187 (bfd_mach_o_read_segment): Similarly.
188 (bfd_mach_o_read_thread): Properly bound check thread struct.
189 Don't repeat checks on second loop.
190 (bfd_mach_o_read_command): Fail on invalid command length.
192 2020-01-04 Alan Modra <amodra@gmail.com>
194 * format.c (bfd_check_format_matches): Add preserve_match.
195 Save initial bfd state in "preserve", matched bfd state in
196 "preserve_match". Save just the first match. Release
197 bfd_alloc memory. Restore and finish preserved state as
198 appropriate on all function exit paths.
200 2020-01-04 Alan Modra <amodra@gmail.com>
202 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
204 2020-01-04 Alan Modra <amodra@gmail.com>
206 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
209 2020-01-03 Nick Clifton <nickc@redhat.com>
212 (bfd_pef_parse_function_stubs): Correct the test that ensures that
213 there is enough data remaining in the code buffer before
214 attempting to read a function stub.
216 2020-01-03 Nick Clifton <nickc@redhat.com>
219 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
220 return value from bfd_malloc.
221 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
222 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
223 (elf32_arm_filter_cmse_symbols): Likewise.
224 (elf32_arm_write_section): Likewise.
225 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
226 (bfd_mach_o_follow_dsym): Likewise.
227 * pef.c (bfd_pef_print_loader_section): Likewise.
228 (bfd_pef_scan_start_address): Likewise.
229 (bfd_pef_parse_function_stubs): Likewise.
230 (bfd_pef_parse_symbols): Likewise.
232 2020-01-03 Sergei Trofimovich <siarheit@google.com>
234 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
235 on binary inputs ld/PR25316.
236 (is_ia64_elf): new helper to filter on ia64 objects.
238 2020-01-03 Jan Beulich <jbeulich@suse.com>
240 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
242 (bfd_mach_o_scan): Insert underscore in two variable names.
244 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
246 * Makefile.am: Add z80-elf target support.
247 * configure.ac: Likewise.
248 * targets.c: Likewise.
249 * Makefile.in: Regenerate.
250 * configure: Regenerate.
251 * config.bfd: Add z80-elf target support and new arches: ez80 and
253 * elf32-z80.c: New file.
254 * archures.c: Add new z80 architectures: eZ80 and Z180.
255 * coffcode.h: Likewise.
256 * cpu-z80.c: Likewise.
257 * coff-z80.c: Add new relocations for Z80 target and local label
259 * reloc.c: Add new relocs.
260 * bfd-in2.h: Regenerate.
261 * libbfd.h: Regenerate.
263 2020-01-02 Tamar Christina <tamar.christina@arm.com>
267 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
269 2020-01-01 Alan Modra <amodra@gmail.com>
271 Update year range in copyright notice of all files.
273 For older changes see ChangeLog-2019
275 Copyright (C) 2020 Free Software Foundation, Inc.
277 Copying and distribution of this file, with or without modification,
278 are permitted in any medium without royalty provided the copyright
279 notice and this notice are preserved.
285 version-control: never