1 2020-03-28 Alan Modra <amodra@gmail.com>
3 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
4 clear_xfail hppa*-*-*elf*. Revert mips xfails.
6 2020-03-28 Alan Modra <amodra@gmail.com>
8 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
9 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
10 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
11 test. Pass "-p" to objcopy for the executable test.
13 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
17 specify whether an object file or executable should be built and tested.
18 Change test names to report whether an object file or executable is
20 * testsuite/binutils-all/pr25662.ld: New test.
21 * testsuite/binutils-all/pr25662.s: New test.
23 2020-03-27 Alan Modra <amodra@gmail.com>
25 * readelf.c (process_archive): Don't double free qualified_name.
26 Don't break out of loop with "negative" archive_file_size, just
27 set file offset to max.
29 2020-03-25 Alan Modra <amodra@gmail.com>
31 * readelf.c (process_archive): Prevent endless loop.
33 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
36 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
37 with bfd_get_symbol_version_string.
38 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
39 * objdump.c (objdump_print_symname): Likewise.
41 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
44 * nm.c (SYM_NAME): Removed.
45 (print_symname): Add a pointer to struct extended_symbol_info
46 argument. Call _bfd_elf_get_symbol_version_name to get symbol
48 (print_symdef_entry): Pass NULL to print_symname.
49 (print_symbol_info_bsd): Update call to print_symname.
50 (print_symbol_info_sysv): Likewise.
51 (print_symbol_info_posix): Likewise.
53 2020-03-24 Alan Modra <amodra@gmail.com>
55 * readelf.c (process_mips_specific): Free iconf on error path.
57 2020-03-23 Nick Clifton <nickc@redhat.com>
60 * wrstabs.c (stab_pop_type): Replace assertion with error return.
61 * write_stabs_in_sections_debugging_info: Likewise.
62 * stab_enum_type: Likewise.
63 * stab_modify_type: Likewise.
64 * stab_struct_field: Likewise.
65 * stab_end_struct_type: Likewise.
66 * stab_start_class_type: Likewise.
67 * stab_class_static_member: Likewise.
68 * stab_class_baseclass: Likewise.
69 * stab_class_start_method: Likewise.
70 * stab_class_method_var: Likewise.
71 * stab_class_end_method: Likewise.
72 * stab_end_class_type: Likewise.
73 * stab_typedef_type: Likewise.
74 * stab_start_function: Likewise.
75 * stab_end_block: Likewise.
76 * stab_lineno: Likewise.
78 2020-03-20 Nick Clifton <nickc@redhat.com>
80 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
81 (process_section_headers): Check the return value from
82 get_compression_header.
83 (dump_section_as_strings): Likewise.
84 (dump_section_as_bytes): Likewise.
85 (load_specific_debug_section): Likewise.
87 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
89 * ar.c (main): Update bfd_plugin_set_program_name call.
90 * nm.c (main): Likewise.
92 2020-03-19 Nick Clifton <nickc@redhat.com>
95 * testsuite/binutils-all/dw4.s: New test source file.
96 * testsuite/binutils-all/nm.exp: Run the new test.
98 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
100 * readelf.c (process_symbol_table): Use unsigned long for si.
102 2020-03-19 Alan Modra <amodra@gmail.com>
104 * elfcomm.c: Don't include bfd.h or bucomm.h.
105 (program_name): Declare.
106 (process_archive_index_and_symbols): Replace bfd_boolean with int,
107 and substitute FALSE and TRUE.
108 (setup_archive, setup_nested_archive): Likewise.
109 * elfcomm.h: Likewise.
111 2020-03-19 Alan Modra <amodra@gmail.com>
113 * readelf.c (process_archive): Always return via path freeing
116 2020-03-19 Alan Modra <amodra@gmail.com>
118 * readelf.c (process_netbsd_elf_note): Validate descsz before
119 accessing descdata. Formatting.
121 2020-03-19 Alan Modra <amodra@gmail.com>
123 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
124 * elfcomm.h (setup_archive): Update prototype.
126 2020-03-16 Alan Modra <amodra@gmail.com>
128 * readelf.c (get_symbols): New function.
129 (process_relocs, ia64_process_unwind, hppa_process_unwind),
130 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
132 2020-03-16 Alan Modra <amodra@gmail.com>
134 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
135 Detect shift overflows and check that terminating byte is found.
136 Print an error on a bad uleb128.
138 2020-03-14 Alan Modra <amodra@gmail.com>
140 * readelf.c (process_file): Clean ba_cache.
142 2020-03-14 Alan Modra <amodra@gmail.com>
144 * elfcomm.h (setup_archive): Update prototype.
145 * elfcomm.c (setup_archive): Add file_size parameter and sanity
146 check longnames_size.
147 (setup_nested_archive): Get file size and pass to setup_archive.
148 * elfedit.c (process_archive): Likewise.
149 * readelf.c (process_archive): Pass filedata->file_size to
152 2020-03-14 Alan Modra <amodra@gmail.com>
154 * readelf.c (dump_section_as_strings): Free memory on error exit.
155 (dump_section_as_bytes, process_notes_at): Likewise.
156 (get_build_id): Free enote.
158 2020-03-13 Kamil Rytarowski <n54@gmx.com>
160 * readelf.c (get_netbsd_elfcore_note_type): Add support for
161 NT_NETBSDCORE_LWPSTATUS notes.
163 2020-03-13 Alan Modra <amodra@gmail.com>
165 * elfcomm.c (get_archive_member_name): Always return malloc'd
167 * elfedit.c (process_archive): Tidy memory on all return paths.
168 * readelf.c (process_archive): Likewise.
169 (process_symbol_table): Likewise.
170 (ba_cache): New, replacing ..
171 (get_symbol_for_build_attribute): ..static vars here. Free
172 strtab and symtab before loading new ones. Reject symtab without
173 valid strtab in loop, breaking out of loop on valid symtab.
174 (process_file): Free ba_cache symtab and strtab here, resetting
177 2020-03-12 Alan Modra <amodra@gmail.com>
179 * readelf.c (process_section_headers): Don't just set
180 filedata->section_headers NULL, free it first. Similarly for
181 dynamic_symbols, dynamic_strings, dynamic_syminfo and
182 symtab_shndx_list. Zero associated counts too.
183 (process_object): Free symtab_shndx_list.
184 (process_file): Free various allocated filedata tables.
186 2020-03-11 Nick Clifton <nickc@redhat.com>
190 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
191 li_segment_size fields.
192 * dwarf.c (read_debug_line_header): Record the address size and
193 segment selector size values (if present) in the lineinfo
195 (display_formatted_table): Warn if the format count is empty but
196 the table itself is not empty.
197 Display the format count and entry count at the start of the table
199 (display_debug_lines_raw): Display the address size and segement
200 selector size fields, if present.
201 * testsuite/binutils-all/dw5.W: Update expected output.
203 2020-03-11 Alan Modra <amodra@gmail.com>
206 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
207 pad_to_set on second block of code dealing with padding.
208 Replace "c" with "num_sec" and don't recalculate number of
209 sections on second block. Size arrays using sizeof (element)
210 rather than sizeof (element type).
212 2020-03-10 Alan Modra <amodra@gmail.com>
214 * objdump.c (disassemble_section): Don't call qsort unless
215 sym count is at least two.
216 (disassemble_data): Don't call memcpy with NULL src.
218 2020-03-09 Alan Modra <amodra@gmail.com>
221 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
222 to get_data rather than multiplying.
223 (dump_ia64_vms_dynamic_relocs): Likewise.
224 (process_version_sections): Correct order of size and nmemb args
226 (process_mips_specific): Likewise.
228 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
230 * readelf.c (get_dynamic_data): Replace "memory chekers" with
231 "memory checkers" in comments.
233 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
236 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
237 * doc/Makefile.in: Re-generate.
239 2020-03-06 Nick Clifton <nickc@redhat.com>
241 * objcopy.c (check_new_section_flags): New function. Reject the
242 SEC_COFF_SHARED flag if the target is not a COFF binary.
243 (copy_object): Call check_new_section_flags.
244 (setup_section): Likewise.
245 * doc/binutils.texi (objcopy): Add a note that the 'share' section
246 flag cannot be applied to ELF binaries.
248 2020-03-06 Alan Modra <amodra@gmail.com>
251 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
253 2020-03-05 Alan Modra <amodra@gmail.com>
256 * objcopy.c (filter_symbols): Don't segfault on NULL
257 prefix_symbols_string.
259 2020-03-04 Christian Eggers <ceggers@gmx.de>
261 * objcopy.c (copy_object): Convert from bytes to octets for
262 --gap-fill and --pad-to.
264 2020-03-03 Nick Clifton <nickc@redhat.com>
267 * prdbg.c (pr_tag_type): Remove call to abort.
269 2020-03-02 Aaron Merey <amerey@redhat.com>
271 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
274 2020-03-02 Nick Clifton <nickc@redhat.com>
277 * readelf.c (dump_section_as_strings): Display new-line characters
278 as \n and then insert a line break.
279 * testsuite/binutils-all/pr25543.s: New test.
280 * testsuite/binutils-all/pr25543.d: Test driver.
281 * testsuite/binutils-all/readelf.exp: Run the new test.
283 2020-02-27 Nick Clifton <nickc@redhat.com>
286 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
287 get_data is unable to load the string table.
289 2020-02-26 Alan Modra <amodra@gmail.com>
291 * elfedit.c: Indent labels correctly.
292 * readelf.c: Likewise.
293 * resres.c: Likewise.
295 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
298 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
299 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
301 2020-02-24 Nick Clifton <nickc@redhat.com>
304 * doc/binutils.texi (objdump): Fix typo in description of
307 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
309 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
312 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
314 * objdump.c (show_line): call bfd_demangle when using do_demangle.
316 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
318 * configure: Regenerate.
320 2020-02-10 Fangrui Song <maskray@google.com>
322 * objcopy.c (parse_flags): Handle "exclude".
323 * doc/binutils.texi: Document the support.
325 2020-02-10 Aaron Merey <amerey@redhat.com>
327 * binutils/testsuite/binutils-all/debuginfod.exp:
328 Replace set ::env with setenv.
329 Start server before setting environment variable.
330 Specify tmpdir as the location of the server's
332 Check additional server metrics at start-up.
334 2020-02-07 Nick Clifton <nickc@redhat.com>
336 * README-how-to-make-a-release: Add note about updating the
337 GAS/NEWS URL in the next release.
339 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
342 * readelf.c (get_machine_flags): Add support for Z80N machine
345 2020-02-07 Nick Clifton <nickc@redhat.com>
347 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
348 of the truncated file name.
350 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
352 * objdump.c (print_jump_visualisation): New function.
353 (disassemble_bytes): Call new function.
355 2020-02-06 Alan Modra <amodra@gmail.com>
357 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
359 (supports_gnu_osabi): New procedure.
360 (is_generic): New, from ld-lib.exp.
361 (supports_gnu_unique): Use the above.
363 2020-02-04 Alan Modra <amodra@gmail.com>
365 * Makefile.am (CFILES): Add od-elf32_avr.c.
366 * Makefile.in: Regenerate.
367 * po/POTFILES.in: Regenerate.
369 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
371 * readelf.c (dump_relocations, dump_relocations)
372 (decode_arm_unwind_bytecode, process_dynamic_section)
373 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
376 2020-02-03 Sergei Trofimovich <siarheit@google.com>
378 * coffdump.c (program_name): Drop redundant definition.
379 * srconv.c (program_name): Likewise
380 * sysdump.c (program_name): Likewise
382 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
385 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
386 same file with different section pointers.
388 2020-02-01 Nick Clifton <nickc@redhat.com>
390 * README-how-to-make-a-release: Update with more details on the
391 release making process.
393 2020-01-31 Nick Clifton <nickc@redhat.com>
395 * po/sv.po: Updated Swedish translation.
397 2020-01-28 Nick Clifton <nickc@redhat.com>
399 * readelf.c (get_build_id): Simplify warning message about corrupt
400 notes encountered whilst scanning for the build-id.
402 2020-01-27 Roland McGrath <mcgrathr@google.com>
404 * objcopy.c (compare_gnu_build_notes): Fix comparison results
405 for overlapping ranges so that (A == B) == (B == A) holds.
407 2020-01-27 Alan Modra <amodra@gmail.com>
409 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
410 case statement with switch statement.
412 2020-01-24 Nick Clifton <nickc@redhat.com>
414 * readelf.c (get_build_id): Fix warning messages about corrupt
417 2020-01-23 Nick Clifton <nickc@redhat.com>
419 * po/fr.po: Updated French translation.
421 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
424 * readelf.c (get_alpha_symbol_other): Fix error message typo.
426 2020-01-20 Nick Clifton <nickc@redhat.com>
428 * po/pt.po: Updated Portuguese translation.
429 * po/uk.po: Updated Ukranian translation.
431 2020-01-18 Nick Clifton <nickc@redhat.com>
433 * README-how-to-make-a-release: Update notes on how to cut a
434 branch for a release.
436 2020-01-18 Nick Clifton <nickc@redhat.com>
438 * configure: Regenerate.
439 * po/binutils.pot: Regenerate.
441 2020-01-18 Nick Clifton <nickc@redhat.com>
443 Binutils 2.34 branch created.
445 2020-01-17 Thomas Troeger <tstroege@gmx.de>
447 * objdump.c (jump_info_visualize_address): Discard jumps that are
449 (disassemble_bytes): Only compute the maximum level if jumps were
452 2020-01-13 Nick Clifton <nickc@redhat.com>
454 * objdump.c (disassemble_bytes): Remove C99-ism.
455 * testsuite/binutils-all/debuginfod.exp: New tests.
457 2020-01-13 Thomas Troeger <tstroege@gmx.de>
459 * objdump.c (visualize_jumps, color_output, extended_color_output)
460 (detected_jumps): New variables.
461 (usage): Add the new jump visualization options.
462 (option_values): Add new option value.
463 (long_options): Add the new option.
464 (jump_info_new, jump_info_free): New functions.
465 (jump_info_min_address, jump_info_max_address): Likewise.
466 (jump_info_end_address, jump_info_is_start_address): Likewise.
467 (jump_info_is_end_address, jump_info_size): Likewise.
468 (jump_info_unlink, jump_info_insert): Likewise.
469 (jump_info_add_front, jump_info_move_linked): Likewise.
470 (jump_info_intersect, jump_info_merge): Likewise.
471 (jump_info_sort, jump_info_visualize_address): Likewise.
472 (disassemble_jumps): New function - used to locate jumps.
473 (disassemble_bytes): Add ascii art generation.
474 (disassemble_section): Add scan to locate jumps.
475 (main): Parse the new visualization option.
476 * doc/binutils.texi: Document the new feature.
477 * NEWS: Mention the new feature.
479 2020-01-13 Alan Modra <amodra@gmail.com>
483 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
484 fde_fc col_type and col_offset.
485 * readelf.c (apply_relocations): Move symsec check earlier.
486 (free_debug_section): Free reloc_info.
487 (process_notes_at): Free pnotes on error path.
488 (process_object): Free dump_sects here..
489 (process_archive): ..not here.
491 2020-01-13 Alan Modra <amodra@gmail.com>
494 * nm.c (display_rel_file): Free dyn_syms.
496 2020-01-09 Nick Clifton <nickc@redhat.com>
499 * objcopy.c (empty_name): New variable.
500 (need_sym_before): Prevent an attempt to free a static variable.
501 (filter_symbols): Avoid strcmp test by checking for pointer
504 2020-01-09 Nick Clifton <nickc@redhat.com>
506 * po/zh_TW.po: Updated Traditional Chinese translation.
508 2020-01-09 Aaron Merey <amerey@redhat.com>
510 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
511 * Makefile.in: Regenerate.
513 * config.in: Regenerate.
514 * configure: Regenerate.
515 * configure.ac: Call AC_DEBUGINFOD.
516 * doc/Makefile.in: Regenerate.
517 * doc/binutils.texi: Add section on using binutils
519 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
520 Query debuginfod servers for the target debug file.
521 (load_separate_debug_info): Call
522 debuginfod_fetch_separate_debug_info if configured with
524 (load_separate_debug_files): Add file argument to
525 load_separate_debug_info calls.
526 * dwarf.h (get_build_id): Add declaration.
527 * objdump.c (get_build_id): New function. Get build-id of file.
528 * readelf.c (get_build_id): Likewise.
529 * testsuite/binutils-all/debuginfod.exp: New tests.
530 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
533 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
535 * readelf.c: Add support for new Z*) relocations and machine
538 2020-01-01 Alan Modra <amodra@gmail.com>
540 Update year range in copyright notice of all files.
542 For older changes see ChangeLog-2019
544 Copyright (C) 2020 Free Software Foundation, Inc.
546 Copying and distribution of this file, with or without modification,
547 are permitted in any medium without royalty provided the copyright
548 notice and this notice are preserved.
554 version-control: never