1 2020-03-16 Alan Modra <amodra@gmail.com>
3 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
4 Detect shift overflows and check that terminating byte is found.
5 Print an error on a bad uleb128.
7 2020-03-14 Alan Modra <amodra@gmail.com>
9 * readelf.c (process_file): Clean ba_cache.
11 2020-03-14 Alan Modra <amodra@gmail.com>
13 * elfcomm.h (setup_archive): Update prototype.
14 * elfcomm.c (setup_archive): Add file_size parameter and sanity
16 (setup_nested_archive): Get file size and pass to setup_archive.
17 * elfedit.c (process_archive): Likewise.
18 * readelf.c (process_archive): Pass filedata->file_size to
21 2020-03-14 Alan Modra <amodra@gmail.com>
23 * readelf.c (dump_section_as_strings): Free memory on error exit.
24 (dump_section_as_bytes, process_notes_at): Likewise.
25 (get_build_id): Free enote.
27 2020-03-13 Kamil Rytarowski <n54@gmx.com>
29 * readelf.c (get_netbsd_elfcore_note_type): Add support for
30 NT_NETBSDCORE_LWPSTATUS notes.
32 2020-03-13 Alan Modra <amodra@gmail.com>
34 * elfcomm.c (get_archive_member_name): Always return malloc'd
36 * elfedit.c (process_archive): Tidy memory on all return paths.
37 * readelf.c (process_archive): Likewise.
38 (process_symbol_table): Likewise.
39 (ba_cache): New, replacing ..
40 (get_symbol_for_build_attribute): ..static vars here. Free
41 strtab and symtab before loading new ones. Reject symtab without
42 valid strtab in loop, breaking out of loop on valid symtab.
43 (process_file): Free ba_cache symtab and strtab here, resetting
46 2020-03-12 Alan Modra <amodra@gmail.com>
48 * readelf.c (process_section_headers): Don't just set
49 filedata->section_headers NULL, free it first. Similarly for
50 dynamic_symbols, dynamic_strings, dynamic_syminfo and
51 symtab_shndx_list. Zero associated counts too.
52 (process_object): Free symtab_shndx_list.
53 (process_file): Free various allocated filedata tables.
55 2020-03-11 Nick Clifton <nickc@redhat.com>
59 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
60 li_segment_size fields.
61 * dwarf.c (read_debug_line_header): Record the address size and
62 segment selector size values (if present) in the lineinfo
64 (display_formatted_table): Warn if the format count is empty but
65 the table itself is not empty.
66 Display the format count and entry count at the start of the table
68 (display_debug_lines_raw): Display the address size and segement
69 selector size fields, if present.
70 * testsuite/binutils-all/dw5.W: Update expected output.
72 2020-03-11 Alan Modra <amodra@gmail.com>
75 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
76 pad_to_set on second block of code dealing with padding.
77 Replace "c" with "num_sec" and don't recalculate number of
78 sections on second block. Size arrays using sizeof (element)
79 rather than sizeof (element type).
81 2020-03-10 Alan Modra <amodra@gmail.com>
83 * objdump.c (disassemble_section): Don't call qsort unless
84 sym count is at least two.
85 (disassemble_data): Don't call memcpy with NULL src.
87 2020-03-09 Alan Modra <amodra@gmail.com>
90 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
91 to get_data rather than multiplying.
92 (dump_ia64_vms_dynamic_relocs): Likewise.
93 (process_version_sections): Correct order of size and nmemb args
95 (process_mips_specific): Likewise.
97 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
99 * readelf.c (get_dynamic_data): Replace "memory chekers" with
100 "memory checkers" in comments.
102 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
105 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
106 * doc/Makefile.in: Re-generate.
108 2020-03-06 Nick Clifton <nickc@redhat.com>
110 * objcopy.c (check_new_section_flags): New function. Reject the
111 SEC_COFF_SHARED flag if the target is not a COFF binary.
112 (copy_object): Call check_new_section_flags.
113 (setup_section): Likewise.
114 * doc/binutils.texi (objcopy): Add a note that the 'share' section
115 flag cannot be applied to ELF binaries.
117 2020-03-06 Alan Modra <amodra@gmail.com>
120 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
122 2020-03-05 Alan Modra <amodra@gmail.com>
125 * objcopy.c (filter_symbols): Don't segfault on NULL
126 prefix_symbols_string.
128 2020-03-04 Christian Eggers <ceggers@gmx.de>
130 * objcopy.c (copy_object): Convert from bytes to octets for
131 --gap-fill and --pad-to.
133 2020-03-03 Nick Clifton <nickc@redhat.com>
136 * prdbg.c (pr_tag_type): Remove call to abort.
138 2020-03-02 Aaron Merey <amerey@redhat.com>
140 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
143 2020-03-02 Nick Clifton <nickc@redhat.com>
146 * readelf.c (dump_section_as_strings): Display new-line characters
147 as \n and then insert a line break.
148 * testsuite/binutils-all/pr25543.s: New test.
149 * testsuite/binutils-all/pr25543.d: Test driver.
150 * testsuite/binutils-all/readelf.exp: Run the new test.
152 2020-02-27 Nick Clifton <nickc@redhat.com>
155 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
156 get_data is unable to load the string table.
158 2020-02-26 Alan Modra <amodra@gmail.com>
160 * elfedit.c: Indent labels correctly.
161 * readelf.c: Likewise.
162 * resres.c: Likewise.
164 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
167 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
168 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
170 2020-02-24 Nick Clifton <nickc@redhat.com>
173 * doc/binutils.texi (objdump): Fix typo in description of
176 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
178 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
181 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
183 * objdump.c (show_line): call bfd_demangle when using do_demangle.
185 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
187 * configure: Regenerate.
189 2020-02-10 Fangrui Song <maskray@google.com>
191 * objcopy.c (parse_flags): Handle "exclude".
192 * doc/binutils.texi: Document the support.
194 2020-02-10 Aaron Merey <amerey@redhat.com>
196 * binutils/testsuite/binutils-all/debuginfod.exp:
197 Replace set ::env with setenv.
198 Start server before setting environment variable.
199 Specify tmpdir as the location of the server's
201 Check additional server metrics at start-up.
203 2020-02-07 Nick Clifton <nickc@redhat.com>
205 * README-how-to-make-a-release: Add note about updating the
206 GAS/NEWS URL in the next release.
208 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
211 * readelf.c (get_machine_flags): Add support for Z80N machine
214 2020-02-07 Nick Clifton <nickc@redhat.com>
216 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
217 of the truncated file name.
219 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
221 * objdump.c (print_jump_visualisation): New function.
222 (disassemble_bytes): Call new function.
224 2020-02-06 Alan Modra <amodra@gmail.com>
226 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
228 (supports_gnu_osabi): New procedure.
229 (is_generic): New, from ld-lib.exp.
230 (supports_gnu_unique): Use the above.
232 2020-02-04 Alan Modra <amodra@gmail.com>
234 * Makefile.am (CFILES): Add od-elf32_avr.c.
235 * Makefile.in: Regenerate.
236 * po/POTFILES.in: Regenerate.
238 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
240 * readelf.c (dump_relocations, dump_relocations)
241 (decode_arm_unwind_bytecode, process_dynamic_section)
242 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
245 2020-02-03 Sergei Trofimovich <siarheit@google.com>
247 * coffdump.c (program_name): Drop redundant definition.
248 * srconv.c (program_name): Likewise
249 * sysdump.c (program_name): Likewise
251 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
254 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
255 same file with different section pointers.
257 2020-02-01 Nick Clifton <nickc@redhat.com>
259 * README-how-to-make-a-release: Update with more details on the
260 release making process.
262 2020-01-31 Nick Clifton <nickc@redhat.com>
264 * po/sv.po: Updated Swedish translation.
266 2020-01-28 Nick Clifton <nickc@redhat.com>
268 * readelf.c (get_build_id): Simplify warning message about corrupt
269 notes encountered whilst scanning for the build-id.
271 2020-01-27 Roland McGrath <mcgrathr@google.com>
273 * objcopy.c (compare_gnu_build_notes): Fix comparison results
274 for overlapping ranges so that (A == B) == (B == A) holds.
276 2020-01-27 Alan Modra <amodra@gmail.com>
278 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
279 case statement with switch statement.
281 2020-01-24 Nick Clifton <nickc@redhat.com>
283 * readelf.c (get_build_id): Fix warning messages about corrupt
286 2020-01-23 Nick Clifton <nickc@redhat.com>
288 * po/fr.po: Updated French translation.
290 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
293 * readelf.c (get_alpha_symbol_other): Fix error message typo.
295 2020-01-20 Nick Clifton <nickc@redhat.com>
297 * po/pt.po: Updated Portuguese translation.
298 * po/uk.po: Updated Ukranian translation.
300 2020-01-18 Nick Clifton <nickc@redhat.com>
302 * README-how-to-make-a-release: Update notes on how to cut a
303 branch for a release.
305 2020-01-18 Nick Clifton <nickc@redhat.com>
307 * configure: Regenerate.
308 * po/binutils.pot: Regenerate.
310 2020-01-18 Nick Clifton <nickc@redhat.com>
312 Binutils 2.34 branch created.
314 2020-01-17 Thomas Troeger <tstroege@gmx.de>
316 * objdump.c (jump_info_visualize_address): Discard jumps that are
318 (disassemble_bytes): Only compute the maximum level if jumps were
321 2020-01-13 Nick Clifton <nickc@redhat.com>
323 * objdump.c (disassemble_bytes): Remove C99-ism.
324 * testsuite/binutils-all/debuginfod.exp: New tests.
326 2020-01-13 Thomas Troeger <tstroege@gmx.de>
328 * objdump.c (visualize_jumps, color_output, extended_color_output)
329 (detected_jumps): New variables.
330 (usage): Add the new jump visualization options.
331 (option_values): Add new option value.
332 (long_options): Add the new option.
333 (jump_info_new, jump_info_free): New functions.
334 (jump_info_min_address, jump_info_max_address): Likewise.
335 (jump_info_end_address, jump_info_is_start_address): Likewise.
336 (jump_info_is_end_address, jump_info_size): Likewise.
337 (jump_info_unlink, jump_info_insert): Likewise.
338 (jump_info_add_front, jump_info_move_linked): Likewise.
339 (jump_info_intersect, jump_info_merge): Likewise.
340 (jump_info_sort, jump_info_visualize_address): Likewise.
341 (disassemble_jumps): New function - used to locate jumps.
342 (disassemble_bytes): Add ascii art generation.
343 (disassemble_section): Add scan to locate jumps.
344 (main): Parse the new visualization option.
345 * doc/binutils.texi: Document the new feature.
346 * NEWS: Mention the new feature.
348 2020-01-13 Alan Modra <amodra@gmail.com>
352 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
353 fde_fc col_type and col_offset.
354 * readelf.c (apply_relocations): Move symsec check earlier.
355 (free_debug_section): Free reloc_info.
356 (process_notes_at): Free pnotes on error path.
357 (process_object): Free dump_sects here..
358 (process_archive): ..not here.
360 2020-01-13 Alan Modra <amodra@gmail.com>
363 * nm.c (display_rel_file): Free dyn_syms.
365 2020-01-09 Nick Clifton <nickc@redhat.com>
368 * objcopy.c (empty_name): New variable.
369 (need_sym_before): Prevent an attempt to free a static variable.
370 (filter_symbols): Avoid strcmp test by checking for pointer
373 2020-01-09 Nick Clifton <nickc@redhat.com>
375 * po/zh_TW.po: Updated Traditional Chinese translation.
377 2020-01-09 Aaron Merey <amerey@redhat.com>
379 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
380 * Makefile.in: Regenerate.
382 * config.in: Regenerate.
383 * configure: Regenerate.
384 * configure.ac: Call AC_DEBUGINFOD.
385 * doc/Makefile.in: Regenerate.
386 * doc/binutils.texi: Add section on using binutils
388 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
389 Query debuginfod servers for the target debug file.
390 (load_separate_debug_info): Call
391 debuginfod_fetch_separate_debug_info if configured with
393 (load_separate_debug_files): Add file argument to
394 load_separate_debug_info calls.
395 * dwarf.h (get_build_id): Add declaration.
396 * objdump.c (get_build_id): New function. Get build-id of file.
397 * readelf.c (get_build_id): Likewise.
398 * testsuite/binutils-all/debuginfod.exp: New tests.
399 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
402 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
404 * readelf.c: Add support for new Z*) relocations and machine
407 2020-01-01 Alan Modra <amodra@gmail.com>
409 Update year range in copyright notice of all files.
411 For older changes see ChangeLog-2019
413 Copyright (C) 2020 Free Software Foundation, Inc.
415 Copying and distribution of this file, with or without modification,
416 are permitted in any medium without royalty provided the copyright
417 notice and this notice are preserved.
423 version-control: never