1 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
5 specify whether an object file or executable should be built and tested.
6 Change test names to report whether an object file or executable is
8 * testsuite/binutils-all/pr25662.ld: New test.
9 * testsuite/binutils-all/pr25662.s: New test.
11 2020-03-27 Alan Modra <amodra@gmail.com>
13 * readelf.c (process_archive): Don't double free qualified_name.
14 Don't break out of loop with "negative" archive_file_size, just
15 set file offset to max.
17 2020-03-25 Alan Modra <amodra@gmail.com>
19 * readelf.c (process_archive): Prevent endless loop.
21 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
24 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
25 with bfd_get_symbol_version_string.
26 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
27 * objdump.c (objdump_print_symname): Likewise.
29 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
32 * nm.c (SYM_NAME): Removed.
33 (print_symname): Add a pointer to struct extended_symbol_info
34 argument. Call _bfd_elf_get_symbol_version_name to get symbol
36 (print_symdef_entry): Pass NULL to print_symname.
37 (print_symbol_info_bsd): Update call to print_symname.
38 (print_symbol_info_sysv): Likewise.
39 (print_symbol_info_posix): Likewise.
41 2020-03-24 Alan Modra <amodra@gmail.com>
43 * readelf.c (process_mips_specific): Free iconf on error path.
45 2020-03-23 Nick Clifton <nickc@redhat.com>
48 * wrstabs.c (stab_pop_type): Replace assertion with error return.
49 * write_stabs_in_sections_debugging_info: Likewise.
50 * stab_enum_type: Likewise.
51 * stab_modify_type: Likewise.
52 * stab_struct_field: Likewise.
53 * stab_end_struct_type: Likewise.
54 * stab_start_class_type: Likewise.
55 * stab_class_static_member: Likewise.
56 * stab_class_baseclass: Likewise.
57 * stab_class_start_method: Likewise.
58 * stab_class_method_var: Likewise.
59 * stab_class_end_method: Likewise.
60 * stab_end_class_type: Likewise.
61 * stab_typedef_type: Likewise.
62 * stab_start_function: Likewise.
63 * stab_end_block: Likewise.
64 * stab_lineno: Likewise.
66 2020-03-20 Nick Clifton <nickc@redhat.com>
68 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
69 (process_section_headers): Check the return value from
70 get_compression_header.
71 (dump_section_as_strings): Likewise.
72 (dump_section_as_bytes): Likewise.
73 (load_specific_debug_section): Likewise.
75 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
77 * ar.c (main): Update bfd_plugin_set_program_name call.
78 * nm.c (main): Likewise.
80 2020-03-19 Nick Clifton <nickc@redhat.com>
83 * testsuite/binutils-all/dw4.s: New test source file.
84 * testsuite/binutils-all/nm.exp: Run the new test.
86 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
88 * readelf.c (process_symbol_table): Use unsigned long for si.
90 2020-03-19 Alan Modra <amodra@gmail.com>
92 * elfcomm.c: Don't include bfd.h or bucomm.h.
93 (program_name): Declare.
94 (process_archive_index_and_symbols): Replace bfd_boolean with int,
95 and substitute FALSE and TRUE.
96 (setup_archive, setup_nested_archive): Likewise.
97 * elfcomm.h: Likewise.
99 2020-03-19 Alan Modra <amodra@gmail.com>
101 * readelf.c (process_archive): Always return via path freeing
104 2020-03-19 Alan Modra <amodra@gmail.com>
106 * readelf.c (process_netbsd_elf_note): Validate descsz before
107 accessing descdata. Formatting.
109 2020-03-19 Alan Modra <amodra@gmail.com>
111 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
112 * elfcomm.h (setup_archive): Update prototype.
114 2020-03-16 Alan Modra <amodra@gmail.com>
116 * readelf.c (get_symbols): New function.
117 (process_relocs, ia64_process_unwind, hppa_process_unwind),
118 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
120 2020-03-16 Alan Modra <amodra@gmail.com>
122 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
123 Detect shift overflows and check that terminating byte is found.
124 Print an error on a bad uleb128.
126 2020-03-14 Alan Modra <amodra@gmail.com>
128 * readelf.c (process_file): Clean ba_cache.
130 2020-03-14 Alan Modra <amodra@gmail.com>
132 * elfcomm.h (setup_archive): Update prototype.
133 * elfcomm.c (setup_archive): Add file_size parameter and sanity
134 check longnames_size.
135 (setup_nested_archive): Get file size and pass to setup_archive.
136 * elfedit.c (process_archive): Likewise.
137 * readelf.c (process_archive): Pass filedata->file_size to
140 2020-03-14 Alan Modra <amodra@gmail.com>
142 * readelf.c (dump_section_as_strings): Free memory on error exit.
143 (dump_section_as_bytes, process_notes_at): Likewise.
144 (get_build_id): Free enote.
146 2020-03-13 Kamil Rytarowski <n54@gmx.com>
148 * readelf.c (get_netbsd_elfcore_note_type): Add support for
149 NT_NETBSDCORE_LWPSTATUS notes.
151 2020-03-13 Alan Modra <amodra@gmail.com>
153 * elfcomm.c (get_archive_member_name): Always return malloc'd
155 * elfedit.c (process_archive): Tidy memory on all return paths.
156 * readelf.c (process_archive): Likewise.
157 (process_symbol_table): Likewise.
158 (ba_cache): New, replacing ..
159 (get_symbol_for_build_attribute): ..static vars here. Free
160 strtab and symtab before loading new ones. Reject symtab without
161 valid strtab in loop, breaking out of loop on valid symtab.
162 (process_file): Free ba_cache symtab and strtab here, resetting
165 2020-03-12 Alan Modra <amodra@gmail.com>
167 * readelf.c (process_section_headers): Don't just set
168 filedata->section_headers NULL, free it first. Similarly for
169 dynamic_symbols, dynamic_strings, dynamic_syminfo and
170 symtab_shndx_list. Zero associated counts too.
171 (process_object): Free symtab_shndx_list.
172 (process_file): Free various allocated filedata tables.
174 2020-03-11 Nick Clifton <nickc@redhat.com>
178 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
179 li_segment_size fields.
180 * dwarf.c (read_debug_line_header): Record the address size and
181 segment selector size values (if present) in the lineinfo
183 (display_formatted_table): Warn if the format count is empty but
184 the table itself is not empty.
185 Display the format count and entry count at the start of the table
187 (display_debug_lines_raw): Display the address size and segement
188 selector size fields, if present.
189 * testsuite/binutils-all/dw5.W: Update expected output.
191 2020-03-11 Alan Modra <amodra@gmail.com>
194 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
195 pad_to_set on second block of code dealing with padding.
196 Replace "c" with "num_sec" and don't recalculate number of
197 sections on second block. Size arrays using sizeof (element)
198 rather than sizeof (element type).
200 2020-03-10 Alan Modra <amodra@gmail.com>
202 * objdump.c (disassemble_section): Don't call qsort unless
203 sym count is at least two.
204 (disassemble_data): Don't call memcpy with NULL src.
206 2020-03-09 Alan Modra <amodra@gmail.com>
209 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
210 to get_data rather than multiplying.
211 (dump_ia64_vms_dynamic_relocs): Likewise.
212 (process_version_sections): Correct order of size and nmemb args
214 (process_mips_specific): Likewise.
216 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
218 * readelf.c (get_dynamic_data): Replace "memory chekers" with
219 "memory checkers" in comments.
221 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
224 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
225 * doc/Makefile.in: Re-generate.
227 2020-03-06 Nick Clifton <nickc@redhat.com>
229 * objcopy.c (check_new_section_flags): New function. Reject the
230 SEC_COFF_SHARED flag if the target is not a COFF binary.
231 (copy_object): Call check_new_section_flags.
232 (setup_section): Likewise.
233 * doc/binutils.texi (objcopy): Add a note that the 'share' section
234 flag cannot be applied to ELF binaries.
236 2020-03-06 Alan Modra <amodra@gmail.com>
239 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
241 2020-03-05 Alan Modra <amodra@gmail.com>
244 * objcopy.c (filter_symbols): Don't segfault on NULL
245 prefix_symbols_string.
247 2020-03-04 Christian Eggers <ceggers@gmx.de>
249 * objcopy.c (copy_object): Convert from bytes to octets for
250 --gap-fill and --pad-to.
252 2020-03-03 Nick Clifton <nickc@redhat.com>
255 * prdbg.c (pr_tag_type): Remove call to abort.
257 2020-03-02 Aaron Merey <amerey@redhat.com>
259 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
262 2020-03-02 Nick Clifton <nickc@redhat.com>
265 * readelf.c (dump_section_as_strings): Display new-line characters
266 as \n and then insert a line break.
267 * testsuite/binutils-all/pr25543.s: New test.
268 * testsuite/binutils-all/pr25543.d: Test driver.
269 * testsuite/binutils-all/readelf.exp: Run the new test.
271 2020-02-27 Nick Clifton <nickc@redhat.com>
274 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
275 get_data is unable to load the string table.
277 2020-02-26 Alan Modra <amodra@gmail.com>
279 * elfedit.c: Indent labels correctly.
280 * readelf.c: Likewise.
281 * resres.c: Likewise.
283 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
286 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
287 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
289 2020-02-24 Nick Clifton <nickc@redhat.com>
292 * doc/binutils.texi (objdump): Fix typo in description of
295 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
297 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
300 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
302 * objdump.c (show_line): call bfd_demangle when using do_demangle.
304 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
306 * configure: Regenerate.
308 2020-02-10 Fangrui Song <maskray@google.com>
310 * objcopy.c (parse_flags): Handle "exclude".
311 * doc/binutils.texi: Document the support.
313 2020-02-10 Aaron Merey <amerey@redhat.com>
315 * binutils/testsuite/binutils-all/debuginfod.exp:
316 Replace set ::env with setenv.
317 Start server before setting environment variable.
318 Specify tmpdir as the location of the server's
320 Check additional server metrics at start-up.
322 2020-02-07 Nick Clifton <nickc@redhat.com>
324 * README-how-to-make-a-release: Add note about updating the
325 GAS/NEWS URL in the next release.
327 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
330 * readelf.c (get_machine_flags): Add support for Z80N machine
333 2020-02-07 Nick Clifton <nickc@redhat.com>
335 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
336 of the truncated file name.
338 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
340 * objdump.c (print_jump_visualisation): New function.
341 (disassemble_bytes): Call new function.
343 2020-02-06 Alan Modra <amodra@gmail.com>
345 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
347 (supports_gnu_osabi): New procedure.
348 (is_generic): New, from ld-lib.exp.
349 (supports_gnu_unique): Use the above.
351 2020-02-04 Alan Modra <amodra@gmail.com>
353 * Makefile.am (CFILES): Add od-elf32_avr.c.
354 * Makefile.in: Regenerate.
355 * po/POTFILES.in: Regenerate.
357 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
359 * readelf.c (dump_relocations, dump_relocations)
360 (decode_arm_unwind_bytecode, process_dynamic_section)
361 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
364 2020-02-03 Sergei Trofimovich <siarheit@google.com>
366 * coffdump.c (program_name): Drop redundant definition.
367 * srconv.c (program_name): Likewise
368 * sysdump.c (program_name): Likewise
370 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
373 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
374 same file with different section pointers.
376 2020-02-01 Nick Clifton <nickc@redhat.com>
378 * README-how-to-make-a-release: Update with more details on the
379 release making process.
381 2020-01-31 Nick Clifton <nickc@redhat.com>
383 * po/sv.po: Updated Swedish translation.
385 2020-01-28 Nick Clifton <nickc@redhat.com>
387 * readelf.c (get_build_id): Simplify warning message about corrupt
388 notes encountered whilst scanning for the build-id.
390 2020-01-27 Roland McGrath <mcgrathr@google.com>
392 * objcopy.c (compare_gnu_build_notes): Fix comparison results
393 for overlapping ranges so that (A == B) == (B == A) holds.
395 2020-01-27 Alan Modra <amodra@gmail.com>
397 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
398 case statement with switch statement.
400 2020-01-24 Nick Clifton <nickc@redhat.com>
402 * readelf.c (get_build_id): Fix warning messages about corrupt
405 2020-01-23 Nick Clifton <nickc@redhat.com>
407 * po/fr.po: Updated French translation.
409 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
412 * readelf.c (get_alpha_symbol_other): Fix error message typo.
414 2020-01-20 Nick Clifton <nickc@redhat.com>
416 * po/pt.po: Updated Portuguese translation.
417 * po/uk.po: Updated Ukranian translation.
419 2020-01-18 Nick Clifton <nickc@redhat.com>
421 * README-how-to-make-a-release: Update notes on how to cut a
422 branch for a release.
424 2020-01-18 Nick Clifton <nickc@redhat.com>
426 * configure: Regenerate.
427 * po/binutils.pot: Regenerate.
429 2020-01-18 Nick Clifton <nickc@redhat.com>
431 Binutils 2.34 branch created.
433 2020-01-17 Thomas Troeger <tstroege@gmx.de>
435 * objdump.c (jump_info_visualize_address): Discard jumps that are
437 (disassemble_bytes): Only compute the maximum level if jumps were
440 2020-01-13 Nick Clifton <nickc@redhat.com>
442 * objdump.c (disassemble_bytes): Remove C99-ism.
443 * testsuite/binutils-all/debuginfod.exp: New tests.
445 2020-01-13 Thomas Troeger <tstroege@gmx.de>
447 * objdump.c (visualize_jumps, color_output, extended_color_output)
448 (detected_jumps): New variables.
449 (usage): Add the new jump visualization options.
450 (option_values): Add new option value.
451 (long_options): Add the new option.
452 (jump_info_new, jump_info_free): New functions.
453 (jump_info_min_address, jump_info_max_address): Likewise.
454 (jump_info_end_address, jump_info_is_start_address): Likewise.
455 (jump_info_is_end_address, jump_info_size): Likewise.
456 (jump_info_unlink, jump_info_insert): Likewise.
457 (jump_info_add_front, jump_info_move_linked): Likewise.
458 (jump_info_intersect, jump_info_merge): Likewise.
459 (jump_info_sort, jump_info_visualize_address): Likewise.
460 (disassemble_jumps): New function - used to locate jumps.
461 (disassemble_bytes): Add ascii art generation.
462 (disassemble_section): Add scan to locate jumps.
463 (main): Parse the new visualization option.
464 * doc/binutils.texi: Document the new feature.
465 * NEWS: Mention the new feature.
467 2020-01-13 Alan Modra <amodra@gmail.com>
471 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
472 fde_fc col_type and col_offset.
473 * readelf.c (apply_relocations): Move symsec check earlier.
474 (free_debug_section): Free reloc_info.
475 (process_notes_at): Free pnotes on error path.
476 (process_object): Free dump_sects here..
477 (process_archive): ..not here.
479 2020-01-13 Alan Modra <amodra@gmail.com>
482 * nm.c (display_rel_file): Free dyn_syms.
484 2020-01-09 Nick Clifton <nickc@redhat.com>
487 * objcopy.c (empty_name): New variable.
488 (need_sym_before): Prevent an attempt to free a static variable.
489 (filter_symbols): Avoid strcmp test by checking for pointer
492 2020-01-09 Nick Clifton <nickc@redhat.com>
494 * po/zh_TW.po: Updated Traditional Chinese translation.
496 2020-01-09 Aaron Merey <amerey@redhat.com>
498 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
499 * Makefile.in: Regenerate.
501 * config.in: Regenerate.
502 * configure: Regenerate.
503 * configure.ac: Call AC_DEBUGINFOD.
504 * doc/Makefile.in: Regenerate.
505 * doc/binutils.texi: Add section on using binutils
507 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
508 Query debuginfod servers for the target debug file.
509 (load_separate_debug_info): Call
510 debuginfod_fetch_separate_debug_info if configured with
512 (load_separate_debug_files): Add file argument to
513 load_separate_debug_info calls.
514 * dwarf.h (get_build_id): Add declaration.
515 * objdump.c (get_build_id): New function. Get build-id of file.
516 * readelf.c (get_build_id): Likewise.
517 * testsuite/binutils-all/debuginfod.exp: New tests.
518 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
521 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
523 * readelf.c: Add support for new Z*) relocations and machine
526 2020-01-01 Alan Modra <amodra@gmail.com>
528 Update year range in copyright notice of all files.
530 For older changes see ChangeLog-2019
532 Copyright (C) 2020 Free Software Foundation, Inc.
534 Copying and distribution of this file, with or without modification,
535 are permitted in any medium without royalty provided the copyright
536 notice and this notice are preserved.
542 version-control: never