1 2020-03-23 Nick Clifton <nickc@redhat.com>
4 * wrstabs.c (stab_pop_type): Replace assertion with error return.
5 * write_stabs_in_sections_debugging_info: Likewise.
6 * stab_enum_type: Likewise.
7 * stab_modify_type: Likewise.
8 * stab_struct_field: Likewise.
9 * stab_end_struct_type: Likewise.
10 * stab_start_class_type: Likewise.
11 * stab_class_static_member: Likewise.
12 * stab_class_baseclass: Likewise.
13 * stab_class_start_method: Likewise.
14 * stab_class_method_var: Likewise.
15 * stab_class_end_method: Likewise.
16 * stab_end_class_type: Likewise.
17 * stab_typedef_type: Likewise.
18 * stab_start_function: Likewise.
19 * stab_end_block: Likewise.
20 * stab_lineno: Likewise.
22 2020-03-20 Nick Clifton <nickc@redhat.com>
24 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
25 (process_section_headers): Check the return value from
26 get_compression_header.
27 (dump_section_as_strings): Likewise.
28 (dump_section_as_bytes): Likewise.
29 (load_specific_debug_section): Likewise.
31 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
33 * ar.c (main): Update bfd_plugin_set_program_name call.
34 * nm.c (main): Likewise.
36 2020-03-19 Nick Clifton <nickc@redhat.com>
39 * testsuite/binutils-all/dw4.s: New test source file.
40 * testsuite/binutils-all/nm.exp: Run the new test.
42 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
44 * readelf.c (process_symbol_table): Use unsigned long for si.
46 2020-03-19 Alan Modra <amodra@gmail.com>
48 * elfcomm.c: Don't include bfd.h or bucomm.h.
49 (program_name): Declare.
50 (process_archive_index_and_symbols): Replace bfd_boolean with int,
51 and substitute FALSE and TRUE.
52 (setup_archive, setup_nested_archive): Likewise.
53 * elfcomm.h: Likewise.
55 2020-03-19 Alan Modra <amodra@gmail.com>
57 * readelf.c (process_archive): Always return via path freeing
60 2020-03-19 Alan Modra <amodra@gmail.com>
62 * readelf.c (process_netbsd_elf_note): Validate descsz before
63 accessing descdata. Formatting.
65 2020-03-19 Alan Modra <amodra@gmail.com>
67 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
68 * elfcomm.h (setup_archive): Update prototype.
70 2020-03-16 Alan Modra <amodra@gmail.com>
72 * readelf.c (get_symbols): New function.
73 (process_relocs, ia64_process_unwind, hppa_process_unwind),
74 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
76 2020-03-16 Alan Modra <amodra@gmail.com>
78 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
79 Detect shift overflows and check that terminating byte is found.
80 Print an error on a bad uleb128.
82 2020-03-14 Alan Modra <amodra@gmail.com>
84 * readelf.c (process_file): Clean ba_cache.
86 2020-03-14 Alan Modra <amodra@gmail.com>
88 * elfcomm.h (setup_archive): Update prototype.
89 * elfcomm.c (setup_archive): Add file_size parameter and sanity
91 (setup_nested_archive): Get file size and pass to setup_archive.
92 * elfedit.c (process_archive): Likewise.
93 * readelf.c (process_archive): Pass filedata->file_size to
96 2020-03-14 Alan Modra <amodra@gmail.com>
98 * readelf.c (dump_section_as_strings): Free memory on error exit.
99 (dump_section_as_bytes, process_notes_at): Likewise.
100 (get_build_id): Free enote.
102 2020-03-13 Kamil Rytarowski <n54@gmx.com>
104 * readelf.c (get_netbsd_elfcore_note_type): Add support for
105 NT_NETBSDCORE_LWPSTATUS notes.
107 2020-03-13 Alan Modra <amodra@gmail.com>
109 * elfcomm.c (get_archive_member_name): Always return malloc'd
111 * elfedit.c (process_archive): Tidy memory on all return paths.
112 * readelf.c (process_archive): Likewise.
113 (process_symbol_table): Likewise.
114 (ba_cache): New, replacing ..
115 (get_symbol_for_build_attribute): ..static vars here. Free
116 strtab and symtab before loading new ones. Reject symtab without
117 valid strtab in loop, breaking out of loop on valid symtab.
118 (process_file): Free ba_cache symtab and strtab here, resetting
121 2020-03-12 Alan Modra <amodra@gmail.com>
123 * readelf.c (process_section_headers): Don't just set
124 filedata->section_headers NULL, free it first. Similarly for
125 dynamic_symbols, dynamic_strings, dynamic_syminfo and
126 symtab_shndx_list. Zero associated counts too.
127 (process_object): Free symtab_shndx_list.
128 (process_file): Free various allocated filedata tables.
130 2020-03-11 Nick Clifton <nickc@redhat.com>
134 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
135 li_segment_size fields.
136 * dwarf.c (read_debug_line_header): Record the address size and
137 segment selector size values (if present) in the lineinfo
139 (display_formatted_table): Warn if the format count is empty but
140 the table itself is not empty.
141 Display the format count and entry count at the start of the table
143 (display_debug_lines_raw): Display the address size and segement
144 selector size fields, if present.
145 * testsuite/binutils-all/dw5.W: Update expected output.
147 2020-03-11 Alan Modra <amodra@gmail.com>
150 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
151 pad_to_set on second block of code dealing with padding.
152 Replace "c" with "num_sec" and don't recalculate number of
153 sections on second block. Size arrays using sizeof (element)
154 rather than sizeof (element type).
156 2020-03-10 Alan Modra <amodra@gmail.com>
158 * objdump.c (disassemble_section): Don't call qsort unless
159 sym count is at least two.
160 (disassemble_data): Don't call memcpy with NULL src.
162 2020-03-09 Alan Modra <amodra@gmail.com>
165 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
166 to get_data rather than multiplying.
167 (dump_ia64_vms_dynamic_relocs): Likewise.
168 (process_version_sections): Correct order of size and nmemb args
170 (process_mips_specific): Likewise.
172 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
174 * readelf.c (get_dynamic_data): Replace "memory chekers" with
175 "memory checkers" in comments.
177 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
180 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
181 * doc/Makefile.in: Re-generate.
183 2020-03-06 Nick Clifton <nickc@redhat.com>
185 * objcopy.c (check_new_section_flags): New function. Reject the
186 SEC_COFF_SHARED flag if the target is not a COFF binary.
187 (copy_object): Call check_new_section_flags.
188 (setup_section): Likewise.
189 * doc/binutils.texi (objcopy): Add a note that the 'share' section
190 flag cannot be applied to ELF binaries.
192 2020-03-06 Alan Modra <amodra@gmail.com>
195 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
197 2020-03-05 Alan Modra <amodra@gmail.com>
200 * objcopy.c (filter_symbols): Don't segfault on NULL
201 prefix_symbols_string.
203 2020-03-04 Christian Eggers <ceggers@gmx.de>
205 * objcopy.c (copy_object): Convert from bytes to octets for
206 --gap-fill and --pad-to.
208 2020-03-03 Nick Clifton <nickc@redhat.com>
211 * prdbg.c (pr_tag_type): Remove call to abort.
213 2020-03-02 Aaron Merey <amerey@redhat.com>
215 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
218 2020-03-02 Nick Clifton <nickc@redhat.com>
221 * readelf.c (dump_section_as_strings): Display new-line characters
222 as \n and then insert a line break.
223 * testsuite/binutils-all/pr25543.s: New test.
224 * testsuite/binutils-all/pr25543.d: Test driver.
225 * testsuite/binutils-all/readelf.exp: Run the new test.
227 2020-02-27 Nick Clifton <nickc@redhat.com>
230 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
231 get_data is unable to load the string table.
233 2020-02-26 Alan Modra <amodra@gmail.com>
235 * elfedit.c: Indent labels correctly.
236 * readelf.c: Likewise.
237 * resres.c: Likewise.
239 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
242 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
243 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
245 2020-02-24 Nick Clifton <nickc@redhat.com>
248 * doc/binutils.texi (objdump): Fix typo in description of
251 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
253 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
256 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
258 * objdump.c (show_line): call bfd_demangle when using do_demangle.
260 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
262 * configure: Regenerate.
264 2020-02-10 Fangrui Song <maskray@google.com>
266 * objcopy.c (parse_flags): Handle "exclude".
267 * doc/binutils.texi: Document the support.
269 2020-02-10 Aaron Merey <amerey@redhat.com>
271 * binutils/testsuite/binutils-all/debuginfod.exp:
272 Replace set ::env with setenv.
273 Start server before setting environment variable.
274 Specify tmpdir as the location of the server's
276 Check additional server metrics at start-up.
278 2020-02-07 Nick Clifton <nickc@redhat.com>
280 * README-how-to-make-a-release: Add note about updating the
281 GAS/NEWS URL in the next release.
283 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
286 * readelf.c (get_machine_flags): Add support for Z80N machine
289 2020-02-07 Nick Clifton <nickc@redhat.com>
291 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
292 of the truncated file name.
294 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
296 * objdump.c (print_jump_visualisation): New function.
297 (disassemble_bytes): Call new function.
299 2020-02-06 Alan Modra <amodra@gmail.com>
301 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
303 (supports_gnu_osabi): New procedure.
304 (is_generic): New, from ld-lib.exp.
305 (supports_gnu_unique): Use the above.
307 2020-02-04 Alan Modra <amodra@gmail.com>
309 * Makefile.am (CFILES): Add od-elf32_avr.c.
310 * Makefile.in: Regenerate.
311 * po/POTFILES.in: Regenerate.
313 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
315 * readelf.c (dump_relocations, dump_relocations)
316 (decode_arm_unwind_bytecode, process_dynamic_section)
317 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
320 2020-02-03 Sergei Trofimovich <siarheit@google.com>
322 * coffdump.c (program_name): Drop redundant definition.
323 * srconv.c (program_name): Likewise
324 * sysdump.c (program_name): Likewise
326 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
329 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
330 same file with different section pointers.
332 2020-02-01 Nick Clifton <nickc@redhat.com>
334 * README-how-to-make-a-release: Update with more details on the
335 release making process.
337 2020-01-31 Nick Clifton <nickc@redhat.com>
339 * po/sv.po: Updated Swedish translation.
341 2020-01-28 Nick Clifton <nickc@redhat.com>
343 * readelf.c (get_build_id): Simplify warning message about corrupt
344 notes encountered whilst scanning for the build-id.
346 2020-01-27 Roland McGrath <mcgrathr@google.com>
348 * objcopy.c (compare_gnu_build_notes): Fix comparison results
349 for overlapping ranges so that (A == B) == (B == A) holds.
351 2020-01-27 Alan Modra <amodra@gmail.com>
353 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
354 case statement with switch statement.
356 2020-01-24 Nick Clifton <nickc@redhat.com>
358 * readelf.c (get_build_id): Fix warning messages about corrupt
361 2020-01-23 Nick Clifton <nickc@redhat.com>
363 * po/fr.po: Updated French translation.
365 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
368 * readelf.c (get_alpha_symbol_other): Fix error message typo.
370 2020-01-20 Nick Clifton <nickc@redhat.com>
372 * po/pt.po: Updated Portuguese translation.
373 * po/uk.po: Updated Ukranian translation.
375 2020-01-18 Nick Clifton <nickc@redhat.com>
377 * README-how-to-make-a-release: Update notes on how to cut a
378 branch for a release.
380 2020-01-18 Nick Clifton <nickc@redhat.com>
382 * configure: Regenerate.
383 * po/binutils.pot: Regenerate.
385 2020-01-18 Nick Clifton <nickc@redhat.com>
387 Binutils 2.34 branch created.
389 2020-01-17 Thomas Troeger <tstroege@gmx.de>
391 * objdump.c (jump_info_visualize_address): Discard jumps that are
393 (disassemble_bytes): Only compute the maximum level if jumps were
396 2020-01-13 Nick Clifton <nickc@redhat.com>
398 * objdump.c (disassemble_bytes): Remove C99-ism.
399 * testsuite/binutils-all/debuginfod.exp: New tests.
401 2020-01-13 Thomas Troeger <tstroege@gmx.de>
403 * objdump.c (visualize_jumps, color_output, extended_color_output)
404 (detected_jumps): New variables.
405 (usage): Add the new jump visualization options.
406 (option_values): Add new option value.
407 (long_options): Add the new option.
408 (jump_info_new, jump_info_free): New functions.
409 (jump_info_min_address, jump_info_max_address): Likewise.
410 (jump_info_end_address, jump_info_is_start_address): Likewise.
411 (jump_info_is_end_address, jump_info_size): Likewise.
412 (jump_info_unlink, jump_info_insert): Likewise.
413 (jump_info_add_front, jump_info_move_linked): Likewise.
414 (jump_info_intersect, jump_info_merge): Likewise.
415 (jump_info_sort, jump_info_visualize_address): Likewise.
416 (disassemble_jumps): New function - used to locate jumps.
417 (disassemble_bytes): Add ascii art generation.
418 (disassemble_section): Add scan to locate jumps.
419 (main): Parse the new visualization option.
420 * doc/binutils.texi: Document the new feature.
421 * NEWS: Mention the new feature.
423 2020-01-13 Alan Modra <amodra@gmail.com>
427 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
428 fde_fc col_type and col_offset.
429 * readelf.c (apply_relocations): Move symsec check earlier.
430 (free_debug_section): Free reloc_info.
431 (process_notes_at): Free pnotes on error path.
432 (process_object): Free dump_sects here..
433 (process_archive): ..not here.
435 2020-01-13 Alan Modra <amodra@gmail.com>
438 * nm.c (display_rel_file): Free dyn_syms.
440 2020-01-09 Nick Clifton <nickc@redhat.com>
443 * objcopy.c (empty_name): New variable.
444 (need_sym_before): Prevent an attempt to free a static variable.
445 (filter_symbols): Avoid strcmp test by checking for pointer
448 2020-01-09 Nick Clifton <nickc@redhat.com>
450 * po/zh_TW.po: Updated Traditional Chinese translation.
452 2020-01-09 Aaron Merey <amerey@redhat.com>
454 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
455 * Makefile.in: Regenerate.
457 * config.in: Regenerate.
458 * configure: Regenerate.
459 * configure.ac: Call AC_DEBUGINFOD.
460 * doc/Makefile.in: Regenerate.
461 * doc/binutils.texi: Add section on using binutils
463 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
464 Query debuginfod servers for the target debug file.
465 (load_separate_debug_info): Call
466 debuginfod_fetch_separate_debug_info if configured with
468 (load_separate_debug_files): Add file argument to
469 load_separate_debug_info calls.
470 * dwarf.h (get_build_id): Add declaration.
471 * objdump.c (get_build_id): New function. Get build-id of file.
472 * readelf.c (get_build_id): Likewise.
473 * testsuite/binutils-all/debuginfod.exp: New tests.
474 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
477 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
479 * readelf.c: Add support for new Z*) relocations and machine
482 2020-01-01 Alan Modra <amodra@gmail.com>
484 Update year range in copyright notice of all files.
486 For older changes see ChangeLog-2019
488 Copyright (C) 2020 Free Software Foundation, Inc.
490 Copying and distribution of this file, with or without modification,
491 are permitted in any medium without royalty provided the copyright
492 notice and this notice are preserved.
498 version-control: never