1 2020-03-13 Kamil Rytarowski <n54@gmx.com>
3 * readelf.c (get_netbsd_elfcore_note_type): Add support for
4 NT_NETBSDCORE_LWPSTATUS notes.
6 2020-03-13 Alan Modra <amodra@gmail.com>
8 * elfcomm.c (get_archive_member_name): Always return malloc'd
10 * elfedit.c (process_archive): Tidy memory on all return paths.
11 * readelf.c (process_archive): Likewise.
12 (process_symbol_table): Likewise.
13 (ba_cache): New, replacing ..
14 (get_symbol_for_build_attribute): ..static vars here. Free
15 strtab and symtab before loading new ones. Reject symtab without
16 valid strtab in loop, breaking out of loop on valid symtab.
17 (process_file): Free ba_cache symtab and strtab here, resetting
20 2020-03-12 Alan Modra <amodra@gmail.com>
22 * readelf.c (process_section_headers): Don't just set
23 filedata->section_headers NULL, free it first. Similarly for
24 dynamic_symbols, dynamic_strings, dynamic_syminfo and
25 symtab_shndx_list. Zero associated counts too.
26 (process_object): Free symtab_shndx_list.
27 (process_file): Free various allocated filedata tables.
29 2020-03-11 Nick Clifton <nickc@redhat.com>
33 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
34 li_segment_size fields.
35 * dwarf.c (read_debug_line_header): Record the address size and
36 segment selector size values (if present) in the lineinfo
38 (display_formatted_table): Warn if the format count is empty but
39 the table itself is not empty.
40 Display the format count and entry count at the start of the table
42 (display_debug_lines_raw): Display the address size and segement
43 selector size fields, if present.
44 * testsuite/binutils-all/dw5.W: Update expected output.
46 2020-03-11 Alan Modra <amodra@gmail.com>
49 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
50 pad_to_set on second block of code dealing with padding.
51 Replace "c" with "num_sec" and don't recalculate number of
52 sections on second block. Size arrays using sizeof (element)
53 rather than sizeof (element type).
55 2020-03-10 Alan Modra <amodra@gmail.com>
57 * objdump.c (disassemble_section): Don't call qsort unless
58 sym count is at least two.
59 (disassemble_data): Don't call memcpy with NULL src.
61 2020-03-09 Alan Modra <amodra@gmail.com>
64 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
65 to get_data rather than multiplying.
66 (dump_ia64_vms_dynamic_relocs): Likewise.
67 (process_version_sections): Correct order of size and nmemb args
69 (process_mips_specific): Likewise.
71 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
73 * readelf.c (get_dynamic_data): Replace "memory chekers" with
74 "memory checkers" in comments.
76 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
79 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
80 * doc/Makefile.in: Re-generate.
82 2020-03-06 Nick Clifton <nickc@redhat.com>
84 * objcopy.c (check_new_section_flags): New function. Reject the
85 SEC_COFF_SHARED flag if the target is not a COFF binary.
86 (copy_object): Call check_new_section_flags.
87 (setup_section): Likewise.
88 * doc/binutils.texi (objcopy): Add a note that the 'share' section
89 flag cannot be applied to ELF binaries.
91 2020-03-06 Alan Modra <amodra@gmail.com>
94 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
96 2020-03-05 Alan Modra <amodra@gmail.com>
99 * objcopy.c (filter_symbols): Don't segfault on NULL
100 prefix_symbols_string.
102 2020-03-04 Christian Eggers <ceggers@gmx.de>
104 * objcopy.c (copy_object): Convert from bytes to octets for
105 --gap-fill and --pad-to.
107 2020-03-03 Nick Clifton <nickc@redhat.com>
110 * prdbg.c (pr_tag_type): Remove call to abort.
112 2020-03-02 Aaron Merey <amerey@redhat.com>
114 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
117 2020-03-02 Nick Clifton <nickc@redhat.com>
120 * readelf.c (dump_section_as_strings): Display new-line characters
121 as \n and then insert a line break.
122 * testsuite/binutils-all/pr25543.s: New test.
123 * testsuite/binutils-all/pr25543.d: Test driver.
124 * testsuite/binutils-all/readelf.exp: Run the new test.
126 2020-02-27 Nick Clifton <nickc@redhat.com>
129 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
130 get_data is unable to load the string table.
132 2020-02-26 Alan Modra <amodra@gmail.com>
134 * elfedit.c: Indent labels correctly.
135 * readelf.c: Likewise.
136 * resres.c: Likewise.
138 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
141 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
142 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
144 2020-02-24 Nick Clifton <nickc@redhat.com>
147 * doc/binutils.texi (objdump): Fix typo in description of
150 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
152 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
155 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
157 * objdump.c (show_line): call bfd_demangle when using do_demangle.
159 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
161 * configure: Regenerate.
163 2020-02-10 Fangrui Song <maskray@google.com>
165 * objcopy.c (parse_flags): Handle "exclude".
166 * doc/binutils.texi: Document the support.
168 2020-02-10 Aaron Merey <amerey@redhat.com>
170 * binutils/testsuite/binutils-all/debuginfod.exp:
171 Replace set ::env with setenv.
172 Start server before setting environment variable.
173 Specify tmpdir as the location of the server's
175 Check additional server metrics at start-up.
177 2020-02-07 Nick Clifton <nickc@redhat.com>
179 * README-how-to-make-a-release: Add note about updating the
180 GAS/NEWS URL in the next release.
182 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
185 * readelf.c (get_machine_flags): Add support for Z80N machine
188 2020-02-07 Nick Clifton <nickc@redhat.com>
190 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
191 of the truncated file name.
193 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
195 * objdump.c (print_jump_visualisation): New function.
196 (disassemble_bytes): Call new function.
198 2020-02-06 Alan Modra <amodra@gmail.com>
200 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
202 (supports_gnu_osabi): New procedure.
203 (is_generic): New, from ld-lib.exp.
204 (supports_gnu_unique): Use the above.
206 2020-02-04 Alan Modra <amodra@gmail.com>
208 * Makefile.am (CFILES): Add od-elf32_avr.c.
209 * Makefile.in: Regenerate.
210 * po/POTFILES.in: Regenerate.
212 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
214 * readelf.c (dump_relocations, dump_relocations)
215 (decode_arm_unwind_bytecode, process_dynamic_section)
216 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
219 2020-02-03 Sergei Trofimovich <siarheit@google.com>
221 * coffdump.c (program_name): Drop redundant definition.
222 * srconv.c (program_name): Likewise
223 * sysdump.c (program_name): Likewise
225 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
228 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
229 same file with different section pointers.
231 2020-02-01 Nick Clifton <nickc@redhat.com>
233 * README-how-to-make-a-release: Update with more details on the
234 release making process.
236 2020-01-31 Nick Clifton <nickc@redhat.com>
238 * po/sv.po: Updated Swedish translation.
240 2020-01-28 Nick Clifton <nickc@redhat.com>
242 * readelf.c (get_build_id): Simplify warning message about corrupt
243 notes encountered whilst scanning for the build-id.
245 2020-01-27 Roland McGrath <mcgrathr@google.com>
247 * objcopy.c (compare_gnu_build_notes): Fix comparison results
248 for overlapping ranges so that (A == B) == (B == A) holds.
250 2020-01-27 Alan Modra <amodra@gmail.com>
252 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
253 case statement with switch statement.
255 2020-01-24 Nick Clifton <nickc@redhat.com>
257 * readelf.c (get_build_id): Fix warning messages about corrupt
260 2020-01-23 Nick Clifton <nickc@redhat.com>
262 * po/fr.po: Updated French translation.
264 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
267 * readelf.c (get_alpha_symbol_other): Fix error message typo.
269 2020-01-20 Nick Clifton <nickc@redhat.com>
271 * po/pt.po: Updated Portuguese translation.
272 * po/uk.po: Updated Ukranian translation.
274 2020-01-18 Nick Clifton <nickc@redhat.com>
276 * README-how-to-make-a-release: Update notes on how to cut a
277 branch for a release.
279 2020-01-18 Nick Clifton <nickc@redhat.com>
281 * configure: Regenerate.
282 * po/binutils.pot: Regenerate.
284 2020-01-18 Nick Clifton <nickc@redhat.com>
286 Binutils 2.34 branch created.
288 2020-01-17 Thomas Troeger <tstroege@gmx.de>
290 * objdump.c (jump_info_visualize_address): Discard jumps that are
292 (disassemble_bytes): Only compute the maximum level if jumps were
295 2020-01-13 Nick Clifton <nickc@redhat.com>
297 * objdump.c (disassemble_bytes): Remove C99-ism.
298 * testsuite/binutils-all/debuginfod.exp: New tests.
300 2020-01-13 Thomas Troeger <tstroege@gmx.de>
302 * objdump.c (visualize_jumps, color_output, extended_color_output)
303 (detected_jumps): New variables.
304 (usage): Add the new jump visualization options.
305 (option_values): Add new option value.
306 (long_options): Add the new option.
307 (jump_info_new, jump_info_free): New functions.
308 (jump_info_min_address, jump_info_max_address): Likewise.
309 (jump_info_end_address, jump_info_is_start_address): Likewise.
310 (jump_info_is_end_address, jump_info_size): Likewise.
311 (jump_info_unlink, jump_info_insert): Likewise.
312 (jump_info_add_front, jump_info_move_linked): Likewise.
313 (jump_info_intersect, jump_info_merge): Likewise.
314 (jump_info_sort, jump_info_visualize_address): Likewise.
315 (disassemble_jumps): New function - used to locate jumps.
316 (disassemble_bytes): Add ascii art generation.
317 (disassemble_section): Add scan to locate jumps.
318 (main): Parse the new visualization option.
319 * doc/binutils.texi: Document the new feature.
320 * NEWS: Mention the new feature.
322 2020-01-13 Alan Modra <amodra@gmail.com>
326 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
327 fde_fc col_type and col_offset.
328 * readelf.c (apply_relocations): Move symsec check earlier.
329 (free_debug_section): Free reloc_info.
330 (process_notes_at): Free pnotes on error path.
331 (process_object): Free dump_sects here..
332 (process_archive): ..not here.
334 2020-01-13 Alan Modra <amodra@gmail.com>
337 * nm.c (display_rel_file): Free dyn_syms.
339 2020-01-09 Nick Clifton <nickc@redhat.com>
342 * objcopy.c (empty_name): New variable.
343 (need_sym_before): Prevent an attempt to free a static variable.
344 (filter_symbols): Avoid strcmp test by checking for pointer
347 2020-01-09 Nick Clifton <nickc@redhat.com>
349 * po/zh_TW.po: Updated Traditional Chinese translation.
351 2020-01-09 Aaron Merey <amerey@redhat.com>
353 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
354 * Makefile.in: Regenerate.
356 * config.in: Regenerate.
357 * configure: Regenerate.
358 * configure.ac: Call AC_DEBUGINFOD.
359 * doc/Makefile.in: Regenerate.
360 * doc/binutils.texi: Add section on using binutils
362 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
363 Query debuginfod servers for the target debug file.
364 (load_separate_debug_info): Call
365 debuginfod_fetch_separate_debug_info if configured with
367 (load_separate_debug_files): Add file argument to
368 load_separate_debug_info calls.
369 * dwarf.h (get_build_id): Add declaration.
370 * objdump.c (get_build_id): New function. Get build-id of file.
371 * readelf.c (get_build_id): Likewise.
372 * testsuite/binutils-all/debuginfod.exp: New tests.
373 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
376 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
378 * readelf.c: Add support for new Z*) relocations and machine
381 2020-01-01 Alan Modra <amodra@gmail.com>
383 Update year range in copyright notice of all files.
385 For older changes see ChangeLog-2019
387 Copyright (C) 2020 Free Software Foundation, Inc.
389 Copying and distribution of this file, with or without modification,
390 are permitted in any medium without royalty provided the copyright
391 notice and this notice are preserved.
397 version-control: never