Silcence a compile time warning message building the binutils with gcc-10 on an s390...
[deliverable/binutils-gdb.git] / bfd / ChangeLog
... / ...
CommitLineData
12020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/25490
4 * elflink.c (_bfd_elf_gc_mark_extra_sections): Issue an error
5 for garbage collection on __patchable_function_entries section
6 without linked-to section.
7
82020-02-06 H.J. Lu <hongjiu.lu@intel.com>
9
10 PR gas/25381
11 * bfd-in2.h: Regenerated.
12 * elflink.c (_bfd_elf_gc_mark_extra_sections): Call mark_hook
13 on section if gc_mark of any of its linked-to sections is set
14 and don't set gc_mark again.
15 * section.c (asection): Add linked_to_symbol_name to map_head
16 union.
17
182020-02-06 Maciej W. Rozycki <macro@wdc.com>
19
20 * elf32-v850.c (v850_elf_relax_section): Fix the index used for
21 reporting an unrecognized instruction with R_V850_LONGJUMP.
22
232020-02-05 Alan Modra <amodra@gmail.com>
24
25 * elf64-ppc.c (ppc_stub_plt_branch): Match comment with reality.
26
272020-02-04 Alan Modra <amodra@gmail.com>
28
29 * elf32-ppc.c (ppc_elf_relocate_section): After applying
30 R_PPC_VLE_ADDR20, goto copy_reloc.
31
322020-02-02 H.J. Lu <hongjiu.lu@intel.com>
33
34 * bfd-in2.h: Regenerated.
35 * section.c (SEC_ASSEMBLER_SECTION_ID): Fix a typo in comments.
36
372020-02-02 H.J. Lu <hongjiu.lu@intel.com>
38
39 PR gas/25380
40 * bfd-in2.h: Regenerated.
41 * ecoff.c (bfd_debug_section): Add section_id.
42 * section.c (bfd_section): Add section_id.
43 (SEC_ASSEMBLER_SECTION_ID): New.
44 (BFD_FAKE_SECTION): Add section_id.
45
462020-02-01 Nick Clifton <nickc@redhat.com>
47
48 * config.bfd: Move the c30-aout and tic30-aout targets onto the
49 obsolete list.
50
512020-01-31 Sandra Loosemore <sandra@codesourcery.com>
52
53 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): DW_EH_PE_datarel
54 encodings are relative to the GOT on nios2, too.
55
562020-01-31 Alan Modra <amodra@gmail.com>
57
58 * Makefile.am (elf32-target.h, elf64-target.h): Don't use a temp
59 file. Use $< and $@ in rules.
60 (elf32-aarch64.c, elf64-aarch64.c): Likewise.
61 (elf32-ia64.c, elf64-ia64.c): Likewise.
62 (elf32-riscv.c, elf64-riscv.c): Likewise.
63 (peigen.c, pepigen.c, pex64igen.c): Likewise.
64 (elf32-aarch64.c, elf64-aarch64.c): Don't emit $srcdir on #line.
65 (elf32-riscv.c, elf64-riscv.c): Likewise, and use $(SED).
66 (elf32-ia64.c, elf64-ia64.c): Do emit #line.
67 (peigen.c, pepigen.c, pex64igen.c): Likewise.
68 * Makefile.in: Regenerate.
69
702020-01-31 Alan Modra <amodra@gmail.com>
71
72 PR 4110
73 * elf.c (setup_group): Don't clear entire section contents,
74 just the padding after group flags. Release alloc'd memory
75 after a seek or read failure.
76
772020-01-16 Jon Turney <jon.turney@dronecode.org.uk>
78
79 * peXXigen.c (pe_is_repro): New function.
80 (_bfd_XX_print_private_bfd_data_common): Note timestamp is
81 actually a build hash if PE_IMAGE_DEBUG_TYPE_REPRO is present.
82
832020-01-16 Jon Turney <jon.turney@dronecode.org.uk>
84
85 * peXXigen.c (debug_type_names): Add names for new debug data type
86 values.
87
882020-01-16 Jon Turney <jon.turney@dronecode.org.uk>
89
90 * peXXigen.c (pe_print_debugdata): Fix the iteration variable for
91 inner loop. Fix a memory leak.
92
932020-01-30 Alan Modra <amodra@gmail.com>
94
95 * coffgen.c (coff_real_object_p): Don't clear obj_coff_keep_syms
96 or obj_coff_keep_strings here.
97 (coff_get_normalized_symtab): Free external syms directly.
98 * xcofflink.c (xcoff_link_input_bfd): Restore obj_coff_keep_syms
99 on error exit path.
100
1012020-01-27 Jim Wilson <jimw@sifive.com>
102
103 * cpu-riscv.c (riscv_scan): New.
104 (N): Change bfd_default_scan to riscv_scan.
105
1062020-01-27 Andreas Schwab <schwab@suse.de>
107
108 * Makefile.am (ALL_MACHINES): Remove cpu-plugin.lo.
109 (ALL_MACHINES_CFILES): Remove cpu-plugin.c.
110 * Makefile.in: Regenerate.
111 * cpu-plugin.c: Remove.
112 * archures.c (enum bfd_architecture): Remove bfd_arch_plugin.
113 (bfd_plugin_arch): Remove declaration.
114 * bfd-in2.h: Regenerate.
115 * po/SRC-POTFILES.in: Regenerate.
116
1172020-01-27 H.J. Lu <hongjiu.lu@intel.com>
118 Alan Modra <amodra@gmail.com>
119
120 PR ld/25458
121 * elflink.c (_bfd_elf_gc_mark_rsec): Mark all weak aliases.
122
1232020-01-24 Jim Wilson <jimw@sifive.com>
124
125 * elfxx-riscv.c (riscv_get_prefix_class): Format s case like others.
126 (riscv_parse_prefixed_ext): Fix s extension comment and reword to
127 avoid over long line.
128
1292020-01-24 Nick Clifton <nickc@redhat.com>
130
131 PR 25447
132 * coffgen.c (_bfd_coff_close_and_cleanup): Do not clear the keep
133 syms and keep strings flags as these may have been set in order to
134 prevent a bogus call to free.
135
1362020-01-23 Nick Clifton <nickc@redhat.com>
137
138 * po/fr.po: Updated French translation.
139
1402020-01-23 Alan Modra <amodra@gmail.com>
141
142 PR 25444
143 * elf.c (assign_file_positions_for_load_sections): Avoid divide
144 by zero when p_align is zero.
145
1462020-01-22 Maxim Blinov <maxim.blinov@embecosm.com>
147
148 * bfd/elfnn-riscv.c (riscv_skip_prefix): New.
149 (riscv_prefix_cmp): Likewise.
150 (riscv_non_std_ext_p): Deleted.
151 (riscv_std_sv_ext_p): Likewise.
152 (riscv_non_std_sv_ext_p): Likewise.
153 (riscv_merge_non_std_and_sv_ext): Rename to...
154 (riscv_merge_multi_letter_ext): and modified to use riscv_prefix_cmp.
155 (riscv_merge_arch_attr_info): Replace 3 calls to
156 riscv_merge_non_std_and_sv_ext with single call to
157 riscv_merge_multi_letter_ext.
158 * bfd/elfxx-riscv.c (riscv_parse_std_ext): Break if we
159 encounter a 'z' prefix.
160 (riscv_get_prefix_class): New function, return prefix class based
161 on first few characters of input string.
162 (riscv_parse_config): New structure to factor out minor differences
163 in extension class parsing behaviour.
164 (riscv_parse_sv_or_non_std_ext): Rename to...
165 (riscv_parse_prefixed_ext): and parameterise with
166 riscv_parse_config.
167 (riscv_std_z_ext_strtab, riscv_std_s_ext_strtab): New.
168 (riscv_multi_letter_ext_valid_p): New.
169 (riscv_ext_x_valid_p, riscv_ext_z_valid_p, riscv_ext_s_valid_p): New.
170 (riscv_parse_subset): Delegate all non-single-letter parsing work
171 to riscv_parse_prefixed_ext.
172 * bfd/elfxx-riscv.h (riscv_isa_ext_class): New type.
173 (riscv_get_prefix_class): Declare.
174
1752020-01-22 Alan Modra <amodra@gmail.com>
176
177 * elf64-ppc.c (struct ppc_link_hash_table): Add tga_group.
178 (ppc64_elf_archive_symbol_lookup): Extract __tls_get_addr_opt for
179 __tls_get_addr_desc.
180 (ppc64_elf_size_stubs): Add section for linker generated
181 __tls_get_addr_desc wrapper function. Loop at least once if
182 generating this function.
183 (emit_tga_desc, emit_tga_desc_eh_frame): New functions.
184 (ppc64_elf_build_stubs): Generate __tls_get_addr_desc.
185
1862020-01-22 Alan Modra <amodra@gmail.com>
187
188 * elf64-ppc.h (struct ppc64_elf_params): Add no_tls_get_addr_regsave.
189 * elf64-ppc.c (struct ppc_link_hash_table): Add tga_desc and
190 tga_desc_fd.
191 (is_tls_get_addr): Match tga_desc and tga_desc_df too.
192 (STDU_R1_0R1, ADDI_R1_R1): Define.
193 (tls_get_addr_prologue, tls_get_addr_epilogue): New functions.
194 (ppc64_elf_tls_setup): Set up tga_desc and tga_desc_fd. Indirect
195 tga_desc_fd to opt_fd, and tga_desc to opt. Set
196 no_tls_get_addr_regsave.
197 (branch_reloc_hash_match): Add hash3 and hash4.
198 (ppc64_elf_tls_optimize): Handle tga_desc_fd and tga_desc too.
199 (ppc64_elf_size_dynamic_sections): Likewise.
200 (ppc64_elf_relocate_section): Likewise.
201 (plt_stub_size, build_plt_stub): Likewise. Size regsave
202 __tls_get_addr stub.
203 (build_tls_get_addr_stub): Build regsave __tls_get_addr stub and
204 eh_frame.
205 (ppc_size_one_stub): Handle tga_desc_fd and tga_desc too. Size
206 eh_frame for regsave __tls_get_addr.
207
2082020-01-22 Alan Modra <amodra@gmail.com>
209
210 * elf64-ppc.c (ppc64_elf_size_stubs): Correct condition under
211 which __tls_get_addr calls will be eliminated.
212
2132020-01-20 Nick Clifton <nickc@redhat.com>
214
215 * po/pt.po: Updates Portuguese translation.
216 * po/ru.po: Updated Russian translation.
217 * po/uk.po: Updated Ukranian translation.
218
2192020-01-20 H.J. Lu <hongjiu.lu@intel.com>
220
221 PR ld/25416
222 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Support
223 "rex leal x@tlsdesc(%rip), %reg" and "call *x@tlsdesc(%eax)" in
224 X32 mode.
225 (elf_x86_64_relocate_section): In x32 mode, for GDesc -> LE
226 transition, relax "rex leal x@tlsdesc(%rip), %reg" to
227 "rex movl $x@tpoff, %reg", for GDesc -> IE transition, relax
228 "rex leal x@tlsdesc(%rip), %reg" to
229 "rex movl x@gottpoff(%rip), %eax". For both transitions, relax
230 "call *(%eax)" to "nopl (%rax)".
231
2322020-01-20 Alan Modra <amodra@gmail.com>
233
234 * elf64-ppc.c (LD_R11_0R3, CMPDI_R11_0, STD_R11_0R1, LD_R11_0R1),
235 (MTLR_R11): Don't define.
236 (LD_R0_0R3, CMPDI_R0_0): Define.
237 (build_tls_get_addr_stub): Don't use r11 in stub.
238
2392020-01-20 Alan Modra <amodra@gmail.com>
240
241 * elf64-ppc.c (ppc_elf_hash_entry): New function, use throughout file.
242 (defined_sym_val, is_tls_get_addr): Likewise.
243
2442020-01-18 Nick Clifton <nickc@redhat.com>
245
246 * version.m4 (BFD_VERSION): Set to 2.34.50.
247 * configure: Regenerate.
248 * po/bfd.pot: Regenerate.
249
2502020-01-18 Nick Clifton <nickc@redhat.com>
251
252 Binutils 2.34 branch created.
253
2542020-01-17 Christian Biesinger <cbiesinger@google.com>
255
256 * coff-arm.c: Fix spelling error (seperate).
257 * elfxx-riscv.c (riscv_parse_sv_or_non_std_ext): Fix spelling
258 error (seperate).
259 * sysdep.h (strnlen): Fix spelling error (seperate).
260
2612020-01-15 Lars Brinkhoff <lars@nocrew.org>
262
263 PR 20694
264 * pdp11.c (TARGET_PAGE_SIZE): Set to 8192.
265
2662020-01-15 Alan Modra <amodra@gmail.com>
267
268 PR 25384
269 * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Update comment.
270 (ppc64_elf_adjust_dynamic_symbol): Don't allow .dynbss copies
271 of function symbols unless dot symbols are present. Do warn
272 whenever one is created, regardles of whether a PLT entry is
273 also emitted for the function symbol.
274
2752020-01-14 Alan Modra <amodra@gmail.com>
276
277 * som.c (som_bfd_count_ar_symbols): Error when file position
278 of symbols on chains is not strictly increasing.
279
2802020-01-14 Alan Modra <amodra@gmail.com>
281
282 * vms.h (VMS_DEBUG): Define as 0.
283 * vms-alpha.c (image_write): Move debug output after bounds check.
284 Tidy bounds check.
285 (_bfd_vms_slurp_eihd): Warning fix.
286 (_bfd_vms_slurp_etir): Init variables to avoid bogus warnings.
287
2882020-01-13 Alan Modra <amodra@gmail.com>
289
290 * vms-alpha.c (_bfd_vms_slurp_egsd): Ensure minimum size even
291 for "ignored" records.
292
2932020-01-13 Alan Modra <amodra@gmail.com>
294
295 * wasm-module.c (wasm_scan_name_function_section): Formatting.
296 Delete asect name check. Move asect NULL check to wasm_object_p.
297 Correct bounds check of sizes against end. Replace uses of
298 bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use
299 just one bfd_release.
300 (wasm_scan): Don't use malloc/strdup for section names,
301 bfd_alloc instead. Simplify code prefixing section name.
302 Formatting. Don't attempt to free memory here..
303 (wasm_object_p): ..do so here.
304
3052020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
306
307 PR ld/22269
308 * elf32-arm.c (elf32_arm_final_link_relocate): Use
309 UNDEFWEAK_NO_DYNAMIC_RELOC.
310 (allocate_dynrelocs_for_symbol): Likewise.
311
3122020-01-10 Tamar Christina <tamar.christina@arm.com>
313
314 PR 25210
315 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass.
316
3172020-01-10 Alan Modra <amodra@gmail.com>
318
319 * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
320
3212020-01-09 Nick Clifton <nickc@redhat.com>
322
323 PR 25221
324 * bfd.c (bfd_convert_section_contents): Check for a compress
325 header size that is larger than the actual section size.
326
3272020-01-08 Alan Modra <amodra@gmail.com>
328
329 PR 25351
330 * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms
331 after removing sections.
332
3332020-01-06 Jim Wilson <jimw@sifive.com>
334
335 PR 25205
336 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
337 check for !bfd_link_pic (info).
338 <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
339 <R_RISCV_JAL>: Add comment.
340 (_bfd_riscv_relax_section): For plt.offset check, add check for
341 bfd_link_pic (info). Add comment.
342
3432020-01-06 Alan Modra <amodra@gmail.com>
344
345 * format.c (bfd_check_format_matches): Ignore bfd_error on target
346 match failures. Don't init to bfd_error_wrong_format before
347 calling _bfd_check_format.
348
3492020-01-06 Alan Modra <amodra@gmail.com>
350
351 * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail
352 status rather than exiting on stack overflow or underflow.
353 (_bfd_vms_slurp_etir): Adjust to suit.
354
3552020-01-06 Alan Modra <amodra@gmail.com>
356
357 * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index.
358
3592020-01-06 Alan Modra <amodra@gmail.com>
360
361 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
362 command. Check name offset is within command.
363 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
364 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
365 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
366 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
367 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
368 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
369 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
370 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
371 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
372 (bfd_mach_o_read_segment): Similarly.
373 (bfd_mach_o_read_thread): Properly bound check thread struct.
374 Don't repeat checks on second loop.
375 (bfd_mach_o_read_command): Fail on invalid command length.
376
3772020-01-04 Alan Modra <amodra@gmail.com>
378
379 * format.c (bfd_check_format_matches): Add preserve_match.
380 Save initial bfd state in "preserve", matched bfd state in
381 "preserve_match". Save just the first match. Release
382 bfd_alloc memory. Restore and finish preserved state as
383 appropriate on all function exit paths.
384
3852020-01-04 Alan Modra <amodra@gmail.com>
386
387 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
388
3892020-01-04 Alan Modra <amodra@gmail.com>
390
391 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
392 match too.
393
3942020-01-03 Nick Clifton <nickc@redhat.com>
395
396 PR 25307
397 (bfd_pef_parse_function_stubs): Correct the test that ensures that
398 there is enough data remaining in the code buffer before
399 attempting to read a function stub.
400
4012020-01-03 Nick Clifton <nickc@redhat.com>
402
403 PR 25308
404 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
405 return value from bfd_malloc.
406 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
407 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
408 (elf32_arm_filter_cmse_symbols): Likewise.
409 (elf32_arm_write_section): Likewise.
410 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
411 (bfd_mach_o_follow_dsym): Likewise.
412 * pef.c (bfd_pef_print_loader_section): Likewise.
413 (bfd_pef_scan_start_address): Likewise.
414 (bfd_pef_parse_function_stubs): Likewise.
415 (bfd_pef_parse_symbols): Likewise.
416
4172020-01-03 Sergei Trofimovich <siarheit@google.com>
418
419 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
420 on binary inputs ld/PR25316.
421 (is_ia64_elf): new helper to filter on ia64 objects.
422
4232020-01-03 Jan Beulich <jbeulich@suse.com>
424
425 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
426 in parameter names.
427 (bfd_mach_o_scan): Insert underscore in two variable names.
428
4292020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
430
431 * Makefile.am: Add z80-elf target support.
432 * configure.ac: Likewise.
433 * targets.c: Likewise.
434 * Makefile.in: Regenerate.
435 * configure: Regenerate.
436 * config.bfd: Add z80-elf target support and new arches: ez80 and
437 z180.
438 * elf32-z80.c: New file.
439 * archures.c: Add new z80 architectures: eZ80 and Z180.
440 * coffcode.h: Likewise.
441 * cpu-z80.c: Likewise.
442 * coff-z80.c: Add new relocations for Z80 target and local label
443 check.
444 * reloc.c: Add new relocs.
445 * bfd-in2.h: Regenerate.
446 * libbfd.h: Regenerate.
447
4482020-01-02 Tamar Christina <tamar.christina@arm.com>
449
450 PR 25210
451 PR 24753
452 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
453
4542020-01-01 Alan Modra <amodra@gmail.com>
455
456 Update year range in copyright notice of all files.
457
458For older changes see ChangeLog-2019
459\f
460Copyright (C) 2020 Free Software Foundation, Inc.
461
462Copying and distribution of this file, with or without modification,
463are permitted in any medium without royalty provided the copyright
464notice and this notice are preserved.
465
466Local Variables:
467mode: change-log
468left-margin: 8
469fill-column: 74
470version-control: never
471End:
This page took 0.047097 seconds and 4 git commands to generate.