1 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
3 * objdump.c (main): Fix tabdamage.
4 * readelf.c (CTF_DUMP): Likewise.
6 (dump_section_as_ctf): Likewise.
8 2019-08-03 Nick Alcock <nick.alcock@oracle.com>
10 * objdump.c (dump_ctf): Use the default CTF archive member as the
11 parent even when no parent section is specified.
12 (dump_ctf_archive_member): Only import from the parent
13 if this is not the default ".ctf" member.
15 2019-09-23 Nick Alcock <nick.alcock@oracle.com>
17 * Makefile.am (LIBCTF): Mention the .la file.
19 (readelf_DEPENDENCIES): Use it.
20 (readelf_LDADD): Likewise.
21 * Makefile.in: Regenerated.
23 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
25 * readelf.c (dump_ctf_symtab_name): Give default value.
26 (dump_ctf_strtab_name): Likewise.
27 (dump_section_as_ctf): Allow for the null string.
29 2019-07-08 Nick Alcock <nick.alcock@oracle.com>
31 * objdump.c (dump_ctf_archive_member): Dump the CTF header.
32 * readelf.c (dump_section_as_ctf): Likewise.
34 2019-10-02 Niklas Gürtler <profclonk@gmail.com>
37 * objcopy.c (copy_usage): Update description of
38 --set-section-alignment.
39 (copy_main): Interpret numeric argument of --set-section-alignment
40 as a byte alignment, not a power of two alignment.
41 * doc/binutils.texi: Update description of
42 --set-section-alignment.
43 * testsuite/binutils-all/set-section-alignment.d: New test.
44 * testsuite/binutils-all/objcopy.exp: Run the new test.
46 2019-09-30 Alan Modra <amodra@gmail.com>
49 * readelf.c (process_program_headers): Clear dynamic_addr and
52 2019-09-24 Alan Modra <amodra@gmail.com>
55 * nm.c (print_format_string): New.
56 (get_print_format): Delete saved_format. Move earlier.
57 (set_print_width): Call get_print_format.
58 (print_value): Use print_format_string.
60 2019-09-23 Alan Modra <amodra@gmail.com>
62 * dlltool.c: Include coff-bfd.h.
64 2019-09-23 Alan Modra <amodra@gmail.com>
67 * dwarf.c (get_type_signedness): Delete ineffective pointer
68 comparison check. Properly range check uvalue offset on
70 (read_and_display_attr_value): Range check uvalue offset before
71 calling get_type_signedness.
73 2019-09-20 Alan Modra <amodra@gmail.com>
75 * ar.c (write_archive): Use bfd_set_thin_archive.
77 2019-09-18 Tamar Christina <tamar.christina@arm.com>
79 * testsuite/binutils-all/objdump.exp (objump -S): Update testcases.
81 2019-09-18 Alan Modra <amodra@gmail.com>
83 * addr2line.c, * bucomm.c, * coffgrok.c, * dlltool.c, * nm.c,
84 * objcopy.c, * objdump.c, * od-elf32_avr.c, * od-macho.c,
85 * od-xcoff.c, * prdbg.c, * rdcoff.c, * rddbg.c, * rescoff.c,
86 * resres.c, * size.c, * srconv.c, * strings.c, * windmc.c: Update
87 throughout for bfd section macro and function changes.
89 2019-09-18 Alan Modra <amodra@gmail.com>
91 * nm.c: Update bfd_get_section to bfd_asymbol_section throughout.
92 * objcopy.c: Likewise.
93 * objdump.c: Likewise.
95 * objcopy.c (create_new_symbol): Use bfd_set_asymbol_name.
96 (filter_symbols): Likewise.
98 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
100 * doc/Makefile.am (MOSTLYCLEANFILES): Clean all man pages,
101 cxxfilt.man and binutils.info.
102 (MAINTAINERCLEANFILES): Remove.
103 * doc/Makefile.in: Re-generate.
105 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
107 * doc/Makefile.am: Remove references to binutils_TEXINFOS.
108 * doc/Makefile.in: Re-generate.
110 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
112 * doc/Makefile.am (install-data-loca): Remove target.
113 (DISTCLEANFILES): Remove variable.
114 * doc/Makefile.in: Re-generate.
116 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
118 * Makefile.in: Re-generate.
119 * configure: Re-generate.
120 * doc/Makefile.in: Re-generate.
122 2019-09-16 Phil Blundell <pb@pbcl.net>
124 * Makefile.in, configure. doc/Makefile.in: Regenerated.
126 2019-09-11 Tom Tromey <tom@tromey.com>
128 * objcopy.c (copy_archive): Update.
129 * bucomm.h (make_tempname, make_tempdir): Make argument const.
130 * bucomm.c (make_tempname, make_tempdir): Make argument const.
132 2019-09-11 Alan Modra <amodra@gmail.com>
135 * objdump.c (disassemble_bytes): Adjust code to avoid overlong
136 lines. Correct max_reloc_offset_into_insn test.
138 2019-09-10 Nick Clifton <nickc@redhat.com>
141 * objdump.c (null_print): New function.
142 (disassemble_bytes): Delete previous_octets local and replace with
143 a test of the max_reloc_offset_into_insn field of the
144 bfd_arch_info structure. If a reloc is a potential match for the
145 next insn, then perform a dummy disassembly in order to calculate
148 2019-09-09 Phil Blundell <pb@pbcl.net>
150 binutils 2.33 branch created.
152 2019-09-06 Alan Modra <amodra@gmail.com>
154 * nm.c (print_object_filename_bsd, print_object_filename_sysv),
155 (print_object_filename_posix, print_archive_filename_bsd),
156 (print_archive_filename_sysv, print_archive_filename_posix),
157 (print_archive_member_bsd, print_archive_member_sysv),
158 (print_archive_member_posix): Constify parameter.
159 (struct output_fns <print_object_filename, print_archive_filename>),
160 (<print_archive_member>): Likewise.
161 * objcopy.c (copy_archive): Add cast for make_tempdir.
163 2019-08-29 Alan Modra <amodra@gmail.com>
165 * dwarf.c (check_uvalue): Remove unnecessary pointer checks.
167 2019-08-28 Niklas Gürtler <profclonk@gmail.com>
170 * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant.
171 (struct section_list): Add alignment field.
172 (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT.
173 (copy_options): Add --set-section-alignment.
174 (copy_usage): Describe --set-section-alignment.
175 (find_section_list): Initialise the alignment field.
176 (setup_section): Handle the alignment field.
177 (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT.
178 * doc/binutils.texi: Document the new feature.
179 * NEWS: Mention the new feature.
181 2019-08-28 Nick Clifton <nickc@redhat.com>
184 * objdump.c (source_comment): New static variable.
185 (option_values): Add OPTION_SOURCE_COMMENT.
186 (long_opions): Add --source-comment.
187 (print_line): If source comment is set, use it as a prefix to the
189 (main): Handle OPTION_SOURCE_COMMENT.
190 * doc/binutils.texi: Document the new option.
191 * NEWS: Mention the new feature.
192 * testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests
193 of the -S and --source-comment options.
195 2019-08-27 Nick Clifton <nickc@redhat.com>
198 * dwarf.c (MAX_CU_NESTING): New constant.
199 (level_type_signed): New static array.
200 (skip_attr_bytes): New function.
201 (get_type_signedness): New function.
202 (read_and_print_leb128): New function.
203 (display_discr_list): New function.
204 (read_and_display_attr_value): Add start parameter.
205 Use new functions when handling DW_AT_type and DW_AT_discr_list.
206 (read_and_display_attr): Add start parameter. Pass to
207 read_and_display_attr_value.
208 (process_debug_info): Update call to read_and_display_attr.
209 (display_formatted_table): Likewise.
210 (display_debug_lines_decoded): Likewise. Also add start
212 (display_debug_lines): Likewise.
213 * testsuite/binutils-all/dwarf-attributes.S: Update discrimination
215 * testsuite/binutils-all/dwarf-attributes.W: Update expected
218 2019-08-26 Alan Modra <amodra@gmail.com>
221 * debug.c (debug_write_type): Call empty_type for NULL type here..
222 (debug_write_type): ..rather than in just one case here.
224 2019-08-23 Nick Clifton <nickc@redhat.com>
227 * dwarf.c (check_uvalue): New function. Ensures that a block's
229 (read_and_display_attr_value): Use check_value when processsing
230 DW_FORM_block<n> attributes.
232 2019-08-22 Nick Clifton <nickc@redhat.com>
235 * dwarf.c (process_cu_tu_index): Handle the case where a table
236 does not have any columns.
238 2019-08-19 Alan Modra <amodra@gmail.com>
241 * dwarf.c (display_debug_frames): Use the read_cie check and error
242 for augmentation data length.
244 2019-08-17 Alan Modra <amodra@gmail.com>
247 * dwarf.c (comp_addr_base): Dereference args.
249 2019-08-16 Alan Modra <amodra@gmail.com>
253 * readelf.c (get_symbol_version_string): Set sym_info earlier.
255 2019-08-15 Nick Clifton <nickc@redhat.com>
258 * doc/binutils.texi (nm): Document the 'n' symbol type.
260 2019-08-15 Christophe Vidal <support@krizalys.com>
262 * docs/binutils.texi: Fixed notice message disassembler options
263 section of the man page.
265 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
267 * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type.
268 (get_mips_section_type_name): Return MI{S_XHASH name string.
269 (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic
271 (process_symbol_table): Initialize the .MIPS.xhash section
272 pointer. Adjust the readelf output to support the new section.
273 (process_object): Set the .MIPS.xhash dynamic info to zero.
275 2019-08-09 Tamar Christina <tamar.christina@arm.com>
277 * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff.
278 * testsuite/binutils-all/arm/in-order.d: Likewise.
279 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
280 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
282 2019-08-08 Nick Clifton <nickc@redhat.com>
285 * readelf.c (process_notes_at): Left justify the "Data size"
287 * testsuite/binutils-all/i386/empty.d: Adjust for new output format.
288 * testsuite/binutils-all/i386/ibt.d: Likewise.
289 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
290 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
291 * testsuite/binutils-all/i386/shstk.d: Likewise.
292 * testsuite/binutils-all/note-2-32.d: Likewise.
293 * testsuite/binutils-all/note-2-64.d: Likewise.
294 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
295 * testsuite/binutils-all/x86-64/empty.d: Likewise.
296 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
297 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
298 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
299 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
300 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
301 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
302 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
303 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
304 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
305 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
306 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
307 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
308 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
309 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
311 2019-08-08 Nick Clifton <nickc@redhat.com>
313 * testsuite/gentestdlls.c (main): Move declaration of loop
314 variable outside of the for() statement.
316 2019-08-08 Jordan Rupprecht <rupprecht@google.com>
318 * readelf.c (process_note): Mask unknown description data bytes.
320 2019-08-08 Alan Modra <amodra@gmail.com>
322 * readelf.c (get_data): Improve overflow checks.
324 2019-08-07 Nick Clifton <nickc@redhat.com>
327 * doc/binutils.texi: Ensure consistent formating of title strings
328 for man pages. Extend the title of the size man page to be more
331 2019-08-07 Omair Majid <omajid@redhat.com>
333 * testsuite/binutils-all/objdump.exp
334 (test_objdump_dotnet_assemblies): Fix test to distinguish errors
335 in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
336 introduced machine types.
337 * testsuite/gentestdlls.c (write_simple_dll): New function.
338 (main): Generate simple and Linux-specific variants of pei-i386
339 and pei-x86-64 files so both can be used by tests.
341 2019-08-07 Alan Modra <amodra@gmail.com>
344 * readelf.c (dump_ia64_unwind): Check that buffer is large
345 enough for "stamp" before reading.
347 2019-08-05 Nick Clifton <nickc@redhat.com>
350 * objcopy.c (merge_gnu_build_notes): Do not insist on the first
351 note being a version note.
352 Remove spurious debugging fprintf.
354 2019-08-05 Nick Clifton <nickc@redhat.com>
357 * readelf.c (apply_relocations): Catch potential integer overflow
358 whilst checking reloc location against section size.
360 2019-08-02 Alan Modra <amodra@gmail.com>
363 * readelf.c (ABSADDR): Delete.
364 (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
366 2019-07-29 Martin Liska <mliska@suse.cz>
369 * nm.c (filter_symbols): Set report_plugin_err if
371 (display_rel_file): Report error for a missing LTO plugin.
373 2019-07-26 Alan Modra <amodra@gmail.com>
376 * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
377 systems by casting ncols and nslots expressions to size_t. Display
378 number of columns and slots before giving up due to buffer overflow.
379 Use %u to display unsigned ints. Perform more pointer wrap tests.
381 2019-07-25 Tom Tromey <tromey@adacore.com>
384 * dwarf.c (display_debug_names): Display the contents of the
385 augmentation string, if it is printable.
387 2019-07-25 Nick Clifton <nickc@redhat.com>
390 * readelf.c (process_mips_specific): Check for buffer overflow
391 before reading reginfo information.
393 2019-07-24 Nick Clifton <nickc@redhat.com>
396 * ar.c (decode_options): Restart option scanning if no operation
397 is detected and argument remain to be scanned.
399 2019-07-23 Nick Clifton <nickc@redhat.com>
402 * objdump.c (is_relocateable): Delete.
403 (load_specific_debug_section): Test the abfd for relocations
404 directly, rather than relying upon is_relocateable.
405 (dump_dwarf): Delete initlialization of is_relocateable.
407 2019-07-23 Alan Modra <amodra@gmail.com>
409 * readelf.c (get_parisc_segment_type): Split off hpux entries..
410 (get_ia64_segment_type): ..and these..
411 (get_hpux_segment_type): ..to here.
412 (get_segment_type): Condition GNU_MBIND on osabi. Use
413 get_hpux_segment_type.
414 (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
415 (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
417 2019-07-23 Alan Modra <amodra@gmail.com>
419 * testsuite/binutils-all/objcopy.exp (elf64): Correct object
420 file used to set this variable.
422 2019-07-23 Omar Majid <omajid@redhat.com>
424 * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
425 (GENTESTDLLSPROG): Define.
426 (TEST_PROGS): Add GENTESTDLLSPROG.
427 * Makefile.in: Regenerate.
428 * testsuite/binutils-all/objdump.exp
429 (test_objdump_dotnet_assemblies): New proc.
431 * testsuite/gentestdlls.c: New source file.
433 2019-06-28 Nick Clifton <nickc@redhat.com>
436 * objdump.c (slurp_symtab): Fail with a helpful error message if
437 the symbol table is too large. Skip this check for MMO format
440 2019-06-26 Nick Clifton <nickc@redhat.com>
443 * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
444 indicate this in the output.
445 (bfd_nonfatal_message): Likewise.
447 2019-06-25 Jan Beulich <jbeulich@suse.com>
449 * readelf.c (dump_ctf_indent_lines): Rename local variable
450 "spaces" to "blanks".
452 2019-06-25 Jan Beulich <jbeulich@suse.com>
454 * objdump.c (dump_ctf_indent_lines): Rename local variable
455 "spaces" to "blanks".
457 2019-06-14 Alan Modra <amodra@gmail.com>
459 * Makefile.in: Regenerate.
460 * aclocal.m4: Regenerate.
461 * doc/Makefile.in: Regenerate.
463 2019-06-12 Christos Zoulas <christos@zoulas.com>
466 * readelf.c (process_netbsd_elf_note): Add support for
468 (process_note): Add support for PaX notes.
470 2019-06-12 Christos Zoulas <christos@zoulas.com>
473 * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
476 2019-06-12 Christos Zoulas <christos@zoulas.com>
479 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
482 2019-06-11 Christos Zoulas <christos@zoulas.com>
485 * readelf.c (get_alpha_symbol_other): New function.
486 (get_symbol_other): Use for Alpha symbols.
487 (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
489 2019-06-11 Christos Zoulas <christos@zoulas.com>
492 * readelf.c (decode_arm_unwind): Ensure that the local variable
493 'addr' is always initialised.
495 2019-06-10 Christos Zoulas <christos@zoulas.com>
498 * strings.c (print_strings): Use %u to print unsigned values in
501 2019-06-10 Christos Zoulas <christos@zoulas.com>
504 * arsup.c (ar_open): Use asprintf in place of xmalloc and
507 2019-06-03 Nick Clifton <nickc@redhat.com>
510 2019-05-29 Nick Clifton <nickc@redhat.com>
512 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
514 (HAVE_LIBCTF): Define if libctf support is available.
515 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
516 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
518 * readelf.c: Likewise.
519 * configure: Regenerate.
520 * Makefile.in: Regenerate.
521 * config.in: Regenerate.
523 2019-05-30 Nick Alcock <nick.alcock@oracle.com>
525 * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
527 * readelf.c (shdr_to_ctf_sect): Likewise.
529 2019-05-30 Nick Clifton <nickc@redhat.com>
532 * readelf.c (process_version_sections): Add 0x prefix to address
533 display. Correct indentation.
535 2019-05-30 Alan Modra <amodra@gmail.com>
537 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
538 s12z to targets not supporting this feature.
540 2019-05-30 Alan Modra <amodra@gmail.com>
542 * testsuite/lib/binutils-common.exp (run_dump_test): Support
543 tcl procedures for xfail args.
545 2019-05-29 Nick Clifton <nickc@redhat.com>
547 * README-how-to-make-a-release: Add libctf to list of directories
548 that need updates in their ChangeLogs.
550 2019-05-29 Nick Clifton <nickc@redhat.com>
552 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
554 (HAVE_LIBCTF): Define if libctf support is available.
555 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
556 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
558 * readelf.c: Likewise.
559 * configure: Regenerate.
560 * Makefile.in: Regenerate.
561 * config.in: Regenerate.
563 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
565 * MAINTAINERS: Add myself as CTF maintainer.
567 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
569 * objdump.c (ctf-api.h): New include.
570 (dump_ctf_section_info): New variable.
571 (dump_ctf_section_name): Likewise.
572 (usage): Describe new options.
573 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
574 (main): Use them to add --ctf and --ctf-parent.
575 (read_section_stabs): Add new parameter, entsize_ptr.
576 (find_stabs_section): Adjust accordingly.
578 (dump_ctf_indent_lines): New.
579 (dump_ctf_archive_member): New.
581 (dump_bfd): Call it. Free resources afterwards.
582 * readelf.c (ctf-api.h): New include.
584 (static bfd_boolean do_ctf): Likewise.
585 (dump_ctf_parent_name): Likewise.
586 (dump_ctf_symtab_name): Likewise.
587 (dump_ctf_strtab_name): Likewise.
588 (OPTION_CTF_DUMP): Likewise.
589 (OPTION_CTF_PARENT): Likewise.
590 (OPTION_CTF_SYMBOLS): Likewise.
591 (OPTION_CTF_STRINGS): Likewise.
594 (parse_args): Handle the new options, requesting CTF_DUMP.
595 (process_section_contents): Handle CTF_DUMP.
596 (shdr_to_ctf_sect): New.
597 (dump_ctf_indent_lines): New.
598 (dump_section_as_ctf): New.
599 (main): Free resources.
600 * Makefile.am (LIBCTF): New variable.
601 (objdump_DEPENDENCIES): Use it.
602 (readelf_DEPENDENCIES): Likewise.
603 (objdump_LDADD): Likewise.
604 (readelf_LDADD): Likewise.
605 * aclocal.m4: Regenerated.
606 * Makefile.in: Likewise.
608 * doc/binutils.texi (objdump): Document the new options.
610 * doc/ctf.options.texi: New.
611 * doc/Makefile.in: Regenerated.
612 * NEWS: Mention the new feature.
614 2019-05-27 Alan Modra <amodra@gmail.com>
616 * readelf.c (process_section_groups): Continue processing groups
617 when sh_entsize exceeds group size.
619 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
621 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
622 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
623 (get_symbol_other): Call get_aarch64_symbol_other.
625 2019-05-24 Alan Modra <amodra@gmail.com>
627 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
629 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
631 * MAINTAINERS: Add myself as the maintainer for BPF.
633 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
635 * readelf.c: Include elf/bpf.h.
636 (guess_is_rela): Hanle EM_BPF.
637 (dump_relocations): Likewise.
638 (is_32bit_abs_reloc): Likewise.
639 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
642 2019-05-21 Tamar Christina <tamar.christina@arm.com>
644 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
645 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
646 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
648 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
651 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
652 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
654 2019-05-20 Nick Clifton <nickc@redhat.com>
656 * po/ca.po: Updated Catalan translation.
658 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
660 * NEWS: Mention Armv8.1-M Mainline and MVE.
662 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
664 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
665 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
667 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
670 * objcopy.c: Add new option --verilog-data-width. Use it to set
671 the value of VerilogDataWidth.
672 * doc/binutils.texi: Document the new option.
673 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
674 * testsuite/binutils-all/verilog-1.hex: New file.
675 * testsuite/binutils-all/verilog-2.hex: New file.
676 * testsuite/binutils-all/verilog-4.hex: New file.
677 * testsuite/binutils-all/verilog-8.hex: New file.
678 * NEWS: Mention the new feature.
680 2019-05-10 Alan Modra <amodra@gmail.com>
682 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
683 (test_objdump_content_limited): Add text arg, use in place of .text.
684 (bintest_signed.o): Call get_standard_section_names for name of
687 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
689 * objdump.c (sign_extend_address): New function.
690 (dump_bfd): Sign-extend user-specified start/stop addresses
691 for targets that need it.
692 * testsuite/binutils-all/objdump.exp: Add tests for objdump
693 with start and stop addresses in higher address ranges.
695 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
697 * testsuite/binutils-all/objdump.exp: Correct executable
699 * testsuite/binutils-all/compress.exp: Likewise.
701 2019-05-01 Nick Clifton <nickc@redhat.com>
704 * nm.c: (print_format): New variable.
705 (value_format_32bit, value_format_64bit): Delete.
706 (set_print_radix): Remove code to alter value_format strings.
707 (set_output_format): Record chosen format in print_format.
708 (get_print_format): New function - constructs a printf formatting
709 string according to the requirements of size, radix, and output
711 (print_value): Use get_print_format.
712 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
715 2019-04-30 Alan Modra <amodra@gmail.com>
717 * wrstabs.c (stab_start_class_type): Add assert to work around
720 2019-04-24 Nick Clifton <nickc@redhat.com>
722 * objcopy.c (strip_main): Do not enable note merging by default if
723 just stripping debug or dwo information.
724 * doc/binutils.texi (strip): Update documentation.
726 2019-04-23 Nick Clifton <nickc@redhat.com>
728 * README-how-to-make-a-release: Add note to update the symbolic
729 link from "docs" to "docs-2.x" on the sourceware website.
731 2019-04-16 Alan Modra <amodra@gmail.com>
733 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
734 * testsuite/binutils-all/copy-3.d: Likewise.
736 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
738 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
740 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
742 * readelf.c (decode_x86_isa): Handle
743 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
744 * testsuite/binutils-all/i386/pr21231b.d: Updated.
745 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
747 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
749 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
751 2019-03-26 Tamar Christina <tamar.christina@arm.com>
753 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
754 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
755 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
756 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
757 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
758 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
759 * testsuite/binutils-all/arm/in-order.d: Likewise.
760 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
761 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
762 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
764 2019-03-26 Nick Clifton <nickc@redhat.com>
766 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
769 2019-03-26 Alan Modra <amodra@gmail.com>
771 * objdump.c (dump_relocs_in_section): Warning fix.
773 2019-03-25 Tamar Christina <tamar.christina@arm.com>
775 * testsuite/binutils-all/arm/in-order-all.d: New test.
776 * testsuite/binutils-all/arm/in-order.d: New test.
777 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
778 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
779 * testsuite/binutils-all/arm/out-of-order.T: New test.
780 * testsuite/binutils-all/arm/out-of-order.d: New test.
781 * testsuite/binutils-all/arm/out-of-order.s: New test.
784 2019-03-25 Tamar Christina <tamar.christina@arm.com>
786 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
787 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
788 * testsuite/binutils-all/aarch64/out-of-order.d:
790 2019-03-25 Tamar Christina <tamar.christina@arm.com>
792 * testsuite/binutils-all/aarch64/in-order.d: New test.
793 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
796 2019-03-25 Tamar Christina <tamar.christina@arm.com>
798 * objdump.c (disassemble_bytes): Pass stop_offset.
799 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
800 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
801 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
803 2019-03-19 Nick Clifton <nickc@redhat.com>
806 * objdump.c (load_specific_debug_section): Check that the amount
807 of memory to be allocated matches the size of the section.
809 2019-03-13 Sudakshina Das <sudi.das@arm.com>
811 * readelf.c (get_aarch64_dynamic_type): Add case for
813 (dynamic_section_aarch64_val): Likewise.
815 2019-03-13 Sudakshina Das <sudi.das@arm.com>
816 Szabolcs Nagy <szabolcs.nagy@arm.com>
818 * readelf.c (get_aarch64_dynamic_type): New.
819 (get_dynamic_type): Use above for EM_AARCH64.
820 (dynamic_section_aarch64_val): New.
821 (process_dynamic_section): Use above for EM_AARCH64.
823 2019-03-13 Sudakshina Das <sudi.das@arm.com>
825 * readelf.c (decode_aarch64_feature_1_and): New.
826 (print_gnu_property_note): Add case for AArch64 gnu notes.
828 2019-03-12 Alan Modra <amodra@gmail.com>
830 * objdump.c (load_specific_debug_section): Don't compare section
831 size against file size.
832 (dump_relocs_in_section): Don't compare reloc size against file size.
833 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
835 2019-03-05 Nick Clifton <nickc@redhat.com>
838 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
840 2019-03-05 Nick Clifton <nickc@redhat.com>
842 * po/sv.po: Updated Swedish translation.
844 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
847 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
848 of "lmap" with a "foreach" loop.
850 2019-03-04 Nick Clifton <nickc@redhat.com>
853 * objcopy.c (copy_archive): Do not copy thin archives.
855 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
857 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
859 2019-02-25 Nick Clifton <nickc@redhat.com>
861 * objdump.c (sym_ok): New function.
862 (find_symbol_for_address): Use new function.
863 (disassemble_section): Compare sections by name, not pointer.
864 (dump_dwarf): Move code to initialise byte_get pointer and iterate
865 over separate debug files from here to ...
866 (dump_bfd): ... here. Add parameter indicating that a separate
867 debug info file is being dumped. For main file, pull in the
868 symbol tables from all separate debug info files.
869 (display_object): Update call to dump_bfd.
870 * doc/binutils.texi: Document extened behaviour of the
871 --dwarf=follow-links option.
872 * NEWS: Mention this new feature.
873 * testsuite/binutils-all/objdump.WK2: Update expected output.
874 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
875 options and dump file parameters.
877 * testsuite/binutils-all/objdump.WK3: New file.
878 * testsuite/binutils-all/readelf.exp: Change expected output for
880 * testsuite/binutils-all/readelf.wKis: New file.
882 2019-02-22 Nick Clifton <nickc@redhat.com>
885 * dwarf.h (struct separate_info): New structure for containing
886 information on separate debug info files.
887 * dwarf.c (struct dwo_info): New structure for containing dwo
889 (first_dwo_info): Chain of dwo_info structures.
890 (first_separate_file): Chain of separate_info structures.
891 (separate_debug_file, separate_debug_filename): Delete.
892 (fetch_alt_indirect_string): Scan all separate debug info files
893 for the requested string.
894 (add_dwo_info): New function.
895 (add_dwo_name): New function.
896 (add_dwo_dir): New function.
897 (add_dwo_id: New function.
898 (free_dwo_info): New function.
899 (read_and_display_attr_value): Store DWO data using the new
901 (load_debug_section_with_follow): If necessary, scan the list of
902 separate debug info files for the requested section.
903 (add_separate_debug_file): New function.
904 (load_separate_debug_info): Call add_separate_debug_file to store
905 the information on the newly loaded file.
906 (load_dwo_file): Likewise.
907 (load_separate_debif_file): Rename to load_separate_debug_files.
908 Change return type to boolean. If following links then attempt to
909 load all separate debug info files, not just the first one.
910 (free_debug_memory): Release memory in dwo_info and separate_info
912 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
913 * readelf.c (process_object): Likewise.
914 * doc/debug.options.texi: Update descriptions of links and
915 follow-links options.
916 * testsuite/binutils-all/objdump.WK2: Update expected output.
917 * testsuite/binutils-all/readelf.k2: Likewise.
918 * NEWS: Announce the new feature.
920 2019-02-21 Nick Clifton <nickc@redhat.com>
923 * unwind-ia64.c: Include sysdep.h.
924 (unw_decode_x1): Check current pointer against end pointer before
926 (unw_decode_x2): Likewise.
927 (unw_decode_x3): Likewise.
928 (unw_decode_x4): Likewise.
929 (unw_decode_r2): Likewise.
930 (unw_decode_p2_p5): Likewise.
931 (unw_decode_p7_p10): Likewise.
932 (unw_decode): Likewise.
934 2019-02-20 Nick Clifton <nickc@redhat.com>
937 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
940 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
941 prevent walking off the end of the buffer.
942 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
943 (unw_decode_x2): Likewise.
944 (unw_decode_x3): Likewise.
945 (unw_decode_x4): Likewise.
946 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
947 (unw_decode_r3): Likewise.
948 (unw_decode_p7_p10): Likewise.
949 (unw_decode_b2): Likewise.
950 (unw_decode_b3_x4): Likewise.
953 * readelf.c (process_mips_specific): Check for an options section
954 that is too small to even contain a single option.
957 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
959 2019-02-20 Alan Modra <amodra@gmail.com>
963 * readelf.c (get_data): Avoid possibility of overflow when
964 checking for a read that may extend past end of file.
965 (process_program_headers): Likewise.
967 2019-02-20 Alan Modra <amodra@gmail.com>
970 * objdump.c (dump_bfd_private_header): Print warning if
971 bfd_print_private_bfd_data returns false.
973 2019-02-12 Nick Clifton <nickc@redhat.com>
976 * README-how-to-make-a-release: Use git clean to delete spurious
977 files from the local source repository.
979 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
981 * size.c (berkeley_format): Delete.
982 (enum output_format): New enum.
983 (selected_output_format): New variable.
984 (usage): Update to mention GNU format.
985 (main): Update to extract options, and select format as needed.
986 Handle GNU format where needed.
987 (berkeley_sum): Renamed to...
988 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
989 (berkeley_format): Renamed to...
990 (berkeley_or_gnu_format): ...this, and updated to handle both
992 (print_sizes): Handle GNU format.
993 * doc/binutils.texi (size): Document new GNU format.
994 * testsuite/binutils-all/size.exp: Add test of extended
996 * NEWS: Mention new functionality.
998 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1000 * doc/binutils.texi (size): Update example output for Berkeley
1003 2019-02-07 Nick Clifton <nickc@redhat.com>
1005 * README-how-to-make-a-release: Add a note about updating the
1006 obsolete targets in the bfd/config.bfd file.
1008 2019-02-04 Nick Clifton <nickc@redhat.com>
1010 * README-how-to-make-a-release: Add more notes on making a release.
1012 2019-01-25 Nick Clifton <nickc@redhat.com>
1015 * readelf.c (process_notes_at): Prevent an illegal memory access
1016 when the note's namesize is zero.
1017 (decode_tic6x_unwind_bytecode): Add code to handle the case where
1018 no registers are specified in a frame pop instruction.
1020 2019-01-25 Nick Clifton <nickc@redhat.com>
1022 * po/bg.po: Updated Bulgarian translation.
1024 2019-01-23 Nick Clifton <nickc@redhat.com>
1026 * po/fr.po: Updated French translation.
1027 * po/pt.po: Updated Portuguese translation.
1029 2019-01-21 Nick Clifton <nickc@redhat.com>
1031 * po/uk.po: Updated Ukranian translation.
1033 2019-01-19 Nick Clifton <nickc@redhat.com>
1035 * configure: Regenerate.
1036 * binutils/po/binutils.pot.
1038 * README-how-to-make-a-release: Update description on how to make
1041 2018-06-24 Nick Clifton <nickc@redhat.com>
1043 2.32 branch created.
1045 2019-01-17 Nick Clifton <nickc@redhat.com>
1047 * objdump.c (disassemble_section): When disassembling from a
1048 symbol only stop at the next symbol if the original symbol was not
1049 a function symbol. Otherwise continue disassembling until a new
1050 function is reached.
1051 * testsuite/binutils-all/objdump.exp: Add tests of extended
1053 * testsuite/binutils-all/disasm.s: New test source file.
1055 2019-01-16 Kito Cheng <kito@andestech.com>
1056 Nelson Chu <nelson@andestech.com>
1058 * readelf.c (get_riscv_section_type_name): New function.
1059 (get_section_type_name): Add handler for RISC-V.
1060 (riscv_attr_tag_t): Declare.
1061 (riscv_attr_tag): New.
1062 (display_riscv_attribute): New function.
1063 (process_attributes): Add handler for RISC-V.
1064 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
1067 2019-01-10 Nick Clifton <nickc@redhat.com>
1070 * objdump.c (sanitize_string): New function. Removes control
1071 characters from symbol names.
1072 (dump_section_header): Use new function.
1073 (objdump_print_symname): Likewise.
1074 (objdump_print_addr_with_sym): Likewise.
1075 (show_line): Likewise.
1076 (disassemble_bytes): Likewise.
1077 (disassemble_section): Likewise.
1078 (load_specific_debug_section): Likewise.
1079 (read_section_stabs): Likewise.
1080 (print_section_stabs): Likewise.
1081 (dump_section): Likewise.
1082 (dump_reloc_set): Likewise.
1083 (dump_relocs_in_section): Likewise.
1084 (dump_bfd): Likewise.
1085 (display_any_bfd): Likewise.
1087 2019-01-09 Nick Clifton <nickc@redhat.com>
1090 * readelf.c (process_archive): Use arch.file_name in error
1091 messages until the qualified name is available.
1093 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1095 * configure: Regenerate.
1097 2019-01-09 Alan Modra <amodra@gmail.com>
1099 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
1100 unconditionally to tests needing the option rather than via a
1103 2019-01-08 Nick Clifton <nickc@redhat.com>
1106 * cxxfilt.c (hp_symbol_characters): Delete.
1107 (main): Remove depcreated demangling styles.
1108 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
1110 * testsuite/binutils-all/cxxfilt.exp: Use the
1111 --no-strip-underscore option for targets that do prefix their
1112 symbols with underscores.
1113 Update tests to eliminate those that use gnu v2 encoding.
1115 2019-01-08 Tamar Christina <tamar.christina@arm.com>
1118 * testsuite/binutils-all/copy-6.d: New test.
1119 * testsuite/binutils-all/objcopy.exp: Use it.
1121 2019-01-08 Alan Modra <amodra@gmail.com>
1123 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
1124 $srcdir/$subdir to source file name if it starts with "./".
1126 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1128 * readelf.c (get_machine_flags): Add RXv3 output.
1130 2019-01-04 Nick Clifton <nickc@redhat.com>
1133 * objdump.c (load_specific_debug_section): Check for integer
1134 overflow before attempting to allocate contents.
1136 2019-01-04 Nick Clifton <nickc@redhat.com>
1139 * objcopy.c (copy_object): Free dhandle after writing out the
1141 * objdump.c (dump_bfd): Free dhandle after printing out the debug
1145 2019-01-01 Alan Modra <amodra@gmail.com>
1147 Update year range in copyright notice of all files.
1149 For older changes see ChangeLog-2018
1151 Copyright (C) 2019 Free Software Foundation, Inc.
1153 Copying and distribution of this file, with or without modification,
1154 are permitted in any medium without royalty provided the copyright
1155 notice and this notice are preserved.
1161 version-control: never