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