1 2020-03-16 Alan Modra <amodra@gmail.com>
3 * readelf.c (get_symbols): New function.
4 (process_relocs, ia64_process_unwind, hppa_process_unwind),
5 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
7 2020-03-16 Alan Modra <amodra@gmail.com>
9 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
10 Detect shift overflows and check that terminating byte is found.
11 Print an error on a bad uleb128.
13 2020-03-14 Alan Modra <amodra@gmail.com>
15 * readelf.c (process_file): Clean ba_cache.
17 2020-03-14 Alan Modra <amodra@gmail.com>
19 * elfcomm.h (setup_archive): Update prototype.
20 * elfcomm.c (setup_archive): Add file_size parameter and sanity
22 (setup_nested_archive): Get file size and pass to setup_archive.
23 * elfedit.c (process_archive): Likewise.
24 * readelf.c (process_archive): Pass filedata->file_size to
27 2020-03-14 Alan Modra <amodra@gmail.com>
29 * readelf.c (dump_section_as_strings): Free memory on error exit.
30 (dump_section_as_bytes, process_notes_at): Likewise.
31 (get_build_id): Free enote.
33 2020-03-13 Kamil Rytarowski <n54@gmx.com>
35 * readelf.c (get_netbsd_elfcore_note_type): Add support for
36 NT_NETBSDCORE_LWPSTATUS notes.
38 2020-03-13 Alan Modra <amodra@gmail.com>
40 * elfcomm.c (get_archive_member_name): Always return malloc'd
42 * elfedit.c (process_archive): Tidy memory on all return paths.
43 * readelf.c (process_archive): Likewise.
44 (process_symbol_table): Likewise.
45 (ba_cache): New, replacing ..
46 (get_symbol_for_build_attribute): ..static vars here. Free
47 strtab and symtab before loading new ones. Reject symtab without
48 valid strtab in loop, breaking out of loop on valid symtab.
49 (process_file): Free ba_cache symtab and strtab here, resetting
52 2020-03-12 Alan Modra <amodra@gmail.com>
54 * readelf.c (process_section_headers): Don't just set
55 filedata->section_headers NULL, free it first. Similarly for
56 dynamic_symbols, dynamic_strings, dynamic_syminfo and
57 symtab_shndx_list. Zero associated counts too.
58 (process_object): Free symtab_shndx_list.
59 (process_file): Free various allocated filedata tables.
61 2020-03-11 Nick Clifton <nickc@redhat.com>
65 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
66 li_segment_size fields.
67 * dwarf.c (read_debug_line_header): Record the address size and
68 segment selector size values (if present) in the lineinfo
70 (display_formatted_table): Warn if the format count is empty but
71 the table itself is not empty.
72 Display the format count and entry count at the start of the table
74 (display_debug_lines_raw): Display the address size and segement
75 selector size fields, if present.
76 * testsuite/binutils-all/dw5.W: Update expected output.
78 2020-03-11 Alan Modra <amodra@gmail.com>
81 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
82 pad_to_set on second block of code dealing with padding.
83 Replace "c" with "num_sec" and don't recalculate number of
84 sections on second block. Size arrays using sizeof (element)
85 rather than sizeof (element type).
87 2020-03-10 Alan Modra <amodra@gmail.com>
89 * objdump.c (disassemble_section): Don't call qsort unless
90 sym count is at least two.
91 (disassemble_data): Don't call memcpy with NULL src.
93 2020-03-09 Alan Modra <amodra@gmail.com>
96 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
97 to get_data rather than multiplying.
98 (dump_ia64_vms_dynamic_relocs): Likewise.
99 (process_version_sections): Correct order of size and nmemb args
101 (process_mips_specific): Likewise.
103 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
105 * readelf.c (get_dynamic_data): Replace "memory chekers" with
106 "memory checkers" in comments.
108 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
111 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
112 * doc/Makefile.in: Re-generate.
114 2020-03-06 Nick Clifton <nickc@redhat.com>
116 * objcopy.c (check_new_section_flags): New function. Reject the
117 SEC_COFF_SHARED flag if the target is not a COFF binary.
118 (copy_object): Call check_new_section_flags.
119 (setup_section): Likewise.
120 * doc/binutils.texi (objcopy): Add a note that the 'share' section
121 flag cannot be applied to ELF binaries.
123 2020-03-06 Alan Modra <amodra@gmail.com>
126 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
128 2020-03-05 Alan Modra <amodra@gmail.com>
131 * objcopy.c (filter_symbols): Don't segfault on NULL
132 prefix_symbols_string.
134 2020-03-04 Christian Eggers <ceggers@gmx.de>
136 * objcopy.c (copy_object): Convert from bytes to octets for
137 --gap-fill and --pad-to.
139 2020-03-03 Nick Clifton <nickc@redhat.com>
142 * prdbg.c (pr_tag_type): Remove call to abort.
144 2020-03-02 Aaron Merey <amerey@redhat.com>
146 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
149 2020-03-02 Nick Clifton <nickc@redhat.com>
152 * readelf.c (dump_section_as_strings): Display new-line characters
153 as \n and then insert a line break.
154 * testsuite/binutils-all/pr25543.s: New test.
155 * testsuite/binutils-all/pr25543.d: Test driver.
156 * testsuite/binutils-all/readelf.exp: Run the new test.
158 2020-02-27 Nick Clifton <nickc@redhat.com>
161 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
162 get_data is unable to load the string table.
164 2020-02-26 Alan Modra <amodra@gmail.com>
166 * elfedit.c: Indent labels correctly.
167 * readelf.c: Likewise.
168 * resres.c: Likewise.
170 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
173 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
174 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
176 2020-02-24 Nick Clifton <nickc@redhat.com>
179 * doc/binutils.texi (objdump): Fix typo in description of
182 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
184 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
187 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
189 * objdump.c (show_line): call bfd_demangle when using do_demangle.
191 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
193 * configure: Regenerate.
195 2020-02-10 Fangrui Song <maskray@google.com>
197 * objcopy.c (parse_flags): Handle "exclude".
198 * doc/binutils.texi: Document the support.
200 2020-02-10 Aaron Merey <amerey@redhat.com>
202 * binutils/testsuite/binutils-all/debuginfod.exp:
203 Replace set ::env with setenv.
204 Start server before setting environment variable.
205 Specify tmpdir as the location of the server's
207 Check additional server metrics at start-up.
209 2020-02-07 Nick Clifton <nickc@redhat.com>
211 * README-how-to-make-a-release: Add note about updating the
212 GAS/NEWS URL in the next release.
214 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
217 * readelf.c (get_machine_flags): Add support for Z80N machine
220 2020-02-07 Nick Clifton <nickc@redhat.com>
222 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
223 of the truncated file name.
225 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
227 * objdump.c (print_jump_visualisation): New function.
228 (disassemble_bytes): Call new function.
230 2020-02-06 Alan Modra <amodra@gmail.com>
232 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
234 (supports_gnu_osabi): New procedure.
235 (is_generic): New, from ld-lib.exp.
236 (supports_gnu_unique): Use the above.
238 2020-02-04 Alan Modra <amodra@gmail.com>
240 * Makefile.am (CFILES): Add od-elf32_avr.c.
241 * Makefile.in: Regenerate.
242 * po/POTFILES.in: Regenerate.
244 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
246 * readelf.c (dump_relocations, dump_relocations)
247 (decode_arm_unwind_bytecode, process_dynamic_section)
248 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
251 2020-02-03 Sergei Trofimovich <siarheit@google.com>
253 * coffdump.c (program_name): Drop redundant definition.
254 * srconv.c (program_name): Likewise
255 * sysdump.c (program_name): Likewise
257 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
260 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
261 same file with different section pointers.
263 2020-02-01 Nick Clifton <nickc@redhat.com>
265 * README-how-to-make-a-release: Update with more details on the
266 release making process.
268 2020-01-31 Nick Clifton <nickc@redhat.com>
270 * po/sv.po: Updated Swedish translation.
272 2020-01-28 Nick Clifton <nickc@redhat.com>
274 * readelf.c (get_build_id): Simplify warning message about corrupt
275 notes encountered whilst scanning for the build-id.
277 2020-01-27 Roland McGrath <mcgrathr@google.com>
279 * objcopy.c (compare_gnu_build_notes): Fix comparison results
280 for overlapping ranges so that (A == B) == (B == A) holds.
282 2020-01-27 Alan Modra <amodra@gmail.com>
284 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
285 case statement with switch statement.
287 2020-01-24 Nick Clifton <nickc@redhat.com>
289 * readelf.c (get_build_id): Fix warning messages about corrupt
292 2020-01-23 Nick Clifton <nickc@redhat.com>
294 * po/fr.po: Updated French translation.
296 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
299 * readelf.c (get_alpha_symbol_other): Fix error message typo.
301 2020-01-20 Nick Clifton <nickc@redhat.com>
303 * po/pt.po: Updated Portuguese translation.
304 * po/uk.po: Updated Ukranian translation.
306 2020-01-18 Nick Clifton <nickc@redhat.com>
308 * README-how-to-make-a-release: Update notes on how to cut a
309 branch for a release.
311 2020-01-18 Nick Clifton <nickc@redhat.com>
313 * configure: Regenerate.
314 * po/binutils.pot: Regenerate.
316 2020-01-18 Nick Clifton <nickc@redhat.com>
318 Binutils 2.34 branch created.
320 2020-01-17 Thomas Troeger <tstroege@gmx.de>
322 * objdump.c (jump_info_visualize_address): Discard jumps that are
324 (disassemble_bytes): Only compute the maximum level if jumps were
327 2020-01-13 Nick Clifton <nickc@redhat.com>
329 * objdump.c (disassemble_bytes): Remove C99-ism.
330 * testsuite/binutils-all/debuginfod.exp: New tests.
332 2020-01-13 Thomas Troeger <tstroege@gmx.de>
334 * objdump.c (visualize_jumps, color_output, extended_color_output)
335 (detected_jumps): New variables.
336 (usage): Add the new jump visualization options.
337 (option_values): Add new option value.
338 (long_options): Add the new option.
339 (jump_info_new, jump_info_free): New functions.
340 (jump_info_min_address, jump_info_max_address): Likewise.
341 (jump_info_end_address, jump_info_is_start_address): Likewise.
342 (jump_info_is_end_address, jump_info_size): Likewise.
343 (jump_info_unlink, jump_info_insert): Likewise.
344 (jump_info_add_front, jump_info_move_linked): Likewise.
345 (jump_info_intersect, jump_info_merge): Likewise.
346 (jump_info_sort, jump_info_visualize_address): Likewise.
347 (disassemble_jumps): New function - used to locate jumps.
348 (disassemble_bytes): Add ascii art generation.
349 (disassemble_section): Add scan to locate jumps.
350 (main): Parse the new visualization option.
351 * doc/binutils.texi: Document the new feature.
352 * NEWS: Mention the new feature.
354 2020-01-13 Alan Modra <amodra@gmail.com>
358 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
359 fde_fc col_type and col_offset.
360 * readelf.c (apply_relocations): Move symsec check earlier.
361 (free_debug_section): Free reloc_info.
362 (process_notes_at): Free pnotes on error path.
363 (process_object): Free dump_sects here..
364 (process_archive): ..not here.
366 2020-01-13 Alan Modra <amodra@gmail.com>
369 * nm.c (display_rel_file): Free dyn_syms.
371 2020-01-09 Nick Clifton <nickc@redhat.com>
374 * objcopy.c (empty_name): New variable.
375 (need_sym_before): Prevent an attempt to free a static variable.
376 (filter_symbols): Avoid strcmp test by checking for pointer
379 2020-01-09 Nick Clifton <nickc@redhat.com>
381 * po/zh_TW.po: Updated Traditional Chinese translation.
383 2020-01-09 Aaron Merey <amerey@redhat.com>
385 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
386 * Makefile.in: Regenerate.
388 * config.in: Regenerate.
389 * configure: Regenerate.
390 * configure.ac: Call AC_DEBUGINFOD.
391 * doc/Makefile.in: Regenerate.
392 * doc/binutils.texi: Add section on using binutils
394 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
395 Query debuginfod servers for the target debug file.
396 (load_separate_debug_info): Call
397 debuginfod_fetch_separate_debug_info if configured with
399 (load_separate_debug_files): Add file argument to
400 load_separate_debug_info calls.
401 * dwarf.h (get_build_id): Add declaration.
402 * objdump.c (get_build_id): New function. Get build-id of file.
403 * readelf.c (get_build_id): Likewise.
404 * testsuite/binutils-all/debuginfod.exp: New tests.
405 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
408 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
410 * readelf.c: Add support for new Z*) relocations and machine
413 2020-01-01 Alan Modra <amodra@gmail.com>
415 Update year range in copyright notice of all files.
417 For older changes see ChangeLog-2019
419 Copyright (C) 2020 Free Software Foundation, Inc.
421 Copying and distribution of this file, with or without modification,
422 are permitted in any medium without royalty provided the copyright
423 notice and this notice are preserved.
429 version-control: never