1 2020-03-20 Nick Clifton <nickc@redhat.com>
3 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
4 (process_section_headers): Check the return value from
5 get_compression_header.
6 (dump_section_as_strings): Likewise.
7 (dump_section_as_bytes): Likewise.
8 (load_specific_debug_section): Likewise.
10 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
12 * ar.c (main): Update bfd_plugin_set_program_name call.
13 * nm.c (main): Likewise.
15 2020-03-19 Nick Clifton <nickc@redhat.com>
18 * testsuite/binutils-all/dw4.s: New test source file.
19 * testsuite/binutils-all/nm.exp: Run the new test.
21 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
23 * readelf.c (process_symbol_table): Use unsigned long for si.
25 2020-03-19 Alan Modra <amodra@gmail.com>
27 * elfcomm.c: Don't include bfd.h or bucomm.h.
28 (program_name): Declare.
29 (process_archive_index_and_symbols): Replace bfd_boolean with int,
30 and substitute FALSE and TRUE.
31 (setup_archive, setup_nested_archive): Likewise.
32 * elfcomm.h: Likewise.
34 2020-03-19 Alan Modra <amodra@gmail.com>
36 * readelf.c (process_archive): Always return via path freeing
39 2020-03-19 Alan Modra <amodra@gmail.com>
41 * readelf.c (process_netbsd_elf_note): Validate descsz before
42 accessing descdata. Formatting.
44 2020-03-19 Alan Modra <amodra@gmail.com>
46 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
47 * elfcomm.h (setup_archive): Update prototype.
49 2020-03-16 Alan Modra <amodra@gmail.com>
51 * readelf.c (get_symbols): New function.
52 (process_relocs, ia64_process_unwind, hppa_process_unwind),
53 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
55 2020-03-16 Alan Modra <amodra@gmail.com>
57 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
58 Detect shift overflows and check that terminating byte is found.
59 Print an error on a bad uleb128.
61 2020-03-14 Alan Modra <amodra@gmail.com>
63 * readelf.c (process_file): Clean ba_cache.
65 2020-03-14 Alan Modra <amodra@gmail.com>
67 * elfcomm.h (setup_archive): Update prototype.
68 * elfcomm.c (setup_archive): Add file_size parameter and sanity
70 (setup_nested_archive): Get file size and pass to setup_archive.
71 * elfedit.c (process_archive): Likewise.
72 * readelf.c (process_archive): Pass filedata->file_size to
75 2020-03-14 Alan Modra <amodra@gmail.com>
77 * readelf.c (dump_section_as_strings): Free memory on error exit.
78 (dump_section_as_bytes, process_notes_at): Likewise.
79 (get_build_id): Free enote.
81 2020-03-13 Kamil Rytarowski <n54@gmx.com>
83 * readelf.c (get_netbsd_elfcore_note_type): Add support for
84 NT_NETBSDCORE_LWPSTATUS notes.
86 2020-03-13 Alan Modra <amodra@gmail.com>
88 * elfcomm.c (get_archive_member_name): Always return malloc'd
90 * elfedit.c (process_archive): Tidy memory on all return paths.
91 * readelf.c (process_archive): Likewise.
92 (process_symbol_table): Likewise.
93 (ba_cache): New, replacing ..
94 (get_symbol_for_build_attribute): ..static vars here. Free
95 strtab and symtab before loading new ones. Reject symtab without
96 valid strtab in loop, breaking out of loop on valid symtab.
97 (process_file): Free ba_cache symtab and strtab here, resetting
100 2020-03-12 Alan Modra <amodra@gmail.com>
102 * readelf.c (process_section_headers): Don't just set
103 filedata->section_headers NULL, free it first. Similarly for
104 dynamic_symbols, dynamic_strings, dynamic_syminfo and
105 symtab_shndx_list. Zero associated counts too.
106 (process_object): Free symtab_shndx_list.
107 (process_file): Free various allocated filedata tables.
109 2020-03-11 Nick Clifton <nickc@redhat.com>
113 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
114 li_segment_size fields.
115 * dwarf.c (read_debug_line_header): Record the address size and
116 segment selector size values (if present) in the lineinfo
118 (display_formatted_table): Warn if the format count is empty but
119 the table itself is not empty.
120 Display the format count and entry count at the start of the table
122 (display_debug_lines_raw): Display the address size and segement
123 selector size fields, if present.
124 * testsuite/binutils-all/dw5.W: Update expected output.
126 2020-03-11 Alan Modra <amodra@gmail.com>
129 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
130 pad_to_set on second block of code dealing with padding.
131 Replace "c" with "num_sec" and don't recalculate number of
132 sections on second block. Size arrays using sizeof (element)
133 rather than sizeof (element type).
135 2020-03-10 Alan Modra <amodra@gmail.com>
137 * objdump.c (disassemble_section): Don't call qsort unless
138 sym count is at least two.
139 (disassemble_data): Don't call memcpy with NULL src.
141 2020-03-09 Alan Modra <amodra@gmail.com>
144 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
145 to get_data rather than multiplying.
146 (dump_ia64_vms_dynamic_relocs): Likewise.
147 (process_version_sections): Correct order of size and nmemb args
149 (process_mips_specific): Likewise.
151 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
153 * readelf.c (get_dynamic_data): Replace "memory chekers" with
154 "memory checkers" in comments.
156 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
159 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
160 * doc/Makefile.in: Re-generate.
162 2020-03-06 Nick Clifton <nickc@redhat.com>
164 * objcopy.c (check_new_section_flags): New function. Reject the
165 SEC_COFF_SHARED flag if the target is not a COFF binary.
166 (copy_object): Call check_new_section_flags.
167 (setup_section): Likewise.
168 * doc/binutils.texi (objcopy): Add a note that the 'share' section
169 flag cannot be applied to ELF binaries.
171 2020-03-06 Alan Modra <amodra@gmail.com>
174 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
176 2020-03-05 Alan Modra <amodra@gmail.com>
179 * objcopy.c (filter_symbols): Don't segfault on NULL
180 prefix_symbols_string.
182 2020-03-04 Christian Eggers <ceggers@gmx.de>
184 * objcopy.c (copy_object): Convert from bytes to octets for
185 --gap-fill and --pad-to.
187 2020-03-03 Nick Clifton <nickc@redhat.com>
190 * prdbg.c (pr_tag_type): Remove call to abort.
192 2020-03-02 Aaron Merey <amerey@redhat.com>
194 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
197 2020-03-02 Nick Clifton <nickc@redhat.com>
200 * readelf.c (dump_section_as_strings): Display new-line characters
201 as \n and then insert a line break.
202 * testsuite/binutils-all/pr25543.s: New test.
203 * testsuite/binutils-all/pr25543.d: Test driver.
204 * testsuite/binutils-all/readelf.exp: Run the new test.
206 2020-02-27 Nick Clifton <nickc@redhat.com>
209 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
210 get_data is unable to load the string table.
212 2020-02-26 Alan Modra <amodra@gmail.com>
214 * elfedit.c: Indent labels correctly.
215 * readelf.c: Likewise.
216 * resres.c: Likewise.
218 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
221 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
222 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
224 2020-02-24 Nick Clifton <nickc@redhat.com>
227 * doc/binutils.texi (objdump): Fix typo in description of
230 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
232 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
235 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
237 * objdump.c (show_line): call bfd_demangle when using do_demangle.
239 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
241 * configure: Regenerate.
243 2020-02-10 Fangrui Song <maskray@google.com>
245 * objcopy.c (parse_flags): Handle "exclude".
246 * doc/binutils.texi: Document the support.
248 2020-02-10 Aaron Merey <amerey@redhat.com>
250 * binutils/testsuite/binutils-all/debuginfod.exp:
251 Replace set ::env with setenv.
252 Start server before setting environment variable.
253 Specify tmpdir as the location of the server's
255 Check additional server metrics at start-up.
257 2020-02-07 Nick Clifton <nickc@redhat.com>
259 * README-how-to-make-a-release: Add note about updating the
260 GAS/NEWS URL in the next release.
262 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
265 * readelf.c (get_machine_flags): Add support for Z80N machine
268 2020-02-07 Nick Clifton <nickc@redhat.com>
270 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
271 of the truncated file name.
273 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
275 * objdump.c (print_jump_visualisation): New function.
276 (disassemble_bytes): Call new function.
278 2020-02-06 Alan Modra <amodra@gmail.com>
280 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
282 (supports_gnu_osabi): New procedure.
283 (is_generic): New, from ld-lib.exp.
284 (supports_gnu_unique): Use the above.
286 2020-02-04 Alan Modra <amodra@gmail.com>
288 * Makefile.am (CFILES): Add od-elf32_avr.c.
289 * Makefile.in: Regenerate.
290 * po/POTFILES.in: Regenerate.
292 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
294 * readelf.c (dump_relocations, dump_relocations)
295 (decode_arm_unwind_bytecode, process_dynamic_section)
296 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
299 2020-02-03 Sergei Trofimovich <siarheit@google.com>
301 * coffdump.c (program_name): Drop redundant definition.
302 * srconv.c (program_name): Likewise
303 * sysdump.c (program_name): Likewise
305 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
308 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
309 same file with different section pointers.
311 2020-02-01 Nick Clifton <nickc@redhat.com>
313 * README-how-to-make-a-release: Update with more details on the
314 release making process.
316 2020-01-31 Nick Clifton <nickc@redhat.com>
318 * po/sv.po: Updated Swedish translation.
320 2020-01-28 Nick Clifton <nickc@redhat.com>
322 * readelf.c (get_build_id): Simplify warning message about corrupt
323 notes encountered whilst scanning for the build-id.
325 2020-01-27 Roland McGrath <mcgrathr@google.com>
327 * objcopy.c (compare_gnu_build_notes): Fix comparison results
328 for overlapping ranges so that (A == B) == (B == A) holds.
330 2020-01-27 Alan Modra <amodra@gmail.com>
332 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
333 case statement with switch statement.
335 2020-01-24 Nick Clifton <nickc@redhat.com>
337 * readelf.c (get_build_id): Fix warning messages about corrupt
340 2020-01-23 Nick Clifton <nickc@redhat.com>
342 * po/fr.po: Updated French translation.
344 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
347 * readelf.c (get_alpha_symbol_other): Fix error message typo.
349 2020-01-20 Nick Clifton <nickc@redhat.com>
351 * po/pt.po: Updated Portuguese translation.
352 * po/uk.po: Updated Ukranian translation.
354 2020-01-18 Nick Clifton <nickc@redhat.com>
356 * README-how-to-make-a-release: Update notes on how to cut a
357 branch for a release.
359 2020-01-18 Nick Clifton <nickc@redhat.com>
361 * configure: Regenerate.
362 * po/binutils.pot: Regenerate.
364 2020-01-18 Nick Clifton <nickc@redhat.com>
366 Binutils 2.34 branch created.
368 2020-01-17 Thomas Troeger <tstroege@gmx.de>
370 * objdump.c (jump_info_visualize_address): Discard jumps that are
372 (disassemble_bytes): Only compute the maximum level if jumps were
375 2020-01-13 Nick Clifton <nickc@redhat.com>
377 * objdump.c (disassemble_bytes): Remove C99-ism.
378 * testsuite/binutils-all/debuginfod.exp: New tests.
380 2020-01-13 Thomas Troeger <tstroege@gmx.de>
382 * objdump.c (visualize_jumps, color_output, extended_color_output)
383 (detected_jumps): New variables.
384 (usage): Add the new jump visualization options.
385 (option_values): Add new option value.
386 (long_options): Add the new option.
387 (jump_info_new, jump_info_free): New functions.
388 (jump_info_min_address, jump_info_max_address): Likewise.
389 (jump_info_end_address, jump_info_is_start_address): Likewise.
390 (jump_info_is_end_address, jump_info_size): Likewise.
391 (jump_info_unlink, jump_info_insert): Likewise.
392 (jump_info_add_front, jump_info_move_linked): Likewise.
393 (jump_info_intersect, jump_info_merge): Likewise.
394 (jump_info_sort, jump_info_visualize_address): Likewise.
395 (disassemble_jumps): New function - used to locate jumps.
396 (disassemble_bytes): Add ascii art generation.
397 (disassemble_section): Add scan to locate jumps.
398 (main): Parse the new visualization option.
399 * doc/binutils.texi: Document the new feature.
400 * NEWS: Mention the new feature.
402 2020-01-13 Alan Modra <amodra@gmail.com>
406 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
407 fde_fc col_type and col_offset.
408 * readelf.c (apply_relocations): Move symsec check earlier.
409 (free_debug_section): Free reloc_info.
410 (process_notes_at): Free pnotes on error path.
411 (process_object): Free dump_sects here..
412 (process_archive): ..not here.
414 2020-01-13 Alan Modra <amodra@gmail.com>
417 * nm.c (display_rel_file): Free dyn_syms.
419 2020-01-09 Nick Clifton <nickc@redhat.com>
422 * objcopy.c (empty_name): New variable.
423 (need_sym_before): Prevent an attempt to free a static variable.
424 (filter_symbols): Avoid strcmp test by checking for pointer
427 2020-01-09 Nick Clifton <nickc@redhat.com>
429 * po/zh_TW.po: Updated Traditional Chinese translation.
431 2020-01-09 Aaron Merey <amerey@redhat.com>
433 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
434 * Makefile.in: Regenerate.
436 * config.in: Regenerate.
437 * configure: Regenerate.
438 * configure.ac: Call AC_DEBUGINFOD.
439 * doc/Makefile.in: Regenerate.
440 * doc/binutils.texi: Add section on using binutils
442 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
443 Query debuginfod servers for the target debug file.
444 (load_separate_debug_info): Call
445 debuginfod_fetch_separate_debug_info if configured with
447 (load_separate_debug_files): Add file argument to
448 load_separate_debug_info calls.
449 * dwarf.h (get_build_id): Add declaration.
450 * objdump.c (get_build_id): New function. Get build-id of file.
451 * readelf.c (get_build_id): Likewise.
452 * testsuite/binutils-all/debuginfod.exp: New tests.
453 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
456 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
458 * readelf.c: Add support for new Z*) relocations and machine
461 2020-01-01 Alan Modra <amodra@gmail.com>
463 Update year range in copyright notice of all files.
465 For older changes see ChangeLog-2019
467 Copyright (C) 2020 Free Software Foundation, Inc.
469 Copying and distribution of this file, with or without modification,
470 are permitted in any medium without royalty provided the copyright
471 notice and this notice are preserved.
477 version-control: never