1 2019-09-06 Alan Modra <amodra@gmail.com>
3 * nm.c (print_object_filename_bsd, print_object_filename_sysv),
4 (print_object_filename_posix, print_archive_filename_bsd),
5 (print_archive_filename_sysv, print_archive_filename_posix),
6 (print_archive_member_bsd, print_archive_member_sysv),
7 (print_archive_member_posix): Constify parameter.
8 (struct output_fns <print_object_filename, print_archive_filename>),
9 (<print_archive_member>): Likewise.
10 * objcopy.c (copy_archive): Add cast for make_tempdir.
12 2019-08-29 Alan Modra <amodra@gmail.com>
14 * dwarf.c (check_uvalue): Remove unnecessary pointer checks.
16 2019-08-28 Niklas Gürtler <profclonk@gmail.com>
19 * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant.
20 (struct section_list): Add alignment field.
21 (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT.
22 (copy_options): Add --set-section-alignment.
23 (copy_usage): Describe --set-section-alignment.
24 (find_section_list): Initialise the alignment field.
25 (setup_section): Handle the alignment field.
26 (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT.
27 * doc/binutils.texi: Document the new feature.
28 * NEWS: Mention the new feature.
30 2019-08-28 Nick Clifton <nickc@redhat.com>
33 * objdump.c (source_comment): New static variable.
34 (option_values): Add OPTION_SOURCE_COMMENT.
35 (long_opions): Add --source-comment.
36 (print_line): If source comment is set, use it as a prefix to the
38 (main): Handle OPTION_SOURCE_COMMENT.
39 * doc/binutils.texi: Document the new option.
40 * NEWS: Mention the new feature.
41 * testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests
42 of the -S and --source-comment options.
44 2019-08-27 Nick Clifton <nickc@redhat.com>
47 * dwarf.c (MAX_CU_NESTING): New constant.
48 (level_type_signed): New static array.
49 (skip_attr_bytes): New function.
50 (get_type_signedness): New function.
51 (read_and_print_leb128): New function.
52 (display_discr_list): New function.
53 (read_and_display_attr_value): Add start parameter.
54 Use new functions when handling DW_AT_type and DW_AT_discr_list.
55 (read_and_display_attr): Add start parameter. Pass to
56 read_and_display_attr_value.
57 (process_debug_info): Update call to read_and_display_attr.
58 (display_formatted_table): Likewise.
59 (display_debug_lines_decoded): Likewise. Also add start
61 (display_debug_lines): Likewise.
62 * testsuite/binutils-all/dwarf-attributes.S: Update discrimination
64 * testsuite/binutils-all/dwarf-attributes.W: Update expected
67 2019-08-26 Alan Modra <amodra@gmail.com>
70 * debug.c (debug_write_type): Call empty_type for NULL type here..
71 (debug_write_type): ..rather than in just one case here.
73 2019-08-23 Nick Clifton <nickc@redhat.com>
76 * dwarf.c (check_uvalue): New function. Ensures that a block's
78 (read_and_display_attr_value): Use check_value when processsing
79 DW_FORM_block<n> attributes.
81 2019-08-22 Nick Clifton <nickc@redhat.com>
84 * dwarf.c (process_cu_tu_index): Handle the case where a table
85 does not have any columns.
87 2019-08-19 Alan Modra <amodra@gmail.com>
90 * dwarf.c (display_debug_frames): Use the read_cie check and error
91 for augmentation data length.
93 2019-08-17 Alan Modra <amodra@gmail.com>
96 * dwarf.c (comp_addr_base): Dereference args.
98 2019-08-16 Alan Modra <amodra@gmail.com>
102 * readelf.c (get_symbol_version_string): Set sym_info earlier.
104 2019-08-15 Nick Clifton <nickc@redhat.com>
107 * doc/binutils.texi (nm): Document the 'n' symbol type.
109 2019-08-15 Christophe Vidal <support@krizalys.com>
111 * docs/binutils.texi: Fixed notice message disassembler options
112 section of the man page.
114 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
116 * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type.
117 (get_mips_section_type_name): Return MI{S_XHASH name string.
118 (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic
120 (process_symbol_table): Initialize the .MIPS.xhash section
121 pointer. Adjust the readelf output to support the new section.
122 (process_object): Set the .MIPS.xhash dynamic info to zero.
124 2019-08-09 Tamar Christina <tamar.christina@arm.com>
126 * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff.
127 * testsuite/binutils-all/arm/in-order.d: Likewise.
128 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
129 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
131 2019-08-08 Nick Clifton <nickc@redhat.com>
134 * readelf.c (process_notes_at): Left justify the "Data size"
136 * testsuite/binutils-all/i386/empty.d: Adjust for new output format.
137 * testsuite/binutils-all/i386/ibt.d: Likewise.
138 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
139 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
140 * testsuite/binutils-all/i386/shstk.d: Likewise.
141 * testsuite/binutils-all/note-2-32.d: Likewise.
142 * testsuite/binutils-all/note-2-64.d: Likewise.
143 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
144 * testsuite/binutils-all/x86-64/empty.d: Likewise.
145 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
146 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
147 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
148 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
149 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
150 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
151 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
152 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
153 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
154 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
155 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
156 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
157 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
158 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
160 2019-08-08 Nick Clifton <nickc@redhat.com>
162 * testsuite/gentestdlls.c (main): Move declaration of loop
163 variable outside of the for() statement.
165 2019-08-08 Jordan Rupprecht <rupprecht@google.com>
167 * readelf.c (process_note): Mask unknown description data bytes.
169 2019-08-08 Alan Modra <amodra@gmail.com>
171 * readelf.c (get_data): Improve overflow checks.
173 2019-08-07 Nick Clifton <nickc@redhat.com>
176 * doc/binutils.texi: Ensure consistent formating of title strings
177 for man pages. Extend the title of the size man page to be more
180 2019-08-07 Omair Majid <omajid@redhat.com>
182 * testsuite/binutils-all/objdump.exp
183 (test_objdump_dotnet_assemblies): Fix test to distinguish errors
184 in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
185 introduced machine types.
186 * testsuite/gentestdlls.c (write_simple_dll): New function.
187 (main): Generate simple and Linux-specific variants of pei-i386
188 and pei-x86-64 files so both can be used by tests.
190 2019-08-07 Alan Modra <amodra@gmail.com>
193 * readelf.c (dump_ia64_unwind): Check that buffer is large
194 enough for "stamp" before reading.
196 2019-08-05 Nick Clifton <nickc@redhat.com>
199 * objcopy.c (merge_gnu_build_notes): Do not insist on the first
200 note being a version note.
201 Remove spurious debugging fprintf.
203 2019-08-05 Nick Clifton <nickc@redhat.com>
206 * readelf.c (apply_relocations): Catch potential integer overflow
207 whilst checking reloc location against section size.
209 2019-08-02 Alan Modra <amodra@gmail.com>
212 * readelf.c (ABSADDR): Delete.
213 (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
215 2019-07-29 Martin Liska <mliska@suse.cz>
218 * nm.c (filter_symbols): Set report_plugin_err if
220 (display_rel_file): Report error for a missing LTO plugin.
222 2019-07-26 Alan Modra <amodra@gmail.com>
225 * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
226 systems by casting ncols and nslots expressions to size_t. Display
227 number of columns and slots before giving up due to buffer overflow.
228 Use %u to display unsigned ints. Perform more pointer wrap tests.
230 2019-07-25 Tom Tromey <tromey@adacore.com>
233 * dwarf.c (display_debug_names): Display the contents of the
234 augmentation string, if it is printable.
236 2019-07-25 Nick Clifton <nickc@redhat.com>
239 * readelf.c (process_mips_specific): Check for buffer overflow
240 before reading reginfo information.
242 2019-07-24 Nick Clifton <nickc@redhat.com>
245 * ar.c (decode_options): Restart option scanning if no operation
246 is detected and argument remain to be scanned.
248 2019-07-23 Nick Clifton <nickc@redhat.com>
251 * objdump.c (is_relocateable): Delete.
252 (load_specific_debug_section): Test the abfd for relocations
253 directly, rather than relying upon is_relocateable.
254 (dump_dwarf): Delete initlialization of is_relocateable.
256 2019-07-23 Alan Modra <amodra@gmail.com>
258 * readelf.c (get_parisc_segment_type): Split off hpux entries..
259 (get_ia64_segment_type): ..and these..
260 (get_hpux_segment_type): ..to here.
261 (get_segment_type): Condition GNU_MBIND on osabi. Use
262 get_hpux_segment_type.
263 (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
264 (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
266 2019-07-23 Alan Modra <amodra@gmail.com>
268 * testsuite/binutils-all/objcopy.exp (elf64): Correct object
269 file used to set this variable.
271 2019-07-23 Omar Majid <omajid@redhat.com>
273 * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
274 (GENTESTDLLSPROG): Define.
275 (TEST_PROGS): Add GENTESTDLLSPROG.
276 * Makefile.in: Regenerate.
277 * testsuite/binutils-all/objdump.exp
278 (test_objdump_dotnet_assemblies): New proc.
280 * testsuite/gentestdlls.c: New source file.
282 2019-06-28 Nick Clifton <nickc@redhat.com>
285 * objdump.c (slurp_symtab): Fail with a helpful error message if
286 the symbol table is too large. Skip this check for MMO format
289 2019-06-26 Nick Clifton <nickc@redhat.com>
292 * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
293 indicate this in the output.
294 (bfd_nonfatal_message): Likewise.
296 2019-06-25 Jan Beulich <jbeulich@suse.com>
298 * readelf.c (dump_ctf_indent_lines): Rename local variable
299 "spaces" to "blanks".
301 2019-06-25 Jan Beulich <jbeulich@suse.com>
303 * objdump.c (dump_ctf_indent_lines): Rename local variable
304 "spaces" to "blanks".
306 2019-06-14 Alan Modra <amodra@gmail.com>
308 * Makefile.in: Regenerate.
309 * aclocal.m4: Regenerate.
310 * doc/Makefile.in: Regenerate.
312 2019-06-12 Christos Zoulas <christos@zoulas.com>
315 * readelf.c (process_netbsd_elf_note): Add support for
317 (process_note): Add support for PaX notes.
319 2019-06-12 Christos Zoulas <christos@zoulas.com>
322 * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
325 2019-06-12 Christos Zoulas <christos@zoulas.com>
328 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
331 2019-06-11 Christos Zoulas <christos@zoulas.com>
334 * readelf.c (get_alpha_symbol_other): New function.
335 (get_symbol_other): Use for Alpha symbols.
336 (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
338 2019-06-11 Christos Zoulas <christos@zoulas.com>
341 * readelf.c (decode_arm_unwind): Ensure that the local variable
342 'addr' is always initialised.
344 2019-06-10 Christos Zoulas <christos@zoulas.com>
347 * strings.c (print_strings): Use %u to print unsigned values in
350 2019-06-10 Christos Zoulas <christos@zoulas.com>
353 * arsup.c (ar_open): Use asprintf in place of xmalloc and
356 2019-06-03 Nick Clifton <nickc@redhat.com>
359 2019-05-29 Nick Clifton <nickc@redhat.com>
361 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
363 (HAVE_LIBCTF): Define if libctf support is available.
364 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
365 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
367 * readelf.c: Likewise.
368 * configure: Regenerate.
369 * Makefile.in: Regenerate.
370 * config.in: Regenerate.
372 2019-05-30 Nick Alcock <nick.alcock@oracle.com>
374 * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
376 * readelf.c (shdr_to_ctf_sect): Likewise.
378 2019-05-30 Nick Clifton <nickc@redhat.com>
381 * readelf.c (process_version_sections): Add 0x prefix to address
382 display. Correct indentation.
384 2019-05-30 Alan Modra <amodra@gmail.com>
386 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
387 s12z to targets not supporting this feature.
389 2019-05-30 Alan Modra <amodra@gmail.com>
391 * testsuite/lib/binutils-common.exp (run_dump_test): Support
392 tcl procedures for xfail args.
394 2019-05-29 Nick Clifton <nickc@redhat.com>
396 * README-how-to-make-a-release: Add libctf to list of directories
397 that need updates in their ChangeLogs.
399 2019-05-29 Nick Clifton <nickc@redhat.com>
401 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
403 (HAVE_LIBCTF): Define if libctf support is available.
404 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
405 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
407 * readelf.c: Likewise.
408 * configure: Regenerate.
409 * Makefile.in: Regenerate.
410 * config.in: Regenerate.
412 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
414 * MAINTAINERS: Add myself as CTF maintainer.
416 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
418 * objdump.c (ctf-api.h): New include.
419 (dump_ctf_section_info): New variable.
420 (dump_ctf_section_name): Likewise.
421 (usage): Describe new options.
422 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
423 (main): Use them to add --ctf and --ctf-parent.
424 (read_section_stabs): Add new parameter, entsize_ptr.
425 (find_stabs_section): Adjust accordingly.
427 (dump_ctf_indent_lines): New.
428 (dump_ctf_archive_member): New.
430 (dump_bfd): Call it. Free resources afterwards.
431 * readelf.c (ctf-api.h): New include.
433 (static bfd_boolean do_ctf): Likewise.
434 (dump_ctf_parent_name): Likewise.
435 (dump_ctf_symtab_name): Likewise.
436 (dump_ctf_strtab_name): Likewise.
437 (OPTION_CTF_DUMP): Likewise.
438 (OPTION_CTF_PARENT): Likewise.
439 (OPTION_CTF_SYMBOLS): Likewise.
440 (OPTION_CTF_STRINGS): Likewise.
443 (parse_args): Handle the new options, requesting CTF_DUMP.
444 (process_section_contents): Handle CTF_DUMP.
445 (shdr_to_ctf_sect): New.
446 (dump_ctf_indent_lines): New.
447 (dump_section_as_ctf): New.
448 (main): Free resources.
449 * Makefile.am (LIBCTF): New variable.
450 (objdump_DEPENDENCIES): Use it.
451 (readelf_DEPENDENCIES): Likewise.
452 (objdump_LDADD): Likewise.
453 (readelf_LDADD): Likewise.
454 * aclocal.m4: Regenerated.
455 * Makefile.in: Likewise.
457 * doc/binutils.texi (objdump): Document the new options.
459 * doc/ctf.options.texi: New.
460 * doc/Makefile.in: Regenerated.
461 * NEWS: Mention the new feature.
463 2019-05-27 Alan Modra <amodra@gmail.com>
465 * readelf.c (process_section_groups): Continue processing groups
466 when sh_entsize exceeds group size.
468 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
470 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
471 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
472 (get_symbol_other): Call get_aarch64_symbol_other.
474 2019-05-24 Alan Modra <amodra@gmail.com>
476 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
478 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
480 * MAINTAINERS: Add myself as the maintainer for BPF.
482 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
484 * readelf.c: Include elf/bpf.h.
485 (guess_is_rela): Hanle EM_BPF.
486 (dump_relocations): Likewise.
487 (is_32bit_abs_reloc): Likewise.
488 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
491 2019-05-21 Tamar Christina <tamar.christina@arm.com>
493 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
494 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
495 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
497 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
500 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
501 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
503 2019-05-20 Nick Clifton <nickc@redhat.com>
505 * po/ca.po: Updated Catalan translation.
507 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
509 * NEWS: Mention Armv8.1-M Mainline and MVE.
511 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
513 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
514 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
516 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
519 * objcopy.c: Add new option --verilog-data-width. Use it to set
520 the value of VerilogDataWidth.
521 * doc/binutils.texi: Document the new option.
522 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
523 * testsuite/binutils-all/verilog-1.hex: New file.
524 * testsuite/binutils-all/verilog-2.hex: New file.
525 * testsuite/binutils-all/verilog-4.hex: New file.
526 * testsuite/binutils-all/verilog-8.hex: New file.
527 * NEWS: Mention the new feature.
529 2019-05-10 Alan Modra <amodra@gmail.com>
531 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
532 (test_objdump_content_limited): Add text arg, use in place of .text.
533 (bintest_signed.o): Call get_standard_section_names for name of
536 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
538 * objdump.c (sign_extend_address): New function.
539 (dump_bfd): Sign-extend user-specified start/stop addresses
540 for targets that need it.
541 * testsuite/binutils-all/objdump.exp: Add tests for objdump
542 with start and stop addresses in higher address ranges.
544 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
546 * testsuite/binutils-all/objdump.exp: Correct executable
548 * testsuite/binutils-all/compress.exp: Likewise.
550 2019-05-01 Nick Clifton <nickc@redhat.com>
553 * nm.c: (print_format): New variable.
554 (value_format_32bit, value_format_64bit): Delete.
555 (set_print_radix): Remove code to alter value_format strings.
556 (set_output_format): Record chosen format in print_format.
557 (get_print_format): New function - constructs a printf formatting
558 string according to the requirements of size, radix, and output
560 (print_value): Use get_print_format.
561 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
564 2019-04-30 Alan Modra <amodra@gmail.com>
566 * wrstabs.c (stab_start_class_type): Add assert to work around
569 2019-04-24 Nick Clifton <nickc@redhat.com>
571 * objcopy.c (strip_main): Do not enable note merging by default if
572 just stripping debug or dwo information.
573 * doc/binutils.texi (strip): Update documentation.
575 2019-04-23 Nick Clifton <nickc@redhat.com>
577 * README-how-to-make-a-release: Add note to update the symbolic
578 link from "docs" to "docs-2.x" on the sourceware website.
580 2019-04-16 Alan Modra <amodra@gmail.com>
582 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
583 * testsuite/binutils-all/copy-3.d: Likewise.
585 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
587 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
589 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
591 * readelf.c (decode_x86_isa): Handle
592 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
593 * testsuite/binutils-all/i386/pr21231b.d: Updated.
594 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
596 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
598 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
600 2019-03-26 Tamar Christina <tamar.christina@arm.com>
602 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
603 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
604 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
605 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
606 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
607 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
608 * testsuite/binutils-all/arm/in-order.d: Likewise.
609 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
610 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
611 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
613 2019-03-26 Nick Clifton <nickc@redhat.com>
615 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
618 2019-03-26 Alan Modra <amodra@gmail.com>
620 * objdump.c (dump_relocs_in_section): Warning fix.
622 2019-03-25 Tamar Christina <tamar.christina@arm.com>
624 * testsuite/binutils-all/arm/in-order-all.d: New test.
625 * testsuite/binutils-all/arm/in-order.d: New test.
626 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
627 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
628 * testsuite/binutils-all/arm/out-of-order.T: New test.
629 * testsuite/binutils-all/arm/out-of-order.d: New test.
630 * testsuite/binutils-all/arm/out-of-order.s: New test.
633 2019-03-25 Tamar Christina <tamar.christina@arm.com>
635 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
636 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
637 * testsuite/binutils-all/aarch64/out-of-order.d:
639 2019-03-25 Tamar Christina <tamar.christina@arm.com>
641 * testsuite/binutils-all/aarch64/in-order.d: New test.
642 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
645 2019-03-25 Tamar Christina <tamar.christina@arm.com>
647 * objdump.c (disassemble_bytes): Pass stop_offset.
648 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
649 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
650 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
652 2019-03-19 Nick Clifton <nickc@redhat.com>
655 * objdump.c (load_specific_debug_section): Check that the amount
656 of memory to be allocated matches the size of the section.
658 2019-03-13 Sudakshina Das <sudi.das@arm.com>
660 * readelf.c (get_aarch64_dynamic_type): Add case for
662 (dynamic_section_aarch64_val): Likewise.
664 2019-03-13 Sudakshina Das <sudi.das@arm.com>
665 Szabolcs Nagy <szabolcs.nagy@arm.com>
667 * readelf.c (get_aarch64_dynamic_type): New.
668 (get_dynamic_type): Use above for EM_AARCH64.
669 (dynamic_section_aarch64_val): New.
670 (process_dynamic_section): Use above for EM_AARCH64.
672 2019-03-13 Sudakshina Das <sudi.das@arm.com>
674 * readelf.c (decode_aarch64_feature_1_and): New.
675 (print_gnu_property_note): Add case for AArch64 gnu notes.
677 2019-03-12 Alan Modra <amodra@gmail.com>
679 * objdump.c (load_specific_debug_section): Don't compare section
680 size against file size.
681 (dump_relocs_in_section): Don't compare reloc size against file size.
682 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
684 2019-03-05 Nick Clifton <nickc@redhat.com>
687 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
689 2019-03-05 Nick Clifton <nickc@redhat.com>
691 * po/sv.po: Updated Swedish translation.
693 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
696 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
697 of "lmap" with a "foreach" loop.
699 2019-03-04 Nick Clifton <nickc@redhat.com>
702 * objcopy.c (copy_archive): Do not copy thin archives.
704 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
706 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
708 2019-02-25 Nick Clifton <nickc@redhat.com>
710 * objdump.c (sym_ok): New function.
711 (find_symbol_for_address): Use new function.
712 (disassemble_section): Compare sections by name, not pointer.
713 (dump_dwarf): Move code to initialise byte_get pointer and iterate
714 over separate debug files from here to ...
715 (dump_bfd): ... here. Add parameter indicating that a separate
716 debug info file is being dumped. For main file, pull in the
717 symbol tables from all separate debug info files.
718 (display_object): Update call to dump_bfd.
719 * doc/binutils.texi: Document extened behaviour of the
720 --dwarf=follow-links option.
721 * NEWS: Mention this new feature.
722 * testsuite/binutils-all/objdump.WK2: Update expected output.
723 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
724 options and dump file parameters.
726 * testsuite/binutils-all/objdump.WK3: New file.
727 * testsuite/binutils-all/readelf.exp: Change expected output for
729 * testsuite/binutils-all/readelf.wKis: New file.
731 2019-02-22 Nick Clifton <nickc@redhat.com>
734 * dwarf.h (struct separate_info): New structure for containing
735 information on separate debug info files.
736 * dwarf.c (struct dwo_info): New structure for containing dwo
738 (first_dwo_info): Chain of dwo_info structures.
739 (first_separate_file): Chain of separate_info structures.
740 (separate_debug_file, separate_debug_filename): Delete.
741 (fetch_alt_indirect_string): Scan all separate debug info files
742 for the requested string.
743 (add_dwo_info): New function.
744 (add_dwo_name): New function.
745 (add_dwo_dir): New function.
746 (add_dwo_id: New function.
747 (free_dwo_info): New function.
748 (read_and_display_attr_value): Store DWO data using the new
750 (load_debug_section_with_follow): If necessary, scan the list of
751 separate debug info files for the requested section.
752 (add_separate_debug_file): New function.
753 (load_separate_debug_info): Call add_separate_debug_file to store
754 the information on the newly loaded file.
755 (load_dwo_file): Likewise.
756 (load_separate_debif_file): Rename to load_separate_debug_files.
757 Change return type to boolean. If following links then attempt to
758 load all separate debug info files, not just the first one.
759 (free_debug_memory): Release memory in dwo_info and separate_info
761 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
762 * readelf.c (process_object): Likewise.
763 * doc/debug.options.texi: Update descriptions of links and
764 follow-links options.
765 * testsuite/binutils-all/objdump.WK2: Update expected output.
766 * testsuite/binutils-all/readelf.k2: Likewise.
767 * NEWS: Announce the new feature.
769 2019-02-21 Nick Clifton <nickc@redhat.com>
772 * unwind-ia64.c: Include sysdep.h.
773 (unw_decode_x1): Check current pointer against end pointer before
775 (unw_decode_x2): Likewise.
776 (unw_decode_x3): Likewise.
777 (unw_decode_x4): Likewise.
778 (unw_decode_r2): Likewise.
779 (unw_decode_p2_p5): Likewise.
780 (unw_decode_p7_p10): Likewise.
781 (unw_decode): Likewise.
783 2019-02-20 Nick Clifton <nickc@redhat.com>
786 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
789 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
790 prevent walking off the end of the buffer.
791 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
792 (unw_decode_x2): Likewise.
793 (unw_decode_x3): Likewise.
794 (unw_decode_x4): Likewise.
795 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
796 (unw_decode_r3): Likewise.
797 (unw_decode_p7_p10): Likewise.
798 (unw_decode_b2): Likewise.
799 (unw_decode_b3_x4): Likewise.
802 * readelf.c (process_mips_specific): Check for an options section
803 that is too small to even contain a single option.
806 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
808 2019-02-20 Alan Modra <amodra@gmail.com>
812 * readelf.c (get_data): Avoid possibility of overflow when
813 checking for a read that may extend past end of file.
814 (process_program_headers): Likewise.
816 2019-02-20 Alan Modra <amodra@gmail.com>
819 * objdump.c (dump_bfd_private_header): Print warning if
820 bfd_print_private_bfd_data returns false.
822 2019-02-12 Nick Clifton <nickc@redhat.com>
825 * README-how-to-make-a-release: Use git clean to delete spurious
826 files from the local source repository.
828 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
830 * size.c (berkeley_format): Delete.
831 (enum output_format): New enum.
832 (selected_output_format): New variable.
833 (usage): Update to mention GNU format.
834 (main): Update to extract options, and select format as needed.
835 Handle GNU format where needed.
836 (berkeley_sum): Renamed to...
837 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
838 (berkeley_format): Renamed to...
839 (berkeley_or_gnu_format): ...this, and updated to handle both
841 (print_sizes): Handle GNU format.
842 * doc/binutils.texi (size): Document new GNU format.
843 * testsuite/binutils-all/size.exp: Add test of extended
845 * NEWS: Mention new functionality.
847 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
849 * doc/binutils.texi (size): Update example output for Berkeley
852 2019-02-07 Nick Clifton <nickc@redhat.com>
854 * README-how-to-make-a-release: Add a note about updating the
855 obsolete targets in the bfd/config.bfd file.
857 2019-02-04 Nick Clifton <nickc@redhat.com>
859 * README-how-to-make-a-release: Add more notes on making a release.
861 2019-01-25 Nick Clifton <nickc@redhat.com>
864 * readelf.c (process_notes_at): Prevent an illegal memory access
865 when the note's namesize is zero.
866 (decode_tic6x_unwind_bytecode): Add code to handle the case where
867 no registers are specified in a frame pop instruction.
869 2019-01-25 Nick Clifton <nickc@redhat.com>
871 * po/bg.po: Updated Bulgarian translation.
873 2019-01-23 Nick Clifton <nickc@redhat.com>
875 * po/fr.po: Updated French translation.
876 * po/pt.po: Updated Portuguese translation.
878 2019-01-21 Nick Clifton <nickc@redhat.com>
880 * po/uk.po: Updated Ukranian translation.
882 2019-01-19 Nick Clifton <nickc@redhat.com>
884 * configure: Regenerate.
885 * binutils/po/binutils.pot.
887 * README-how-to-make-a-release: Update description on how to make
890 2018-06-24 Nick Clifton <nickc@redhat.com>
894 2019-01-17 Nick Clifton <nickc@redhat.com>
896 * objdump.c (disassemble_section): When disassembling from a
897 symbol only stop at the next symbol if the original symbol was not
898 a function symbol. Otherwise continue disassembling until a new
900 * testsuite/binutils-all/objdump.exp: Add tests of extended
902 * testsuite/binutils-all/disasm.s: New test source file.
904 2019-01-16 Kito Cheng <kito@andestech.com>
905 Nelson Chu <nelson@andestech.com>
907 * readelf.c (get_riscv_section_type_name): New function.
908 (get_section_type_name): Add handler for RISC-V.
909 (riscv_attr_tag_t): Declare.
910 (riscv_attr_tag): New.
911 (display_riscv_attribute): New function.
912 (process_attributes): Add handler for RISC-V.
913 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
916 2019-01-10 Nick Clifton <nickc@redhat.com>
919 * objdump.c (sanitize_string): New function. Removes control
920 characters from symbol names.
921 (dump_section_header): Use new function.
922 (objdump_print_symname): Likewise.
923 (objdump_print_addr_with_sym): Likewise.
924 (show_line): Likewise.
925 (disassemble_bytes): Likewise.
926 (disassemble_section): Likewise.
927 (load_specific_debug_section): Likewise.
928 (read_section_stabs): Likewise.
929 (print_section_stabs): Likewise.
930 (dump_section): Likewise.
931 (dump_reloc_set): Likewise.
932 (dump_relocs_in_section): Likewise.
933 (dump_bfd): Likewise.
934 (display_any_bfd): Likewise.
936 2019-01-09 Nick Clifton <nickc@redhat.com>
939 * readelf.c (process_archive): Use arch.file_name in error
940 messages until the qualified name is available.
942 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
944 * configure: Regenerate.
946 2019-01-09 Alan Modra <amodra@gmail.com>
948 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
949 unconditionally to tests needing the option rather than via a
952 2019-01-08 Nick Clifton <nickc@redhat.com>
955 * cxxfilt.c (hp_symbol_characters): Delete.
956 (main): Remove depcreated demangling styles.
957 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
959 * testsuite/binutils-all/cxxfilt.exp: Use the
960 --no-strip-underscore option for targets that do prefix their
961 symbols with underscores.
962 Update tests to eliminate those that use gnu v2 encoding.
964 2019-01-08 Tamar Christina <tamar.christina@arm.com>
967 * testsuite/binutils-all/copy-6.d: New test.
968 * testsuite/binutils-all/objcopy.exp: Use it.
970 2019-01-08 Alan Modra <amodra@gmail.com>
972 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
973 $srcdir/$subdir to source file name if it starts with "./".
975 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
977 * readelf.c (get_machine_flags): Add RXv3 output.
979 2019-01-04 Nick Clifton <nickc@redhat.com>
982 * objdump.c (load_specific_debug_section): Check for integer
983 overflow before attempting to allocate contents.
985 2019-01-04 Nick Clifton <nickc@redhat.com>
988 * objcopy.c (copy_object): Free dhandle after writing out the
990 * objdump.c (dump_bfd): Free dhandle after printing out the debug
994 2019-01-01 Alan Modra <amodra@gmail.com>
996 Update year range in copyright notice of all files.
998 For older changes see ChangeLog-2018
1000 Copyright (C) 2019 Free Software Foundation, Inc.
1002 Copying and distribution of this file, with or without modification,
1003 are permitted in any medium without royalty provided the copyright
1004 notice and this notice are preserved.
1010 version-control: never