1 2020-04-16 Alan Modra <amodra@gmail.com>
3 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
4 --no-addresses description.
6 2020-04-15 Alan Modra <amodra@gmail.com>
8 * objdump.c (no_addresses): New static var.
9 (usage): Print help for --no-addresses.
10 (long_options): Add --no-addresses entry.
11 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
12 (disassemble_bytes): Don't print current line address, or reloc
14 * doc/binutils.texi: Document objdump --no-addresses.
16 2020-04-15 Alan Modra <amodra@gmail.com>
19 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
20 reading buckets or chains fails.
22 2020-04-15 Alan Modra <amodra@gmail.com>
24 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
27 2020-04-15 Alan Modra <amodra@gmail.com>
29 * readelf.c (get_group_flags): Translate text.
30 (get_file_type, get_symbol_binding, get_symbol_type),
31 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
33 2020-04-15 Alan Modra <amodra@gmail.com>
36 * readelf.c (get_num_dynamic_syms): Typo fix.
38 2020-04-14 Alan Modra <amodra@gmail.com>
40 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
41 possibility of overflow when checking number of conflicts.
43 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
46 * readelf.c (nbuckets): New.
50 (ngnubuckets): Likewise.
51 (gnubuckets): Likewise.
52 (gnuchains): Likewise.
54 (ngnuchains): Likewise.
55 (gnusymidx): Likewise.
56 (VALID_SYMBOL_NAME): Likewise.
57 (VALID_DYNAMIC_NAME): Use it.
58 (get_dynamic_data): Moved before process_dynamic_section.
59 (get_num_dynamic_syms): New function.
60 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
61 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
62 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
64 (get_symbol_index_type): Don't print "bad section index" when
65 there is no section header.
66 (print_dynamic_symbol): Rewrite.
67 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
70 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
72 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
73 enable on *-*-solaris*.
75 2020-03-30 Nick Clifton <nickc@redhat.com>
78 * objcopy.c (copy_object): When copying PE format files set the
79 timestamp field in the pe_data structure if the preserve_dates
81 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
82 --preserve-dates in place of the -p option, in order to make its
85 2020-03-28 Alan Modra <amodra@gmail.com>
87 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
88 clear_xfail hppa*-*-*elf*. Revert mips xfails.
90 2020-03-28 Alan Modra <amodra@gmail.com>
92 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
93 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
94 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
95 test. Pass "-p" to objcopy for the executable test.
97 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
100 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
101 specify whether an object file or executable should be built and tested.
102 Change test names to report whether an object file or executable is
104 * testsuite/binutils-all/pr25662.ld: New test.
105 * testsuite/binutils-all/pr25662.s: New test.
107 2020-03-27 Alan Modra <amodra@gmail.com>
109 * readelf.c (process_archive): Don't double free qualified_name.
110 Don't break out of loop with "negative" archive_file_size, just
111 set file offset to max.
113 2020-03-25 Alan Modra <amodra@gmail.com>
115 * readelf.c (process_archive): Prevent endless loop.
117 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
120 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
121 with bfd_get_symbol_version_string.
122 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
123 * objdump.c (objdump_print_symname): Likewise.
125 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
128 * nm.c (SYM_NAME): Removed.
129 (print_symname): Add a pointer to struct extended_symbol_info
130 argument. Call _bfd_elf_get_symbol_version_name to get symbol
132 (print_symdef_entry): Pass NULL to print_symname.
133 (print_symbol_info_bsd): Update call to print_symname.
134 (print_symbol_info_sysv): Likewise.
135 (print_symbol_info_posix): Likewise.
137 2020-03-24 Alan Modra <amodra@gmail.com>
139 * readelf.c (process_mips_specific): Free iconf on error path.
141 2020-03-23 Nick Clifton <nickc@redhat.com>
144 * wrstabs.c (stab_pop_type): Replace assertion with error return.
145 * write_stabs_in_sections_debugging_info: Likewise.
146 * stab_enum_type: Likewise.
147 * stab_modify_type: Likewise.
148 * stab_struct_field: Likewise.
149 * stab_end_struct_type: Likewise.
150 * stab_start_class_type: Likewise.
151 * stab_class_static_member: Likewise.
152 * stab_class_baseclass: Likewise.
153 * stab_class_start_method: Likewise.
154 * stab_class_method_var: Likewise.
155 * stab_class_end_method: Likewise.
156 * stab_end_class_type: Likewise.
157 * stab_typedef_type: Likewise.
158 * stab_start_function: Likewise.
159 * stab_end_block: Likewise.
160 * stab_lineno: Likewise.
162 2020-03-20 Nick Clifton <nickc@redhat.com>
164 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
165 (process_section_headers): Check the return value from
166 get_compression_header.
167 (dump_section_as_strings): Likewise.
168 (dump_section_as_bytes): Likewise.
169 (load_specific_debug_section): Likewise.
171 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
173 * ar.c (main): Update bfd_plugin_set_program_name call.
174 * nm.c (main): Likewise.
176 2020-03-19 Nick Clifton <nickc@redhat.com>
179 * testsuite/binutils-all/dw4.s: New test source file.
180 * testsuite/binutils-all/nm.exp: Run the new test.
182 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
184 * readelf.c (process_symbol_table): Use unsigned long for si.
186 2020-03-19 Alan Modra <amodra@gmail.com>
188 * elfcomm.c: Don't include bfd.h or bucomm.h.
189 (program_name): Declare.
190 (process_archive_index_and_symbols): Replace bfd_boolean with int,
191 and substitute FALSE and TRUE.
192 (setup_archive, setup_nested_archive): Likewise.
193 * elfcomm.h: Likewise.
195 2020-03-19 Alan Modra <amodra@gmail.com>
197 * readelf.c (process_archive): Always return via path freeing
200 2020-03-19 Alan Modra <amodra@gmail.com>
202 * readelf.c (process_netbsd_elf_note): Validate descsz before
203 accessing descdata. Formatting.
205 2020-03-19 Alan Modra <amodra@gmail.com>
207 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
208 * elfcomm.h (setup_archive): Update prototype.
210 2020-03-16 Alan Modra <amodra@gmail.com>
212 * readelf.c (get_symbols): New function.
213 (process_relocs, ia64_process_unwind, hppa_process_unwind),
214 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
216 2020-03-16 Alan Modra <amodra@gmail.com>
218 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
219 Detect shift overflows and check that terminating byte is found.
220 Print an error on a bad uleb128.
222 2020-03-14 Alan Modra <amodra@gmail.com>
224 * readelf.c (process_file): Clean ba_cache.
226 2020-03-14 Alan Modra <amodra@gmail.com>
228 * elfcomm.h (setup_archive): Update prototype.
229 * elfcomm.c (setup_archive): Add file_size parameter and sanity
230 check longnames_size.
231 (setup_nested_archive): Get file size and pass to setup_archive.
232 * elfedit.c (process_archive): Likewise.
233 * readelf.c (process_archive): Pass filedata->file_size to
236 2020-03-14 Alan Modra <amodra@gmail.com>
238 * readelf.c (dump_section_as_strings): Free memory on error exit.
239 (dump_section_as_bytes, process_notes_at): Likewise.
240 (get_build_id): Free enote.
242 2020-03-13 Kamil Rytarowski <n54@gmx.com>
244 * readelf.c (get_netbsd_elfcore_note_type): Add support for
245 NT_NETBSDCORE_LWPSTATUS notes.
247 2020-03-13 Alan Modra <amodra@gmail.com>
249 * elfcomm.c (get_archive_member_name): Always return malloc'd
251 * elfedit.c (process_archive): Tidy memory on all return paths.
252 * readelf.c (process_archive): Likewise.
253 (process_symbol_table): Likewise.
254 (ba_cache): New, replacing ..
255 (get_symbol_for_build_attribute): ..static vars here. Free
256 strtab and symtab before loading new ones. Reject symtab without
257 valid strtab in loop, breaking out of loop on valid symtab.
258 (process_file): Free ba_cache symtab and strtab here, resetting
261 2020-03-12 Alan Modra <amodra@gmail.com>
263 * readelf.c (process_section_headers): Don't just set
264 filedata->section_headers NULL, free it first. Similarly for
265 dynamic_symbols, dynamic_strings, dynamic_syminfo and
266 symtab_shndx_list. Zero associated counts too.
267 (process_object): Free symtab_shndx_list.
268 (process_file): Free various allocated filedata tables.
270 2020-03-11 Nick Clifton <nickc@redhat.com>
274 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
275 li_segment_size fields.
276 * dwarf.c (read_debug_line_header): Record the address size and
277 segment selector size values (if present) in the lineinfo
279 (display_formatted_table): Warn if the format count is empty but
280 the table itself is not empty.
281 Display the format count and entry count at the start of the table
283 (display_debug_lines_raw): Display the address size and segement
284 selector size fields, if present.
285 * testsuite/binutils-all/dw5.W: Update expected output.
287 2020-03-11 Alan Modra <amodra@gmail.com>
290 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
291 pad_to_set on second block of code dealing with padding.
292 Replace "c" with "num_sec" and don't recalculate number of
293 sections on second block. Size arrays using sizeof (element)
294 rather than sizeof (element type).
296 2020-03-10 Alan Modra <amodra@gmail.com>
298 * objdump.c (disassemble_section): Don't call qsort unless
299 sym count is at least two.
300 (disassemble_data): Don't call memcpy with NULL src.
302 2020-03-09 Alan Modra <amodra@gmail.com>
305 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
306 to get_data rather than multiplying.
307 (dump_ia64_vms_dynamic_relocs): Likewise.
308 (process_version_sections): Correct order of size and nmemb args
310 (process_mips_specific): Likewise.
312 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
314 * readelf.c (get_dynamic_data): Replace "memory chekers" with
315 "memory checkers" in comments.
317 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
320 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
321 * doc/Makefile.in: Re-generate.
323 2020-03-06 Nick Clifton <nickc@redhat.com>
325 * objcopy.c (check_new_section_flags): New function. Reject the
326 SEC_COFF_SHARED flag if the target is not a COFF binary.
327 (copy_object): Call check_new_section_flags.
328 (setup_section): Likewise.
329 * doc/binutils.texi (objcopy): Add a note that the 'share' section
330 flag cannot be applied to ELF binaries.
332 2020-03-06 Alan Modra <amodra@gmail.com>
335 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
337 2020-03-05 Alan Modra <amodra@gmail.com>
340 * objcopy.c (filter_symbols): Don't segfault on NULL
341 prefix_symbols_string.
343 2020-03-04 Christian Eggers <ceggers@gmx.de>
345 * objcopy.c (copy_object): Convert from bytes to octets for
346 --gap-fill and --pad-to.
348 2020-03-03 Nick Clifton <nickc@redhat.com>
351 * prdbg.c (pr_tag_type): Remove call to abort.
353 2020-03-02 Aaron Merey <amerey@redhat.com>
355 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
358 2020-03-02 Nick Clifton <nickc@redhat.com>
361 * readelf.c (dump_section_as_strings): Display new-line characters
362 as \n and then insert a line break.
363 * testsuite/binutils-all/pr25543.s: New test.
364 * testsuite/binutils-all/pr25543.d: Test driver.
365 * testsuite/binutils-all/readelf.exp: Run the new test.
367 2020-02-27 Nick Clifton <nickc@redhat.com>
370 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
371 get_data is unable to load the string table.
373 2020-02-26 Alan Modra <amodra@gmail.com>
375 * elfedit.c: Indent labels correctly.
376 * readelf.c: Likewise.
377 * resres.c: Likewise.
379 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
382 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
383 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
385 2020-02-24 Nick Clifton <nickc@redhat.com>
388 * doc/binutils.texi (objdump): Fix typo in description of
391 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
393 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
396 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
398 * objdump.c (show_line): call bfd_demangle when using do_demangle.
400 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
402 * configure: Regenerate.
404 2020-02-10 Fangrui Song <maskray@google.com>
406 * objcopy.c (parse_flags): Handle "exclude".
407 * doc/binutils.texi: Document the support.
409 2020-02-10 Aaron Merey <amerey@redhat.com>
411 * binutils/testsuite/binutils-all/debuginfod.exp:
412 Replace set ::env with setenv.
413 Start server before setting environment variable.
414 Specify tmpdir as the location of the server's
416 Check additional server metrics at start-up.
418 2020-02-07 Nick Clifton <nickc@redhat.com>
420 * README-how-to-make-a-release: Add note about updating the
421 GAS/NEWS URL in the next release.
423 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
426 * readelf.c (get_machine_flags): Add support for Z80N machine
429 2020-02-07 Nick Clifton <nickc@redhat.com>
431 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
432 of the truncated file name.
434 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
436 * objdump.c (print_jump_visualisation): New function.
437 (disassemble_bytes): Call new function.
439 2020-02-06 Alan Modra <amodra@gmail.com>
441 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
443 (supports_gnu_osabi): New procedure.
444 (is_generic): New, from ld-lib.exp.
445 (supports_gnu_unique): Use the above.
447 2020-02-04 Alan Modra <amodra@gmail.com>
449 * Makefile.am (CFILES): Add od-elf32_avr.c.
450 * Makefile.in: Regenerate.
451 * po/POTFILES.in: Regenerate.
453 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
455 * readelf.c (dump_relocations, dump_relocations)
456 (decode_arm_unwind_bytecode, process_dynamic_section)
457 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
460 2020-02-03 Sergei Trofimovich <siarheit@google.com>
462 * coffdump.c (program_name): Drop redundant definition.
463 * srconv.c (program_name): Likewise
464 * sysdump.c (program_name): Likewise
466 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
469 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
470 same file with different section pointers.
472 2020-02-01 Nick Clifton <nickc@redhat.com>
474 * README-how-to-make-a-release: Update with more details on the
475 release making process.
477 2020-01-31 Nick Clifton <nickc@redhat.com>
479 * po/sv.po: Updated Swedish translation.
481 2020-01-28 Nick Clifton <nickc@redhat.com>
483 * readelf.c (get_build_id): Simplify warning message about corrupt
484 notes encountered whilst scanning for the build-id.
486 2020-01-27 Roland McGrath <mcgrathr@google.com>
488 * objcopy.c (compare_gnu_build_notes): Fix comparison results
489 for overlapping ranges so that (A == B) == (B == A) holds.
491 2020-01-27 Alan Modra <amodra@gmail.com>
493 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
494 case statement with switch statement.
496 2020-01-24 Nick Clifton <nickc@redhat.com>
498 * readelf.c (get_build_id): Fix warning messages about corrupt
501 2020-01-23 Nick Clifton <nickc@redhat.com>
503 * po/fr.po: Updated French translation.
505 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
508 * readelf.c (get_alpha_symbol_other): Fix error message typo.
510 2020-01-20 Nick Clifton <nickc@redhat.com>
512 * po/pt.po: Updated Portuguese translation.
513 * po/uk.po: Updated Ukranian translation.
515 2020-01-18 Nick Clifton <nickc@redhat.com>
517 * README-how-to-make-a-release: Update notes on how to cut a
518 branch for a release.
520 2020-01-18 Nick Clifton <nickc@redhat.com>
522 * configure: Regenerate.
523 * po/binutils.pot: Regenerate.
525 2020-01-18 Nick Clifton <nickc@redhat.com>
527 Binutils 2.34 branch created.
529 2020-01-17 Thomas Troeger <tstroege@gmx.de>
531 * objdump.c (jump_info_visualize_address): Discard jumps that are
533 (disassemble_bytes): Only compute the maximum level if jumps were
536 2020-01-13 Nick Clifton <nickc@redhat.com>
538 * objdump.c (disassemble_bytes): Remove C99-ism.
539 * testsuite/binutils-all/debuginfod.exp: New tests.
541 2020-01-13 Thomas Troeger <tstroege@gmx.de>
543 * objdump.c (visualize_jumps, color_output, extended_color_output)
544 (detected_jumps): New variables.
545 (usage): Add the new jump visualization options.
546 (option_values): Add new option value.
547 (long_options): Add the new option.
548 (jump_info_new, jump_info_free): New functions.
549 (jump_info_min_address, jump_info_max_address): Likewise.
550 (jump_info_end_address, jump_info_is_start_address): Likewise.
551 (jump_info_is_end_address, jump_info_size): Likewise.
552 (jump_info_unlink, jump_info_insert): Likewise.
553 (jump_info_add_front, jump_info_move_linked): Likewise.
554 (jump_info_intersect, jump_info_merge): Likewise.
555 (jump_info_sort, jump_info_visualize_address): Likewise.
556 (disassemble_jumps): New function - used to locate jumps.
557 (disassemble_bytes): Add ascii art generation.
558 (disassemble_section): Add scan to locate jumps.
559 (main): Parse the new visualization option.
560 * doc/binutils.texi: Document the new feature.
561 * NEWS: Mention the new feature.
563 2020-01-13 Alan Modra <amodra@gmail.com>
567 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
568 fde_fc col_type and col_offset.
569 * readelf.c (apply_relocations): Move symsec check earlier.
570 (free_debug_section): Free reloc_info.
571 (process_notes_at): Free pnotes on error path.
572 (process_object): Free dump_sects here..
573 (process_archive): ..not here.
575 2020-01-13 Alan Modra <amodra@gmail.com>
578 * nm.c (display_rel_file): Free dyn_syms.
580 2020-01-09 Nick Clifton <nickc@redhat.com>
583 * objcopy.c (empty_name): New variable.
584 (need_sym_before): Prevent an attempt to free a static variable.
585 (filter_symbols): Avoid strcmp test by checking for pointer
588 2020-01-09 Nick Clifton <nickc@redhat.com>
590 * po/zh_TW.po: Updated Traditional Chinese translation.
592 2020-01-09 Aaron Merey <amerey@redhat.com>
594 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
595 * Makefile.in: Regenerate.
597 * config.in: Regenerate.
598 * configure: Regenerate.
599 * configure.ac: Call AC_DEBUGINFOD.
600 * doc/Makefile.in: Regenerate.
601 * doc/binutils.texi: Add section on using binutils
603 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
604 Query debuginfod servers for the target debug file.
605 (load_separate_debug_info): Call
606 debuginfod_fetch_separate_debug_info if configured with
608 (load_separate_debug_files): Add file argument to
609 load_separate_debug_info calls.
610 * dwarf.h (get_build_id): Add declaration.
611 * objdump.c (get_build_id): New function. Get build-id of file.
612 * readelf.c (get_build_id): Likewise.
613 * testsuite/binutils-all/debuginfod.exp: New tests.
614 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
617 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
619 * readelf.c: Add support for new Z*) relocations and machine
622 2020-01-01 Alan Modra <amodra@gmail.com>
624 Update year range in copyright notice of all files.
626 For older changes see ChangeLog-2019
628 Copyright (C) 2020 Free Software Foundation, Inc.
630 Copying and distribution of this file, with or without modification,
631 are permitted in any medium without royalty provided the copyright
632 notice and this notice are preserved.
638 version-control: never