1 2019-05-27 Alan Modra <amodra@gmail.com>
3 * readelf.c (process_section_groups): Continue processing groups
4 when sh_entsize exceeds group size.
6 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
8 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
9 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
10 (get_symbol_other): Call get_aarch64_symbol_other.
12 2019-05-24 Alan Modra <amodra@gmail.com>
14 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
16 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
18 * MAINTAINERS: Add myself as the maintainer for BPF.
20 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
22 * readelf.c: Include elf/bpf.h.
23 (guess_is_rela): Hanle EM_BPF.
24 (dump_relocations): Likewise.
25 (is_32bit_abs_reloc): Likewise.
26 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
29 2019-05-21 Tamar Christina <tamar.christina@arm.com>
31 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
32 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
33 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
35 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
38 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
39 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
41 2019-05-20 Nick Clifton <nickc@redhat.com>
43 * po/ca.po: Updated Catalan translation.
45 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
47 * NEWS: Mention Armv8.1-M Mainline and MVE.
49 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
51 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
52 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
54 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
57 * objcopy.c: Add new option --verilog-data-width. Use it to set
58 the value of VerilogDataWidth.
59 * doc/binutils.texi: Document the new option.
60 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
61 * testsuite/binutils-all/verilog-1.hex: New file.
62 * testsuite/binutils-all/verilog-2.hex: New file.
63 * testsuite/binutils-all/verilog-4.hex: New file.
64 * testsuite/binutils-all/verilog-8.hex: New file.
65 * NEWS: Mention the new feature.
67 2019-05-10 Alan Modra <amodra@gmail.com>
69 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
70 (test_objdump_content_limited): Add text arg, use in place of .text.
71 (bintest_signed.o): Call get_standard_section_names for name of
74 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
76 * objdump.c (sign_extend_address): New function.
77 (dump_bfd): Sign-extend user-specified start/stop addresses
78 for targets that need it.
79 * testsuite/binutils-all/objdump.exp: Add tests for objdump
80 with start and stop addresses in higher address ranges.
82 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
84 * testsuite/binutils-all/objdump.exp: Correct executable
86 * testsuite/binutils-all/compress.exp: Likewise.
88 2019-05-01 Nick Clifton <nickc@redhat.com>
91 * nm.c: (print_format): New variable.
92 (value_format_32bit, value_format_64bit): Delete.
93 (set_print_radix): Remove code to alter value_format strings.
94 (set_output_format): Record chosen format in print_format.
95 (get_print_format): New function - constructs a printf formatting
96 string according to the requirements of size, radix, and output
98 (print_value): Use get_print_format.
99 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
102 2019-04-30 Alan Modra <amodra@gmail.com>
104 * wrstabs.c (stab_start_class_type): Add assert to work around
107 2019-04-24 Nick Clifton <nickc@redhat.com>
109 * objcopy.c (strip_main): Do not enable note merging by default if
110 just stripping debug or dwo information.
111 * doc/binutils.texi (strip): Update documentation.
113 2019-04-23 Nick Clifton <nickc@redhat.com>
115 * README-how-to-make-a-release: Add note to update the symbolic
116 link from "docs" to "docs-2.x" on the sourceware website.
118 2019-04-16 Alan Modra <amodra@gmail.com>
120 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
121 * testsuite/binutils-all/copy-3.d: Likewise.
123 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
125 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
127 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
129 * readelf.c (decode_x86_isa): Handle
130 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
131 * testsuite/binutils-all/i386/pr21231b.d: Updated.
132 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
134 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
136 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
138 2019-03-26 Tamar Christina <tamar.christina@arm.com>
140 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
141 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
142 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
143 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
144 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
145 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
146 * testsuite/binutils-all/arm/in-order.d: Likewise.
147 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
148 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
149 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
151 2019-03-26 Nick Clifton <nickc@redhat.com>
153 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
156 2019-03-26 Alan Modra <amodra@gmail.com>
158 * objdump.c (dump_relocs_in_section): Warning fix.
160 2019-03-25 Tamar Christina <tamar.christina@arm.com>
162 * testsuite/binutils-all/arm/in-order-all.d: New test.
163 * testsuite/binutils-all/arm/in-order.d: New test.
164 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
165 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
166 * testsuite/binutils-all/arm/out-of-order.T: New test.
167 * testsuite/binutils-all/arm/out-of-order.d: New test.
168 * testsuite/binutils-all/arm/out-of-order.s: New test.
171 2019-03-25 Tamar Christina <tamar.christina@arm.com>
173 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
174 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
175 * testsuite/binutils-all/aarch64/out-of-order.d:
177 2019-03-25 Tamar Christina <tamar.christina@arm.com>
179 * testsuite/binutils-all/aarch64/in-order.d: New test.
180 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
183 2019-03-25 Tamar Christina <tamar.christina@arm.com>
185 * objdump.c (disassemble_bytes): Pass stop_offset.
186 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
187 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
188 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
190 2019-03-19 Nick Clifton <nickc@redhat.com>
193 * objdump.c (load_specific_debug_section): Check that the amount
194 of memory to be allocated matches the size of the section.
196 2019-03-13 Sudakshina Das <sudi.das@arm.com>
198 * readelf.c (get_aarch64_dynamic_type): Add case for
200 (dynamic_section_aarch64_val): Likewise.
202 2019-03-13 Sudakshina Das <sudi.das@arm.com>
203 Szabolcs Nagy <szabolcs.nagy@arm.com>
205 * readelf.c (get_aarch64_dynamic_type): New.
206 (get_dynamic_type): Use above for EM_AARCH64.
207 (dynamic_section_aarch64_val): New.
208 (process_dynamic_section): Use above for EM_AARCH64.
210 2019-03-13 Sudakshina Das <sudi.das@arm.com>
212 * readelf.c (decode_aarch64_feature_1_and): New.
213 (print_gnu_property_note): Add case for AArch64 gnu notes.
215 2019-03-12 Alan Modra <amodra@gmail.com>
217 * objdump.c (load_specific_debug_section): Don't compare section
218 size against file size.
219 (dump_relocs_in_section): Don't compare reloc size against file size.
220 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
222 2019-03-05 Nick Clifton <nickc@redhat.com>
225 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
227 2019-03-05 Nick Clifton <nickc@redhat.com>
229 * po/sv.po: Updated Swedish translation.
231 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
234 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
235 of "lmap" with a "foreach" loop.
237 2019-03-04 Nick Clifton <nickc@redhat.com>
240 * objcopy.c (copy_archive): Do not copy thin archives.
242 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
244 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
246 2019-02-25 Nick Clifton <nickc@redhat.com>
248 * objdump.c (sym_ok): New function.
249 (find_symbol_for_address): Use new function.
250 (disassemble_section): Compare sections by name, not pointer.
251 (dump_dwarf): Move code to initialise byte_get pointer and iterate
252 over separate debug files from here to ...
253 (dump_bfd): ... here. Add parameter indicating that a separate
254 debug info file is being dumped. For main file, pull in the
255 symbol tables from all separate debug info files.
256 (display_object): Update call to dump_bfd.
257 * doc/binutils.texi: Document extened behaviour of the
258 --dwarf=follow-links option.
259 * NEWS: Mention this new feature.
260 * testsuite/binutils-all/objdump.WK2: Update expected output.
261 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
262 options and dump file parameters.
264 * testsuite/binutils-all/objdump.WK3: New file.
265 * testsuite/binutils-all/readelf.exp: Change expected output for
267 * testsuite/binutils-all/readelf.wKis: New file.
269 2019-02-22 Nick Clifton <nickc@redhat.com>
272 * dwarf.h (struct separate_info): New structure for containing
273 information on separate debug info files.
274 * dwarf.c (struct dwo_info): New structure for containing dwo
276 (first_dwo_info): Chain of dwo_info structures.
277 (first_separate_file): Chain of separate_info structures.
278 (separate_debug_file, separate_debug_filename): Delete.
279 (fetch_alt_indirect_string): Scan all separate debug info files
280 for the requested string.
281 (add_dwo_info): New function.
282 (add_dwo_name): New function.
283 (add_dwo_dir): New function.
284 (add_dwo_id: New function.
285 (free_dwo_info): New function.
286 (read_and_display_attr_value): Store DWO data using the new
288 (load_debug_section_with_follow): If necessary, scan the list of
289 separate debug info files for the requested section.
290 (add_separate_debug_file): New function.
291 (load_separate_debug_info): Call add_separate_debug_file to store
292 the information on the newly loaded file.
293 (load_dwo_file): Likewise.
294 (load_separate_debif_file): Rename to load_separate_debug_files.
295 Change return type to boolean. If following links then attempt to
296 load all separate debug info files, not just the first one.
297 (free_debug_memory): Release memory in dwo_info and separate_info
299 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
300 * readelf.c (process_object): Likewise.
301 * doc/debug.options.texi: Update descriptions of links and
302 follow-links options.
303 * testsuite/binutils-all/objdump.WK2: Update expected output.
304 * testsuite/binutils-all/readelf.k2: Likewise.
305 * NEWS: Announce the new feature.
307 2019-02-21 Nick Clifton <nickc@redhat.com>
310 * unwind-ia64.c: Include sysdep.h.
311 (unw_decode_x1): Check current pointer against end pointer before
313 (unw_decode_x2): Likewise.
314 (unw_decode_x3): Likewise.
315 (unw_decode_x4): Likewise.
316 (unw_decode_r2): Likewise.
317 (unw_decode_p2_p5): Likewise.
318 (unw_decode_p7_p10): Likewise.
319 (unw_decode): Likewise.
321 2019-02-20 Nick Clifton <nickc@redhat.com>
324 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
327 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
328 prevent walking off the end of the buffer.
329 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
330 (unw_decode_x2): Likewise.
331 (unw_decode_x3): Likewise.
332 (unw_decode_x4): Likewise.
333 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
334 (unw_decode_r3): Likewise.
335 (unw_decode_p7_p10): Likewise.
336 (unw_decode_b2): Likewise.
337 (unw_decode_b3_x4): Likewise.
340 * readelf.c (process_mips_specific): Check for an options section
341 that is too small to even contain a single option.
344 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
346 2019-02-20 Alan Modra <amodra@gmail.com>
350 * readelf.c (get_data): Avoid possibility of overflow when
351 checking for a read that may extend past end of file.
352 (process_program_headers): Likewise.
354 2019-02-20 Alan Modra <amodra@gmail.com>
357 * objdump.c (dump_bfd_private_header): Print warning if
358 bfd_print_private_bfd_data returns false.
360 2019-02-12 Nick Clifton <nickc@redhat.com>
363 * README-how-to-make-a-release: Use git clean to delete spurious
364 files from the local source repository.
366 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
368 * size.c (berkeley_format): Delete.
369 (enum output_format): New enum.
370 (selected_output_format): New variable.
371 (usage): Update to mention GNU format.
372 (main): Update to extract options, and select format as needed.
373 Handle GNU format where needed.
374 (berkeley_sum): Renamed to...
375 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
376 (berkeley_format): Renamed to...
377 (berkeley_or_gnu_format): ...this, and updated to handle both
379 (print_sizes): Handle GNU format.
380 * doc/binutils.texi (size): Document new GNU format.
381 * testsuite/binutils-all/size.exp: Add test of extended
383 * NEWS: Mention new functionality.
385 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
387 * doc/binutils.texi (size): Update example output for Berkeley
390 2019-02-07 Nick Clifton <nickc@redhat.com>
392 * README-how-to-make-a-release: Add a note about updating the
393 obsolete targets in the bfd/config.bfd file.
395 2019-02-04 Nick Clifton <nickc@redhat.com>
397 * README-how-to-make-a-release: Add more notes on making a release.
399 2019-01-25 Nick Clifton <nickc@redhat.com>
402 * readelf.c (process_notes_at): Prevent an illegal memory access
403 when the note's namesize is zero.
404 (decode_tic6x_unwind_bytecode): Add code to handle the case where
405 no registers are specified in a frame pop instruction.
407 2019-01-25 Nick Clifton <nickc@redhat.com>
409 * po/bg.po: Updated Bulgarian translation.
411 2019-01-23 Nick Clifton <nickc@redhat.com>
413 * po/fr.po: Updated French translation.
414 * po/pt.po: Updated Portuguese translation.
416 2019-01-21 Nick Clifton <nickc@redhat.com>
418 * po/uk.po: Updated Ukranian translation.
420 2019-01-19 Nick Clifton <nickc@redhat.com>
422 * configure: Regenerate.
423 * binutils/po/binutils.pot.
425 * README-how-to-make-a-release: Update description on how to make
428 2018-06-24 Nick Clifton <nickc@redhat.com>
432 2019-01-17 Nick Clifton <nickc@redhat.com>
434 * objdump.c (disassemble_section): When disassembling from a
435 symbol only stop at the next symbol if the original symbol was not
436 a function symbol. Otherwise continue disassembling until a new
438 * testsuite/binutils-all/objdump.exp: Add tests of extended
440 * testsuite/binutils-all/disasm.s: New test source file.
442 2019-01-16 Kito Cheng <kito@andestech.com>
443 Nelson Chu <nelson@andestech.com>
445 * readelf.c (get_riscv_section_type_name): New function.
446 (get_section_type_name): Add handler for RISC-V.
447 (riscv_attr_tag_t): Declare.
448 (riscv_attr_tag): New.
449 (display_riscv_attribute): New function.
450 (process_attributes): Add handler for RISC-V.
451 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
454 2019-01-10 Nick Clifton <nickc@redhat.com>
457 * objdump.c (sanitize_string): New function. Removes control
458 characters from symbol names.
459 (dump_section_header): Use new function.
460 (objdump_print_symname): Likewise.
461 (objdump_print_addr_with_sym): Likewise.
462 (show_line): Likewise.
463 (disassemble_bytes): Likewise.
464 (disassemble_section): Likewise.
465 (load_specific_debug_section): Likewise.
466 (read_section_stabs): Likewise.
467 (print_section_stabs): Likewise.
468 (dump_section): Likewise.
469 (dump_reloc_set): Likewise.
470 (dump_relocs_in_section): Likewise.
471 (dump_bfd): Likewise.
472 (display_any_bfd): Likewise.
474 2019-01-09 Nick Clifton <nickc@redhat.com>
477 * readelf.c (process_archive): Use arch.file_name in error
478 messages until the qualified name is available.
480 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
482 * configure: Regenerate.
484 2019-01-09 Alan Modra <amodra@gmail.com>
486 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
487 unconditionally to tests needing the option rather than via a
490 2019-01-08 Nick Clifton <nickc@redhat.com>
493 * cxxfilt.c (hp_symbol_characters): Delete.
494 (main): Remove depcreated demangling styles.
495 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
497 * testsuite/binutils-all/cxxfilt.exp: Use the
498 --no-strip-underscore option for targets that do prefix their
499 symbols with underscores.
500 Update tests to eliminate those that use gnu v2 encoding.
502 2019-01-08 Tamar Christina <tamar.christina@arm.com>
505 * testsuite/binutils-all/copy-6.d: New test.
506 * testsuite/binutils-all/objcopy.exp: Use it.
508 2019-01-08 Alan Modra <amodra@gmail.com>
510 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
511 $srcdir/$subdir to source file name if it starts with "./".
513 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
515 * readelf.c (get_machine_flags): Add RXv3 output.
517 2019-01-04 Nick Clifton <nickc@redhat.com>
520 * objdump.c (load_specific_debug_section): Check for integer
521 overflow before attempting to allocate contents.
523 2019-01-04 Nick Clifton <nickc@redhat.com>
526 * objcopy.c (copy_object): Free dhandle after writing out the
528 * objdump.c (dump_bfd): Free dhandle after printing out the debug
532 2019-01-01 Alan Modra <amodra@gmail.com>
534 Update year range in copyright notice of all files.
536 For older changes see ChangeLog-2018
538 Copyright (C) 2019 Free Software Foundation, Inc.
540 Copying and distribution of this file, with or without modification,
541 are permitted in any medium without royalty provided the copyright
542 notice and this notice are preserved.
548 version-control: never