1 2019-05-30 Nick Clifton <nickc@redhat.com>
4 * readelf.c (process_version_sections): Add 0x prefix to address
5 display. Correct indentation.
7 2019-05-30 Alan Modra <amodra@gmail.com>
9 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
10 s12z to targets not supporting this feature.
12 2019-05-30 Alan Modra <amodra@gmail.com>
14 * testsuite/lib/binutils-common.exp (run_dump_test): Support
15 tcl procedures for xfail args.
17 2019-05-29 Nick Clifton <nickc@redhat.com>
19 * README-how-to-make-a-release: Add libctf to list of directories
20 that need updates in their ChangeLogs.
22 2019-05-29 Nick Clifton <nickc@redhat.com>
24 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
26 (HAVE_LIBCTF): Define if libctf support is available.
27 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
28 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
30 * readelf.c: Likewise.
31 * configure: Regenerate.
32 * Makefile.in: Regenerate.
33 * config.in: Regenerate.
35 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
37 * MAINTAINERS: Add myself as CTF maintainer.
39 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
41 * objdump.c (ctf-api.h): New include.
42 (dump_ctf_section_info): New variable.
43 (dump_ctf_section_name): Likewise.
44 (usage): Describe new options.
45 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
46 (main): Use them to add --ctf and --ctf-parent.
47 (read_section_stabs): Add new parameter, entsize_ptr.
48 (find_stabs_section): Adjust accordingly.
50 (dump_ctf_indent_lines): New.
51 (dump_ctf_archive_member): New.
53 (dump_bfd): Call it. Free resources afterwards.
54 * readelf.c (ctf-api.h): New include.
56 (static bfd_boolean do_ctf): Likewise.
57 (dump_ctf_parent_name): Likewise.
58 (dump_ctf_symtab_name): Likewise.
59 (dump_ctf_strtab_name): Likewise.
60 (OPTION_CTF_DUMP): Likewise.
61 (OPTION_CTF_PARENT): Likewise.
62 (OPTION_CTF_SYMBOLS): Likewise.
63 (OPTION_CTF_STRINGS): Likewise.
66 (parse_args): Handle the new options, requesting CTF_DUMP.
67 (process_section_contents): Handle CTF_DUMP.
68 (shdr_to_ctf_sect): New.
69 (dump_ctf_indent_lines): New.
70 (dump_section_as_ctf): New.
71 (main): Free resources.
72 * Makefile.am (LIBCTF): New variable.
73 (objdump_DEPENDENCIES): Use it.
74 (readelf_DEPENDENCIES): Likewise.
75 (objdump_LDADD): Likewise.
76 (readelf_LDADD): Likewise.
77 * aclocal.m4: Regenerated.
78 * Makefile.in: Likewise.
80 * doc/binutils.texi (objdump): Document the new options.
82 * doc/ctf.options.texi: New.
83 * doc/Makefile.in: Regenerated.
84 * NEWS: Mention the new feature.
86 2019-05-27 Alan Modra <amodra@gmail.com>
88 * readelf.c (process_section_groups): Continue processing groups
89 when sh_entsize exceeds group size.
91 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
93 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
94 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
95 (get_symbol_other): Call get_aarch64_symbol_other.
97 2019-05-24 Alan Modra <amodra@gmail.com>
99 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
101 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
103 * MAINTAINERS: Add myself as the maintainer for BPF.
105 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
107 * readelf.c: Include elf/bpf.h.
108 (guess_is_rela): Hanle EM_BPF.
109 (dump_relocations): Likewise.
110 (is_32bit_abs_reloc): Likewise.
111 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
114 2019-05-21 Tamar Christina <tamar.christina@arm.com>
116 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
117 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
118 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
120 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
123 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
124 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
126 2019-05-20 Nick Clifton <nickc@redhat.com>
128 * po/ca.po: Updated Catalan translation.
130 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
132 * NEWS: Mention Armv8.1-M Mainline and MVE.
134 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
136 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
137 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
139 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
142 * objcopy.c: Add new option --verilog-data-width. Use it to set
143 the value of VerilogDataWidth.
144 * doc/binutils.texi: Document the new option.
145 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
146 * testsuite/binutils-all/verilog-1.hex: New file.
147 * testsuite/binutils-all/verilog-2.hex: New file.
148 * testsuite/binutils-all/verilog-4.hex: New file.
149 * testsuite/binutils-all/verilog-8.hex: New file.
150 * NEWS: Mention the new feature.
152 2019-05-10 Alan Modra <amodra@gmail.com>
154 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
155 (test_objdump_content_limited): Add text arg, use in place of .text.
156 (bintest_signed.o): Call get_standard_section_names for name of
159 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
161 * objdump.c (sign_extend_address): New function.
162 (dump_bfd): Sign-extend user-specified start/stop addresses
163 for targets that need it.
164 * testsuite/binutils-all/objdump.exp: Add tests for objdump
165 with start and stop addresses in higher address ranges.
167 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
169 * testsuite/binutils-all/objdump.exp: Correct executable
171 * testsuite/binutils-all/compress.exp: Likewise.
173 2019-05-01 Nick Clifton <nickc@redhat.com>
176 * nm.c: (print_format): New variable.
177 (value_format_32bit, value_format_64bit): Delete.
178 (set_print_radix): Remove code to alter value_format strings.
179 (set_output_format): Record chosen format in print_format.
180 (get_print_format): New function - constructs a printf formatting
181 string according to the requirements of size, radix, and output
183 (print_value): Use get_print_format.
184 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
187 2019-04-30 Alan Modra <amodra@gmail.com>
189 * wrstabs.c (stab_start_class_type): Add assert to work around
192 2019-04-24 Nick Clifton <nickc@redhat.com>
194 * objcopy.c (strip_main): Do not enable note merging by default if
195 just stripping debug or dwo information.
196 * doc/binutils.texi (strip): Update documentation.
198 2019-04-23 Nick Clifton <nickc@redhat.com>
200 * README-how-to-make-a-release: Add note to update the symbolic
201 link from "docs" to "docs-2.x" on the sourceware website.
203 2019-04-16 Alan Modra <amodra@gmail.com>
205 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
206 * testsuite/binutils-all/copy-3.d: Likewise.
208 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
210 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
212 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
214 * readelf.c (decode_x86_isa): Handle
215 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
216 * testsuite/binutils-all/i386/pr21231b.d: Updated.
217 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
219 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
221 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
223 2019-03-26 Tamar Christina <tamar.christina@arm.com>
225 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
226 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
227 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
228 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
229 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
230 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
231 * testsuite/binutils-all/arm/in-order.d: Likewise.
232 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
233 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
234 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
236 2019-03-26 Nick Clifton <nickc@redhat.com>
238 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
241 2019-03-26 Alan Modra <amodra@gmail.com>
243 * objdump.c (dump_relocs_in_section): Warning fix.
245 2019-03-25 Tamar Christina <tamar.christina@arm.com>
247 * testsuite/binutils-all/arm/in-order-all.d: New test.
248 * testsuite/binutils-all/arm/in-order.d: New test.
249 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
250 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
251 * testsuite/binutils-all/arm/out-of-order.T: New test.
252 * testsuite/binutils-all/arm/out-of-order.d: New test.
253 * testsuite/binutils-all/arm/out-of-order.s: New test.
256 2019-03-25 Tamar Christina <tamar.christina@arm.com>
258 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
259 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
260 * testsuite/binutils-all/aarch64/out-of-order.d:
262 2019-03-25 Tamar Christina <tamar.christina@arm.com>
264 * testsuite/binutils-all/aarch64/in-order.d: New test.
265 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
268 2019-03-25 Tamar Christina <tamar.christina@arm.com>
270 * objdump.c (disassemble_bytes): Pass stop_offset.
271 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
272 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
273 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
275 2019-03-19 Nick Clifton <nickc@redhat.com>
278 * objdump.c (load_specific_debug_section): Check that the amount
279 of memory to be allocated matches the size of the section.
281 2019-03-13 Sudakshina Das <sudi.das@arm.com>
283 * readelf.c (get_aarch64_dynamic_type): Add case for
285 (dynamic_section_aarch64_val): Likewise.
287 2019-03-13 Sudakshina Das <sudi.das@arm.com>
288 Szabolcs Nagy <szabolcs.nagy@arm.com>
290 * readelf.c (get_aarch64_dynamic_type): New.
291 (get_dynamic_type): Use above for EM_AARCH64.
292 (dynamic_section_aarch64_val): New.
293 (process_dynamic_section): Use above for EM_AARCH64.
295 2019-03-13 Sudakshina Das <sudi.das@arm.com>
297 * readelf.c (decode_aarch64_feature_1_and): New.
298 (print_gnu_property_note): Add case for AArch64 gnu notes.
300 2019-03-12 Alan Modra <amodra@gmail.com>
302 * objdump.c (load_specific_debug_section): Don't compare section
303 size against file size.
304 (dump_relocs_in_section): Don't compare reloc size against file size.
305 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
307 2019-03-05 Nick Clifton <nickc@redhat.com>
310 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
312 2019-03-05 Nick Clifton <nickc@redhat.com>
314 * po/sv.po: Updated Swedish translation.
316 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
319 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
320 of "lmap" with a "foreach" loop.
322 2019-03-04 Nick Clifton <nickc@redhat.com>
325 * objcopy.c (copy_archive): Do not copy thin archives.
327 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
329 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
331 2019-02-25 Nick Clifton <nickc@redhat.com>
333 * objdump.c (sym_ok): New function.
334 (find_symbol_for_address): Use new function.
335 (disassemble_section): Compare sections by name, not pointer.
336 (dump_dwarf): Move code to initialise byte_get pointer and iterate
337 over separate debug files from here to ...
338 (dump_bfd): ... here. Add parameter indicating that a separate
339 debug info file is being dumped. For main file, pull in the
340 symbol tables from all separate debug info files.
341 (display_object): Update call to dump_bfd.
342 * doc/binutils.texi: Document extened behaviour of the
343 --dwarf=follow-links option.
344 * NEWS: Mention this new feature.
345 * testsuite/binutils-all/objdump.WK2: Update expected output.
346 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
347 options and dump file parameters.
349 * testsuite/binutils-all/objdump.WK3: New file.
350 * testsuite/binutils-all/readelf.exp: Change expected output for
352 * testsuite/binutils-all/readelf.wKis: New file.
354 2019-02-22 Nick Clifton <nickc@redhat.com>
357 * dwarf.h (struct separate_info): New structure for containing
358 information on separate debug info files.
359 * dwarf.c (struct dwo_info): New structure for containing dwo
361 (first_dwo_info): Chain of dwo_info structures.
362 (first_separate_file): Chain of separate_info structures.
363 (separate_debug_file, separate_debug_filename): Delete.
364 (fetch_alt_indirect_string): Scan all separate debug info files
365 for the requested string.
366 (add_dwo_info): New function.
367 (add_dwo_name): New function.
368 (add_dwo_dir): New function.
369 (add_dwo_id: New function.
370 (free_dwo_info): New function.
371 (read_and_display_attr_value): Store DWO data using the new
373 (load_debug_section_with_follow): If necessary, scan the list of
374 separate debug info files for the requested section.
375 (add_separate_debug_file): New function.
376 (load_separate_debug_info): Call add_separate_debug_file to store
377 the information on the newly loaded file.
378 (load_dwo_file): Likewise.
379 (load_separate_debif_file): Rename to load_separate_debug_files.
380 Change return type to boolean. If following links then attempt to
381 load all separate debug info files, not just the first one.
382 (free_debug_memory): Release memory in dwo_info and separate_info
384 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
385 * readelf.c (process_object): Likewise.
386 * doc/debug.options.texi: Update descriptions of links and
387 follow-links options.
388 * testsuite/binutils-all/objdump.WK2: Update expected output.
389 * testsuite/binutils-all/readelf.k2: Likewise.
390 * NEWS: Announce the new feature.
392 2019-02-21 Nick Clifton <nickc@redhat.com>
395 * unwind-ia64.c: Include sysdep.h.
396 (unw_decode_x1): Check current pointer against end pointer before
398 (unw_decode_x2): Likewise.
399 (unw_decode_x3): Likewise.
400 (unw_decode_x4): Likewise.
401 (unw_decode_r2): Likewise.
402 (unw_decode_p2_p5): Likewise.
403 (unw_decode_p7_p10): Likewise.
404 (unw_decode): Likewise.
406 2019-02-20 Nick Clifton <nickc@redhat.com>
409 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
412 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
413 prevent walking off the end of the buffer.
414 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
415 (unw_decode_x2): Likewise.
416 (unw_decode_x3): Likewise.
417 (unw_decode_x4): Likewise.
418 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
419 (unw_decode_r3): Likewise.
420 (unw_decode_p7_p10): Likewise.
421 (unw_decode_b2): Likewise.
422 (unw_decode_b3_x4): Likewise.
425 * readelf.c (process_mips_specific): Check for an options section
426 that is too small to even contain a single option.
429 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
431 2019-02-20 Alan Modra <amodra@gmail.com>
435 * readelf.c (get_data): Avoid possibility of overflow when
436 checking for a read that may extend past end of file.
437 (process_program_headers): Likewise.
439 2019-02-20 Alan Modra <amodra@gmail.com>
442 * objdump.c (dump_bfd_private_header): Print warning if
443 bfd_print_private_bfd_data returns false.
445 2019-02-12 Nick Clifton <nickc@redhat.com>
448 * README-how-to-make-a-release: Use git clean to delete spurious
449 files from the local source repository.
451 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
453 * size.c (berkeley_format): Delete.
454 (enum output_format): New enum.
455 (selected_output_format): New variable.
456 (usage): Update to mention GNU format.
457 (main): Update to extract options, and select format as needed.
458 Handle GNU format where needed.
459 (berkeley_sum): Renamed to...
460 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
461 (berkeley_format): Renamed to...
462 (berkeley_or_gnu_format): ...this, and updated to handle both
464 (print_sizes): Handle GNU format.
465 * doc/binutils.texi (size): Document new GNU format.
466 * testsuite/binutils-all/size.exp: Add test of extended
468 * NEWS: Mention new functionality.
470 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
472 * doc/binutils.texi (size): Update example output for Berkeley
475 2019-02-07 Nick Clifton <nickc@redhat.com>
477 * README-how-to-make-a-release: Add a note about updating the
478 obsolete targets in the bfd/config.bfd file.
480 2019-02-04 Nick Clifton <nickc@redhat.com>
482 * README-how-to-make-a-release: Add more notes on making a release.
484 2019-01-25 Nick Clifton <nickc@redhat.com>
487 * readelf.c (process_notes_at): Prevent an illegal memory access
488 when the note's namesize is zero.
489 (decode_tic6x_unwind_bytecode): Add code to handle the case where
490 no registers are specified in a frame pop instruction.
492 2019-01-25 Nick Clifton <nickc@redhat.com>
494 * po/bg.po: Updated Bulgarian translation.
496 2019-01-23 Nick Clifton <nickc@redhat.com>
498 * po/fr.po: Updated French translation.
499 * po/pt.po: Updated Portuguese translation.
501 2019-01-21 Nick Clifton <nickc@redhat.com>
503 * po/uk.po: Updated Ukranian translation.
505 2019-01-19 Nick Clifton <nickc@redhat.com>
507 * configure: Regenerate.
508 * binutils/po/binutils.pot.
510 * README-how-to-make-a-release: Update description on how to make
513 2018-06-24 Nick Clifton <nickc@redhat.com>
517 2019-01-17 Nick Clifton <nickc@redhat.com>
519 * objdump.c (disassemble_section): When disassembling from a
520 symbol only stop at the next symbol if the original symbol was not
521 a function symbol. Otherwise continue disassembling until a new
523 * testsuite/binutils-all/objdump.exp: Add tests of extended
525 * testsuite/binutils-all/disasm.s: New test source file.
527 2019-01-16 Kito Cheng <kito@andestech.com>
528 Nelson Chu <nelson@andestech.com>
530 * readelf.c (get_riscv_section_type_name): New function.
531 (get_section_type_name): Add handler for RISC-V.
532 (riscv_attr_tag_t): Declare.
533 (riscv_attr_tag): New.
534 (display_riscv_attribute): New function.
535 (process_attributes): Add handler for RISC-V.
536 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
539 2019-01-10 Nick Clifton <nickc@redhat.com>
542 * objdump.c (sanitize_string): New function. Removes control
543 characters from symbol names.
544 (dump_section_header): Use new function.
545 (objdump_print_symname): Likewise.
546 (objdump_print_addr_with_sym): Likewise.
547 (show_line): Likewise.
548 (disassemble_bytes): Likewise.
549 (disassemble_section): Likewise.
550 (load_specific_debug_section): Likewise.
551 (read_section_stabs): Likewise.
552 (print_section_stabs): Likewise.
553 (dump_section): Likewise.
554 (dump_reloc_set): Likewise.
555 (dump_relocs_in_section): Likewise.
556 (dump_bfd): Likewise.
557 (display_any_bfd): Likewise.
559 2019-01-09 Nick Clifton <nickc@redhat.com>
562 * readelf.c (process_archive): Use arch.file_name in error
563 messages until the qualified name is available.
565 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
567 * configure: Regenerate.
569 2019-01-09 Alan Modra <amodra@gmail.com>
571 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
572 unconditionally to tests needing the option rather than via a
575 2019-01-08 Nick Clifton <nickc@redhat.com>
578 * cxxfilt.c (hp_symbol_characters): Delete.
579 (main): Remove depcreated demangling styles.
580 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
582 * testsuite/binutils-all/cxxfilt.exp: Use the
583 --no-strip-underscore option for targets that do prefix their
584 symbols with underscores.
585 Update tests to eliminate those that use gnu v2 encoding.
587 2019-01-08 Tamar Christina <tamar.christina@arm.com>
590 * testsuite/binutils-all/copy-6.d: New test.
591 * testsuite/binutils-all/objcopy.exp: Use it.
593 2019-01-08 Alan Modra <amodra@gmail.com>
595 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
596 $srcdir/$subdir to source file name if it starts with "./".
598 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
600 * readelf.c (get_machine_flags): Add RXv3 output.
602 2019-01-04 Nick Clifton <nickc@redhat.com>
605 * objdump.c (load_specific_debug_section): Check for integer
606 overflow before attempting to allocate contents.
608 2019-01-04 Nick Clifton <nickc@redhat.com>
611 * objcopy.c (copy_object): Free dhandle after writing out the
613 * objdump.c (dump_bfd): Free dhandle after printing out the debug
617 2019-01-01 Alan Modra <amodra@gmail.com>
619 Update year range in copyright notice of all files.
621 For older changes see ChangeLog-2018
623 Copyright (C) 2019 Free Software Foundation, Inc.
625 Copying and distribution of this file, with or without modification,
626 are permitted in any medium without royalty provided the copyright
627 notice and this notice are preserved.
633 version-control: never