1 2019-08-27 Nick Clifton <nickc@redhat.com>
4 * dwarf.c (MAX_CU_NESTING): New constant.
5 (level_type_signed): New static array.
6 (skip_attr_bytes): New function.
7 (get_type_signedness): New function.
8 (read_and_print_leb128): New function.
9 (display_discr_list): New function.
10 (read_and_display_attr_value): Add start parameter.
11 Use new functions when handling DW_AT_type and DW_AT_discr_list.
12 (read_and_display_attr): Add start parameter. Pass to
13 read_and_display_attr_value.
14 (process_debug_info): Update call to read_and_display_attr.
15 (display_formatted_table): Likewise.
16 (display_debug_lines_decoded): Likewise. Also add start
18 (display_debug_lines): Likewise.
19 * testsuite/binutils-all/dwarf-attributes.S: Update discrimination
21 * testsuite/binutils-all/dwarf-attributes.W: Update expected
24 2019-08-26 Alan Modra <amodra@gmail.com>
27 * debug.c (debug_write_type): Call empty_type for NULL type here..
28 (debug_write_type): ..rather than in just one case here.
30 2019-08-23 Nick Clifton <nickc@redhat.com>
33 * dwarf.c (check_uvalue): New function. Ensures that a block's
35 (read_and_display_attr_value): Use check_value when processsing
36 DW_FORM_block<n> attributes.
38 2019-08-22 Nick Clifton <nickc@redhat.com>
41 * dwarf.c (process_cu_tu_index): Handle the case where a table
42 does not have any columns.
44 2019-08-19 Alan Modra <amodra@gmail.com>
47 * dwarf.c (display_debug_frames): Use the read_cie check and error
48 for augmentation data length.
50 2019-08-17 Alan Modra <amodra@gmail.com>
53 * dwarf.c (comp_addr_base): Dereference args.
55 2019-08-16 Alan Modra <amodra@gmail.com>
59 * readelf.c (get_symbol_version_string): Set sym_info earlier.
61 2019-08-15 Nick Clifton <nickc@redhat.com>
64 * doc/binutils.texi (nm): Document the 'n' symbol type.
66 2019-08-15 Christophe Vidal <support@krizalys.com>
68 * docs/binutils.texi: Fixed notice message disassembler options
69 section of the man page.
71 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
73 * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type.
74 (get_mips_section_type_name): Return MI{S_XHASH name string.
75 (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic
77 (process_symbol_table): Initialize the .MIPS.xhash section
78 pointer. Adjust the readelf output to support the new section.
79 (process_object): Set the .MIPS.xhash dynamic info to zero.
81 2019-08-09 Tamar Christina <tamar.christina@arm.com>
83 * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff.
84 * testsuite/binutils-all/arm/in-order.d: Likewise.
85 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
86 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
88 2019-08-08 Nick Clifton <nickc@redhat.com>
91 * readelf.c (process_notes_at): Left justify the "Data size"
93 * testsuite/binutils-all/i386/empty.d: Adjust for new output format.
94 * testsuite/binutils-all/i386/ibt.d: Likewise.
95 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
96 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
97 * testsuite/binutils-all/i386/shstk.d: Likewise.
98 * testsuite/binutils-all/note-2-32.d: Likewise.
99 * testsuite/binutils-all/note-2-64.d: Likewise.
100 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
101 * testsuite/binutils-all/x86-64/empty.d: Likewise.
102 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
103 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
104 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
105 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
106 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
107 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
108 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
109 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
110 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
111 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
112 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
113 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
114 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
115 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
117 2019-08-08 Nick Clifton <nickc@redhat.com>
119 * testsuite/gentestdlls.c (main): Move declaration of loop
120 variable outside of the for() statement.
122 2019-08-08 Jordan Rupprecht <rupprecht@google.com>
124 * readelf.c (process_note): Mask unknown description data bytes.
126 2019-08-08 Alan Modra <amodra@gmail.com>
128 * readelf.c (get_data): Improve overflow checks.
130 2019-08-07 Nick Clifton <nickc@redhat.com>
133 * doc/binutils.texi: Ensure consistent formating of title strings
134 for man pages. Extend the title of the size man page to be more
137 2019-08-07 Omair Majid <omajid@redhat.com>
139 * testsuite/binutils-all/objdump.exp
140 (test_objdump_dotnet_assemblies): Fix test to distinguish errors
141 in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
142 introduced machine types.
143 * testsuite/gentestdlls.c (write_simple_dll): New function.
144 (main): Generate simple and Linux-specific variants of pei-i386
145 and pei-x86-64 files so both can be used by tests.
147 2019-08-07 Alan Modra <amodra@gmail.com>
150 * readelf.c (dump_ia64_unwind): Check that buffer is large
151 enough for "stamp" before reading.
153 2019-08-05 Nick Clifton <nickc@redhat.com>
156 * objcopy.c (merge_gnu_build_notes): Do not insist on the first
157 note being a version note.
158 Remove spurious debugging fprintf.
160 2019-08-05 Nick Clifton <nickc@redhat.com>
163 * readelf.c (apply_relocations): Catch potential integer overflow
164 whilst checking reloc location against section size.
166 2019-08-02 Alan Modra <amodra@gmail.com>
169 * readelf.c (ABSADDR): Delete.
170 (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
172 2019-07-29 Martin Liska <mliska@suse.cz>
175 * nm.c (filter_symbols): Set report_plugin_err if
177 (display_rel_file): Report error for a missing LTO plugin.
179 2019-07-26 Alan Modra <amodra@gmail.com>
182 * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
183 systems by casting ncols and nslots expressions to size_t. Display
184 number of columns and slots before giving up due to buffer overflow.
185 Use %u to display unsigned ints. Perform more pointer wrap tests.
187 2019-07-25 Tom Tromey <tromey@adacore.com>
190 * dwarf.c (display_debug_names): Display the contents of the
191 augmentation string, if it is printable.
193 2019-07-25 Nick Clifton <nickc@redhat.com>
196 * readelf.c (process_mips_specific): Check for buffer overflow
197 before reading reginfo information.
199 2019-07-24 Nick Clifton <nickc@redhat.com>
202 * ar.c (decode_options): Restart option scanning if no operation
203 is detected and argument remain to be scanned.
205 2019-07-23 Nick Clifton <nickc@redhat.com>
208 * objdump.c (is_relocateable): Delete.
209 (load_specific_debug_section): Test the abfd for relocations
210 directly, rather than relying upon is_relocateable.
211 (dump_dwarf): Delete initlialization of is_relocateable.
213 2019-07-23 Alan Modra <amodra@gmail.com>
215 * readelf.c (get_parisc_segment_type): Split off hpux entries..
216 (get_ia64_segment_type): ..and these..
217 (get_hpux_segment_type): ..to here.
218 (get_segment_type): Condition GNU_MBIND on osabi. Use
219 get_hpux_segment_type.
220 (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
221 (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
223 2019-07-23 Alan Modra <amodra@gmail.com>
225 * testsuite/binutils-all/objcopy.exp (elf64): Correct object
226 file used to set this variable.
228 2019-07-23 Omar Majid <omajid@redhat.com>
230 * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
231 (GENTESTDLLSPROG): Define.
232 (TEST_PROGS): Add GENTESTDLLSPROG.
233 * Makefile.in: Regenerate.
234 * testsuite/binutils-all/objdump.exp
235 (test_objdump_dotnet_assemblies): New proc.
237 * testsuite/gentestdlls.c: New source file.
239 2019-06-28 Nick Clifton <nickc@redhat.com>
242 * objdump.c (slurp_symtab): Fail with a helpful error message if
243 the symbol table is too large. Skip this check for MMO format
246 2019-06-26 Nick Clifton <nickc@redhat.com>
249 * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
250 indicate this in the output.
251 (bfd_nonfatal_message): Likewise.
253 2019-06-25 Jan Beulich <jbeulich@suse.com>
255 * readelf.c (dump_ctf_indent_lines): Rename local variable
256 "spaces" to "blanks".
258 2019-06-25 Jan Beulich <jbeulich@suse.com>
260 * objdump.c (dump_ctf_indent_lines): Rename local variable
261 "spaces" to "blanks".
263 2019-06-14 Alan Modra <amodra@gmail.com>
265 * Makefile.in: Regenerate.
266 * aclocal.m4: Regenerate.
267 * doc/Makefile.in: Regenerate.
269 2019-06-12 Christos Zoulas <christos@zoulas.com>
272 * readelf.c (process_netbsd_elf_note): Add support for
274 (process_note): Add support for PaX notes.
276 2019-06-12 Christos Zoulas <christos@zoulas.com>
279 * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
282 2019-06-12 Christos Zoulas <christos@zoulas.com>
285 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
288 2019-06-11 Christos Zoulas <christos@zoulas.com>
291 * readelf.c (get_alpha_symbol_other): New function.
292 (get_symbol_other): Use for Alpha symbols.
293 (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
295 2019-06-11 Christos Zoulas <christos@zoulas.com>
298 * readelf.c (decode_arm_unwind): Ensure that the local variable
299 'addr' is always initialised.
301 2019-06-10 Christos Zoulas <christos@zoulas.com>
304 * strings.c (print_strings): Use %u to print unsigned values in
307 2019-06-10 Christos Zoulas <christos@zoulas.com>
310 * arsup.c (ar_open): Use asprintf in place of xmalloc and
313 2019-06-03 Nick Clifton <nickc@redhat.com>
316 2019-05-29 Nick Clifton <nickc@redhat.com>
318 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
320 (HAVE_LIBCTF): Define if libctf support is available.
321 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
322 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
324 * readelf.c: Likewise.
325 * configure: Regenerate.
326 * Makefile.in: Regenerate.
327 * config.in: Regenerate.
329 2019-05-30 Nick Alcock <nick.alcock@oracle.com>
331 * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
333 * readelf.c (shdr_to_ctf_sect): Likewise.
335 2019-05-30 Nick Clifton <nickc@redhat.com>
338 * readelf.c (process_version_sections): Add 0x prefix to address
339 display. Correct indentation.
341 2019-05-30 Alan Modra <amodra@gmail.com>
343 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
344 s12z to targets not supporting this feature.
346 2019-05-30 Alan Modra <amodra@gmail.com>
348 * testsuite/lib/binutils-common.exp (run_dump_test): Support
349 tcl procedures for xfail args.
351 2019-05-29 Nick Clifton <nickc@redhat.com>
353 * README-how-to-make-a-release: Add libctf to list of directories
354 that need updates in their ChangeLogs.
356 2019-05-29 Nick Clifton <nickc@redhat.com>
358 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
360 (HAVE_LIBCTF): Define if libctf support is available.
361 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
362 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
364 * readelf.c: Likewise.
365 * configure: Regenerate.
366 * Makefile.in: Regenerate.
367 * config.in: Regenerate.
369 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
371 * MAINTAINERS: Add myself as CTF maintainer.
373 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
375 * objdump.c (ctf-api.h): New include.
376 (dump_ctf_section_info): New variable.
377 (dump_ctf_section_name): Likewise.
378 (usage): Describe new options.
379 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
380 (main): Use them to add --ctf and --ctf-parent.
381 (read_section_stabs): Add new parameter, entsize_ptr.
382 (find_stabs_section): Adjust accordingly.
384 (dump_ctf_indent_lines): New.
385 (dump_ctf_archive_member): New.
387 (dump_bfd): Call it. Free resources afterwards.
388 * readelf.c (ctf-api.h): New include.
390 (static bfd_boolean do_ctf): Likewise.
391 (dump_ctf_parent_name): Likewise.
392 (dump_ctf_symtab_name): Likewise.
393 (dump_ctf_strtab_name): Likewise.
394 (OPTION_CTF_DUMP): Likewise.
395 (OPTION_CTF_PARENT): Likewise.
396 (OPTION_CTF_SYMBOLS): Likewise.
397 (OPTION_CTF_STRINGS): Likewise.
400 (parse_args): Handle the new options, requesting CTF_DUMP.
401 (process_section_contents): Handle CTF_DUMP.
402 (shdr_to_ctf_sect): New.
403 (dump_ctf_indent_lines): New.
404 (dump_section_as_ctf): New.
405 (main): Free resources.
406 * Makefile.am (LIBCTF): New variable.
407 (objdump_DEPENDENCIES): Use it.
408 (readelf_DEPENDENCIES): Likewise.
409 (objdump_LDADD): Likewise.
410 (readelf_LDADD): Likewise.
411 * aclocal.m4: Regenerated.
412 * Makefile.in: Likewise.
414 * doc/binutils.texi (objdump): Document the new options.
416 * doc/ctf.options.texi: New.
417 * doc/Makefile.in: Regenerated.
418 * NEWS: Mention the new feature.
420 2019-05-27 Alan Modra <amodra@gmail.com>
422 * readelf.c (process_section_groups): Continue processing groups
423 when sh_entsize exceeds group size.
425 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
427 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
428 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
429 (get_symbol_other): Call get_aarch64_symbol_other.
431 2019-05-24 Alan Modra <amodra@gmail.com>
433 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
435 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
437 * MAINTAINERS: Add myself as the maintainer for BPF.
439 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
441 * readelf.c: Include elf/bpf.h.
442 (guess_is_rela): Hanle EM_BPF.
443 (dump_relocations): Likewise.
444 (is_32bit_abs_reloc): Likewise.
445 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
448 2019-05-21 Tamar Christina <tamar.christina@arm.com>
450 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
451 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
452 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
454 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
457 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
458 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
460 2019-05-20 Nick Clifton <nickc@redhat.com>
462 * po/ca.po: Updated Catalan translation.
464 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
466 * NEWS: Mention Armv8.1-M Mainline and MVE.
468 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
470 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
471 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
473 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
476 * objcopy.c: Add new option --verilog-data-width. Use it to set
477 the value of VerilogDataWidth.
478 * doc/binutils.texi: Document the new option.
479 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
480 * testsuite/binutils-all/verilog-1.hex: New file.
481 * testsuite/binutils-all/verilog-2.hex: New file.
482 * testsuite/binutils-all/verilog-4.hex: New file.
483 * testsuite/binutils-all/verilog-8.hex: New file.
484 * NEWS: Mention the new feature.
486 2019-05-10 Alan Modra <amodra@gmail.com>
488 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
489 (test_objdump_content_limited): Add text arg, use in place of .text.
490 (bintest_signed.o): Call get_standard_section_names for name of
493 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
495 * objdump.c (sign_extend_address): New function.
496 (dump_bfd): Sign-extend user-specified start/stop addresses
497 for targets that need it.
498 * testsuite/binutils-all/objdump.exp: Add tests for objdump
499 with start and stop addresses in higher address ranges.
501 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
503 * testsuite/binutils-all/objdump.exp: Correct executable
505 * testsuite/binutils-all/compress.exp: Likewise.
507 2019-05-01 Nick Clifton <nickc@redhat.com>
510 * nm.c: (print_format): New variable.
511 (value_format_32bit, value_format_64bit): Delete.
512 (set_print_radix): Remove code to alter value_format strings.
513 (set_output_format): Record chosen format in print_format.
514 (get_print_format): New function - constructs a printf formatting
515 string according to the requirements of size, radix, and output
517 (print_value): Use get_print_format.
518 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
521 2019-04-30 Alan Modra <amodra@gmail.com>
523 * wrstabs.c (stab_start_class_type): Add assert to work around
526 2019-04-24 Nick Clifton <nickc@redhat.com>
528 * objcopy.c (strip_main): Do not enable note merging by default if
529 just stripping debug or dwo information.
530 * doc/binutils.texi (strip): Update documentation.
532 2019-04-23 Nick Clifton <nickc@redhat.com>
534 * README-how-to-make-a-release: Add note to update the symbolic
535 link from "docs" to "docs-2.x" on the sourceware website.
537 2019-04-16 Alan Modra <amodra@gmail.com>
539 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
540 * testsuite/binutils-all/copy-3.d: Likewise.
542 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
544 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
546 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
548 * readelf.c (decode_x86_isa): Handle
549 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
550 * testsuite/binutils-all/i386/pr21231b.d: Updated.
551 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
553 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
555 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
557 2019-03-26 Tamar Christina <tamar.christina@arm.com>
559 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
560 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
561 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
562 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
563 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
564 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
565 * testsuite/binutils-all/arm/in-order.d: Likewise.
566 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
567 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
568 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
570 2019-03-26 Nick Clifton <nickc@redhat.com>
572 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
575 2019-03-26 Alan Modra <amodra@gmail.com>
577 * objdump.c (dump_relocs_in_section): Warning fix.
579 2019-03-25 Tamar Christina <tamar.christina@arm.com>
581 * testsuite/binutils-all/arm/in-order-all.d: New test.
582 * testsuite/binutils-all/arm/in-order.d: New test.
583 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
584 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
585 * testsuite/binutils-all/arm/out-of-order.T: New test.
586 * testsuite/binutils-all/arm/out-of-order.d: New test.
587 * testsuite/binutils-all/arm/out-of-order.s: New test.
590 2019-03-25 Tamar Christina <tamar.christina@arm.com>
592 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
593 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
594 * testsuite/binutils-all/aarch64/out-of-order.d:
596 2019-03-25 Tamar Christina <tamar.christina@arm.com>
598 * testsuite/binutils-all/aarch64/in-order.d: New test.
599 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
602 2019-03-25 Tamar Christina <tamar.christina@arm.com>
604 * objdump.c (disassemble_bytes): Pass stop_offset.
605 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
606 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
607 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
609 2019-03-19 Nick Clifton <nickc@redhat.com>
612 * objdump.c (load_specific_debug_section): Check that the amount
613 of memory to be allocated matches the size of the section.
615 2019-03-13 Sudakshina Das <sudi.das@arm.com>
617 * readelf.c (get_aarch64_dynamic_type): Add case for
619 (dynamic_section_aarch64_val): Likewise.
621 2019-03-13 Sudakshina Das <sudi.das@arm.com>
622 Szabolcs Nagy <szabolcs.nagy@arm.com>
624 * readelf.c (get_aarch64_dynamic_type): New.
625 (get_dynamic_type): Use above for EM_AARCH64.
626 (dynamic_section_aarch64_val): New.
627 (process_dynamic_section): Use above for EM_AARCH64.
629 2019-03-13 Sudakshina Das <sudi.das@arm.com>
631 * readelf.c (decode_aarch64_feature_1_and): New.
632 (print_gnu_property_note): Add case for AArch64 gnu notes.
634 2019-03-12 Alan Modra <amodra@gmail.com>
636 * objdump.c (load_specific_debug_section): Don't compare section
637 size against file size.
638 (dump_relocs_in_section): Don't compare reloc size against file size.
639 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
641 2019-03-05 Nick Clifton <nickc@redhat.com>
644 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
646 2019-03-05 Nick Clifton <nickc@redhat.com>
648 * po/sv.po: Updated Swedish translation.
650 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
653 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
654 of "lmap" with a "foreach" loop.
656 2019-03-04 Nick Clifton <nickc@redhat.com>
659 * objcopy.c (copy_archive): Do not copy thin archives.
661 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
663 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
665 2019-02-25 Nick Clifton <nickc@redhat.com>
667 * objdump.c (sym_ok): New function.
668 (find_symbol_for_address): Use new function.
669 (disassemble_section): Compare sections by name, not pointer.
670 (dump_dwarf): Move code to initialise byte_get pointer and iterate
671 over separate debug files from here to ...
672 (dump_bfd): ... here. Add parameter indicating that a separate
673 debug info file is being dumped. For main file, pull in the
674 symbol tables from all separate debug info files.
675 (display_object): Update call to dump_bfd.
676 * doc/binutils.texi: Document extened behaviour of the
677 --dwarf=follow-links option.
678 * NEWS: Mention this new feature.
679 * testsuite/binutils-all/objdump.WK2: Update expected output.
680 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
681 options and dump file parameters.
683 * testsuite/binutils-all/objdump.WK3: New file.
684 * testsuite/binutils-all/readelf.exp: Change expected output for
686 * testsuite/binutils-all/readelf.wKis: New file.
688 2019-02-22 Nick Clifton <nickc@redhat.com>
691 * dwarf.h (struct separate_info): New structure for containing
692 information on separate debug info files.
693 * dwarf.c (struct dwo_info): New structure for containing dwo
695 (first_dwo_info): Chain of dwo_info structures.
696 (first_separate_file): Chain of separate_info structures.
697 (separate_debug_file, separate_debug_filename): Delete.
698 (fetch_alt_indirect_string): Scan all separate debug info files
699 for the requested string.
700 (add_dwo_info): New function.
701 (add_dwo_name): New function.
702 (add_dwo_dir): New function.
703 (add_dwo_id: New function.
704 (free_dwo_info): New function.
705 (read_and_display_attr_value): Store DWO data using the new
707 (load_debug_section_with_follow): If necessary, scan the list of
708 separate debug info files for the requested section.
709 (add_separate_debug_file): New function.
710 (load_separate_debug_info): Call add_separate_debug_file to store
711 the information on the newly loaded file.
712 (load_dwo_file): Likewise.
713 (load_separate_debif_file): Rename to load_separate_debug_files.
714 Change return type to boolean. If following links then attempt to
715 load all separate debug info files, not just the first one.
716 (free_debug_memory): Release memory in dwo_info and separate_info
718 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
719 * readelf.c (process_object): Likewise.
720 * doc/debug.options.texi: Update descriptions of links and
721 follow-links options.
722 * testsuite/binutils-all/objdump.WK2: Update expected output.
723 * testsuite/binutils-all/readelf.k2: Likewise.
724 * NEWS: Announce the new feature.
726 2019-02-21 Nick Clifton <nickc@redhat.com>
729 * unwind-ia64.c: Include sysdep.h.
730 (unw_decode_x1): Check current pointer against end pointer before
732 (unw_decode_x2): Likewise.
733 (unw_decode_x3): Likewise.
734 (unw_decode_x4): Likewise.
735 (unw_decode_r2): Likewise.
736 (unw_decode_p2_p5): Likewise.
737 (unw_decode_p7_p10): Likewise.
738 (unw_decode): Likewise.
740 2019-02-20 Nick Clifton <nickc@redhat.com>
743 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
746 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
747 prevent walking off the end of the buffer.
748 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
749 (unw_decode_x2): Likewise.
750 (unw_decode_x3): Likewise.
751 (unw_decode_x4): Likewise.
752 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
753 (unw_decode_r3): Likewise.
754 (unw_decode_p7_p10): Likewise.
755 (unw_decode_b2): Likewise.
756 (unw_decode_b3_x4): Likewise.
759 * readelf.c (process_mips_specific): Check for an options section
760 that is too small to even contain a single option.
763 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
765 2019-02-20 Alan Modra <amodra@gmail.com>
769 * readelf.c (get_data): Avoid possibility of overflow when
770 checking for a read that may extend past end of file.
771 (process_program_headers): Likewise.
773 2019-02-20 Alan Modra <amodra@gmail.com>
776 * objdump.c (dump_bfd_private_header): Print warning if
777 bfd_print_private_bfd_data returns false.
779 2019-02-12 Nick Clifton <nickc@redhat.com>
782 * README-how-to-make-a-release: Use git clean to delete spurious
783 files from the local source repository.
785 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
787 * size.c (berkeley_format): Delete.
788 (enum output_format): New enum.
789 (selected_output_format): New variable.
790 (usage): Update to mention GNU format.
791 (main): Update to extract options, and select format as needed.
792 Handle GNU format where needed.
793 (berkeley_sum): Renamed to...
794 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
795 (berkeley_format): Renamed to...
796 (berkeley_or_gnu_format): ...this, and updated to handle both
798 (print_sizes): Handle GNU format.
799 * doc/binutils.texi (size): Document new GNU format.
800 * testsuite/binutils-all/size.exp: Add test of extended
802 * NEWS: Mention new functionality.
804 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
806 * doc/binutils.texi (size): Update example output for Berkeley
809 2019-02-07 Nick Clifton <nickc@redhat.com>
811 * README-how-to-make-a-release: Add a note about updating the
812 obsolete targets in the bfd/config.bfd file.
814 2019-02-04 Nick Clifton <nickc@redhat.com>
816 * README-how-to-make-a-release: Add more notes on making a release.
818 2019-01-25 Nick Clifton <nickc@redhat.com>
821 * readelf.c (process_notes_at): Prevent an illegal memory access
822 when the note's namesize is zero.
823 (decode_tic6x_unwind_bytecode): Add code to handle the case where
824 no registers are specified in a frame pop instruction.
826 2019-01-25 Nick Clifton <nickc@redhat.com>
828 * po/bg.po: Updated Bulgarian translation.
830 2019-01-23 Nick Clifton <nickc@redhat.com>
832 * po/fr.po: Updated French translation.
833 * po/pt.po: Updated Portuguese translation.
835 2019-01-21 Nick Clifton <nickc@redhat.com>
837 * po/uk.po: Updated Ukranian translation.
839 2019-01-19 Nick Clifton <nickc@redhat.com>
841 * configure: Regenerate.
842 * binutils/po/binutils.pot.
844 * README-how-to-make-a-release: Update description on how to make
847 2018-06-24 Nick Clifton <nickc@redhat.com>
851 2019-01-17 Nick Clifton <nickc@redhat.com>
853 * objdump.c (disassemble_section): When disassembling from a
854 symbol only stop at the next symbol if the original symbol was not
855 a function symbol. Otherwise continue disassembling until a new
857 * testsuite/binutils-all/objdump.exp: Add tests of extended
859 * testsuite/binutils-all/disasm.s: New test source file.
861 2019-01-16 Kito Cheng <kito@andestech.com>
862 Nelson Chu <nelson@andestech.com>
864 * readelf.c (get_riscv_section_type_name): New function.
865 (get_section_type_name): Add handler for RISC-V.
866 (riscv_attr_tag_t): Declare.
867 (riscv_attr_tag): New.
868 (display_riscv_attribute): New function.
869 (process_attributes): Add handler for RISC-V.
870 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
873 2019-01-10 Nick Clifton <nickc@redhat.com>
876 * objdump.c (sanitize_string): New function. Removes control
877 characters from symbol names.
878 (dump_section_header): Use new function.
879 (objdump_print_symname): Likewise.
880 (objdump_print_addr_with_sym): Likewise.
881 (show_line): Likewise.
882 (disassemble_bytes): Likewise.
883 (disassemble_section): Likewise.
884 (load_specific_debug_section): Likewise.
885 (read_section_stabs): Likewise.
886 (print_section_stabs): Likewise.
887 (dump_section): Likewise.
888 (dump_reloc_set): Likewise.
889 (dump_relocs_in_section): Likewise.
890 (dump_bfd): Likewise.
891 (display_any_bfd): Likewise.
893 2019-01-09 Nick Clifton <nickc@redhat.com>
896 * readelf.c (process_archive): Use arch.file_name in error
897 messages until the qualified name is available.
899 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
901 * configure: Regenerate.
903 2019-01-09 Alan Modra <amodra@gmail.com>
905 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
906 unconditionally to tests needing the option rather than via a
909 2019-01-08 Nick Clifton <nickc@redhat.com>
912 * cxxfilt.c (hp_symbol_characters): Delete.
913 (main): Remove depcreated demangling styles.
914 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
916 * testsuite/binutils-all/cxxfilt.exp: Use the
917 --no-strip-underscore option for targets that do prefix their
918 symbols with underscores.
919 Update tests to eliminate those that use gnu v2 encoding.
921 2019-01-08 Tamar Christina <tamar.christina@arm.com>
924 * testsuite/binutils-all/copy-6.d: New test.
925 * testsuite/binutils-all/objcopy.exp: Use it.
927 2019-01-08 Alan Modra <amodra@gmail.com>
929 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
930 $srcdir/$subdir to source file name if it starts with "./".
932 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
934 * readelf.c (get_machine_flags): Add RXv3 output.
936 2019-01-04 Nick Clifton <nickc@redhat.com>
939 * objdump.c (load_specific_debug_section): Check for integer
940 overflow before attempting to allocate contents.
942 2019-01-04 Nick Clifton <nickc@redhat.com>
945 * objcopy.c (copy_object): Free dhandle after writing out the
947 * objdump.c (dump_bfd): Free dhandle after printing out the debug
951 2019-01-01 Alan Modra <amodra@gmail.com>
953 Update year range in copyright notice of all files.
955 For older changes see ChangeLog-2018
957 Copyright (C) 2019 Free Software Foundation, Inc.
959 Copying and distribution of this file, with or without modification,
960 are permitted in any medium without royalty provided the copyright
961 notice and this notice are preserved.
967 version-control: never