1 2020-03-14 Alan Modra <amodra@gmail.com>
3 * elfcomm.h (setup_archive): Update prototype.
4 * elfcomm.c (setup_archive): Add file_size parameter and sanity
6 (setup_nested_archive): Get file size and pass to setup_archive.
7 * elfedit.c (process_archive): Likewise.
8 * readelf.c (process_archive): Pass filedata->file_size to
11 2020-03-14 Alan Modra <amodra@gmail.com>
13 * readelf.c (dump_section_as_strings): Free memory on error exit.
14 (dump_section_as_bytes, process_notes_at): Likewise.
15 (get_build_id): Free enote.
17 2020-03-13 Kamil Rytarowski <n54@gmx.com>
19 * readelf.c (get_netbsd_elfcore_note_type): Add support for
20 NT_NETBSDCORE_LWPSTATUS notes.
22 2020-03-13 Alan Modra <amodra@gmail.com>
24 * elfcomm.c (get_archive_member_name): Always return malloc'd
26 * elfedit.c (process_archive): Tidy memory on all return paths.
27 * readelf.c (process_archive): Likewise.
28 (process_symbol_table): Likewise.
29 (ba_cache): New, replacing ..
30 (get_symbol_for_build_attribute): ..static vars here. Free
31 strtab and symtab before loading new ones. Reject symtab without
32 valid strtab in loop, breaking out of loop on valid symtab.
33 (process_file): Free ba_cache symtab and strtab here, resetting
36 2020-03-12 Alan Modra <amodra@gmail.com>
38 * readelf.c (process_section_headers): Don't just set
39 filedata->section_headers NULL, free it first. Similarly for
40 dynamic_symbols, dynamic_strings, dynamic_syminfo and
41 symtab_shndx_list. Zero associated counts too.
42 (process_object): Free symtab_shndx_list.
43 (process_file): Free various allocated filedata tables.
45 2020-03-11 Nick Clifton <nickc@redhat.com>
49 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
50 li_segment_size fields.
51 * dwarf.c (read_debug_line_header): Record the address size and
52 segment selector size values (if present) in the lineinfo
54 (display_formatted_table): Warn if the format count is empty but
55 the table itself is not empty.
56 Display the format count and entry count at the start of the table
58 (display_debug_lines_raw): Display the address size and segement
59 selector size fields, if present.
60 * testsuite/binutils-all/dw5.W: Update expected output.
62 2020-03-11 Alan Modra <amodra@gmail.com>
65 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
66 pad_to_set on second block of code dealing with padding.
67 Replace "c" with "num_sec" and don't recalculate number of
68 sections on second block. Size arrays using sizeof (element)
69 rather than sizeof (element type).
71 2020-03-10 Alan Modra <amodra@gmail.com>
73 * objdump.c (disassemble_section): Don't call qsort unless
74 sym count is at least two.
75 (disassemble_data): Don't call memcpy with NULL src.
77 2020-03-09 Alan Modra <amodra@gmail.com>
80 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
81 to get_data rather than multiplying.
82 (dump_ia64_vms_dynamic_relocs): Likewise.
83 (process_version_sections): Correct order of size and nmemb args
85 (process_mips_specific): Likewise.
87 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
89 * readelf.c (get_dynamic_data): Replace "memory chekers" with
90 "memory checkers" in comments.
92 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
95 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
96 * doc/Makefile.in: Re-generate.
98 2020-03-06 Nick Clifton <nickc@redhat.com>
100 * objcopy.c (check_new_section_flags): New function. Reject the
101 SEC_COFF_SHARED flag if the target is not a COFF binary.
102 (copy_object): Call check_new_section_flags.
103 (setup_section): Likewise.
104 * doc/binutils.texi (objcopy): Add a note that the 'share' section
105 flag cannot be applied to ELF binaries.
107 2020-03-06 Alan Modra <amodra@gmail.com>
110 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
112 2020-03-05 Alan Modra <amodra@gmail.com>
115 * objcopy.c (filter_symbols): Don't segfault on NULL
116 prefix_symbols_string.
118 2020-03-04 Christian Eggers <ceggers@gmx.de>
120 * objcopy.c (copy_object): Convert from bytes to octets for
121 --gap-fill and --pad-to.
123 2020-03-03 Nick Clifton <nickc@redhat.com>
126 * prdbg.c (pr_tag_type): Remove call to abort.
128 2020-03-02 Aaron Merey <amerey@redhat.com>
130 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
133 2020-03-02 Nick Clifton <nickc@redhat.com>
136 * readelf.c (dump_section_as_strings): Display new-line characters
137 as \n and then insert a line break.
138 * testsuite/binutils-all/pr25543.s: New test.
139 * testsuite/binutils-all/pr25543.d: Test driver.
140 * testsuite/binutils-all/readelf.exp: Run the new test.
142 2020-02-27 Nick Clifton <nickc@redhat.com>
145 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
146 get_data is unable to load the string table.
148 2020-02-26 Alan Modra <amodra@gmail.com>
150 * elfedit.c: Indent labels correctly.
151 * readelf.c: Likewise.
152 * resres.c: Likewise.
154 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
157 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
158 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
160 2020-02-24 Nick Clifton <nickc@redhat.com>
163 * doc/binutils.texi (objdump): Fix typo in description of
166 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
168 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
171 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
173 * objdump.c (show_line): call bfd_demangle when using do_demangle.
175 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
177 * configure: Regenerate.
179 2020-02-10 Fangrui Song <maskray@google.com>
181 * objcopy.c (parse_flags): Handle "exclude".
182 * doc/binutils.texi: Document the support.
184 2020-02-10 Aaron Merey <amerey@redhat.com>
186 * binutils/testsuite/binutils-all/debuginfod.exp:
187 Replace set ::env with setenv.
188 Start server before setting environment variable.
189 Specify tmpdir as the location of the server's
191 Check additional server metrics at start-up.
193 2020-02-07 Nick Clifton <nickc@redhat.com>
195 * README-how-to-make-a-release: Add note about updating the
196 GAS/NEWS URL in the next release.
198 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
201 * readelf.c (get_machine_flags): Add support for Z80N machine
204 2020-02-07 Nick Clifton <nickc@redhat.com>
206 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
207 of the truncated file name.
209 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
211 * objdump.c (print_jump_visualisation): New function.
212 (disassemble_bytes): Call new function.
214 2020-02-06 Alan Modra <amodra@gmail.com>
216 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
218 (supports_gnu_osabi): New procedure.
219 (is_generic): New, from ld-lib.exp.
220 (supports_gnu_unique): Use the above.
222 2020-02-04 Alan Modra <amodra@gmail.com>
224 * Makefile.am (CFILES): Add od-elf32_avr.c.
225 * Makefile.in: Regenerate.
226 * po/POTFILES.in: Regenerate.
228 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
230 * readelf.c (dump_relocations, dump_relocations)
231 (decode_arm_unwind_bytecode, process_dynamic_section)
232 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
235 2020-02-03 Sergei Trofimovich <siarheit@google.com>
237 * coffdump.c (program_name): Drop redundant definition.
238 * srconv.c (program_name): Likewise
239 * sysdump.c (program_name): Likewise
241 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
244 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
245 same file with different section pointers.
247 2020-02-01 Nick Clifton <nickc@redhat.com>
249 * README-how-to-make-a-release: Update with more details on the
250 release making process.
252 2020-01-31 Nick Clifton <nickc@redhat.com>
254 * po/sv.po: Updated Swedish translation.
256 2020-01-28 Nick Clifton <nickc@redhat.com>
258 * readelf.c (get_build_id): Simplify warning message about corrupt
259 notes encountered whilst scanning for the build-id.
261 2020-01-27 Roland McGrath <mcgrathr@google.com>
263 * objcopy.c (compare_gnu_build_notes): Fix comparison results
264 for overlapping ranges so that (A == B) == (B == A) holds.
266 2020-01-27 Alan Modra <amodra@gmail.com>
268 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
269 case statement with switch statement.
271 2020-01-24 Nick Clifton <nickc@redhat.com>
273 * readelf.c (get_build_id): Fix warning messages about corrupt
276 2020-01-23 Nick Clifton <nickc@redhat.com>
278 * po/fr.po: Updated French translation.
280 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
283 * readelf.c (get_alpha_symbol_other): Fix error message typo.
285 2020-01-20 Nick Clifton <nickc@redhat.com>
287 * po/pt.po: Updated Portuguese translation.
288 * po/uk.po: Updated Ukranian translation.
290 2020-01-18 Nick Clifton <nickc@redhat.com>
292 * README-how-to-make-a-release: Update notes on how to cut a
293 branch for a release.
295 2020-01-18 Nick Clifton <nickc@redhat.com>
297 * configure: Regenerate.
298 * po/binutils.pot: Regenerate.
300 2020-01-18 Nick Clifton <nickc@redhat.com>
302 Binutils 2.34 branch created.
304 2020-01-17 Thomas Troeger <tstroege@gmx.de>
306 * objdump.c (jump_info_visualize_address): Discard jumps that are
308 (disassemble_bytes): Only compute the maximum level if jumps were
311 2020-01-13 Nick Clifton <nickc@redhat.com>
313 * objdump.c (disassemble_bytes): Remove C99-ism.
314 * testsuite/binutils-all/debuginfod.exp: New tests.
316 2020-01-13 Thomas Troeger <tstroege@gmx.de>
318 * objdump.c (visualize_jumps, color_output, extended_color_output)
319 (detected_jumps): New variables.
320 (usage): Add the new jump visualization options.
321 (option_values): Add new option value.
322 (long_options): Add the new option.
323 (jump_info_new, jump_info_free): New functions.
324 (jump_info_min_address, jump_info_max_address): Likewise.
325 (jump_info_end_address, jump_info_is_start_address): Likewise.
326 (jump_info_is_end_address, jump_info_size): Likewise.
327 (jump_info_unlink, jump_info_insert): Likewise.
328 (jump_info_add_front, jump_info_move_linked): Likewise.
329 (jump_info_intersect, jump_info_merge): Likewise.
330 (jump_info_sort, jump_info_visualize_address): Likewise.
331 (disassemble_jumps): New function - used to locate jumps.
332 (disassemble_bytes): Add ascii art generation.
333 (disassemble_section): Add scan to locate jumps.
334 (main): Parse the new visualization option.
335 * doc/binutils.texi: Document the new feature.
336 * NEWS: Mention the new feature.
338 2020-01-13 Alan Modra <amodra@gmail.com>
342 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
343 fde_fc col_type and col_offset.
344 * readelf.c (apply_relocations): Move symsec check earlier.
345 (free_debug_section): Free reloc_info.
346 (process_notes_at): Free pnotes on error path.
347 (process_object): Free dump_sects here..
348 (process_archive): ..not here.
350 2020-01-13 Alan Modra <amodra@gmail.com>
353 * nm.c (display_rel_file): Free dyn_syms.
355 2020-01-09 Nick Clifton <nickc@redhat.com>
358 * objcopy.c (empty_name): New variable.
359 (need_sym_before): Prevent an attempt to free a static variable.
360 (filter_symbols): Avoid strcmp test by checking for pointer
363 2020-01-09 Nick Clifton <nickc@redhat.com>
365 * po/zh_TW.po: Updated Traditional Chinese translation.
367 2020-01-09 Aaron Merey <amerey@redhat.com>
369 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
370 * Makefile.in: Regenerate.
372 * config.in: Regenerate.
373 * configure: Regenerate.
374 * configure.ac: Call AC_DEBUGINFOD.
375 * doc/Makefile.in: Regenerate.
376 * doc/binutils.texi: Add section on using binutils
378 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
379 Query debuginfod servers for the target debug file.
380 (load_separate_debug_info): Call
381 debuginfod_fetch_separate_debug_info if configured with
383 (load_separate_debug_files): Add file argument to
384 load_separate_debug_info calls.
385 * dwarf.h (get_build_id): Add declaration.
386 * objdump.c (get_build_id): New function. Get build-id of file.
387 * readelf.c (get_build_id): Likewise.
388 * testsuite/binutils-all/debuginfod.exp: New tests.
389 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
392 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
394 * readelf.c: Add support for new Z*) relocations and machine
397 2020-01-01 Alan Modra <amodra@gmail.com>
399 Update year range in copyright notice of all files.
401 For older changes see ChangeLog-2019
403 Copyright (C) 2020 Free Software Foundation, Inc.
405 Copying and distribution of this file, with or without modification,
406 are permitted in any medium without royalty provided the copyright
407 notice and this notice are preserved.
413 version-control: never