1 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
3 * readelf.c (process_symbol_table): Use unsigned long for si.
5 2020-03-19 Alan Modra <amodra@gmail.com>
7 * elfcomm.c: Don't include bfd.h or bucomm.h.
8 (program_name): Declare.
9 (process_archive_index_and_symbols): Replace bfd_boolean with int,
10 and substitute FALSE and TRUE.
11 (setup_archive, setup_nested_archive): Likewise.
12 * elfcomm.h: Likewise.
14 2020-03-19 Alan Modra <amodra@gmail.com>
16 * readelf.c (process_archive): Always return via path freeing
19 2020-03-19 Alan Modra <amodra@gmail.com>
21 * readelf.c (process_netbsd_elf_note): Validate descsz before
22 accessing descdata. Formatting.
24 2020-03-19 Alan Modra <amodra@gmail.com>
26 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
27 * elfcomm.h (setup_archive): Update prototype.
29 2020-03-16 Alan Modra <amodra@gmail.com>
31 * readelf.c (get_symbols): New function.
32 (process_relocs, ia64_process_unwind, hppa_process_unwind),
33 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
35 2020-03-16 Alan Modra <amodra@gmail.com>
37 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
38 Detect shift overflows and check that terminating byte is found.
39 Print an error on a bad uleb128.
41 2020-03-14 Alan Modra <amodra@gmail.com>
43 * readelf.c (process_file): Clean ba_cache.
45 2020-03-14 Alan Modra <amodra@gmail.com>
47 * elfcomm.h (setup_archive): Update prototype.
48 * elfcomm.c (setup_archive): Add file_size parameter and sanity
50 (setup_nested_archive): Get file size and pass to setup_archive.
51 * elfedit.c (process_archive): Likewise.
52 * readelf.c (process_archive): Pass filedata->file_size to
55 2020-03-14 Alan Modra <amodra@gmail.com>
57 * readelf.c (dump_section_as_strings): Free memory on error exit.
58 (dump_section_as_bytes, process_notes_at): Likewise.
59 (get_build_id): Free enote.
61 2020-03-13 Kamil Rytarowski <n54@gmx.com>
63 * readelf.c (get_netbsd_elfcore_note_type): Add support for
64 NT_NETBSDCORE_LWPSTATUS notes.
66 2020-03-13 Alan Modra <amodra@gmail.com>
68 * elfcomm.c (get_archive_member_name): Always return malloc'd
70 * elfedit.c (process_archive): Tidy memory on all return paths.
71 * readelf.c (process_archive): Likewise.
72 (process_symbol_table): Likewise.
73 (ba_cache): New, replacing ..
74 (get_symbol_for_build_attribute): ..static vars here. Free
75 strtab and symtab before loading new ones. Reject symtab without
76 valid strtab in loop, breaking out of loop on valid symtab.
77 (process_file): Free ba_cache symtab and strtab here, resetting
80 2020-03-12 Alan Modra <amodra@gmail.com>
82 * readelf.c (process_section_headers): Don't just set
83 filedata->section_headers NULL, free it first. Similarly for
84 dynamic_symbols, dynamic_strings, dynamic_syminfo and
85 symtab_shndx_list. Zero associated counts too.
86 (process_object): Free symtab_shndx_list.
87 (process_file): Free various allocated filedata tables.
89 2020-03-11 Nick Clifton <nickc@redhat.com>
93 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
94 li_segment_size fields.
95 * dwarf.c (read_debug_line_header): Record the address size and
96 segment selector size values (if present) in the lineinfo
98 (display_formatted_table): Warn if the format count is empty but
99 the table itself is not empty.
100 Display the format count and entry count at the start of the table
102 (display_debug_lines_raw): Display the address size and segement
103 selector size fields, if present.
104 * testsuite/binutils-all/dw5.W: Update expected output.
106 2020-03-11 Alan Modra <amodra@gmail.com>
109 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
110 pad_to_set on second block of code dealing with padding.
111 Replace "c" with "num_sec" and don't recalculate number of
112 sections on second block. Size arrays using sizeof (element)
113 rather than sizeof (element type).
115 2020-03-10 Alan Modra <amodra@gmail.com>
117 * objdump.c (disassemble_section): Don't call qsort unless
118 sym count is at least two.
119 (disassemble_data): Don't call memcpy with NULL src.
121 2020-03-09 Alan Modra <amodra@gmail.com>
124 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
125 to get_data rather than multiplying.
126 (dump_ia64_vms_dynamic_relocs): Likewise.
127 (process_version_sections): Correct order of size and nmemb args
129 (process_mips_specific): Likewise.
131 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
133 * readelf.c (get_dynamic_data): Replace "memory chekers" with
134 "memory checkers" in comments.
136 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
139 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
140 * doc/Makefile.in: Re-generate.
142 2020-03-06 Nick Clifton <nickc@redhat.com>
144 * objcopy.c (check_new_section_flags): New function. Reject the
145 SEC_COFF_SHARED flag if the target is not a COFF binary.
146 (copy_object): Call check_new_section_flags.
147 (setup_section): Likewise.
148 * doc/binutils.texi (objcopy): Add a note that the 'share' section
149 flag cannot be applied to ELF binaries.
151 2020-03-06 Alan Modra <amodra@gmail.com>
154 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
156 2020-03-05 Alan Modra <amodra@gmail.com>
159 * objcopy.c (filter_symbols): Don't segfault on NULL
160 prefix_symbols_string.
162 2020-03-04 Christian Eggers <ceggers@gmx.de>
164 * objcopy.c (copy_object): Convert from bytes to octets for
165 --gap-fill and --pad-to.
167 2020-03-03 Nick Clifton <nickc@redhat.com>
170 * prdbg.c (pr_tag_type): Remove call to abort.
172 2020-03-02 Aaron Merey <amerey@redhat.com>
174 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
177 2020-03-02 Nick Clifton <nickc@redhat.com>
180 * readelf.c (dump_section_as_strings): Display new-line characters
181 as \n and then insert a line break.
182 * testsuite/binutils-all/pr25543.s: New test.
183 * testsuite/binutils-all/pr25543.d: Test driver.
184 * testsuite/binutils-all/readelf.exp: Run the new test.
186 2020-02-27 Nick Clifton <nickc@redhat.com>
189 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
190 get_data is unable to load the string table.
192 2020-02-26 Alan Modra <amodra@gmail.com>
194 * elfedit.c: Indent labels correctly.
195 * readelf.c: Likewise.
196 * resres.c: Likewise.
198 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
201 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
202 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
204 2020-02-24 Nick Clifton <nickc@redhat.com>
207 * doc/binutils.texi (objdump): Fix typo in description of
210 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
212 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
215 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
217 * objdump.c (show_line): call bfd_demangle when using do_demangle.
219 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
221 * configure: Regenerate.
223 2020-02-10 Fangrui Song <maskray@google.com>
225 * objcopy.c (parse_flags): Handle "exclude".
226 * doc/binutils.texi: Document the support.
228 2020-02-10 Aaron Merey <amerey@redhat.com>
230 * binutils/testsuite/binutils-all/debuginfod.exp:
231 Replace set ::env with setenv.
232 Start server before setting environment variable.
233 Specify tmpdir as the location of the server's
235 Check additional server metrics at start-up.
237 2020-02-07 Nick Clifton <nickc@redhat.com>
239 * README-how-to-make-a-release: Add note about updating the
240 GAS/NEWS URL in the next release.
242 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
245 * readelf.c (get_machine_flags): Add support for Z80N machine
248 2020-02-07 Nick Clifton <nickc@redhat.com>
250 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
251 of the truncated file name.
253 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
255 * objdump.c (print_jump_visualisation): New function.
256 (disassemble_bytes): Call new function.
258 2020-02-06 Alan Modra <amodra@gmail.com>
260 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
262 (supports_gnu_osabi): New procedure.
263 (is_generic): New, from ld-lib.exp.
264 (supports_gnu_unique): Use the above.
266 2020-02-04 Alan Modra <amodra@gmail.com>
268 * Makefile.am (CFILES): Add od-elf32_avr.c.
269 * Makefile.in: Regenerate.
270 * po/POTFILES.in: Regenerate.
272 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
274 * readelf.c (dump_relocations, dump_relocations)
275 (decode_arm_unwind_bytecode, process_dynamic_section)
276 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
279 2020-02-03 Sergei Trofimovich <siarheit@google.com>
281 * coffdump.c (program_name): Drop redundant definition.
282 * srconv.c (program_name): Likewise
283 * sysdump.c (program_name): Likewise
285 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
288 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
289 same file with different section pointers.
291 2020-02-01 Nick Clifton <nickc@redhat.com>
293 * README-how-to-make-a-release: Update with more details on the
294 release making process.
296 2020-01-31 Nick Clifton <nickc@redhat.com>
298 * po/sv.po: Updated Swedish translation.
300 2020-01-28 Nick Clifton <nickc@redhat.com>
302 * readelf.c (get_build_id): Simplify warning message about corrupt
303 notes encountered whilst scanning for the build-id.
305 2020-01-27 Roland McGrath <mcgrathr@google.com>
307 * objcopy.c (compare_gnu_build_notes): Fix comparison results
308 for overlapping ranges so that (A == B) == (B == A) holds.
310 2020-01-27 Alan Modra <amodra@gmail.com>
312 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
313 case statement with switch statement.
315 2020-01-24 Nick Clifton <nickc@redhat.com>
317 * readelf.c (get_build_id): Fix warning messages about corrupt
320 2020-01-23 Nick Clifton <nickc@redhat.com>
322 * po/fr.po: Updated French translation.
324 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
327 * readelf.c (get_alpha_symbol_other): Fix error message typo.
329 2020-01-20 Nick Clifton <nickc@redhat.com>
331 * po/pt.po: Updated Portuguese translation.
332 * po/uk.po: Updated Ukranian translation.
334 2020-01-18 Nick Clifton <nickc@redhat.com>
336 * README-how-to-make-a-release: Update notes on how to cut a
337 branch for a release.
339 2020-01-18 Nick Clifton <nickc@redhat.com>
341 * configure: Regenerate.
342 * po/binutils.pot: Regenerate.
344 2020-01-18 Nick Clifton <nickc@redhat.com>
346 Binutils 2.34 branch created.
348 2020-01-17 Thomas Troeger <tstroege@gmx.de>
350 * objdump.c (jump_info_visualize_address): Discard jumps that are
352 (disassemble_bytes): Only compute the maximum level if jumps were
355 2020-01-13 Nick Clifton <nickc@redhat.com>
357 * objdump.c (disassemble_bytes): Remove C99-ism.
358 * testsuite/binutils-all/debuginfod.exp: New tests.
360 2020-01-13 Thomas Troeger <tstroege@gmx.de>
362 * objdump.c (visualize_jumps, color_output, extended_color_output)
363 (detected_jumps): New variables.
364 (usage): Add the new jump visualization options.
365 (option_values): Add new option value.
366 (long_options): Add the new option.
367 (jump_info_new, jump_info_free): New functions.
368 (jump_info_min_address, jump_info_max_address): Likewise.
369 (jump_info_end_address, jump_info_is_start_address): Likewise.
370 (jump_info_is_end_address, jump_info_size): Likewise.
371 (jump_info_unlink, jump_info_insert): Likewise.
372 (jump_info_add_front, jump_info_move_linked): Likewise.
373 (jump_info_intersect, jump_info_merge): Likewise.
374 (jump_info_sort, jump_info_visualize_address): Likewise.
375 (disassemble_jumps): New function - used to locate jumps.
376 (disassemble_bytes): Add ascii art generation.
377 (disassemble_section): Add scan to locate jumps.
378 (main): Parse the new visualization option.
379 * doc/binutils.texi: Document the new feature.
380 * NEWS: Mention the new feature.
382 2020-01-13 Alan Modra <amodra@gmail.com>
386 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
387 fde_fc col_type and col_offset.
388 * readelf.c (apply_relocations): Move symsec check earlier.
389 (free_debug_section): Free reloc_info.
390 (process_notes_at): Free pnotes on error path.
391 (process_object): Free dump_sects here..
392 (process_archive): ..not here.
394 2020-01-13 Alan Modra <amodra@gmail.com>
397 * nm.c (display_rel_file): Free dyn_syms.
399 2020-01-09 Nick Clifton <nickc@redhat.com>
402 * objcopy.c (empty_name): New variable.
403 (need_sym_before): Prevent an attempt to free a static variable.
404 (filter_symbols): Avoid strcmp test by checking for pointer
407 2020-01-09 Nick Clifton <nickc@redhat.com>
409 * po/zh_TW.po: Updated Traditional Chinese translation.
411 2020-01-09 Aaron Merey <amerey@redhat.com>
413 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
414 * Makefile.in: Regenerate.
416 * config.in: Regenerate.
417 * configure: Regenerate.
418 * configure.ac: Call AC_DEBUGINFOD.
419 * doc/Makefile.in: Regenerate.
420 * doc/binutils.texi: Add section on using binutils
422 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
423 Query debuginfod servers for the target debug file.
424 (load_separate_debug_info): Call
425 debuginfod_fetch_separate_debug_info if configured with
427 (load_separate_debug_files): Add file argument to
428 load_separate_debug_info calls.
429 * dwarf.h (get_build_id): Add declaration.
430 * objdump.c (get_build_id): New function. Get build-id of file.
431 * readelf.c (get_build_id): Likewise.
432 * testsuite/binutils-all/debuginfod.exp: New tests.
433 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
436 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
438 * readelf.c: Add support for new Z*) relocations and machine
441 2020-01-01 Alan Modra <amodra@gmail.com>
443 Update year range in copyright notice of all files.
445 For older changes see ChangeLog-2019
447 Copyright (C) 2020 Free Software Foundation, Inc.
449 Copying and distribution of this file, with or without modification,
450 are permitted in any medium without royalty provided the copyright
451 notice and this notice are preserved.
457 version-control: never