1 2019-05-29 Nick Clifton <nickc@redhat.com>
3 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
5 (HAVE_LIBCTF): Define if libctf support is available.
6 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
7 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
10 * configure: Regenerate.
11 * Makefile.in: Regenerate.
12 * config.in: Regenerate.
14 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
16 * MAINTAINERS: Add myself as CTF maintainer.
18 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
20 * objdump.c (ctf-api.h): New include.
21 (dump_ctf_section_info): New variable.
22 (dump_ctf_section_name): Likewise.
23 (usage): Describe new options.
24 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
25 (main): Use them to add --ctf and --ctf-parent.
26 (read_section_stabs): Add new parameter, entsize_ptr.
27 (find_stabs_section): Adjust accordingly.
29 (dump_ctf_indent_lines): New.
30 (dump_ctf_archive_member): New.
32 (dump_bfd): Call it. Free resources afterwards.
33 * readelf.c (ctf-api.h): New include.
35 (static bfd_boolean do_ctf): Likewise.
36 (dump_ctf_parent_name): Likewise.
37 (dump_ctf_symtab_name): Likewise.
38 (dump_ctf_strtab_name): Likewise.
39 (OPTION_CTF_DUMP): Likewise.
40 (OPTION_CTF_PARENT): Likewise.
41 (OPTION_CTF_SYMBOLS): Likewise.
42 (OPTION_CTF_STRINGS): Likewise.
45 (parse_args): Handle the new options, requesting CTF_DUMP.
46 (process_section_contents): Handle CTF_DUMP.
47 (shdr_to_ctf_sect): New.
48 (dump_ctf_indent_lines): New.
49 (dump_section_as_ctf): New.
50 (main): Free resources.
51 * Makefile.am (LIBCTF): New variable.
52 (objdump_DEPENDENCIES): Use it.
53 (readelf_DEPENDENCIES): Likewise.
54 (objdump_LDADD): Likewise.
55 (readelf_LDADD): Likewise.
56 * aclocal.m4: Regenerated.
57 * Makefile.in: Likewise.
59 * doc/binutils.texi (objdump): Document the new options.
61 * doc/ctf.options.texi: New.
62 * doc/Makefile.in: Regenerated.
63 * NEWS: Mention the new feature.
65 2019-05-27 Alan Modra <amodra@gmail.com>
67 * readelf.c (process_section_groups): Continue processing groups
68 when sh_entsize exceeds group size.
70 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
72 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
73 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
74 (get_symbol_other): Call get_aarch64_symbol_other.
76 2019-05-24 Alan Modra <amodra@gmail.com>
78 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
80 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
82 * MAINTAINERS: Add myself as the maintainer for BPF.
84 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
86 * readelf.c: Include elf/bpf.h.
87 (guess_is_rela): Hanle EM_BPF.
88 (dump_relocations): Likewise.
89 (is_32bit_abs_reloc): Likewise.
90 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
93 2019-05-21 Tamar Christina <tamar.christina@arm.com>
95 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
96 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
97 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
99 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
102 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
103 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
105 2019-05-20 Nick Clifton <nickc@redhat.com>
107 * po/ca.po: Updated Catalan translation.
109 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
111 * NEWS: Mention Armv8.1-M Mainline and MVE.
113 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
115 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
116 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
118 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
121 * objcopy.c: Add new option --verilog-data-width. Use it to set
122 the value of VerilogDataWidth.
123 * doc/binutils.texi: Document the new option.
124 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
125 * testsuite/binutils-all/verilog-1.hex: New file.
126 * testsuite/binutils-all/verilog-2.hex: New file.
127 * testsuite/binutils-all/verilog-4.hex: New file.
128 * testsuite/binutils-all/verilog-8.hex: New file.
129 * NEWS: Mention the new feature.
131 2019-05-10 Alan Modra <amodra@gmail.com>
133 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
134 (test_objdump_content_limited): Add text arg, use in place of .text.
135 (bintest_signed.o): Call get_standard_section_names for name of
138 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
140 * objdump.c (sign_extend_address): New function.
141 (dump_bfd): Sign-extend user-specified start/stop addresses
142 for targets that need it.
143 * testsuite/binutils-all/objdump.exp: Add tests for objdump
144 with start and stop addresses in higher address ranges.
146 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
148 * testsuite/binutils-all/objdump.exp: Correct executable
150 * testsuite/binutils-all/compress.exp: Likewise.
152 2019-05-01 Nick Clifton <nickc@redhat.com>
155 * nm.c: (print_format): New variable.
156 (value_format_32bit, value_format_64bit): Delete.
157 (set_print_radix): Remove code to alter value_format strings.
158 (set_output_format): Record chosen format in print_format.
159 (get_print_format): New function - constructs a printf formatting
160 string according to the requirements of size, radix, and output
162 (print_value): Use get_print_format.
163 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
166 2019-04-30 Alan Modra <amodra@gmail.com>
168 * wrstabs.c (stab_start_class_type): Add assert to work around
171 2019-04-24 Nick Clifton <nickc@redhat.com>
173 * objcopy.c (strip_main): Do not enable note merging by default if
174 just stripping debug or dwo information.
175 * doc/binutils.texi (strip): Update documentation.
177 2019-04-23 Nick Clifton <nickc@redhat.com>
179 * README-how-to-make-a-release: Add note to update the symbolic
180 link from "docs" to "docs-2.x" on the sourceware website.
182 2019-04-16 Alan Modra <amodra@gmail.com>
184 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
185 * testsuite/binutils-all/copy-3.d: Likewise.
187 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
189 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
191 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
193 * readelf.c (decode_x86_isa): Handle
194 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
195 * testsuite/binutils-all/i386/pr21231b.d: Updated.
196 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
198 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
200 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
202 2019-03-26 Tamar Christina <tamar.christina@arm.com>
204 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
205 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
206 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
207 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
208 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
209 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
210 * testsuite/binutils-all/arm/in-order.d: Likewise.
211 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
212 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
213 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
215 2019-03-26 Nick Clifton <nickc@redhat.com>
217 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
220 2019-03-26 Alan Modra <amodra@gmail.com>
222 * objdump.c (dump_relocs_in_section): Warning fix.
224 2019-03-25 Tamar Christina <tamar.christina@arm.com>
226 * testsuite/binutils-all/arm/in-order-all.d: New test.
227 * testsuite/binutils-all/arm/in-order.d: New test.
228 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
229 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
230 * testsuite/binutils-all/arm/out-of-order.T: New test.
231 * testsuite/binutils-all/arm/out-of-order.d: New test.
232 * testsuite/binutils-all/arm/out-of-order.s: New test.
235 2019-03-25 Tamar Christina <tamar.christina@arm.com>
237 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
238 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
239 * testsuite/binutils-all/aarch64/out-of-order.d:
241 2019-03-25 Tamar Christina <tamar.christina@arm.com>
243 * testsuite/binutils-all/aarch64/in-order.d: New test.
244 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
247 2019-03-25 Tamar Christina <tamar.christina@arm.com>
249 * objdump.c (disassemble_bytes): Pass stop_offset.
250 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
251 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
252 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
254 2019-03-19 Nick Clifton <nickc@redhat.com>
257 * objdump.c (load_specific_debug_section): Check that the amount
258 of memory to be allocated matches the size of the section.
260 2019-03-13 Sudakshina Das <sudi.das@arm.com>
262 * readelf.c (get_aarch64_dynamic_type): Add case for
264 (dynamic_section_aarch64_val): Likewise.
266 2019-03-13 Sudakshina Das <sudi.das@arm.com>
267 Szabolcs Nagy <szabolcs.nagy@arm.com>
269 * readelf.c (get_aarch64_dynamic_type): New.
270 (get_dynamic_type): Use above for EM_AARCH64.
271 (dynamic_section_aarch64_val): New.
272 (process_dynamic_section): Use above for EM_AARCH64.
274 2019-03-13 Sudakshina Das <sudi.das@arm.com>
276 * readelf.c (decode_aarch64_feature_1_and): New.
277 (print_gnu_property_note): Add case for AArch64 gnu notes.
279 2019-03-12 Alan Modra <amodra@gmail.com>
281 * objdump.c (load_specific_debug_section): Don't compare section
282 size against file size.
283 (dump_relocs_in_section): Don't compare reloc size against file size.
284 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
286 2019-03-05 Nick Clifton <nickc@redhat.com>
289 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
291 2019-03-05 Nick Clifton <nickc@redhat.com>
293 * po/sv.po: Updated Swedish translation.
295 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
298 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
299 of "lmap" with a "foreach" loop.
301 2019-03-04 Nick Clifton <nickc@redhat.com>
304 * objcopy.c (copy_archive): Do not copy thin archives.
306 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
308 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
310 2019-02-25 Nick Clifton <nickc@redhat.com>
312 * objdump.c (sym_ok): New function.
313 (find_symbol_for_address): Use new function.
314 (disassemble_section): Compare sections by name, not pointer.
315 (dump_dwarf): Move code to initialise byte_get pointer and iterate
316 over separate debug files from here to ...
317 (dump_bfd): ... here. Add parameter indicating that a separate
318 debug info file is being dumped. For main file, pull in the
319 symbol tables from all separate debug info files.
320 (display_object): Update call to dump_bfd.
321 * doc/binutils.texi: Document extened behaviour of the
322 --dwarf=follow-links option.
323 * NEWS: Mention this new feature.
324 * testsuite/binutils-all/objdump.WK2: Update expected output.
325 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
326 options and dump file parameters.
328 * testsuite/binutils-all/objdump.WK3: New file.
329 * testsuite/binutils-all/readelf.exp: Change expected output for
331 * testsuite/binutils-all/readelf.wKis: New file.
333 2019-02-22 Nick Clifton <nickc@redhat.com>
336 * dwarf.h (struct separate_info): New structure for containing
337 information on separate debug info files.
338 * dwarf.c (struct dwo_info): New structure for containing dwo
340 (first_dwo_info): Chain of dwo_info structures.
341 (first_separate_file): Chain of separate_info structures.
342 (separate_debug_file, separate_debug_filename): Delete.
343 (fetch_alt_indirect_string): Scan all separate debug info files
344 for the requested string.
345 (add_dwo_info): New function.
346 (add_dwo_name): New function.
347 (add_dwo_dir): New function.
348 (add_dwo_id: New function.
349 (free_dwo_info): New function.
350 (read_and_display_attr_value): Store DWO data using the new
352 (load_debug_section_with_follow): If necessary, scan the list of
353 separate debug info files for the requested section.
354 (add_separate_debug_file): New function.
355 (load_separate_debug_info): Call add_separate_debug_file to store
356 the information on the newly loaded file.
357 (load_dwo_file): Likewise.
358 (load_separate_debif_file): Rename to load_separate_debug_files.
359 Change return type to boolean. If following links then attempt to
360 load all separate debug info files, not just the first one.
361 (free_debug_memory): Release memory in dwo_info and separate_info
363 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
364 * readelf.c (process_object): Likewise.
365 * doc/debug.options.texi: Update descriptions of links and
366 follow-links options.
367 * testsuite/binutils-all/objdump.WK2: Update expected output.
368 * testsuite/binutils-all/readelf.k2: Likewise.
369 * NEWS: Announce the new feature.
371 2019-02-21 Nick Clifton <nickc@redhat.com>
374 * unwind-ia64.c: Include sysdep.h.
375 (unw_decode_x1): Check current pointer against end pointer before
377 (unw_decode_x2): Likewise.
378 (unw_decode_x3): Likewise.
379 (unw_decode_x4): Likewise.
380 (unw_decode_r2): Likewise.
381 (unw_decode_p2_p5): Likewise.
382 (unw_decode_p7_p10): Likewise.
383 (unw_decode): Likewise.
385 2019-02-20 Nick Clifton <nickc@redhat.com>
388 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
391 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
392 prevent walking off the end of the buffer.
393 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
394 (unw_decode_x2): Likewise.
395 (unw_decode_x3): Likewise.
396 (unw_decode_x4): Likewise.
397 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
398 (unw_decode_r3): Likewise.
399 (unw_decode_p7_p10): Likewise.
400 (unw_decode_b2): Likewise.
401 (unw_decode_b3_x4): Likewise.
404 * readelf.c (process_mips_specific): Check for an options section
405 that is too small to even contain a single option.
408 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
410 2019-02-20 Alan Modra <amodra@gmail.com>
414 * readelf.c (get_data): Avoid possibility of overflow when
415 checking for a read that may extend past end of file.
416 (process_program_headers): Likewise.
418 2019-02-20 Alan Modra <amodra@gmail.com>
421 * objdump.c (dump_bfd_private_header): Print warning if
422 bfd_print_private_bfd_data returns false.
424 2019-02-12 Nick Clifton <nickc@redhat.com>
427 * README-how-to-make-a-release: Use git clean to delete spurious
428 files from the local source repository.
430 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
432 * size.c (berkeley_format): Delete.
433 (enum output_format): New enum.
434 (selected_output_format): New variable.
435 (usage): Update to mention GNU format.
436 (main): Update to extract options, and select format as needed.
437 Handle GNU format where needed.
438 (berkeley_sum): Renamed to...
439 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
440 (berkeley_format): Renamed to...
441 (berkeley_or_gnu_format): ...this, and updated to handle both
443 (print_sizes): Handle GNU format.
444 * doc/binutils.texi (size): Document new GNU format.
445 * testsuite/binutils-all/size.exp: Add test of extended
447 * NEWS: Mention new functionality.
449 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
451 * doc/binutils.texi (size): Update example output for Berkeley
454 2019-02-07 Nick Clifton <nickc@redhat.com>
456 * README-how-to-make-a-release: Add a note about updating the
457 obsolete targets in the bfd/config.bfd file.
459 2019-02-04 Nick Clifton <nickc@redhat.com>
461 * README-how-to-make-a-release: Add more notes on making a release.
463 2019-01-25 Nick Clifton <nickc@redhat.com>
466 * readelf.c (process_notes_at): Prevent an illegal memory access
467 when the note's namesize is zero.
468 (decode_tic6x_unwind_bytecode): Add code to handle the case where
469 no registers are specified in a frame pop instruction.
471 2019-01-25 Nick Clifton <nickc@redhat.com>
473 * po/bg.po: Updated Bulgarian translation.
475 2019-01-23 Nick Clifton <nickc@redhat.com>
477 * po/fr.po: Updated French translation.
478 * po/pt.po: Updated Portuguese translation.
480 2019-01-21 Nick Clifton <nickc@redhat.com>
482 * po/uk.po: Updated Ukranian translation.
484 2019-01-19 Nick Clifton <nickc@redhat.com>
486 * configure: Regenerate.
487 * binutils/po/binutils.pot.
489 * README-how-to-make-a-release: Update description on how to make
492 2018-06-24 Nick Clifton <nickc@redhat.com>
496 2019-01-17 Nick Clifton <nickc@redhat.com>
498 * objdump.c (disassemble_section): When disassembling from a
499 symbol only stop at the next symbol if the original symbol was not
500 a function symbol. Otherwise continue disassembling until a new
502 * testsuite/binutils-all/objdump.exp: Add tests of extended
504 * testsuite/binutils-all/disasm.s: New test source file.
506 2019-01-16 Kito Cheng <kito@andestech.com>
507 Nelson Chu <nelson@andestech.com>
509 * readelf.c (get_riscv_section_type_name): New function.
510 (get_section_type_name): Add handler for RISC-V.
511 (riscv_attr_tag_t): Declare.
512 (riscv_attr_tag): New.
513 (display_riscv_attribute): New function.
514 (process_attributes): Add handler for RISC-V.
515 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
518 2019-01-10 Nick Clifton <nickc@redhat.com>
521 * objdump.c (sanitize_string): New function. Removes control
522 characters from symbol names.
523 (dump_section_header): Use new function.
524 (objdump_print_symname): Likewise.
525 (objdump_print_addr_with_sym): Likewise.
526 (show_line): Likewise.
527 (disassemble_bytes): Likewise.
528 (disassemble_section): Likewise.
529 (load_specific_debug_section): Likewise.
530 (read_section_stabs): Likewise.
531 (print_section_stabs): Likewise.
532 (dump_section): Likewise.
533 (dump_reloc_set): Likewise.
534 (dump_relocs_in_section): Likewise.
535 (dump_bfd): Likewise.
536 (display_any_bfd): Likewise.
538 2019-01-09 Nick Clifton <nickc@redhat.com>
541 * readelf.c (process_archive): Use arch.file_name in error
542 messages until the qualified name is available.
544 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
546 * configure: Regenerate.
548 2019-01-09 Alan Modra <amodra@gmail.com>
550 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
551 unconditionally to tests needing the option rather than via a
554 2019-01-08 Nick Clifton <nickc@redhat.com>
557 * cxxfilt.c (hp_symbol_characters): Delete.
558 (main): Remove depcreated demangling styles.
559 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
561 * testsuite/binutils-all/cxxfilt.exp: Use the
562 --no-strip-underscore option for targets that do prefix their
563 symbols with underscores.
564 Update tests to eliminate those that use gnu v2 encoding.
566 2019-01-08 Tamar Christina <tamar.christina@arm.com>
569 * testsuite/binutils-all/copy-6.d: New test.
570 * testsuite/binutils-all/objcopy.exp: Use it.
572 2019-01-08 Alan Modra <amodra@gmail.com>
574 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
575 $srcdir/$subdir to source file name if it starts with "./".
577 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
579 * readelf.c (get_machine_flags): Add RXv3 output.
581 2019-01-04 Nick Clifton <nickc@redhat.com>
584 * objdump.c (load_specific_debug_section): Check for integer
585 overflow before attempting to allocate contents.
587 2019-01-04 Nick Clifton <nickc@redhat.com>
590 * objcopy.c (copy_object): Free dhandle after writing out the
592 * objdump.c (dump_bfd): Free dhandle after printing out the debug
596 2019-01-01 Alan Modra <amodra@gmail.com>
598 Update year range in copyright notice of all files.
600 For older changes see ChangeLog-2018
602 Copyright (C) 2019 Free Software Foundation, Inc.
604 Copying and distribution of this file, with or without modification,
605 are permitted in any medium without royalty provided the copyright
606 notice and this notice are preserved.
612 version-control: never