1 2019-05-29 Nick Clifton <nickc@redhat.com>
3 * README-how-to-make-a-release: Add libctf to list of directories
4 that need updates in their ChangeLogs.
6 2019-05-29 Nick Clifton <nickc@redhat.com>
8 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
10 (HAVE_LIBCTF): Define if libctf support is available.
11 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
12 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
14 * readelf.c: Likewise.
15 * configure: Regenerate.
16 * Makefile.in: Regenerate.
17 * config.in: Regenerate.
19 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
21 * MAINTAINERS: Add myself as CTF maintainer.
23 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
25 * objdump.c (ctf-api.h): New include.
26 (dump_ctf_section_info): New variable.
27 (dump_ctf_section_name): Likewise.
28 (usage): Describe new options.
29 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
30 (main): Use them to add --ctf and --ctf-parent.
31 (read_section_stabs): Add new parameter, entsize_ptr.
32 (find_stabs_section): Adjust accordingly.
34 (dump_ctf_indent_lines): New.
35 (dump_ctf_archive_member): New.
37 (dump_bfd): Call it. Free resources afterwards.
38 * readelf.c (ctf-api.h): New include.
40 (static bfd_boolean do_ctf): Likewise.
41 (dump_ctf_parent_name): Likewise.
42 (dump_ctf_symtab_name): Likewise.
43 (dump_ctf_strtab_name): Likewise.
44 (OPTION_CTF_DUMP): Likewise.
45 (OPTION_CTF_PARENT): Likewise.
46 (OPTION_CTF_SYMBOLS): Likewise.
47 (OPTION_CTF_STRINGS): Likewise.
50 (parse_args): Handle the new options, requesting CTF_DUMP.
51 (process_section_contents): Handle CTF_DUMP.
52 (shdr_to_ctf_sect): New.
53 (dump_ctf_indent_lines): New.
54 (dump_section_as_ctf): New.
55 (main): Free resources.
56 * Makefile.am (LIBCTF): New variable.
57 (objdump_DEPENDENCIES): Use it.
58 (readelf_DEPENDENCIES): Likewise.
59 (objdump_LDADD): Likewise.
60 (readelf_LDADD): Likewise.
61 * aclocal.m4: Regenerated.
62 * Makefile.in: Likewise.
64 * doc/binutils.texi (objdump): Document the new options.
66 * doc/ctf.options.texi: New.
67 * doc/Makefile.in: Regenerated.
68 * NEWS: Mention the new feature.
70 2019-05-27 Alan Modra <amodra@gmail.com>
72 * readelf.c (process_section_groups): Continue processing groups
73 when sh_entsize exceeds group size.
75 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
77 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
78 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
79 (get_symbol_other): Call get_aarch64_symbol_other.
81 2019-05-24 Alan Modra <amodra@gmail.com>
83 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
85 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
87 * MAINTAINERS: Add myself as the maintainer for BPF.
89 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
91 * readelf.c: Include elf/bpf.h.
92 (guess_is_rela): Hanle EM_BPF.
93 (dump_relocations): Likewise.
94 (is_32bit_abs_reloc): Likewise.
95 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
98 2019-05-21 Tamar Christina <tamar.christina@arm.com>
100 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
101 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
102 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
104 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
107 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
108 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
110 2019-05-20 Nick Clifton <nickc@redhat.com>
112 * po/ca.po: Updated Catalan translation.
114 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
116 * NEWS: Mention Armv8.1-M Mainline and MVE.
118 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
120 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
121 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
123 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
126 * objcopy.c: Add new option --verilog-data-width. Use it to set
127 the value of VerilogDataWidth.
128 * doc/binutils.texi: Document the new option.
129 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
130 * testsuite/binutils-all/verilog-1.hex: New file.
131 * testsuite/binutils-all/verilog-2.hex: New file.
132 * testsuite/binutils-all/verilog-4.hex: New file.
133 * testsuite/binutils-all/verilog-8.hex: New file.
134 * NEWS: Mention the new feature.
136 2019-05-10 Alan Modra <amodra@gmail.com>
138 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
139 (test_objdump_content_limited): Add text arg, use in place of .text.
140 (bintest_signed.o): Call get_standard_section_names for name of
143 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
145 * objdump.c (sign_extend_address): New function.
146 (dump_bfd): Sign-extend user-specified start/stop addresses
147 for targets that need it.
148 * testsuite/binutils-all/objdump.exp: Add tests for objdump
149 with start and stop addresses in higher address ranges.
151 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
153 * testsuite/binutils-all/objdump.exp: Correct executable
155 * testsuite/binutils-all/compress.exp: Likewise.
157 2019-05-01 Nick Clifton <nickc@redhat.com>
160 * nm.c: (print_format): New variable.
161 (value_format_32bit, value_format_64bit): Delete.
162 (set_print_radix): Remove code to alter value_format strings.
163 (set_output_format): Record chosen format in print_format.
164 (get_print_format): New function - constructs a printf formatting
165 string according to the requirements of size, radix, and output
167 (print_value): Use get_print_format.
168 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
171 2019-04-30 Alan Modra <amodra@gmail.com>
173 * wrstabs.c (stab_start_class_type): Add assert to work around
176 2019-04-24 Nick Clifton <nickc@redhat.com>
178 * objcopy.c (strip_main): Do not enable note merging by default if
179 just stripping debug or dwo information.
180 * doc/binutils.texi (strip): Update documentation.
182 2019-04-23 Nick Clifton <nickc@redhat.com>
184 * README-how-to-make-a-release: Add note to update the symbolic
185 link from "docs" to "docs-2.x" on the sourceware website.
187 2019-04-16 Alan Modra <amodra@gmail.com>
189 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
190 * testsuite/binutils-all/copy-3.d: Likewise.
192 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
194 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
196 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
198 * readelf.c (decode_x86_isa): Handle
199 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
200 * testsuite/binutils-all/i386/pr21231b.d: Updated.
201 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
203 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
205 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
207 2019-03-26 Tamar Christina <tamar.christina@arm.com>
209 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
210 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
211 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
212 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
213 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
214 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
215 * testsuite/binutils-all/arm/in-order.d: Likewise.
216 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
217 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
218 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
220 2019-03-26 Nick Clifton <nickc@redhat.com>
222 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
225 2019-03-26 Alan Modra <amodra@gmail.com>
227 * objdump.c (dump_relocs_in_section): Warning fix.
229 2019-03-25 Tamar Christina <tamar.christina@arm.com>
231 * testsuite/binutils-all/arm/in-order-all.d: New test.
232 * testsuite/binutils-all/arm/in-order.d: New test.
233 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
234 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
235 * testsuite/binutils-all/arm/out-of-order.T: New test.
236 * testsuite/binutils-all/arm/out-of-order.d: New test.
237 * testsuite/binutils-all/arm/out-of-order.s: New test.
240 2019-03-25 Tamar Christina <tamar.christina@arm.com>
242 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
243 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
244 * testsuite/binutils-all/aarch64/out-of-order.d:
246 2019-03-25 Tamar Christina <tamar.christina@arm.com>
248 * testsuite/binutils-all/aarch64/in-order.d: New test.
249 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
252 2019-03-25 Tamar Christina <tamar.christina@arm.com>
254 * objdump.c (disassemble_bytes): Pass stop_offset.
255 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
256 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
257 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
259 2019-03-19 Nick Clifton <nickc@redhat.com>
262 * objdump.c (load_specific_debug_section): Check that the amount
263 of memory to be allocated matches the size of the section.
265 2019-03-13 Sudakshina Das <sudi.das@arm.com>
267 * readelf.c (get_aarch64_dynamic_type): Add case for
269 (dynamic_section_aarch64_val): Likewise.
271 2019-03-13 Sudakshina Das <sudi.das@arm.com>
272 Szabolcs Nagy <szabolcs.nagy@arm.com>
274 * readelf.c (get_aarch64_dynamic_type): New.
275 (get_dynamic_type): Use above for EM_AARCH64.
276 (dynamic_section_aarch64_val): New.
277 (process_dynamic_section): Use above for EM_AARCH64.
279 2019-03-13 Sudakshina Das <sudi.das@arm.com>
281 * readelf.c (decode_aarch64_feature_1_and): New.
282 (print_gnu_property_note): Add case for AArch64 gnu notes.
284 2019-03-12 Alan Modra <amodra@gmail.com>
286 * objdump.c (load_specific_debug_section): Don't compare section
287 size against file size.
288 (dump_relocs_in_section): Don't compare reloc size against file size.
289 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
291 2019-03-05 Nick Clifton <nickc@redhat.com>
294 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
296 2019-03-05 Nick Clifton <nickc@redhat.com>
298 * po/sv.po: Updated Swedish translation.
300 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
303 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
304 of "lmap" with a "foreach" loop.
306 2019-03-04 Nick Clifton <nickc@redhat.com>
309 * objcopy.c (copy_archive): Do not copy thin archives.
311 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
313 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
315 2019-02-25 Nick Clifton <nickc@redhat.com>
317 * objdump.c (sym_ok): New function.
318 (find_symbol_for_address): Use new function.
319 (disassemble_section): Compare sections by name, not pointer.
320 (dump_dwarf): Move code to initialise byte_get pointer and iterate
321 over separate debug files from here to ...
322 (dump_bfd): ... here. Add parameter indicating that a separate
323 debug info file is being dumped. For main file, pull in the
324 symbol tables from all separate debug info files.
325 (display_object): Update call to dump_bfd.
326 * doc/binutils.texi: Document extened behaviour of the
327 --dwarf=follow-links option.
328 * NEWS: Mention this new feature.
329 * testsuite/binutils-all/objdump.WK2: Update expected output.
330 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
331 options and dump file parameters.
333 * testsuite/binutils-all/objdump.WK3: New file.
334 * testsuite/binutils-all/readelf.exp: Change expected output for
336 * testsuite/binutils-all/readelf.wKis: New file.
338 2019-02-22 Nick Clifton <nickc@redhat.com>
341 * dwarf.h (struct separate_info): New structure for containing
342 information on separate debug info files.
343 * dwarf.c (struct dwo_info): New structure for containing dwo
345 (first_dwo_info): Chain of dwo_info structures.
346 (first_separate_file): Chain of separate_info structures.
347 (separate_debug_file, separate_debug_filename): Delete.
348 (fetch_alt_indirect_string): Scan all separate debug info files
349 for the requested string.
350 (add_dwo_info): New function.
351 (add_dwo_name): New function.
352 (add_dwo_dir): New function.
353 (add_dwo_id: New function.
354 (free_dwo_info): New function.
355 (read_and_display_attr_value): Store DWO data using the new
357 (load_debug_section_with_follow): If necessary, scan the list of
358 separate debug info files for the requested section.
359 (add_separate_debug_file): New function.
360 (load_separate_debug_info): Call add_separate_debug_file to store
361 the information on the newly loaded file.
362 (load_dwo_file): Likewise.
363 (load_separate_debif_file): Rename to load_separate_debug_files.
364 Change return type to boolean. If following links then attempt to
365 load all separate debug info files, not just the first one.
366 (free_debug_memory): Release memory in dwo_info and separate_info
368 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
369 * readelf.c (process_object): Likewise.
370 * doc/debug.options.texi: Update descriptions of links and
371 follow-links options.
372 * testsuite/binutils-all/objdump.WK2: Update expected output.
373 * testsuite/binutils-all/readelf.k2: Likewise.
374 * NEWS: Announce the new feature.
376 2019-02-21 Nick Clifton <nickc@redhat.com>
379 * unwind-ia64.c: Include sysdep.h.
380 (unw_decode_x1): Check current pointer against end pointer before
382 (unw_decode_x2): Likewise.
383 (unw_decode_x3): Likewise.
384 (unw_decode_x4): Likewise.
385 (unw_decode_r2): Likewise.
386 (unw_decode_p2_p5): Likewise.
387 (unw_decode_p7_p10): Likewise.
388 (unw_decode): Likewise.
390 2019-02-20 Nick Clifton <nickc@redhat.com>
393 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
396 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
397 prevent walking off the end of the buffer.
398 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
399 (unw_decode_x2): Likewise.
400 (unw_decode_x3): Likewise.
401 (unw_decode_x4): Likewise.
402 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
403 (unw_decode_r3): Likewise.
404 (unw_decode_p7_p10): Likewise.
405 (unw_decode_b2): Likewise.
406 (unw_decode_b3_x4): Likewise.
409 * readelf.c (process_mips_specific): Check for an options section
410 that is too small to even contain a single option.
413 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
415 2019-02-20 Alan Modra <amodra@gmail.com>
419 * readelf.c (get_data): Avoid possibility of overflow when
420 checking for a read that may extend past end of file.
421 (process_program_headers): Likewise.
423 2019-02-20 Alan Modra <amodra@gmail.com>
426 * objdump.c (dump_bfd_private_header): Print warning if
427 bfd_print_private_bfd_data returns false.
429 2019-02-12 Nick Clifton <nickc@redhat.com>
432 * README-how-to-make-a-release: Use git clean to delete spurious
433 files from the local source repository.
435 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
437 * size.c (berkeley_format): Delete.
438 (enum output_format): New enum.
439 (selected_output_format): New variable.
440 (usage): Update to mention GNU format.
441 (main): Update to extract options, and select format as needed.
442 Handle GNU format where needed.
443 (berkeley_sum): Renamed to...
444 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
445 (berkeley_format): Renamed to...
446 (berkeley_or_gnu_format): ...this, and updated to handle both
448 (print_sizes): Handle GNU format.
449 * doc/binutils.texi (size): Document new GNU format.
450 * testsuite/binutils-all/size.exp: Add test of extended
452 * NEWS: Mention new functionality.
454 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
456 * doc/binutils.texi (size): Update example output for Berkeley
459 2019-02-07 Nick Clifton <nickc@redhat.com>
461 * README-how-to-make-a-release: Add a note about updating the
462 obsolete targets in the bfd/config.bfd file.
464 2019-02-04 Nick Clifton <nickc@redhat.com>
466 * README-how-to-make-a-release: Add more notes on making a release.
468 2019-01-25 Nick Clifton <nickc@redhat.com>
471 * readelf.c (process_notes_at): Prevent an illegal memory access
472 when the note's namesize is zero.
473 (decode_tic6x_unwind_bytecode): Add code to handle the case where
474 no registers are specified in a frame pop instruction.
476 2019-01-25 Nick Clifton <nickc@redhat.com>
478 * po/bg.po: Updated Bulgarian translation.
480 2019-01-23 Nick Clifton <nickc@redhat.com>
482 * po/fr.po: Updated French translation.
483 * po/pt.po: Updated Portuguese translation.
485 2019-01-21 Nick Clifton <nickc@redhat.com>
487 * po/uk.po: Updated Ukranian translation.
489 2019-01-19 Nick Clifton <nickc@redhat.com>
491 * configure: Regenerate.
492 * binutils/po/binutils.pot.
494 * README-how-to-make-a-release: Update description on how to make
497 2018-06-24 Nick Clifton <nickc@redhat.com>
501 2019-01-17 Nick Clifton <nickc@redhat.com>
503 * objdump.c (disassemble_section): When disassembling from a
504 symbol only stop at the next symbol if the original symbol was not
505 a function symbol. Otherwise continue disassembling until a new
507 * testsuite/binutils-all/objdump.exp: Add tests of extended
509 * testsuite/binutils-all/disasm.s: New test source file.
511 2019-01-16 Kito Cheng <kito@andestech.com>
512 Nelson Chu <nelson@andestech.com>
514 * readelf.c (get_riscv_section_type_name): New function.
515 (get_section_type_name): Add handler for RISC-V.
516 (riscv_attr_tag_t): Declare.
517 (riscv_attr_tag): New.
518 (display_riscv_attribute): New function.
519 (process_attributes): Add handler for RISC-V.
520 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
523 2019-01-10 Nick Clifton <nickc@redhat.com>
526 * objdump.c (sanitize_string): New function. Removes control
527 characters from symbol names.
528 (dump_section_header): Use new function.
529 (objdump_print_symname): Likewise.
530 (objdump_print_addr_with_sym): Likewise.
531 (show_line): Likewise.
532 (disassemble_bytes): Likewise.
533 (disassemble_section): Likewise.
534 (load_specific_debug_section): Likewise.
535 (read_section_stabs): Likewise.
536 (print_section_stabs): Likewise.
537 (dump_section): Likewise.
538 (dump_reloc_set): Likewise.
539 (dump_relocs_in_section): Likewise.
540 (dump_bfd): Likewise.
541 (display_any_bfd): Likewise.
543 2019-01-09 Nick Clifton <nickc@redhat.com>
546 * readelf.c (process_archive): Use arch.file_name in error
547 messages until the qualified name is available.
549 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
551 * configure: Regenerate.
553 2019-01-09 Alan Modra <amodra@gmail.com>
555 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
556 unconditionally to tests needing the option rather than via a
559 2019-01-08 Nick Clifton <nickc@redhat.com>
562 * cxxfilt.c (hp_symbol_characters): Delete.
563 (main): Remove depcreated demangling styles.
564 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
566 * testsuite/binutils-all/cxxfilt.exp: Use the
567 --no-strip-underscore option for targets that do prefix their
568 symbols with underscores.
569 Update tests to eliminate those that use gnu v2 encoding.
571 2019-01-08 Tamar Christina <tamar.christina@arm.com>
574 * testsuite/binutils-all/copy-6.d: New test.
575 * testsuite/binutils-all/objcopy.exp: Use it.
577 2019-01-08 Alan Modra <amodra@gmail.com>
579 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
580 $srcdir/$subdir to source file name if it starts with "./".
582 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
584 * readelf.c (get_machine_flags): Add RXv3 output.
586 2019-01-04 Nick Clifton <nickc@redhat.com>
589 * objdump.c (load_specific_debug_section): Check for integer
590 overflow before attempting to allocate contents.
592 2019-01-04 Nick Clifton <nickc@redhat.com>
595 * objcopy.c (copy_object): Free dhandle after writing out the
597 * objdump.c (dump_bfd): Free dhandle after printing out the debug
601 2019-01-01 Alan Modra <amodra@gmail.com>
603 Update year range in copyright notice of all files.
605 For older changes see ChangeLog-2018
607 Copyright (C) 2019 Free Software Foundation, Inc.
609 Copying and distribution of this file, with or without modification,
610 are permitted in any medium without royalty provided the copyright
611 notice and this notice are preserved.
617 version-control: never