1 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
3 * MAINTAINERS: Add myself as CTF maintainer.
5 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
7 * objdump.c (ctf-api.h): New include.
8 (dump_ctf_section_info): New variable.
9 (dump_ctf_section_name): Likewise.
10 (usage): Describe new options.
11 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
12 (main): Use them to add --ctf and --ctf-parent.
13 (read_section_stabs): Add new parameter, entsize_ptr.
14 (find_stabs_section): Adjust accordingly.
16 (dump_ctf_indent_lines): New.
17 (dump_ctf_archive_member): New.
19 (dump_bfd): Call it. Free resources afterwards.
20 * readelf.c (ctf-api.h): New include.
22 (static bfd_boolean do_ctf): Likewise.
23 (dump_ctf_parent_name): Likewise.
24 (dump_ctf_symtab_name): Likewise.
25 (dump_ctf_strtab_name): Likewise.
26 (OPTION_CTF_DUMP): Likewise.
27 (OPTION_CTF_PARENT): Likewise.
28 (OPTION_CTF_SYMBOLS): Likewise.
29 (OPTION_CTF_STRINGS): Likewise.
32 (parse_args): Handle the new options, requesting CTF_DUMP.
33 (process_section_contents): Handle CTF_DUMP.
34 (shdr_to_ctf_sect): New.
35 (dump_ctf_indent_lines): New.
36 (dump_section_as_ctf): New.
37 (main): Free resources.
38 * Makefile.am (LIBCTF): New variable.
39 (objdump_DEPENDENCIES): Use it.
40 (readelf_DEPENDENCIES): Likewise.
41 (objdump_LDADD): Likewise.
42 (readelf_LDADD): Likewise.
43 * aclocal.m4: Regenerated.
44 * Makefile.in: Likewise.
46 * doc/binutils.texi (objdump): Document the new options.
48 * doc/ctf.options.texi: New.
49 * doc/Makefile.in: Regenerated.
50 * NEWS: Mention the new feature.
52 2019-05-27 Alan Modra <amodra@gmail.com>
54 * readelf.c (process_section_groups): Continue processing groups
55 when sh_entsize exceeds group size.
57 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
59 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
60 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
61 (get_symbol_other): Call get_aarch64_symbol_other.
63 2019-05-24 Alan Modra <amodra@gmail.com>
65 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
67 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
69 * MAINTAINERS: Add myself as the maintainer for BPF.
71 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
73 * readelf.c: Include elf/bpf.h.
74 (guess_is_rela): Hanle EM_BPF.
75 (dump_relocations): Likewise.
76 (is_32bit_abs_reloc): Likewise.
77 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
80 2019-05-21 Tamar Christina <tamar.christina@arm.com>
82 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
83 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
84 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
86 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
89 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
90 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
92 2019-05-20 Nick Clifton <nickc@redhat.com>
94 * po/ca.po: Updated Catalan translation.
96 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
98 * NEWS: Mention Armv8.1-M Mainline and MVE.
100 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
102 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
103 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
105 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
108 * objcopy.c: Add new option --verilog-data-width. Use it to set
109 the value of VerilogDataWidth.
110 * doc/binutils.texi: Document the new option.
111 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
112 * testsuite/binutils-all/verilog-1.hex: New file.
113 * testsuite/binutils-all/verilog-2.hex: New file.
114 * testsuite/binutils-all/verilog-4.hex: New file.
115 * testsuite/binutils-all/verilog-8.hex: New file.
116 * NEWS: Mention the new feature.
118 2019-05-10 Alan Modra <amodra@gmail.com>
120 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
121 (test_objdump_content_limited): Add text arg, use in place of .text.
122 (bintest_signed.o): Call get_standard_section_names for name of
125 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
127 * objdump.c (sign_extend_address): New function.
128 (dump_bfd): Sign-extend user-specified start/stop addresses
129 for targets that need it.
130 * testsuite/binutils-all/objdump.exp: Add tests for objdump
131 with start and stop addresses in higher address ranges.
133 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
135 * testsuite/binutils-all/objdump.exp: Correct executable
137 * testsuite/binutils-all/compress.exp: Likewise.
139 2019-05-01 Nick Clifton <nickc@redhat.com>
142 * nm.c: (print_format): New variable.
143 (value_format_32bit, value_format_64bit): Delete.
144 (set_print_radix): Remove code to alter value_format strings.
145 (set_output_format): Record chosen format in print_format.
146 (get_print_format): New function - constructs a printf formatting
147 string according to the requirements of size, radix, and output
149 (print_value): Use get_print_format.
150 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
153 2019-04-30 Alan Modra <amodra@gmail.com>
155 * wrstabs.c (stab_start_class_type): Add assert to work around
158 2019-04-24 Nick Clifton <nickc@redhat.com>
160 * objcopy.c (strip_main): Do not enable note merging by default if
161 just stripping debug or dwo information.
162 * doc/binutils.texi (strip): Update documentation.
164 2019-04-23 Nick Clifton <nickc@redhat.com>
166 * README-how-to-make-a-release: Add note to update the symbolic
167 link from "docs" to "docs-2.x" on the sourceware website.
169 2019-04-16 Alan Modra <amodra@gmail.com>
171 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
172 * testsuite/binutils-all/copy-3.d: Likewise.
174 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
176 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
178 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
180 * readelf.c (decode_x86_isa): Handle
181 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
182 * testsuite/binutils-all/i386/pr21231b.d: Updated.
183 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
185 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
187 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
189 2019-03-26 Tamar Christina <tamar.christina@arm.com>
191 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
192 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
193 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
194 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
195 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
196 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
197 * testsuite/binutils-all/arm/in-order.d: Likewise.
198 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
199 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
200 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
202 2019-03-26 Nick Clifton <nickc@redhat.com>
204 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
207 2019-03-26 Alan Modra <amodra@gmail.com>
209 * objdump.c (dump_relocs_in_section): Warning fix.
211 2019-03-25 Tamar Christina <tamar.christina@arm.com>
213 * testsuite/binutils-all/arm/in-order-all.d: New test.
214 * testsuite/binutils-all/arm/in-order.d: New test.
215 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
216 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
217 * testsuite/binutils-all/arm/out-of-order.T: New test.
218 * testsuite/binutils-all/arm/out-of-order.d: New test.
219 * testsuite/binutils-all/arm/out-of-order.s: New test.
222 2019-03-25 Tamar Christina <tamar.christina@arm.com>
224 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
225 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
226 * testsuite/binutils-all/aarch64/out-of-order.d:
228 2019-03-25 Tamar Christina <tamar.christina@arm.com>
230 * testsuite/binutils-all/aarch64/in-order.d: New test.
231 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
234 2019-03-25 Tamar Christina <tamar.christina@arm.com>
236 * objdump.c (disassemble_bytes): Pass stop_offset.
237 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
238 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
239 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
241 2019-03-19 Nick Clifton <nickc@redhat.com>
244 * objdump.c (load_specific_debug_section): Check that the amount
245 of memory to be allocated matches the size of the section.
247 2019-03-13 Sudakshina Das <sudi.das@arm.com>
249 * readelf.c (get_aarch64_dynamic_type): Add case for
251 (dynamic_section_aarch64_val): Likewise.
253 2019-03-13 Sudakshina Das <sudi.das@arm.com>
254 Szabolcs Nagy <szabolcs.nagy@arm.com>
256 * readelf.c (get_aarch64_dynamic_type): New.
257 (get_dynamic_type): Use above for EM_AARCH64.
258 (dynamic_section_aarch64_val): New.
259 (process_dynamic_section): Use above for EM_AARCH64.
261 2019-03-13 Sudakshina Das <sudi.das@arm.com>
263 * readelf.c (decode_aarch64_feature_1_and): New.
264 (print_gnu_property_note): Add case for AArch64 gnu notes.
266 2019-03-12 Alan Modra <amodra@gmail.com>
268 * objdump.c (load_specific_debug_section): Don't compare section
269 size against file size.
270 (dump_relocs_in_section): Don't compare reloc size against file size.
271 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
273 2019-03-05 Nick Clifton <nickc@redhat.com>
276 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
278 2019-03-05 Nick Clifton <nickc@redhat.com>
280 * po/sv.po: Updated Swedish translation.
282 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
285 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
286 of "lmap" with a "foreach" loop.
288 2019-03-04 Nick Clifton <nickc@redhat.com>
291 * objcopy.c (copy_archive): Do not copy thin archives.
293 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
295 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
297 2019-02-25 Nick Clifton <nickc@redhat.com>
299 * objdump.c (sym_ok): New function.
300 (find_symbol_for_address): Use new function.
301 (disassemble_section): Compare sections by name, not pointer.
302 (dump_dwarf): Move code to initialise byte_get pointer and iterate
303 over separate debug files from here to ...
304 (dump_bfd): ... here. Add parameter indicating that a separate
305 debug info file is being dumped. For main file, pull in the
306 symbol tables from all separate debug info files.
307 (display_object): Update call to dump_bfd.
308 * doc/binutils.texi: Document extened behaviour of the
309 --dwarf=follow-links option.
310 * NEWS: Mention this new feature.
311 * testsuite/binutils-all/objdump.WK2: Update expected output.
312 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
313 options and dump file parameters.
315 * testsuite/binutils-all/objdump.WK3: New file.
316 * testsuite/binutils-all/readelf.exp: Change expected output for
318 * testsuite/binutils-all/readelf.wKis: New file.
320 2019-02-22 Nick Clifton <nickc@redhat.com>
323 * dwarf.h (struct separate_info): New structure for containing
324 information on separate debug info files.
325 * dwarf.c (struct dwo_info): New structure for containing dwo
327 (first_dwo_info): Chain of dwo_info structures.
328 (first_separate_file): Chain of separate_info structures.
329 (separate_debug_file, separate_debug_filename): Delete.
330 (fetch_alt_indirect_string): Scan all separate debug info files
331 for the requested string.
332 (add_dwo_info): New function.
333 (add_dwo_name): New function.
334 (add_dwo_dir): New function.
335 (add_dwo_id: New function.
336 (free_dwo_info): New function.
337 (read_and_display_attr_value): Store DWO data using the new
339 (load_debug_section_with_follow): If necessary, scan the list of
340 separate debug info files for the requested section.
341 (add_separate_debug_file): New function.
342 (load_separate_debug_info): Call add_separate_debug_file to store
343 the information on the newly loaded file.
344 (load_dwo_file): Likewise.
345 (load_separate_debif_file): Rename to load_separate_debug_files.
346 Change return type to boolean. If following links then attempt to
347 load all separate debug info files, not just the first one.
348 (free_debug_memory): Release memory in dwo_info and separate_info
350 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
351 * readelf.c (process_object): Likewise.
352 * doc/debug.options.texi: Update descriptions of links and
353 follow-links options.
354 * testsuite/binutils-all/objdump.WK2: Update expected output.
355 * testsuite/binutils-all/readelf.k2: Likewise.
356 * NEWS: Announce the new feature.
358 2019-02-21 Nick Clifton <nickc@redhat.com>
361 * unwind-ia64.c: Include sysdep.h.
362 (unw_decode_x1): Check current pointer against end pointer before
364 (unw_decode_x2): Likewise.
365 (unw_decode_x3): Likewise.
366 (unw_decode_x4): Likewise.
367 (unw_decode_r2): Likewise.
368 (unw_decode_p2_p5): Likewise.
369 (unw_decode_p7_p10): Likewise.
370 (unw_decode): Likewise.
372 2019-02-20 Nick Clifton <nickc@redhat.com>
375 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
378 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
379 prevent walking off the end of the buffer.
380 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
381 (unw_decode_x2): Likewise.
382 (unw_decode_x3): Likewise.
383 (unw_decode_x4): Likewise.
384 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
385 (unw_decode_r3): Likewise.
386 (unw_decode_p7_p10): Likewise.
387 (unw_decode_b2): Likewise.
388 (unw_decode_b3_x4): Likewise.
391 * readelf.c (process_mips_specific): Check for an options section
392 that is too small to even contain a single option.
395 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
397 2019-02-20 Alan Modra <amodra@gmail.com>
401 * readelf.c (get_data): Avoid possibility of overflow when
402 checking for a read that may extend past end of file.
403 (process_program_headers): Likewise.
405 2019-02-20 Alan Modra <amodra@gmail.com>
408 * objdump.c (dump_bfd_private_header): Print warning if
409 bfd_print_private_bfd_data returns false.
411 2019-02-12 Nick Clifton <nickc@redhat.com>
414 * README-how-to-make-a-release: Use git clean to delete spurious
415 files from the local source repository.
417 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
419 * size.c (berkeley_format): Delete.
420 (enum output_format): New enum.
421 (selected_output_format): New variable.
422 (usage): Update to mention GNU format.
423 (main): Update to extract options, and select format as needed.
424 Handle GNU format where needed.
425 (berkeley_sum): Renamed to...
426 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
427 (berkeley_format): Renamed to...
428 (berkeley_or_gnu_format): ...this, and updated to handle both
430 (print_sizes): Handle GNU format.
431 * doc/binutils.texi (size): Document new GNU format.
432 * testsuite/binutils-all/size.exp: Add test of extended
434 * NEWS: Mention new functionality.
436 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
438 * doc/binutils.texi (size): Update example output for Berkeley
441 2019-02-07 Nick Clifton <nickc@redhat.com>
443 * README-how-to-make-a-release: Add a note about updating the
444 obsolete targets in the bfd/config.bfd file.
446 2019-02-04 Nick Clifton <nickc@redhat.com>
448 * README-how-to-make-a-release: Add more notes on making a release.
450 2019-01-25 Nick Clifton <nickc@redhat.com>
453 * readelf.c (process_notes_at): Prevent an illegal memory access
454 when the note's namesize is zero.
455 (decode_tic6x_unwind_bytecode): Add code to handle the case where
456 no registers are specified in a frame pop instruction.
458 2019-01-25 Nick Clifton <nickc@redhat.com>
460 * po/bg.po: Updated Bulgarian translation.
462 2019-01-23 Nick Clifton <nickc@redhat.com>
464 * po/fr.po: Updated French translation.
465 * po/pt.po: Updated Portuguese translation.
467 2019-01-21 Nick Clifton <nickc@redhat.com>
469 * po/uk.po: Updated Ukranian translation.
471 2019-01-19 Nick Clifton <nickc@redhat.com>
473 * configure: Regenerate.
474 * binutils/po/binutils.pot.
476 * README-how-to-make-a-release: Update description on how to make
479 2018-06-24 Nick Clifton <nickc@redhat.com>
483 2019-01-17 Nick Clifton <nickc@redhat.com>
485 * objdump.c (disassemble_section): When disassembling from a
486 symbol only stop at the next symbol if the original symbol was not
487 a function symbol. Otherwise continue disassembling until a new
489 * testsuite/binutils-all/objdump.exp: Add tests of extended
491 * testsuite/binutils-all/disasm.s: New test source file.
493 2019-01-16 Kito Cheng <kito@andestech.com>
494 Nelson Chu <nelson@andestech.com>
496 * readelf.c (get_riscv_section_type_name): New function.
497 (get_section_type_name): Add handler for RISC-V.
498 (riscv_attr_tag_t): Declare.
499 (riscv_attr_tag): New.
500 (display_riscv_attribute): New function.
501 (process_attributes): Add handler for RISC-V.
502 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
505 2019-01-10 Nick Clifton <nickc@redhat.com>
508 * objdump.c (sanitize_string): New function. Removes control
509 characters from symbol names.
510 (dump_section_header): Use new function.
511 (objdump_print_symname): Likewise.
512 (objdump_print_addr_with_sym): Likewise.
513 (show_line): Likewise.
514 (disassemble_bytes): Likewise.
515 (disassemble_section): Likewise.
516 (load_specific_debug_section): Likewise.
517 (read_section_stabs): Likewise.
518 (print_section_stabs): Likewise.
519 (dump_section): Likewise.
520 (dump_reloc_set): Likewise.
521 (dump_relocs_in_section): Likewise.
522 (dump_bfd): Likewise.
523 (display_any_bfd): Likewise.
525 2019-01-09 Nick Clifton <nickc@redhat.com>
528 * readelf.c (process_archive): Use arch.file_name in error
529 messages until the qualified name is available.
531 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
533 * configure: Regenerate.
535 2019-01-09 Alan Modra <amodra@gmail.com>
537 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
538 unconditionally to tests needing the option rather than via a
541 2019-01-08 Nick Clifton <nickc@redhat.com>
544 * cxxfilt.c (hp_symbol_characters): Delete.
545 (main): Remove depcreated demangling styles.
546 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
548 * testsuite/binutils-all/cxxfilt.exp: Use the
549 --no-strip-underscore option for targets that do prefix their
550 symbols with underscores.
551 Update tests to eliminate those that use gnu v2 encoding.
553 2019-01-08 Tamar Christina <tamar.christina@arm.com>
556 * testsuite/binutils-all/copy-6.d: New test.
557 * testsuite/binutils-all/objcopy.exp: Use it.
559 2019-01-08 Alan Modra <amodra@gmail.com>
561 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
562 $srcdir/$subdir to source file name if it starts with "./".
564 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
566 * readelf.c (get_machine_flags): Add RXv3 output.
568 2019-01-04 Nick Clifton <nickc@redhat.com>
571 * objdump.c (load_specific_debug_section): Check for integer
572 overflow before attempting to allocate contents.
574 2019-01-04 Nick Clifton <nickc@redhat.com>
577 * objcopy.c (copy_object): Free dhandle after writing out the
579 * objdump.c (dump_bfd): Free dhandle after printing out the debug
583 2019-01-01 Alan Modra <amodra@gmail.com>
585 Update year range in copyright notice of all files.
587 For older changes see ChangeLog-2018
589 Copyright (C) 2019 Free Software Foundation, Inc.
591 Copying and distribution of this file, with or without modification,
592 are permitted in any medium without royalty provided the copyright
593 notice and this notice are preserved.
599 version-control: never