1 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3 * doc/Makefile.am (MOSTLYCLEANFILES): Clean all man pages,
4 cxxfilt.man and binutils.info.
5 (MAINTAINERCLEANFILES): Remove.
6 * doc/Makefile.in: Re-generate.
8 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
10 * doc/Makefile.am: Remove references to binutils_TEXINFOS.
11 * doc/Makefile.in: Re-generate.
13 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
15 * doc/Makefile.am (install-data-loca): Remove target.
16 (DISTCLEANFILES): Remove variable.
17 * doc/Makefile.in: Re-generate.
19 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
21 * Makefile.in: Re-generate.
22 * configure: Re-generate.
23 * doc/Makefile.in: Re-generate.
25 2019-09-16 Phil Blundell <pb@pbcl.net>
27 * Makefile.in, configure. doc/Makefile.in: Regenerated.
29 2019-09-11 Tom Tromey <tom@tromey.com>
31 * objcopy.c (copy_archive): Update.
32 * bucomm.h (make_tempname, make_tempdir): Make argument const.
33 * bucomm.c (make_tempname, make_tempdir): Make argument const.
35 2019-09-11 Alan Modra <amodra@gmail.com>
38 * objdump.c (disassemble_bytes): Adjust code to avoid overlong
39 lines. Correct max_reloc_offset_into_insn test.
41 2019-09-10 Nick Clifton <nickc@redhat.com>
44 * objdump.c (null_print): New function.
45 (disassemble_bytes): Delete previous_octets local and replace with
46 a test of the max_reloc_offset_into_insn field of the
47 bfd_arch_info structure. If a reloc is a potential match for the
48 next insn, then perform a dummy disassembly in order to calculate
51 2019-09-09 Phil Blundell <pb@pbcl.net>
53 binutils 2.33 branch created.
55 2019-09-06 Alan Modra <amodra@gmail.com>
57 * nm.c (print_object_filename_bsd, print_object_filename_sysv),
58 (print_object_filename_posix, print_archive_filename_bsd),
59 (print_archive_filename_sysv, print_archive_filename_posix),
60 (print_archive_member_bsd, print_archive_member_sysv),
61 (print_archive_member_posix): Constify parameter.
62 (struct output_fns <print_object_filename, print_archive_filename>),
63 (<print_archive_member>): Likewise.
64 * objcopy.c (copy_archive): Add cast for make_tempdir.
66 2019-08-29 Alan Modra <amodra@gmail.com>
68 * dwarf.c (check_uvalue): Remove unnecessary pointer checks.
70 2019-08-28 Niklas Gürtler <profclonk@gmail.com>
73 * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant.
74 (struct section_list): Add alignment field.
75 (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT.
76 (copy_options): Add --set-section-alignment.
77 (copy_usage): Describe --set-section-alignment.
78 (find_section_list): Initialise the alignment field.
79 (setup_section): Handle the alignment field.
80 (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT.
81 * doc/binutils.texi: Document the new feature.
82 * NEWS: Mention the new feature.
84 2019-08-28 Nick Clifton <nickc@redhat.com>
87 * objdump.c (source_comment): New static variable.
88 (option_values): Add OPTION_SOURCE_COMMENT.
89 (long_opions): Add --source-comment.
90 (print_line): If source comment is set, use it as a prefix to the
92 (main): Handle OPTION_SOURCE_COMMENT.
93 * doc/binutils.texi: Document the new option.
94 * NEWS: Mention the new feature.
95 * testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests
96 of the -S and --source-comment options.
98 2019-08-27 Nick Clifton <nickc@redhat.com>
101 * dwarf.c (MAX_CU_NESTING): New constant.
102 (level_type_signed): New static array.
103 (skip_attr_bytes): New function.
104 (get_type_signedness): New function.
105 (read_and_print_leb128): New function.
106 (display_discr_list): New function.
107 (read_and_display_attr_value): Add start parameter.
108 Use new functions when handling DW_AT_type and DW_AT_discr_list.
109 (read_and_display_attr): Add start parameter. Pass to
110 read_and_display_attr_value.
111 (process_debug_info): Update call to read_and_display_attr.
112 (display_formatted_table): Likewise.
113 (display_debug_lines_decoded): Likewise. Also add start
115 (display_debug_lines): Likewise.
116 * testsuite/binutils-all/dwarf-attributes.S: Update discrimination
118 * testsuite/binutils-all/dwarf-attributes.W: Update expected
121 2019-08-26 Alan Modra <amodra@gmail.com>
124 * debug.c (debug_write_type): Call empty_type for NULL type here..
125 (debug_write_type): ..rather than in just one case here.
127 2019-08-23 Nick Clifton <nickc@redhat.com>
130 * dwarf.c (check_uvalue): New function. Ensures that a block's
132 (read_and_display_attr_value): Use check_value when processsing
133 DW_FORM_block<n> attributes.
135 2019-08-22 Nick Clifton <nickc@redhat.com>
138 * dwarf.c (process_cu_tu_index): Handle the case where a table
139 does not have any columns.
141 2019-08-19 Alan Modra <amodra@gmail.com>
144 * dwarf.c (display_debug_frames): Use the read_cie check and error
145 for augmentation data length.
147 2019-08-17 Alan Modra <amodra@gmail.com>
150 * dwarf.c (comp_addr_base): Dereference args.
152 2019-08-16 Alan Modra <amodra@gmail.com>
156 * readelf.c (get_symbol_version_string): Set sym_info earlier.
158 2019-08-15 Nick Clifton <nickc@redhat.com>
161 * doc/binutils.texi (nm): Document the 'n' symbol type.
163 2019-08-15 Christophe Vidal <support@krizalys.com>
165 * docs/binutils.texi: Fixed notice message disassembler options
166 section of the man page.
168 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
170 * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type.
171 (get_mips_section_type_name): Return MI{S_XHASH name string.
172 (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic
174 (process_symbol_table): Initialize the .MIPS.xhash section
175 pointer. Adjust the readelf output to support the new section.
176 (process_object): Set the .MIPS.xhash dynamic info to zero.
178 2019-08-09 Tamar Christina <tamar.christina@arm.com>
180 * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff.
181 * testsuite/binutils-all/arm/in-order.d: Likewise.
182 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
183 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
185 2019-08-08 Nick Clifton <nickc@redhat.com>
188 * readelf.c (process_notes_at): Left justify the "Data size"
190 * testsuite/binutils-all/i386/empty.d: Adjust for new output format.
191 * testsuite/binutils-all/i386/ibt.d: Likewise.
192 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
193 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
194 * testsuite/binutils-all/i386/shstk.d: Likewise.
195 * testsuite/binutils-all/note-2-32.d: Likewise.
196 * testsuite/binutils-all/note-2-64.d: Likewise.
197 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
198 * testsuite/binutils-all/x86-64/empty.d: Likewise.
199 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
200 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
201 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
202 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
203 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
204 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
205 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
206 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
207 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
208 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
209 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
210 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
211 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
212 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
214 2019-08-08 Nick Clifton <nickc@redhat.com>
216 * testsuite/gentestdlls.c (main): Move declaration of loop
217 variable outside of the for() statement.
219 2019-08-08 Jordan Rupprecht <rupprecht@google.com>
221 * readelf.c (process_note): Mask unknown description data bytes.
223 2019-08-08 Alan Modra <amodra@gmail.com>
225 * readelf.c (get_data): Improve overflow checks.
227 2019-08-07 Nick Clifton <nickc@redhat.com>
230 * doc/binutils.texi: Ensure consistent formating of title strings
231 for man pages. Extend the title of the size man page to be more
234 2019-08-07 Omair Majid <omajid@redhat.com>
236 * testsuite/binutils-all/objdump.exp
237 (test_objdump_dotnet_assemblies): Fix test to distinguish errors
238 in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
239 introduced machine types.
240 * testsuite/gentestdlls.c (write_simple_dll): New function.
241 (main): Generate simple and Linux-specific variants of pei-i386
242 and pei-x86-64 files so both can be used by tests.
244 2019-08-07 Alan Modra <amodra@gmail.com>
247 * readelf.c (dump_ia64_unwind): Check that buffer is large
248 enough for "stamp" before reading.
250 2019-08-05 Nick Clifton <nickc@redhat.com>
253 * objcopy.c (merge_gnu_build_notes): Do not insist on the first
254 note being a version note.
255 Remove spurious debugging fprintf.
257 2019-08-05 Nick Clifton <nickc@redhat.com>
260 * readelf.c (apply_relocations): Catch potential integer overflow
261 whilst checking reloc location against section size.
263 2019-08-02 Alan Modra <amodra@gmail.com>
266 * readelf.c (ABSADDR): Delete.
267 (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
269 2019-07-29 Martin Liska <mliska@suse.cz>
272 * nm.c (filter_symbols): Set report_plugin_err if
274 (display_rel_file): Report error for a missing LTO plugin.
276 2019-07-26 Alan Modra <amodra@gmail.com>
279 * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
280 systems by casting ncols and nslots expressions to size_t. Display
281 number of columns and slots before giving up due to buffer overflow.
282 Use %u to display unsigned ints. Perform more pointer wrap tests.
284 2019-07-25 Tom Tromey <tromey@adacore.com>
287 * dwarf.c (display_debug_names): Display the contents of the
288 augmentation string, if it is printable.
290 2019-07-25 Nick Clifton <nickc@redhat.com>
293 * readelf.c (process_mips_specific): Check for buffer overflow
294 before reading reginfo information.
296 2019-07-24 Nick Clifton <nickc@redhat.com>
299 * ar.c (decode_options): Restart option scanning if no operation
300 is detected and argument remain to be scanned.
302 2019-07-23 Nick Clifton <nickc@redhat.com>
305 * objdump.c (is_relocateable): Delete.
306 (load_specific_debug_section): Test the abfd for relocations
307 directly, rather than relying upon is_relocateable.
308 (dump_dwarf): Delete initlialization of is_relocateable.
310 2019-07-23 Alan Modra <amodra@gmail.com>
312 * readelf.c (get_parisc_segment_type): Split off hpux entries..
313 (get_ia64_segment_type): ..and these..
314 (get_hpux_segment_type): ..to here.
315 (get_segment_type): Condition GNU_MBIND on osabi. Use
316 get_hpux_segment_type.
317 (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
318 (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
320 2019-07-23 Alan Modra <amodra@gmail.com>
322 * testsuite/binutils-all/objcopy.exp (elf64): Correct object
323 file used to set this variable.
325 2019-07-23 Omar Majid <omajid@redhat.com>
327 * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
328 (GENTESTDLLSPROG): Define.
329 (TEST_PROGS): Add GENTESTDLLSPROG.
330 * Makefile.in: Regenerate.
331 * testsuite/binutils-all/objdump.exp
332 (test_objdump_dotnet_assemblies): New proc.
334 * testsuite/gentestdlls.c: New source file.
336 2019-06-28 Nick Clifton <nickc@redhat.com>
339 * objdump.c (slurp_symtab): Fail with a helpful error message if
340 the symbol table is too large. Skip this check for MMO format
343 2019-06-26 Nick Clifton <nickc@redhat.com>
346 * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
347 indicate this in the output.
348 (bfd_nonfatal_message): Likewise.
350 2019-06-25 Jan Beulich <jbeulich@suse.com>
352 * readelf.c (dump_ctf_indent_lines): Rename local variable
353 "spaces" to "blanks".
355 2019-06-25 Jan Beulich <jbeulich@suse.com>
357 * objdump.c (dump_ctf_indent_lines): Rename local variable
358 "spaces" to "blanks".
360 2019-06-14 Alan Modra <amodra@gmail.com>
362 * Makefile.in: Regenerate.
363 * aclocal.m4: Regenerate.
364 * doc/Makefile.in: Regenerate.
366 2019-06-12 Christos Zoulas <christos@zoulas.com>
369 * readelf.c (process_netbsd_elf_note): Add support for
371 (process_note): Add support for PaX notes.
373 2019-06-12 Christos Zoulas <christos@zoulas.com>
376 * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
379 2019-06-12 Christos Zoulas <christos@zoulas.com>
382 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
385 2019-06-11 Christos Zoulas <christos@zoulas.com>
388 * readelf.c (get_alpha_symbol_other): New function.
389 (get_symbol_other): Use for Alpha symbols.
390 (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
392 2019-06-11 Christos Zoulas <christos@zoulas.com>
395 * readelf.c (decode_arm_unwind): Ensure that the local variable
396 'addr' is always initialised.
398 2019-06-10 Christos Zoulas <christos@zoulas.com>
401 * strings.c (print_strings): Use %u to print unsigned values in
404 2019-06-10 Christos Zoulas <christos@zoulas.com>
407 * arsup.c (ar_open): Use asprintf in place of xmalloc and
410 2019-06-03 Nick Clifton <nickc@redhat.com>
413 2019-05-29 Nick Clifton <nickc@redhat.com>
415 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
417 (HAVE_LIBCTF): Define if libctf support is available.
418 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
419 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
421 * readelf.c: Likewise.
422 * configure: Regenerate.
423 * Makefile.in: Regenerate.
424 * config.in: Regenerate.
426 2019-05-30 Nick Alcock <nick.alcock@oracle.com>
428 * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
430 * readelf.c (shdr_to_ctf_sect): Likewise.
432 2019-05-30 Nick Clifton <nickc@redhat.com>
435 * readelf.c (process_version_sections): Add 0x prefix to address
436 display. Correct indentation.
438 2019-05-30 Alan Modra <amodra@gmail.com>
440 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
441 s12z to targets not supporting this feature.
443 2019-05-30 Alan Modra <amodra@gmail.com>
445 * testsuite/lib/binutils-common.exp (run_dump_test): Support
446 tcl procedures for xfail args.
448 2019-05-29 Nick Clifton <nickc@redhat.com>
450 * README-how-to-make-a-release: Add libctf to list of directories
451 that need updates in their ChangeLogs.
453 2019-05-29 Nick Clifton <nickc@redhat.com>
455 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
457 (HAVE_LIBCTF): Define if libctf support is available.
458 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
459 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
461 * readelf.c: Likewise.
462 * configure: Regenerate.
463 * Makefile.in: Regenerate.
464 * config.in: Regenerate.
466 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
468 * MAINTAINERS: Add myself as CTF maintainer.
470 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
472 * objdump.c (ctf-api.h): New include.
473 (dump_ctf_section_info): New variable.
474 (dump_ctf_section_name): Likewise.
475 (usage): Describe new options.
476 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
477 (main): Use them to add --ctf and --ctf-parent.
478 (read_section_stabs): Add new parameter, entsize_ptr.
479 (find_stabs_section): Adjust accordingly.
481 (dump_ctf_indent_lines): New.
482 (dump_ctf_archive_member): New.
484 (dump_bfd): Call it. Free resources afterwards.
485 * readelf.c (ctf-api.h): New include.
487 (static bfd_boolean do_ctf): Likewise.
488 (dump_ctf_parent_name): Likewise.
489 (dump_ctf_symtab_name): Likewise.
490 (dump_ctf_strtab_name): Likewise.
491 (OPTION_CTF_DUMP): Likewise.
492 (OPTION_CTF_PARENT): Likewise.
493 (OPTION_CTF_SYMBOLS): Likewise.
494 (OPTION_CTF_STRINGS): Likewise.
497 (parse_args): Handle the new options, requesting CTF_DUMP.
498 (process_section_contents): Handle CTF_DUMP.
499 (shdr_to_ctf_sect): New.
500 (dump_ctf_indent_lines): New.
501 (dump_section_as_ctf): New.
502 (main): Free resources.
503 * Makefile.am (LIBCTF): New variable.
504 (objdump_DEPENDENCIES): Use it.
505 (readelf_DEPENDENCIES): Likewise.
506 (objdump_LDADD): Likewise.
507 (readelf_LDADD): Likewise.
508 * aclocal.m4: Regenerated.
509 * Makefile.in: Likewise.
511 * doc/binutils.texi (objdump): Document the new options.
513 * doc/ctf.options.texi: New.
514 * doc/Makefile.in: Regenerated.
515 * NEWS: Mention the new feature.
517 2019-05-27 Alan Modra <amodra@gmail.com>
519 * readelf.c (process_section_groups): Continue processing groups
520 when sh_entsize exceeds group size.
522 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
524 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
525 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
526 (get_symbol_other): Call get_aarch64_symbol_other.
528 2019-05-24 Alan Modra <amodra@gmail.com>
530 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
532 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
534 * MAINTAINERS: Add myself as the maintainer for BPF.
536 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
538 * readelf.c: Include elf/bpf.h.
539 (guess_is_rela): Hanle EM_BPF.
540 (dump_relocations): Likewise.
541 (is_32bit_abs_reloc): Likewise.
542 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
545 2019-05-21 Tamar Christina <tamar.christina@arm.com>
547 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
548 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
549 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
551 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
554 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
555 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
557 2019-05-20 Nick Clifton <nickc@redhat.com>
559 * po/ca.po: Updated Catalan translation.
561 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
563 * NEWS: Mention Armv8.1-M Mainline and MVE.
565 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
567 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
568 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
570 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
573 * objcopy.c: Add new option --verilog-data-width. Use it to set
574 the value of VerilogDataWidth.
575 * doc/binutils.texi: Document the new option.
576 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
577 * testsuite/binutils-all/verilog-1.hex: New file.
578 * testsuite/binutils-all/verilog-2.hex: New file.
579 * testsuite/binutils-all/verilog-4.hex: New file.
580 * testsuite/binutils-all/verilog-8.hex: New file.
581 * NEWS: Mention the new feature.
583 2019-05-10 Alan Modra <amodra@gmail.com>
585 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
586 (test_objdump_content_limited): Add text arg, use in place of .text.
587 (bintest_signed.o): Call get_standard_section_names for name of
590 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
592 * objdump.c (sign_extend_address): New function.
593 (dump_bfd): Sign-extend user-specified start/stop addresses
594 for targets that need it.
595 * testsuite/binutils-all/objdump.exp: Add tests for objdump
596 with start and stop addresses in higher address ranges.
598 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
600 * testsuite/binutils-all/objdump.exp: Correct executable
602 * testsuite/binutils-all/compress.exp: Likewise.
604 2019-05-01 Nick Clifton <nickc@redhat.com>
607 * nm.c: (print_format): New variable.
608 (value_format_32bit, value_format_64bit): Delete.
609 (set_print_radix): Remove code to alter value_format strings.
610 (set_output_format): Record chosen format in print_format.
611 (get_print_format): New function - constructs a printf formatting
612 string according to the requirements of size, radix, and output
614 (print_value): Use get_print_format.
615 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
618 2019-04-30 Alan Modra <amodra@gmail.com>
620 * wrstabs.c (stab_start_class_type): Add assert to work around
623 2019-04-24 Nick Clifton <nickc@redhat.com>
625 * objcopy.c (strip_main): Do not enable note merging by default if
626 just stripping debug or dwo information.
627 * doc/binutils.texi (strip): Update documentation.
629 2019-04-23 Nick Clifton <nickc@redhat.com>
631 * README-how-to-make-a-release: Add note to update the symbolic
632 link from "docs" to "docs-2.x" on the sourceware website.
634 2019-04-16 Alan Modra <amodra@gmail.com>
636 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
637 * testsuite/binutils-all/copy-3.d: Likewise.
639 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
641 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
643 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
645 * readelf.c (decode_x86_isa): Handle
646 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
647 * testsuite/binutils-all/i386/pr21231b.d: Updated.
648 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
650 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
652 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
654 2019-03-26 Tamar Christina <tamar.christina@arm.com>
656 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
657 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
658 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
659 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
660 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
661 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
662 * testsuite/binutils-all/arm/in-order.d: Likewise.
663 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
664 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
665 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
667 2019-03-26 Nick Clifton <nickc@redhat.com>
669 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
672 2019-03-26 Alan Modra <amodra@gmail.com>
674 * objdump.c (dump_relocs_in_section): Warning fix.
676 2019-03-25 Tamar Christina <tamar.christina@arm.com>
678 * testsuite/binutils-all/arm/in-order-all.d: New test.
679 * testsuite/binutils-all/arm/in-order.d: New test.
680 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
681 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
682 * testsuite/binutils-all/arm/out-of-order.T: New test.
683 * testsuite/binutils-all/arm/out-of-order.d: New test.
684 * testsuite/binutils-all/arm/out-of-order.s: New test.
687 2019-03-25 Tamar Christina <tamar.christina@arm.com>
689 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
690 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
691 * testsuite/binutils-all/aarch64/out-of-order.d:
693 2019-03-25 Tamar Christina <tamar.christina@arm.com>
695 * testsuite/binutils-all/aarch64/in-order.d: New test.
696 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
699 2019-03-25 Tamar Christina <tamar.christina@arm.com>
701 * objdump.c (disassemble_bytes): Pass stop_offset.
702 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
703 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
704 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
706 2019-03-19 Nick Clifton <nickc@redhat.com>
709 * objdump.c (load_specific_debug_section): Check that the amount
710 of memory to be allocated matches the size of the section.
712 2019-03-13 Sudakshina Das <sudi.das@arm.com>
714 * readelf.c (get_aarch64_dynamic_type): Add case for
716 (dynamic_section_aarch64_val): Likewise.
718 2019-03-13 Sudakshina Das <sudi.das@arm.com>
719 Szabolcs Nagy <szabolcs.nagy@arm.com>
721 * readelf.c (get_aarch64_dynamic_type): New.
722 (get_dynamic_type): Use above for EM_AARCH64.
723 (dynamic_section_aarch64_val): New.
724 (process_dynamic_section): Use above for EM_AARCH64.
726 2019-03-13 Sudakshina Das <sudi.das@arm.com>
728 * readelf.c (decode_aarch64_feature_1_and): New.
729 (print_gnu_property_note): Add case for AArch64 gnu notes.
731 2019-03-12 Alan Modra <amodra@gmail.com>
733 * objdump.c (load_specific_debug_section): Don't compare section
734 size against file size.
735 (dump_relocs_in_section): Don't compare reloc size against file size.
736 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
738 2019-03-05 Nick Clifton <nickc@redhat.com>
741 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
743 2019-03-05 Nick Clifton <nickc@redhat.com>
745 * po/sv.po: Updated Swedish translation.
747 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
750 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
751 of "lmap" with a "foreach" loop.
753 2019-03-04 Nick Clifton <nickc@redhat.com>
756 * objcopy.c (copy_archive): Do not copy thin archives.
758 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
760 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
762 2019-02-25 Nick Clifton <nickc@redhat.com>
764 * objdump.c (sym_ok): New function.
765 (find_symbol_for_address): Use new function.
766 (disassemble_section): Compare sections by name, not pointer.
767 (dump_dwarf): Move code to initialise byte_get pointer and iterate
768 over separate debug files from here to ...
769 (dump_bfd): ... here. Add parameter indicating that a separate
770 debug info file is being dumped. For main file, pull in the
771 symbol tables from all separate debug info files.
772 (display_object): Update call to dump_bfd.
773 * doc/binutils.texi: Document extened behaviour of the
774 --dwarf=follow-links option.
775 * NEWS: Mention this new feature.
776 * testsuite/binutils-all/objdump.WK2: Update expected output.
777 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
778 options and dump file parameters.
780 * testsuite/binutils-all/objdump.WK3: New file.
781 * testsuite/binutils-all/readelf.exp: Change expected output for
783 * testsuite/binutils-all/readelf.wKis: New file.
785 2019-02-22 Nick Clifton <nickc@redhat.com>
788 * dwarf.h (struct separate_info): New structure for containing
789 information on separate debug info files.
790 * dwarf.c (struct dwo_info): New structure for containing dwo
792 (first_dwo_info): Chain of dwo_info structures.
793 (first_separate_file): Chain of separate_info structures.
794 (separate_debug_file, separate_debug_filename): Delete.
795 (fetch_alt_indirect_string): Scan all separate debug info files
796 for the requested string.
797 (add_dwo_info): New function.
798 (add_dwo_name): New function.
799 (add_dwo_dir): New function.
800 (add_dwo_id: New function.
801 (free_dwo_info): New function.
802 (read_and_display_attr_value): Store DWO data using the new
804 (load_debug_section_with_follow): If necessary, scan the list of
805 separate debug info files for the requested section.
806 (add_separate_debug_file): New function.
807 (load_separate_debug_info): Call add_separate_debug_file to store
808 the information on the newly loaded file.
809 (load_dwo_file): Likewise.
810 (load_separate_debif_file): Rename to load_separate_debug_files.
811 Change return type to boolean. If following links then attempt to
812 load all separate debug info files, not just the first one.
813 (free_debug_memory): Release memory in dwo_info and separate_info
815 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
816 * readelf.c (process_object): Likewise.
817 * doc/debug.options.texi: Update descriptions of links and
818 follow-links options.
819 * testsuite/binutils-all/objdump.WK2: Update expected output.
820 * testsuite/binutils-all/readelf.k2: Likewise.
821 * NEWS: Announce the new feature.
823 2019-02-21 Nick Clifton <nickc@redhat.com>
826 * unwind-ia64.c: Include sysdep.h.
827 (unw_decode_x1): Check current pointer against end pointer before
829 (unw_decode_x2): Likewise.
830 (unw_decode_x3): Likewise.
831 (unw_decode_x4): Likewise.
832 (unw_decode_r2): Likewise.
833 (unw_decode_p2_p5): Likewise.
834 (unw_decode_p7_p10): Likewise.
835 (unw_decode): Likewise.
837 2019-02-20 Nick Clifton <nickc@redhat.com>
840 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
843 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
844 prevent walking off the end of the buffer.
845 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
846 (unw_decode_x2): Likewise.
847 (unw_decode_x3): Likewise.
848 (unw_decode_x4): Likewise.
849 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
850 (unw_decode_r3): Likewise.
851 (unw_decode_p7_p10): Likewise.
852 (unw_decode_b2): Likewise.
853 (unw_decode_b3_x4): Likewise.
856 * readelf.c (process_mips_specific): Check for an options section
857 that is too small to even contain a single option.
860 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
862 2019-02-20 Alan Modra <amodra@gmail.com>
866 * readelf.c (get_data): Avoid possibility of overflow when
867 checking for a read that may extend past end of file.
868 (process_program_headers): Likewise.
870 2019-02-20 Alan Modra <amodra@gmail.com>
873 * objdump.c (dump_bfd_private_header): Print warning if
874 bfd_print_private_bfd_data returns false.
876 2019-02-12 Nick Clifton <nickc@redhat.com>
879 * README-how-to-make-a-release: Use git clean to delete spurious
880 files from the local source repository.
882 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
884 * size.c (berkeley_format): Delete.
885 (enum output_format): New enum.
886 (selected_output_format): New variable.
887 (usage): Update to mention GNU format.
888 (main): Update to extract options, and select format as needed.
889 Handle GNU format where needed.
890 (berkeley_sum): Renamed to...
891 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
892 (berkeley_format): Renamed to...
893 (berkeley_or_gnu_format): ...this, and updated to handle both
895 (print_sizes): Handle GNU format.
896 * doc/binutils.texi (size): Document new GNU format.
897 * testsuite/binutils-all/size.exp: Add test of extended
899 * NEWS: Mention new functionality.
901 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
903 * doc/binutils.texi (size): Update example output for Berkeley
906 2019-02-07 Nick Clifton <nickc@redhat.com>
908 * README-how-to-make-a-release: Add a note about updating the
909 obsolete targets in the bfd/config.bfd file.
911 2019-02-04 Nick Clifton <nickc@redhat.com>
913 * README-how-to-make-a-release: Add more notes on making a release.
915 2019-01-25 Nick Clifton <nickc@redhat.com>
918 * readelf.c (process_notes_at): Prevent an illegal memory access
919 when the note's namesize is zero.
920 (decode_tic6x_unwind_bytecode): Add code to handle the case where
921 no registers are specified in a frame pop instruction.
923 2019-01-25 Nick Clifton <nickc@redhat.com>
925 * po/bg.po: Updated Bulgarian translation.
927 2019-01-23 Nick Clifton <nickc@redhat.com>
929 * po/fr.po: Updated French translation.
930 * po/pt.po: Updated Portuguese translation.
932 2019-01-21 Nick Clifton <nickc@redhat.com>
934 * po/uk.po: Updated Ukranian translation.
936 2019-01-19 Nick Clifton <nickc@redhat.com>
938 * configure: Regenerate.
939 * binutils/po/binutils.pot.
941 * README-how-to-make-a-release: Update description on how to make
944 2018-06-24 Nick Clifton <nickc@redhat.com>
948 2019-01-17 Nick Clifton <nickc@redhat.com>
950 * objdump.c (disassemble_section): When disassembling from a
951 symbol only stop at the next symbol if the original symbol was not
952 a function symbol. Otherwise continue disassembling until a new
954 * testsuite/binutils-all/objdump.exp: Add tests of extended
956 * testsuite/binutils-all/disasm.s: New test source file.
958 2019-01-16 Kito Cheng <kito@andestech.com>
959 Nelson Chu <nelson@andestech.com>
961 * readelf.c (get_riscv_section_type_name): New function.
962 (get_section_type_name): Add handler for RISC-V.
963 (riscv_attr_tag_t): Declare.
964 (riscv_attr_tag): New.
965 (display_riscv_attribute): New function.
966 (process_attributes): Add handler for RISC-V.
967 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
970 2019-01-10 Nick Clifton <nickc@redhat.com>
973 * objdump.c (sanitize_string): New function. Removes control
974 characters from symbol names.
975 (dump_section_header): Use new function.
976 (objdump_print_symname): Likewise.
977 (objdump_print_addr_with_sym): Likewise.
978 (show_line): Likewise.
979 (disassemble_bytes): Likewise.
980 (disassemble_section): Likewise.
981 (load_specific_debug_section): Likewise.
982 (read_section_stabs): Likewise.
983 (print_section_stabs): Likewise.
984 (dump_section): Likewise.
985 (dump_reloc_set): Likewise.
986 (dump_relocs_in_section): Likewise.
987 (dump_bfd): Likewise.
988 (display_any_bfd): Likewise.
990 2019-01-09 Nick Clifton <nickc@redhat.com>
993 * readelf.c (process_archive): Use arch.file_name in error
994 messages until the qualified name is available.
996 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
998 * configure: Regenerate.
1000 2019-01-09 Alan Modra <amodra@gmail.com>
1002 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
1003 unconditionally to tests needing the option rather than via a
1006 2019-01-08 Nick Clifton <nickc@redhat.com>
1009 * cxxfilt.c (hp_symbol_characters): Delete.
1010 (main): Remove depcreated demangling styles.
1011 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
1013 * testsuite/binutils-all/cxxfilt.exp: Use the
1014 --no-strip-underscore option for targets that do prefix their
1015 symbols with underscores.
1016 Update tests to eliminate those that use gnu v2 encoding.
1018 2019-01-08 Tamar Christina <tamar.christina@arm.com>
1021 * testsuite/binutils-all/copy-6.d: New test.
1022 * testsuite/binutils-all/objcopy.exp: Use it.
1024 2019-01-08 Alan Modra <amodra@gmail.com>
1026 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
1027 $srcdir/$subdir to source file name if it starts with "./".
1029 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1031 * readelf.c (get_machine_flags): Add RXv3 output.
1033 2019-01-04 Nick Clifton <nickc@redhat.com>
1036 * objdump.c (load_specific_debug_section): Check for integer
1037 overflow before attempting to allocate contents.
1039 2019-01-04 Nick Clifton <nickc@redhat.com>
1042 * objcopy.c (copy_object): Free dhandle after writing out the
1044 * objdump.c (dump_bfd): Free dhandle after printing out the debug
1048 2019-01-01 Alan Modra <amodra@gmail.com>
1050 Update year range in copyright notice of all files.
1052 For older changes see ChangeLog-2018
1054 Copyright (C) 2019 Free Software Foundation, Inc.
1056 Copying and distribution of this file, with or without modification,
1057 are permitted in any medium without royalty provided the copyright
1058 notice and this notice are preserved.
1064 version-control: never