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