1 2020-04-20 Alan Modra <amodra@gmail.com>
3 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
4 on error without freeing.
5 (process_dynamic_section): Don't recreate dynamic symbols from
6 dynamic tag info when the dynamic symbols have already been
7 read via section headers.
9 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
11 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
12 conditional VDUP instructions are disassembled correctly.
13 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
15 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
16 that VDUP instructions (which are conditional in A32) can be
17 disassembled in thumb mode.
18 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
21 2020-04-17 Alan Modra <amodra@gmail.com>
24 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
26 2020-04-16 Alan Modra <amodra@gmail.com>
28 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
29 --no-addresses description.
31 2020-04-15 Alan Modra <amodra@gmail.com>
33 * objdump.c (no_addresses): New static var.
34 (usage): Print help for --no-addresses.
35 (long_options): Add --no-addresses entry.
36 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
37 (disassemble_bytes): Don't print current line address, or reloc
39 * doc/binutils.texi: Document objdump --no-addresses.
41 2020-04-15 Alan Modra <amodra@gmail.com>
44 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
45 reading buckets or chains fails.
47 2020-04-15 Alan Modra <amodra@gmail.com>
49 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
52 2020-04-15 Alan Modra <amodra@gmail.com>
54 * readelf.c (get_group_flags): Translate text.
55 (get_file_type, get_symbol_binding, get_symbol_type),
56 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
58 2020-04-15 Alan Modra <amodra@gmail.com>
61 * readelf.c (get_num_dynamic_syms): Typo fix.
63 2020-04-14 Alan Modra <amodra@gmail.com>
65 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
66 possibility of overflow when checking number of conflicts.
68 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
71 * readelf.c (nbuckets): New.
75 (ngnubuckets): Likewise.
76 (gnubuckets): Likewise.
77 (gnuchains): Likewise.
79 (ngnuchains): Likewise.
80 (gnusymidx): Likewise.
81 (VALID_SYMBOL_NAME): Likewise.
82 (VALID_DYNAMIC_NAME): Use it.
83 (get_dynamic_data): Moved before process_dynamic_section.
84 (get_num_dynamic_syms): New function.
85 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
86 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
87 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
89 (get_symbol_index_type): Don't print "bad section index" when
90 there is no section header.
91 (print_dynamic_symbol): Rewrite.
92 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
95 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
97 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
98 enable on *-*-solaris*.
100 2020-03-30 Nick Clifton <nickc@redhat.com>
103 * objcopy.c (copy_object): When copying PE format files set the
104 timestamp field in the pe_data structure if the preserve_dates
106 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
107 --preserve-dates in place of the -p option, in order to make its
110 2020-03-28 Alan Modra <amodra@gmail.com>
112 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
113 clear_xfail hppa*-*-*elf*. Revert mips xfails.
115 2020-03-28 Alan Modra <amodra@gmail.com>
117 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
118 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
119 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
120 test. Pass "-p" to objcopy for the executable test.
122 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
125 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
126 specify whether an object file or executable should be built and tested.
127 Change test names to report whether an object file or executable is
129 * testsuite/binutils-all/pr25662.ld: New test.
130 * testsuite/binutils-all/pr25662.s: New test.
132 2020-03-27 Alan Modra <amodra@gmail.com>
134 * readelf.c (process_archive): Don't double free qualified_name.
135 Don't break out of loop with "negative" archive_file_size, just
136 set file offset to max.
138 2020-03-25 Alan Modra <amodra@gmail.com>
140 * readelf.c (process_archive): Prevent endless loop.
142 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
145 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
146 with bfd_get_symbol_version_string.
147 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
148 * objdump.c (objdump_print_symname): Likewise.
150 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
153 * nm.c (SYM_NAME): Removed.
154 (print_symname): Add a pointer to struct extended_symbol_info
155 argument. Call _bfd_elf_get_symbol_version_name to get symbol
157 (print_symdef_entry): Pass NULL to print_symname.
158 (print_symbol_info_bsd): Update call to print_symname.
159 (print_symbol_info_sysv): Likewise.
160 (print_symbol_info_posix): Likewise.
162 2020-03-24 Alan Modra <amodra@gmail.com>
164 * readelf.c (process_mips_specific): Free iconf on error path.
166 2020-03-23 Nick Clifton <nickc@redhat.com>
169 * wrstabs.c (stab_pop_type): Replace assertion with error return.
170 * write_stabs_in_sections_debugging_info: Likewise.
171 * stab_enum_type: Likewise.
172 * stab_modify_type: Likewise.
173 * stab_struct_field: Likewise.
174 * stab_end_struct_type: Likewise.
175 * stab_start_class_type: Likewise.
176 * stab_class_static_member: Likewise.
177 * stab_class_baseclass: Likewise.
178 * stab_class_start_method: Likewise.
179 * stab_class_method_var: Likewise.
180 * stab_class_end_method: Likewise.
181 * stab_end_class_type: Likewise.
182 * stab_typedef_type: Likewise.
183 * stab_start_function: Likewise.
184 * stab_end_block: Likewise.
185 * stab_lineno: Likewise.
187 2020-03-20 Nick Clifton <nickc@redhat.com>
189 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
190 (process_section_headers): Check the return value from
191 get_compression_header.
192 (dump_section_as_strings): Likewise.
193 (dump_section_as_bytes): Likewise.
194 (load_specific_debug_section): Likewise.
196 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
198 * ar.c (main): Update bfd_plugin_set_program_name call.
199 * nm.c (main): Likewise.
201 2020-03-19 Nick Clifton <nickc@redhat.com>
204 * testsuite/binutils-all/dw4.s: New test source file.
205 * testsuite/binutils-all/nm.exp: Run the new test.
207 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
209 * readelf.c (process_symbol_table): Use unsigned long for si.
211 2020-03-19 Alan Modra <amodra@gmail.com>
213 * elfcomm.c: Don't include bfd.h or bucomm.h.
214 (program_name): Declare.
215 (process_archive_index_and_symbols): Replace bfd_boolean with int,
216 and substitute FALSE and TRUE.
217 (setup_archive, setup_nested_archive): Likewise.
218 * elfcomm.h: Likewise.
220 2020-03-19 Alan Modra <amodra@gmail.com>
222 * readelf.c (process_archive): Always return via path freeing
225 2020-03-19 Alan Modra <amodra@gmail.com>
227 * readelf.c (process_netbsd_elf_note): Validate descsz before
228 accessing descdata. Formatting.
230 2020-03-19 Alan Modra <amodra@gmail.com>
232 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
233 * elfcomm.h (setup_archive): Update prototype.
235 2020-03-16 Alan Modra <amodra@gmail.com>
237 * readelf.c (get_symbols): New function.
238 (process_relocs, ia64_process_unwind, hppa_process_unwind),
239 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
241 2020-03-16 Alan Modra <amodra@gmail.com>
243 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
244 Detect shift overflows and check that terminating byte is found.
245 Print an error on a bad uleb128.
247 2020-03-14 Alan Modra <amodra@gmail.com>
249 * readelf.c (process_file): Clean ba_cache.
251 2020-03-14 Alan Modra <amodra@gmail.com>
253 * elfcomm.h (setup_archive): Update prototype.
254 * elfcomm.c (setup_archive): Add file_size parameter and sanity
255 check longnames_size.
256 (setup_nested_archive): Get file size and pass to setup_archive.
257 * elfedit.c (process_archive): Likewise.
258 * readelf.c (process_archive): Pass filedata->file_size to
261 2020-03-14 Alan Modra <amodra@gmail.com>
263 * readelf.c (dump_section_as_strings): Free memory on error exit.
264 (dump_section_as_bytes, process_notes_at): Likewise.
265 (get_build_id): Free enote.
267 2020-03-13 Kamil Rytarowski <n54@gmx.com>
269 * readelf.c (get_netbsd_elfcore_note_type): Add support for
270 NT_NETBSDCORE_LWPSTATUS notes.
272 2020-03-13 Alan Modra <amodra@gmail.com>
274 * elfcomm.c (get_archive_member_name): Always return malloc'd
276 * elfedit.c (process_archive): Tidy memory on all return paths.
277 * readelf.c (process_archive): Likewise.
278 (process_symbol_table): Likewise.
279 (ba_cache): New, replacing ..
280 (get_symbol_for_build_attribute): ..static vars here. Free
281 strtab and symtab before loading new ones. Reject symtab without
282 valid strtab in loop, breaking out of loop on valid symtab.
283 (process_file): Free ba_cache symtab and strtab here, resetting
286 2020-03-12 Alan Modra <amodra@gmail.com>
288 * readelf.c (process_section_headers): Don't just set
289 filedata->section_headers NULL, free it first. Similarly for
290 dynamic_symbols, dynamic_strings, dynamic_syminfo and
291 symtab_shndx_list. Zero associated counts too.
292 (process_object): Free symtab_shndx_list.
293 (process_file): Free various allocated filedata tables.
295 2020-03-11 Nick Clifton <nickc@redhat.com>
299 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
300 li_segment_size fields.
301 * dwarf.c (read_debug_line_header): Record the address size and
302 segment selector size values (if present) in the lineinfo
304 (display_formatted_table): Warn if the format count is empty but
305 the table itself is not empty.
306 Display the format count and entry count at the start of the table
308 (display_debug_lines_raw): Display the address size and segement
309 selector size fields, if present.
310 * testsuite/binutils-all/dw5.W: Update expected output.
312 2020-03-11 Alan Modra <amodra@gmail.com>
315 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
316 pad_to_set on second block of code dealing with padding.
317 Replace "c" with "num_sec" and don't recalculate number of
318 sections on second block. Size arrays using sizeof (element)
319 rather than sizeof (element type).
321 2020-03-10 Alan Modra <amodra@gmail.com>
323 * objdump.c (disassemble_section): Don't call qsort unless
324 sym count is at least two.
325 (disassemble_data): Don't call memcpy with NULL src.
327 2020-03-09 Alan Modra <amodra@gmail.com>
330 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
331 to get_data rather than multiplying.
332 (dump_ia64_vms_dynamic_relocs): Likewise.
333 (process_version_sections): Correct order of size and nmemb args
335 (process_mips_specific): Likewise.
337 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
339 * readelf.c (get_dynamic_data): Replace "memory chekers" with
340 "memory checkers" in comments.
342 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
345 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
346 * doc/Makefile.in: Re-generate.
348 2020-03-06 Nick Clifton <nickc@redhat.com>
350 * objcopy.c (check_new_section_flags): New function. Reject the
351 SEC_COFF_SHARED flag if the target is not a COFF binary.
352 (copy_object): Call check_new_section_flags.
353 (setup_section): Likewise.
354 * doc/binutils.texi (objcopy): Add a note that the 'share' section
355 flag cannot be applied to ELF binaries.
357 2020-03-06 Alan Modra <amodra@gmail.com>
360 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
362 2020-03-05 Alan Modra <amodra@gmail.com>
365 * objcopy.c (filter_symbols): Don't segfault on NULL
366 prefix_symbols_string.
368 2020-03-04 Christian Eggers <ceggers@gmx.de>
370 * objcopy.c (copy_object): Convert from bytes to octets for
371 --gap-fill and --pad-to.
373 2020-03-03 Nick Clifton <nickc@redhat.com>
376 * prdbg.c (pr_tag_type): Remove call to abort.
378 2020-03-02 Aaron Merey <amerey@redhat.com>
380 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
383 2020-03-02 Nick Clifton <nickc@redhat.com>
386 * readelf.c (dump_section_as_strings): Display new-line characters
387 as \n and then insert a line break.
388 * testsuite/binutils-all/pr25543.s: New test.
389 * testsuite/binutils-all/pr25543.d: Test driver.
390 * testsuite/binutils-all/readelf.exp: Run the new test.
392 2020-02-27 Nick Clifton <nickc@redhat.com>
395 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
396 get_data is unable to load the string table.
398 2020-02-26 Alan Modra <amodra@gmail.com>
400 * elfedit.c: Indent labels correctly.
401 * readelf.c: Likewise.
402 * resres.c: Likewise.
404 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
407 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
408 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
410 2020-02-24 Nick Clifton <nickc@redhat.com>
413 * doc/binutils.texi (objdump): Fix typo in description of
416 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
418 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
421 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
423 * objdump.c (show_line): call bfd_demangle when using do_demangle.
425 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
427 * configure: Regenerate.
429 2020-02-10 Fangrui Song <maskray@google.com>
431 * objcopy.c (parse_flags): Handle "exclude".
432 * doc/binutils.texi: Document the support.
434 2020-02-10 Aaron Merey <amerey@redhat.com>
436 * binutils/testsuite/binutils-all/debuginfod.exp:
437 Replace set ::env with setenv.
438 Start server before setting environment variable.
439 Specify tmpdir as the location of the server's
441 Check additional server metrics at start-up.
443 2020-02-07 Nick Clifton <nickc@redhat.com>
445 * README-how-to-make-a-release: Add note about updating the
446 GAS/NEWS URL in the next release.
448 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
451 * readelf.c (get_machine_flags): Add support for Z80N machine
454 2020-02-07 Nick Clifton <nickc@redhat.com>
456 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
457 of the truncated file name.
459 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
461 * objdump.c (print_jump_visualisation): New function.
462 (disassemble_bytes): Call new function.
464 2020-02-06 Alan Modra <amodra@gmail.com>
466 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
468 (supports_gnu_osabi): New procedure.
469 (is_generic): New, from ld-lib.exp.
470 (supports_gnu_unique): Use the above.
472 2020-02-04 Alan Modra <amodra@gmail.com>
474 * Makefile.am (CFILES): Add od-elf32_avr.c.
475 * Makefile.in: Regenerate.
476 * po/POTFILES.in: Regenerate.
478 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
480 * readelf.c (dump_relocations, dump_relocations)
481 (decode_arm_unwind_bytecode, process_dynamic_section)
482 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
485 2020-02-03 Sergei Trofimovich <siarheit@google.com>
487 * coffdump.c (program_name): Drop redundant definition.
488 * srconv.c (program_name): Likewise
489 * sysdump.c (program_name): Likewise
491 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
494 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
495 same file with different section pointers.
497 2020-02-01 Nick Clifton <nickc@redhat.com>
499 * README-how-to-make-a-release: Update with more details on the
500 release making process.
502 2020-01-31 Nick Clifton <nickc@redhat.com>
504 * po/sv.po: Updated Swedish translation.
506 2020-01-28 Nick Clifton <nickc@redhat.com>
508 * readelf.c (get_build_id): Simplify warning message about corrupt
509 notes encountered whilst scanning for the build-id.
511 2020-01-27 Roland McGrath <mcgrathr@google.com>
513 * objcopy.c (compare_gnu_build_notes): Fix comparison results
514 for overlapping ranges so that (A == B) == (B == A) holds.
516 2020-01-27 Alan Modra <amodra@gmail.com>
518 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
519 case statement with switch statement.
521 2020-01-24 Nick Clifton <nickc@redhat.com>
523 * readelf.c (get_build_id): Fix warning messages about corrupt
526 2020-01-23 Nick Clifton <nickc@redhat.com>
528 * po/fr.po: Updated French translation.
530 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
533 * readelf.c (get_alpha_symbol_other): Fix error message typo.
535 2020-01-20 Nick Clifton <nickc@redhat.com>
537 * po/pt.po: Updated Portuguese translation.
538 * po/uk.po: Updated Ukranian translation.
540 2020-01-18 Nick Clifton <nickc@redhat.com>
542 * README-how-to-make-a-release: Update notes on how to cut a
543 branch for a release.
545 2020-01-18 Nick Clifton <nickc@redhat.com>
547 * configure: Regenerate.
548 * po/binutils.pot: Regenerate.
550 2020-01-18 Nick Clifton <nickc@redhat.com>
552 Binutils 2.34 branch created.
554 2020-01-17 Thomas Troeger <tstroege@gmx.de>
556 * objdump.c (jump_info_visualize_address): Discard jumps that are
558 (disassemble_bytes): Only compute the maximum level if jumps were
561 2020-01-13 Nick Clifton <nickc@redhat.com>
563 * objdump.c (disassemble_bytes): Remove C99-ism.
564 * testsuite/binutils-all/debuginfod.exp: New tests.
566 2020-01-13 Thomas Troeger <tstroege@gmx.de>
568 * objdump.c (visualize_jumps, color_output, extended_color_output)
569 (detected_jumps): New variables.
570 (usage): Add the new jump visualization options.
571 (option_values): Add new option value.
572 (long_options): Add the new option.
573 (jump_info_new, jump_info_free): New functions.
574 (jump_info_min_address, jump_info_max_address): Likewise.
575 (jump_info_end_address, jump_info_is_start_address): Likewise.
576 (jump_info_is_end_address, jump_info_size): Likewise.
577 (jump_info_unlink, jump_info_insert): Likewise.
578 (jump_info_add_front, jump_info_move_linked): Likewise.
579 (jump_info_intersect, jump_info_merge): Likewise.
580 (jump_info_sort, jump_info_visualize_address): Likewise.
581 (disassemble_jumps): New function - used to locate jumps.
582 (disassemble_bytes): Add ascii art generation.
583 (disassemble_section): Add scan to locate jumps.
584 (main): Parse the new visualization option.
585 * doc/binutils.texi: Document the new feature.
586 * NEWS: Mention the new feature.
588 2020-01-13 Alan Modra <amodra@gmail.com>
592 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
593 fde_fc col_type and col_offset.
594 * readelf.c (apply_relocations): Move symsec check earlier.
595 (free_debug_section): Free reloc_info.
596 (process_notes_at): Free pnotes on error path.
597 (process_object): Free dump_sects here..
598 (process_archive): ..not here.
600 2020-01-13 Alan Modra <amodra@gmail.com>
603 * nm.c (display_rel_file): Free dyn_syms.
605 2020-01-09 Nick Clifton <nickc@redhat.com>
608 * objcopy.c (empty_name): New variable.
609 (need_sym_before): Prevent an attempt to free a static variable.
610 (filter_symbols): Avoid strcmp test by checking for pointer
613 2020-01-09 Nick Clifton <nickc@redhat.com>
615 * po/zh_TW.po: Updated Traditional Chinese translation.
617 2020-01-09 Aaron Merey <amerey@redhat.com>
619 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
620 * Makefile.in: Regenerate.
622 * config.in: Regenerate.
623 * configure: Regenerate.
624 * configure.ac: Call AC_DEBUGINFOD.
625 * doc/Makefile.in: Regenerate.
626 * doc/binutils.texi: Add section on using binutils
628 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
629 Query debuginfod servers for the target debug file.
630 (load_separate_debug_info): Call
631 debuginfod_fetch_separate_debug_info if configured with
633 (load_separate_debug_files): Add file argument to
634 load_separate_debug_info calls.
635 * dwarf.h (get_build_id): Add declaration.
636 * objdump.c (get_build_id): New function. Get build-id of file.
637 * readelf.c (get_build_id): Likewise.
638 * testsuite/binutils-all/debuginfod.exp: New tests.
639 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
642 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
644 * readelf.c: Add support for new Z*) relocations and machine
647 2020-01-01 Alan Modra <amodra@gmail.com>
649 Update year range in copyright notice of all files.
651 For older changes see ChangeLog-2019
653 Copyright (C) 2020 Free Software Foundation, Inc.
655 Copying and distribution of this file, with or without modification,
656 are permitted in any medium without royalty provided the copyright
657 notice and this notice are preserved.
663 version-control: never