1 2020-10-20 Nelson Chu <nelson.chu@sifive.com>
3 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
5 2020-10-19 Nick Clifton <nickc@redhat.com>
7 * readelf.c (do_lto_syms): New local.
8 (long_option_values): Add OPTION_LTO_SYMS.
9 (options): Add --lto-syms.
10 (usage): Mention the new option.
11 (parse_args): Parse the new option.
12 (get_lto_kind): New function.
13 (get_lto_visibility): New function.
14 (get_lto_sym_type): New function.
15 (display_lto_symtab): New function - displays the contents of an
16 LTo symbol table section.
17 (process_lto_symbol_tables): New functions. Calls
18 dipslay_lto_symtab on any LTO symbol table section.
19 (process_object_file): Call process_lto_symbol_tables.
20 * doc/binutils.texi: Document the new option.
21 * NEWS: Mention the new feature.
23 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
26 * readelf.c (decode_x86_compat_2_isa): New function.
27 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
28 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
29 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
30 and X86_COMPAT_2_ISA_1_NEEDED.
31 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
32 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
34 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
35 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
36 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
37 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
38 * testsuite/binutils-all/i386/empty.d: Updated.
39 * testsuite/binutils-all/i386/ibt.d: Likewise.
40 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
41 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
42 * testsuite/binutils-all/i386/shstk.d: Likewise.
43 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
44 * testsuite/binutils-all/x86-64/empty.d: Likewise.
45 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
46 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
47 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
48 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
49 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
50 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
51 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
52 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
53 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
54 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
55 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
56 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
57 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
58 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
60 2020-10-06 Nick Clifton <nickc@redhat.com>
62 * objcopy.c (copy_object): Compare input and output sections by
63 pointer rather than name.
65 2020-10-05 Nick Clifton <nickc@redhat.com>
68 * windmc.c (mc_unify_path): Fix typo checking character at end of
71 2020-10-05 Samanta Navarro <ferivoz@riseup.net>
73 * doc/binutils.texi: Fix spelling mistakes.
75 2020-09-29 Mark Wielaard <mark@klomp.org>
77 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
78 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
80 2020-09-25 Alan Modra <amodra@gmail.com>
82 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
84 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
85 allowed reloc_size. Don't read_leb128 outside of section.
87 2020-09-23 Mark Wielaard <mark@klomp.org>
89 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
90 * testsuite/binutils-all/dw5.W: Adjust expected output.
91 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
93 2020-09-23 Mark Wielaard <mark@klomp.org>
95 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
96 for dwarf_version 5 just as version 3 and 4 (only 2 is
98 (process_debug_info): Allow DW_UT_partial.
100 2020-09-24 Nick Clifton <nickc@redhat.com>
103 * doc/binutils.texi (nm): Document that 'c' is used for small
106 2020-09-21 Ludovic Courtès <ludo@gnu.org>
108 * doc/binutils.texi (objcopy, strip): Say that
109 '--strip-unneeded' implies '--strip-debug'.
111 2020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
113 * verilog.c (verilog_write_address): Properly handle 64-bit
114 addresses to avoid truncation of the high part.
116 2020-09-16 Alan Modra <amodra@gmail.com>
118 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
119 * objcopy.c (is_hidden_symbol): Likewise.
121 2020-09-15 Nick Clifton <nickc@redhat.com>
123 * README-how-to-make-a-release (https): Add a reminder to create a
124 new Bugzilla tag for the point release, once it has been published.
126 2020-09-11 H.J. Lu <hongjiu.lu@intel.com>
128 * readelf.c (get_note_type): Support NT_X86_CET.
130 2020-09-11 Nick Clifton <nickc@redhat.com>
133 * dwarf.c (load_separate_debug_info): Return NULL rather than
134 FALSE in error situations.
135 (load_separate_debug_file): Move code to load debug links to ...
136 (check_for_and_load_links): ... here. New function. Load
137 separate debug information pointed to by debuglink and
138 debugaltlink sections. Recursively scan newly loaded debug
139 information for more links and load them too.
141 2020-09-09 Alan Modra <amodra@gmail.com>
144 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
145 (load_separate_debug_files): Use a stack var for build_id_data.
147 2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
150 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
151 to ld on PE targets for PR 25662 test.
153 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
154 Kuan-Lin Chen <kuanlinchentw@gmail.com>
156 * readelf.c (target_specific_reloc_handling): Handle
157 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
159 2020-09-02 Alan Modra <amodra@gmail.com>
161 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
163 2020-08-30 Alan Modra <amodra@gmail.com>
165 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
168 2020-08-28 Nick Clifton <nickc@redhat.com>
171 * dwarf.c (read_leb128): When checking for overflow of a signed
172 read, use a signed shift.
174 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
176 * readelf.c (get_csky_section_type_name): New.
177 (get_section_type_name): Add handler for CSKY.
178 (display_csky_attribute): New.
179 (process_arch_specific): Add handler for CSKY.
180 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
183 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
185 * readelf.c (get_msp430x_section_type_name): Rename to ...
186 (get_msp430_section_type_name): ... this.
187 (get_section_type_name): Use get_msp430_section_type_name.
188 (display_msp430x_attribute): Rename to ...
189 (display_msp430_attribute): ... this.
190 (process_arch_specific): Use display_msp430_attribute.
192 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
195 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
196 "-j $PRIVATE$" to command on hppa*-*-hpux*.
197 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
198 dollar-sign quotes before quoting. Do this prior to generating log
201 2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
204 * mclex.c (skip_until_eol): If eol was found, increment line
207 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
209 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
210 * readelf.c (dump_ctf_errs): Likewise.
212 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
214 * objdump.c (dump_ctf_archive_member): Move error-
216 (dump_ctf_errs): ... into this separate function.
217 (dump_ctf): Call it on open errors.
218 * readelf.c (dump_ctf_archive_member): Move error-
220 (dump_ctf_errs): ... into this separate function. Support
221 calls with NULL fp. Adjust for new err parameter to
223 (dump_section_as_ctf): Call it on open errors.
225 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
227 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
228 * Makefile.in: Regenerated.
230 2020-08-26 Nick Clifton <nickc@redhat.com>
233 * readelf.c (get_segment_type): Handle OpenBSD segment types.
235 2020-08-26 Alan Modra <amodra@gmail.com>
238 * objcopy.c (copy_object): Don't fwrite NULL contents.
240 2020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
243 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
245 2020-08-24 Alan Modra <amodra@gmail.com>
247 * readelf.c (dump_section_as_strings) Avoid false positive
248 "may be used uninitialised".
250 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
253 * nm.c (print_symname): Display only one '@' for undefined
255 * doc/binutils.texi: Update nm version information.
257 2020-08-21 Mark Wielaard <mark@klomp.org>
259 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
260 recognize DW_LANG_C11.
262 2020-08-19 Alan Modra <amodra@gmail.com>
265 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
267 (dump_section_as_strings): Don't use %tx to display offset.
269 2020-08-14 Alan Modra <amodra@gmail.com>
272 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
273 of debug_information. Correct test of max_loc_offsets and
275 * rddbg.c (read_debugging_info): Free dhandle on error.
277 2020-08-14 Alan Modra <amodra@gmail.com>
279 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
281 2020-08-13 Alan Modra <amodra@gmail.com>
284 * objcopy.c (copy_object): Report file name with endian error.
285 Error and return on abfd->read_only.
287 2020-08-12 Tom Tromey <tromey@adacore.com>
289 * dwarf-mode.el (Version): Now 1.6.
290 (dwarf-die-button-action): Tighten DIE reference regexp.
291 (dwarf-font-lock-keywords): Update name regexp.
293 2020-08-12 Nick Clifton <nickc@redhat.com>
296 * readelf.c (do_demangle): New option flag.
297 (print_symbol): If do_demangle is enabled, demangle the symbol.
298 (enum long_option_values): New enum to hold long option values.
299 (options): Add demangle, no-demangle, recursion-limit and
300 no-recursion-limit options. Alpha sort the table.
301 (usage): Describe the new options.
302 (parse_args): Handle the new options.
303 * NEWS: Mention the new feature.
304 * doc/binutils.texi: Document the new feature.
305 * testsuite/binutils-all/readelf.exp: Test the new feature.
306 * testsuite/binutils-all/mangled.s: New file - assembler source.
307 * testsuite/binutils-all/readelf.demangled: New file - expected
310 2020-08-12 Nick Clifton <nickc@redhat.com>
312 * po/sr.po: Updated Serbian translation.
314 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
317 * nm.c (with_symbol_versions): Removed.
318 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
319 (long_options): Update --with-symbol-versions entry.
320 (print_symbol): Remove the with_symbol_versions check.
321 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
323 * doc/binutils.texi: Remove --with-symbol-versions.
325 2020-08-05 Alan Modra <amodra@gmail.com>
328 * objdump.c (load_specific_debug_section): Revert last change.
330 2020-08-05 Alan Modra <amodra@gmail.com>
333 * objdump.c (load_specific_debug_section): Don't malloc space for
334 section contents, use bfd_malloc_and_get_section.
336 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
338 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
339 * Makefile.in, doc/Makefile.in: Regenerate.
340 * configure: Regenerate.
342 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
344 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
346 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
347 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
348 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
349 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
350 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
352 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
354 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
356 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
358 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
360 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
362 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
364 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
366 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
368 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
370 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
372 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
374 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
376 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
378 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
380 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
382 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
384 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
386 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
388 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
391 * configure: Regenerated.
393 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
396 * configure: Regenerated.
398 2020-07-27 Alan Modra <amodra@gmail.com>
400 * objdump.c (dump_section): Don't return without calling
403 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
405 * doc/binutils.texi: Replace preceeded with preceded.
407 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
409 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
410 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
412 (has_newabi): Remove variable.
413 (has_abi, abi_asflags, abi_ldflags): New associative array
415 (irixemul): New variable.
416 Replace `run_dump_test' calls where applicable throughout with
417 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
418 as appropriate. Use `noarch' for tests that require their own
419 architecture setting.
420 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
421 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
422 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
423 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
424 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
425 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
426 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
427 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
428 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
429 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
430 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
431 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
432 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
433 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
435 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
436 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
437 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
438 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
439 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
440 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
441 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
443 2020-07-24 Aaron Merey <amerey@redhat.com>
445 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
446 * Makefile.in: Rebuild.
447 * configure: Rebuild.
448 * doc/Makefile.in: Rebuild.
450 2020-07-24 Nick Clifton <nickc@redhat.com>
452 * README-how-to-make-a-release: Various small updates whilst
453 creating the 2.35 release.
455 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
457 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
460 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
462 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
463 (dump_ctf): Likewise.
465 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
467 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
468 * readelf.c (dump_ctf_archive_member): Likewise.
470 2020-07-22 Nick Clifton <nickc@redhat.com>
472 * readelf.c (parse_args): Silence potential warnings about a
473 memory resource leak when allocating space for ctf option values.
474 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
477 2020-07-21 Nick Clifton <nickc@redhat.com>
479 * po/sv.po: Updated Swedish translation.
481 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
483 * testsuite/binutils-all/arc/double_regs.s: New test.
484 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
486 2020-07-13 Nick Clifton <nickc@redhat.com>
488 * po/fr.po: Updated French translation.
490 2020-07-13 Alan Modra <amodra@gmail.com>
492 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
493 optional machine-os arg.
495 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
497 * readelf.c (decode_x86_feature_2): Handle
498 GNU_PROPERTY_X86_FEATURE_2_TMM.
500 2020-07-10 Tom de Vries <tdevries@suse.de>
502 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
503 information in the end_sequence row.
504 * testsuite/binutils-all/dw5.W: Update.
505 * testsuite/binutils-all/objdump.WL: Update.
507 2020-07-09 Alan Modra <amodra@gmail.com>
509 * dlltool.c: Remove powerpc PE support and comments.
510 * configure.ac: Remove powerpc PE dlltool config.
511 * configure: Regenerate.
513 2020-07-09 Nick Clifton <nickc@redhat.com>
515 * rclex.c: Add OWNERDRAW keyword.
516 * rcparse.y: Add OWNERDRAW token.
517 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
518 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
520 * windres.c (extended_menuitems): Likewise.
521 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
523 2020-07-09 Alan Modra <amodra@gmail.com>
525 * readelf (slurp_hppa_unwind_table): Set table_len before use
526 in relocation sanity checks.
528 2020-07-07 Alan Modra <amodra@gmail.com>
530 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
531 * testsuite/binutils-all/nm.exp: Likewise.
532 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
533 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
534 * testsuite/binutils-all/set-section-alignment.d: Likewise.
535 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
537 2020-07-07 Alan Modra <amodra@gmail.com>
539 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
540 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
542 2020-07-06 Nick Clifton <nickc@redhat.com>
544 * po/bg.po: Updated Bulgarian translation.
545 * po/pt.po: Updated Portuguese translation.
546 * po/uk.po: Updated Ukranian translation.
548 2020-07-06 Alan Modra <amodra@gmail.com>
550 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
553 2020-07-04 Nick Clifton <nickc@redhat.com>
555 * configure: Regenerate.
556 * po/binutils.pot: Regenerate.
558 2020-07-04 Nick Clifton <nickc@redhat.com>
560 Binutils 2.35 branch created.
562 2020-07-02 Nick Clifton <nickc@redhat.com>
565 * readelf.c (print_symbol): Handle truncation of symbol names.
566 (options): Add -T/--silent-truncation option.
567 (parse_args): Handle the option.
568 (print_dynamic_symbol): Correct calculation of width available to
570 * doc/binutils.texi: Document the -T option to readelf.
571 * NEWS: Mention the new feature.
573 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
575 * NEWS: Mention x86 NaCl target support removal.
576 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
577 x86 NaCl target support.
578 * testsuite/binutils-all/elfedit-1.d: Likewise.
579 * testsuite/binutils-all/i386/i386.exp: Likewise.
580 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
581 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
582 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
583 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
584 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
585 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
586 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
587 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
588 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
589 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
590 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
591 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
593 2020-06-30 Nick Clifton <nickc@redhat.com>
595 * dwarf.c (read_and_display_attr_value): Support
596 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
599 2020-06-30 Alan Modra <amodra@gmail.com>
601 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
604 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
606 * dwarf.c (display_debug_str_offsets): Rename local variable
607 index to idx. Move to top of function.
609 2020-06-29 Alan Modra <amodra@gmail.com>
611 * dwarf.c: Use C style comments.
614 2020-06-27 Alan Modra <amodra@gmail.com>
616 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
618 (release_archive): Set fields of arch to NULL after freeing.
620 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
622 * readelf.c (dump_section_as_ctf): Support .ctf archives using
623 ctf_arc_bufopen. Automatically load the .ctf member of such
624 archives as the parent of all other members, unless specifically
625 overridden via --ctf-parent. Split out dumping code into...
626 (dump_ctf_archive_member): ... here, as in objdump, and call
627 it once per archive member.
628 (dump_ctf_indent_lines): Code style fix.
630 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
632 * configure.ac [--enable-libctf]: New, default yes.
633 Set ENABLE_LIBCTF accordingly.
634 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
635 * configure: Regenerate.
636 * config.in: Regenerate.
637 * Makefile.in: Regenerate.
638 * aclocal.m4: Regenerate.
639 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
640 (option_values): Likewise.
641 (long_options): Likewise.
643 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
644 (make_ctfsect): Likewise.
645 (dump_ctf_archive_member): Likewise.
646 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
647 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
648 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
650 (process_section_contents): Likewise.
651 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
652 (dump_ctf_indent_lines): Likewise.
653 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
655 2020-06-26 Jan Beulich <jbeulich@suse.com>
657 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
658 redundant text from x86 specific part of -M section.
660 2020-06-26 Pat Bernardi <bernardi@adacore.com>
662 * readelf.c (display_m68k_gnu_attribute): New function.
663 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
665 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
668 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
669 * testsuite/binutils-all/pr26160.r: Likewise.
670 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
672 2020-06-23 Nick Clifton <nickc@redhat.com>
675 * dwarf.c (fetch_indexed_string): Detect and handle old style
676 .debug_str_offset tables.
677 (display_debug_str_offsets): Likewise. Also add support for
678 .debug_str_offsets.dwo sections.
680 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
683 * testsuite/binutils-all/pr26112.o.bz2: New file.
684 * testsuite/binutils-all/pr26112.r: Likewise.
685 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
687 2020-06-23 Alan Modra <amodra@gmail.com>
689 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
690 remote_file delete command.
692 2020-06-22 Nick Clifton <nickc@redhat.com>
695 * dwarf.c (display_debug_str_offsets): Add code to display the
696 contents of the .debug_str_offsets section.
697 (display_debug_macro): Add support for DW_MACRO_define_strx and
700 2020-06-22 Saagar Jha <saagar@saagarjha.com>
702 * od-macho.c: Dump linkedit data for new load commands.
704 2020-06-19 Alan Modra <amodra@gmail.com>
706 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
707 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
708 (run_dump_test): Use check_relro_support to decide whether to pass
709 extra ld option "-z norelro".
711 2020-06-11 Alan Modra <amodra@gmail.com>
713 * readelf.c (process_mips_specific): Don't alloc memory for
714 Elf_Internal_Options.
716 2020-06-11 Alan Modra <amodra@gmail.com>
718 * readelf.c (process_mips_specific): Assert size of internal
719 types match size of external types, and simplify allocation of
720 internal buffer. Catch possible integer overflow when sanity
721 checking option size. Don't assume options are a regular array.
722 Sanity check reginfo option against option size. Use PRI macros
725 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
728 * mclex.c (yylex): Reject lines that reach end-of-file without a
729 terminating newline character.
731 2020-06-08 Nick Clifton <nickc@redhat.com>
734 * doc/binutils.texi (strings): Fix typo.
736 2020-06-08 Nick Clifton <nickc@redhat.com>
739 * dwarf.c (process_debug_info): Check that there is space in the
740 debug_information array before filling in an entry.
742 2020-06-06 Alan Modra <amodra@gmail.com>
744 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
746 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
749 * mclex.c (yylex): Add test for an empty input stream.
751 2020-06-04 Stephen Casner <casner@acm.org>
753 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
754 for test using section pseudo-ops compatible with pdp11.
755 * testsuite/binutils-all/objcopy.exp: Select alternate source.
757 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
759 * objdump.c (disassemble_data): Set disasm_info.endian_code to
760 disasm_info.endian after the latter is initialized to the
761 endianness reported by BFD.
763 2020-06-04 Alan Modra <amodra@gmail.com>
765 * testsuite/binutils-all/i386/i386.exp: Remove global directive
767 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
768 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
770 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
772 * windmc.h (struct mc_node): Add id_typecast field.
773 * mcparse.y (message): Initialise the id_typecast field.
774 * windmc.c (write_dbg): Use the id_typecast field as a parameter
775 when calling write_dbg_define.
776 (write_header): Likewise.
778 2020-06-03 Alan Modra <amodra@gmail.com>
781 * objcopy.c (copy_relocations_in_section): Free relpp on error.
782 Don't accidentally free isection->orelocation.
784 2020-06-02 Alan Modra <amodra@gmail.com>
786 * testsuite/binutils-all/ar.exp (obj): Set up object file name
787 extension. Use throughout. Don't completely exclude non-ELF
788 alpha targets. Run long_filenames test for tic30. Exclude thin
789 archive tests for aix, ecoff and vms.
790 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
791 extension. Use throughout. Don't exclude non-ELF alpha targets
794 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
796 * MAINTAINERS (Xtensa): Add myself as maintainer.
798 2020-05-23 Alan Modra <amodra@gmail.com>
800 * testsuite/binutils-all/ar.exp (many_files): New test.
802 2020-05-21 Alan Modra <amodra@gmail.com>
804 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
805 * dlltool.c: Likewise.
806 * elfcomm.c: Likewise.
808 * readelf.c: Likewise.
810 * windmc.c: Likewise.
811 * windres.c: Likewise.
812 * wrstabs.c: Likewise.
814 2020-05-21 Alan Modra <amodra@gmail.com>
816 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
819 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
821 * dwarf.c: Updated since DECLARE_CSR is changed.
823 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
826 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
827 segment doesn't match the .dynamic section and checks are
829 (struct filedata): Add dynamic_symtab_section and
830 dynamic_strtab_section fields.
831 (process_section_headers): Set dynamic_symtab_section to the
832 .dynsym section. Set dynamic_strtab_section to the .dynstr
834 (process_dynamic_section): Warn if the .dynsym section doesn't
835 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
836 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
838 2020-05-19 Alan Modra <amodra@gmail.com>
840 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
841 (replace_members): Use bfd_get_filename rather than accessing
842 bfd->filename directly.
843 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
844 * binemul.c (do_ar_emul_append): Likewise.
845 * coffgrok.c (coff_grok): Likewise.
847 2020-05-18 Stafford Horne <shorne@gmail.com>
849 * MAINTAINERS (OR1K): Add myself as maintainer.
851 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
853 * doc/binutils.texi: Mention 'entry address' in the set-start and
854 adjust-start options descriptions.
856 2020-05-05 Nick Clifton <nickc@redhat.com>
858 * dwarf.c (do_checks): New global variable.
859 (display_formatted_table): Warn about an unexpected number of
860 columns in the table, if checks are enabled. Do not complain
861 about the lack of data following the number of entries in the
862 table if the table is empty.
863 (display_debug_lines_decoded): Only warn about an unexpected
864 number of columns in a table if checks are enabled.
865 * dwarf.h (do_checks): Add a prototype.
866 * elfcomm.c (error): Remove weak attribute.
868 * readelf.c (do_checks): Delete.
870 (process_section_headers): Only warn about empty sections if
873 2020-05-04 Fangrui Song <maskray@google.com>
875 * objcopy.c (copy_object): Allow empty section.
876 * testsuite/binutils-all/update-section.exp: Add test.
878 2020-05-04 Nick Clifton <nickc@redhat.com>
881 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
882 supicious number of entries for DWARF-5 format directory and file
883 name tables. Do not display file name table header if the table
884 is empty. Do not allocate space for empty tables.
886 2020-05-04 Alan Modra <amodra@gmail.com>
888 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
889 section. Don't assume endian of host matches nds32 target. Free
892 2020-05-01 Alan Modra <amodra@gmail.com>
893 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
895 * objdump.c (disassemble_bytes): Don't scan for zeros when
896 disassembling zeros. Translate "resuming at file offset" message.
897 Formatting. Replace some signed variables with unsigned.
899 2020-04-30 Alex Coplan <alex.coplan@arm.com>
901 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
903 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
905 2020-04-30 Nick Clifton <nickc@redhat.com>
907 * testsuite/lib/binutils-common.exp (check_pie_support): New
910 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
912 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
913 range_entries for the same offset.
915 2020-04-29 Nick Clifton <nickc@redhat.com>
917 * readelf.c (warn): New function - like elfcomm.c version but only
918 produces output if warnings are enabled.
919 (struct options): Add --lint and --enable-checks.
920 (usage): Add entry for --lint.
921 (parse_args): Handle -L. If checks are enabled but no dumps have
922 been selected then enable all dumps.
923 (process_section_headers): Replace long if-then-else sequence with
924 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
925 SHT_PROGBITS sections.
926 (process_file): Do not complain if the file is an archive and lint
927 mode has been enabled.
928 * elfcomm.c (error): Make the function weak.
930 * NEWS: Mention the new feature.
931 * doc/binutils.texi: Document the new feature.
932 * dwarf.h (report_leb_status): Add file name and line number
933 parameters. Include them in the diagnostic output.
934 (READ_ULEB): Pass file and line number to report_leb_status.
935 (READ_SLEB): Likewise.
936 * dwarf.c (read_and_print_leb128): Pass file and line number to
938 * testsuite/binutils-all/readelf.exp: Add test of new feature.
939 * testsuite/binutils-all/zero-sec.s: New test source file.
940 * testsuite/binutils-all/zero-sec.r: Expected output from new
943 2020-04-29 Nick Clifton <nickc@redhat.com>
945 * po/sr.po: Updated Serbian translation.
947 2020-04-26 Alan Modra <amodra@gmail.com>
949 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
950 read before dereferencing, and gracefully return. Remove
951 gnu_hash_error variable. Free gnu hash arrays if number of
954 2020-04-24 Alan Modra <amodra@gmail.com>
956 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
958 (process_dynamic_section): Call get_num_dynamic_syms once rather
959 than in segment loop. Break out of segment loop on a successful
960 load of dynamic symbols. Formatting.
961 (process_object): Return error status from process_dynamic_section.
963 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
965 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
966 * elf.c (elfcore_grok_arc_v2): New function.
967 (elfcore_grok_note): Call the new function to handle the corresponding
969 (elfcore_write_arc_v2): New function.
970 (elfcore_write_register_note): Call the new function to handle the
971 corresponding pseudo-sections.
973 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
976 * readelf.c (is_none_reloc): Recognize
977 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
978 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
980 2020-04-22 Nick Clifton <nickc@redhat.com>
982 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
984 2020-04-22 Alan Modra <amodra@gmail.com>
986 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
987 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
988 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
989 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
990 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
991 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
992 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
993 (dynamic_section, symtab_shndx_list, group_count, section_groups),
994 (section_headers_groups): Move to struct filedata. Update use
997 2020-04-22 Alan Modra <amodra@gmail.com>
999 * readelf.c (struct dump_data): New, used..
1000 (cmdline): ..here, and..
1001 (struct filedata): ..here. Adjust all uses.
1002 (request_dump_bynumber, request_dump, parse_args): Pass in a
1003 struct dump_data* rather than Filedata*. Adjust callers.
1004 (main): Don't set cmdline.file_name.
1006 2020-04-20 Alan Modra <amodra@gmail.com>
1008 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1011 2020-04-20 Alan Modra <amodra@gmail.com>
1013 * readelf.c (process_section_headers): Free dynamic symbols etc.
1016 2020-04-20 Alan Modra <amodra@gmail.com>
1018 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1019 on error without freeing.
1020 (process_dynamic_section): Don't recreate dynamic symbols from
1021 dynamic tag info when the dynamic symbols have already been
1022 read via section headers.
1024 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
1026 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1027 conditional VDUP instructions are disassembled correctly.
1028 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1030 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1031 that VDUP instructions (which are conditional in A32) can be
1032 disassembled in thumb mode.
1033 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1036 2020-04-17 Alan Modra <amodra@gmail.com>
1039 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1041 2020-04-16 Alan Modra <amodra@gmail.com>
1043 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1044 --no-addresses description.
1046 2020-04-15 Alan Modra <amodra@gmail.com>
1048 * objdump.c (no_addresses): New static var.
1049 (usage): Print help for --no-addresses.
1050 (long_options): Add --no-addresses entry.
1051 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1052 (disassemble_bytes): Don't print current line address, or reloc
1054 * doc/binutils.texi: Document objdump --no-addresses.
1056 2020-04-15 Alan Modra <amodra@gmail.com>
1059 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1060 reading buckets or chains fails.
1062 2020-04-15 Alan Modra <amodra@gmail.com>
1064 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1067 2020-04-15 Alan Modra <amodra@gmail.com>
1069 * readelf.c (get_group_flags): Translate text.
1070 (get_file_type, get_symbol_binding, get_symbol_type),
1071 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1073 2020-04-15 Alan Modra <amodra@gmail.com>
1076 * readelf.c (get_num_dynamic_syms): Typo fix.
1078 2020-04-14 Alan Modra <amodra@gmail.com>
1080 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1081 possibility of overflow when checking number of conflicts.
1083 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1086 * readelf.c (nbuckets): New.
1087 (nchains): Likewise.
1088 (buckets): Likewise.
1090 (ngnubuckets): Likewise.
1091 (gnubuckets): Likewise.
1092 (gnuchains): Likewise.
1093 (mipsxlat): Likewise.
1094 (ngnuchains): Likewise.
1095 (gnusymidx): Likewise.
1096 (VALID_SYMBOL_NAME): Likewise.
1097 (VALID_DYNAMIC_NAME): Use it.
1098 (get_dynamic_data): Moved before process_dynamic_section.
1099 (get_num_dynamic_syms): New function.
1100 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1101 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1102 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1104 (get_symbol_index_type): Don't print "bad section index" when
1105 there is no section header.
1106 (print_dynamic_symbol): Rewrite.
1107 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1110 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1112 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1113 enable on *-*-solaris*.
1115 2020-03-30 Nick Clifton <nickc@redhat.com>
1118 * objcopy.c (copy_object): When copying PE format files set the
1119 timestamp field in the pe_data structure if the preserve_dates
1121 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1122 --preserve-dates in place of the -p option, in order to make its
1123 effect more obvious.
1125 2020-03-28 Alan Modra <amodra@gmail.com>
1127 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1128 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1130 2020-03-28 Alan Modra <amodra@gmail.com>
1132 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1133 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1134 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1135 test. Pass "-p" to objcopy for the executable test.
1137 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1140 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1141 specify whether an object file or executable should be built and tested.
1142 Change test names to report whether an object file or executable is
1144 * testsuite/binutils-all/pr25662.ld: New test.
1145 * testsuite/binutils-all/pr25662.s: New test.
1147 2020-03-27 Alan Modra <amodra@gmail.com>
1149 * readelf.c (process_archive): Don't double free qualified_name.
1150 Don't break out of loop with "negative" archive_file_size, just
1151 set file offset to max.
1153 2020-03-25 Alan Modra <amodra@gmail.com>
1155 * readelf.c (process_archive): Prevent endless loop.
1157 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1160 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1161 with bfd_get_symbol_version_string.
1162 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1163 * objdump.c (objdump_print_symname): Likewise.
1165 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1168 * nm.c (SYM_NAME): Removed.
1169 (print_symname): Add a pointer to struct extended_symbol_info
1170 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1172 (print_symdef_entry): Pass NULL to print_symname.
1173 (print_symbol_info_bsd): Update call to print_symname.
1174 (print_symbol_info_sysv): Likewise.
1175 (print_symbol_info_posix): Likewise.
1177 2020-03-24 Alan Modra <amodra@gmail.com>
1179 * readelf.c (process_mips_specific): Free iconf on error path.
1181 2020-03-23 Nick Clifton <nickc@redhat.com>
1184 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1185 * write_stabs_in_sections_debugging_info: Likewise.
1186 * stab_enum_type: Likewise.
1187 * stab_modify_type: Likewise.
1188 * stab_struct_field: Likewise.
1189 * stab_end_struct_type: Likewise.
1190 * stab_start_class_type: Likewise.
1191 * stab_class_static_member: Likewise.
1192 * stab_class_baseclass: Likewise.
1193 * stab_class_start_method: Likewise.
1194 * stab_class_method_var: Likewise.
1195 * stab_class_end_method: Likewise.
1196 * stab_end_class_type: Likewise.
1197 * stab_typedef_type: Likewise.
1198 * stab_start_function: Likewise.
1199 * stab_end_block: Likewise.
1200 * stab_lineno: Likewise.
1202 2020-03-20 Nick Clifton <nickc@redhat.com>
1204 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1205 (process_section_headers): Check the return value from
1206 get_compression_header.
1207 (dump_section_as_strings): Likewise.
1208 (dump_section_as_bytes): Likewise.
1209 (load_specific_debug_section): Likewise.
1211 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1213 * ar.c (main): Update bfd_plugin_set_program_name call.
1214 * nm.c (main): Likewise.
1216 2020-03-19 Nick Clifton <nickc@redhat.com>
1219 * testsuite/binutils-all/dw4.s: New test source file.
1220 * testsuite/binutils-all/nm.exp: Run the new test.
1222 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1224 * readelf.c (process_symbol_table): Use unsigned long for si.
1226 2020-03-19 Alan Modra <amodra@gmail.com>
1228 * elfcomm.c: Don't include bfd.h or bucomm.h.
1229 (program_name): Declare.
1230 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1231 and substitute FALSE and TRUE.
1232 (setup_archive, setup_nested_archive): Likewise.
1233 * elfcomm.h: Likewise.
1235 2020-03-19 Alan Modra <amodra@gmail.com>
1237 * readelf.c (process_archive): Always return via path freeing
1240 2020-03-19 Alan Modra <amodra@gmail.com>
1242 * readelf.c (process_netbsd_elf_note): Validate descsz before
1243 accessing descdata. Formatting.
1245 2020-03-19 Alan Modra <amodra@gmail.com>
1247 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1248 * elfcomm.h (setup_archive): Update prototype.
1250 2020-03-16 Alan Modra <amodra@gmail.com>
1252 * readelf.c (get_symbols): New function.
1253 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1254 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1256 2020-03-16 Alan Modra <amodra@gmail.com>
1258 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1259 Detect shift overflows and check that terminating byte is found.
1260 Print an error on a bad uleb128.
1262 2020-03-14 Alan Modra <amodra@gmail.com>
1264 * readelf.c (process_file): Clean ba_cache.
1266 2020-03-14 Alan Modra <amodra@gmail.com>
1268 * elfcomm.h (setup_archive): Update prototype.
1269 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1270 check longnames_size.
1271 (setup_nested_archive): Get file size and pass to setup_archive.
1272 * elfedit.c (process_archive): Likewise.
1273 * readelf.c (process_archive): Pass filedata->file_size to
1276 2020-03-14 Alan Modra <amodra@gmail.com>
1278 * readelf.c (dump_section_as_strings): Free memory on error exit.
1279 (dump_section_as_bytes, process_notes_at): Likewise.
1280 (get_build_id): Free enote.
1282 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1284 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1285 NT_NETBSDCORE_LWPSTATUS notes.
1287 2020-03-13 Alan Modra <amodra@gmail.com>
1289 * elfcomm.c (get_archive_member_name): Always return malloc'd
1291 * elfedit.c (process_archive): Tidy memory on all return paths.
1292 * readelf.c (process_archive): Likewise.
1293 (process_symbol_table): Likewise.
1294 (ba_cache): New, replacing ..
1295 (get_symbol_for_build_attribute): ..static vars here. Free
1296 strtab and symtab before loading new ones. Reject symtab without
1297 valid strtab in loop, breaking out of loop on valid symtab.
1298 (process_file): Free ba_cache symtab and strtab here, resetting
1301 2020-03-12 Alan Modra <amodra@gmail.com>
1303 * readelf.c (process_section_headers): Don't just set
1304 filedata->section_headers NULL, free it first. Similarly for
1305 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1306 symtab_shndx_list. Zero associated counts too.
1307 (process_object): Free symtab_shndx_list.
1308 (process_file): Free various allocated filedata tables.
1310 2020-03-11 Nick Clifton <nickc@redhat.com>
1314 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1315 li_segment_size fields.
1316 * dwarf.c (read_debug_line_header): Record the address size and
1317 segment selector size values (if present) in the lineinfo
1319 (display_formatted_table): Warn if the format count is empty but
1320 the table itself is not empty.
1321 Display the format count and entry count at the start of the table
1323 (display_debug_lines_raw): Display the address size and segement
1324 selector size fields, if present.
1325 * testsuite/binutils-all/dw5.W: Update expected output.
1327 2020-03-11 Alan Modra <amodra@gmail.com>
1330 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1331 pad_to_set on second block of code dealing with padding.
1332 Replace "c" with "num_sec" and don't recalculate number of
1333 sections on second block. Size arrays using sizeof (element)
1334 rather than sizeof (element type).
1336 2020-03-10 Alan Modra <amodra@gmail.com>
1338 * objdump.c (disassemble_section): Don't call qsort unless
1339 sym count is at least two.
1340 (disassemble_data): Don't call memcpy with NULL src.
1342 2020-03-09 Alan Modra <amodra@gmail.com>
1345 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1346 to get_data rather than multiplying.
1347 (dump_ia64_vms_dynamic_relocs): Likewise.
1348 (process_version_sections): Correct order of size and nmemb args
1350 (process_mips_specific): Likewise.
1352 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1354 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1355 "memory checkers" in comments.
1357 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1360 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1361 * doc/Makefile.in: Re-generate.
1363 2020-03-06 Nick Clifton <nickc@redhat.com>
1365 * objcopy.c (check_new_section_flags): New function. Reject the
1366 SEC_COFF_SHARED flag if the target is not a COFF binary.
1367 (copy_object): Call check_new_section_flags.
1368 (setup_section): Likewise.
1369 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1370 flag cannot be applied to ELF binaries.
1372 2020-03-06 Alan Modra <amodra@gmail.com>
1375 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1377 2020-03-05 Alan Modra <amodra@gmail.com>
1380 * objcopy.c (filter_symbols): Don't segfault on NULL
1381 prefix_symbols_string.
1383 2020-03-04 Christian Eggers <ceggers@gmx.de>
1385 * objcopy.c (copy_object): Convert from bytes to octets for
1386 --gap-fill and --pad-to.
1388 2020-03-03 Nick Clifton <nickc@redhat.com>
1391 * prdbg.c (pr_tag_type): Remove call to abort.
1393 2020-03-02 Aaron Merey <amerey@redhat.com>
1395 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1398 2020-03-02 Nick Clifton <nickc@redhat.com>
1401 * readelf.c (dump_section_as_strings): Display new-line characters
1402 as \n and then insert a line break.
1403 * testsuite/binutils-all/pr25543.s: New test.
1404 * testsuite/binutils-all/pr25543.d: Test driver.
1405 * testsuite/binutils-all/readelf.exp: Run the new test.
1407 2020-02-27 Nick Clifton <nickc@redhat.com>
1410 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1411 get_data is unable to load the string table.
1413 2020-02-26 Alan Modra <amodra@gmail.com>
1415 * elfedit.c: Indent labels correctly.
1416 * readelf.c: Likewise.
1417 * resres.c: Likewise.
1419 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1422 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1423 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1425 2020-02-24 Nick Clifton <nickc@redhat.com>
1428 * doc/binutils.texi (objdump): Fix typo in description of
1429 objdump's -g option.
1431 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1433 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1436 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1438 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1440 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1442 * configure: Regenerate.
1444 2020-02-10 Fangrui Song <maskray@google.com>
1446 * objcopy.c (parse_flags): Handle "exclude".
1447 * doc/binutils.texi: Document the support.
1449 2020-02-10 Aaron Merey <amerey@redhat.com>
1451 * binutils/testsuite/binutils-all/debuginfod.exp:
1452 Replace set ::env with setenv.
1453 Start server before setting environment variable.
1454 Specify tmpdir as the location of the server's
1456 Check additional server metrics at start-up.
1458 2020-02-07 Nick Clifton <nickc@redhat.com>
1460 * README-how-to-make-a-release: Add note about updating the
1461 GAS/NEWS URL in the next release.
1463 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1466 * readelf.c (get_machine_flags): Add support for Z80N machine
1469 2020-02-07 Nick Clifton <nickc@redhat.com>
1471 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1472 of the truncated file name.
1474 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1476 * objdump.c (print_jump_visualisation): New function.
1477 (disassemble_bytes): Call new function.
1479 2020-02-06 Alan Modra <amodra@gmail.com>
1481 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1483 (supports_gnu_osabi): New procedure.
1484 (is_generic): New, from ld-lib.exp.
1485 (supports_gnu_unique): Use the above.
1487 2020-02-04 Alan Modra <amodra@gmail.com>
1489 * Makefile.am (CFILES): Add od-elf32_avr.c.
1490 * Makefile.in: Regenerate.
1491 * po/POTFILES.in: Regenerate.
1493 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1495 * readelf.c (dump_relocations, dump_relocations)
1496 (decode_arm_unwind_bytecode, process_dynamic_section)
1497 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1500 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1502 * coffdump.c (program_name): Drop redundant definition.
1503 * srconv.c (program_name): Likewise
1504 * sysdump.c (program_name): Likewise
1506 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1509 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1510 same file with different section pointers.
1512 2020-02-01 Nick Clifton <nickc@redhat.com>
1514 * README-how-to-make-a-release: Update with more details on the
1515 release making process.
1517 2020-01-31 Nick Clifton <nickc@redhat.com>
1519 * po/sv.po: Updated Swedish translation.
1521 2020-01-28 Nick Clifton <nickc@redhat.com>
1523 * readelf.c (get_build_id): Simplify warning message about corrupt
1524 notes encountered whilst scanning for the build-id.
1526 2020-01-27 Roland McGrath <mcgrathr@google.com>
1528 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1529 for overlapping ranges so that (A == B) == (B == A) holds.
1531 2020-01-27 Alan Modra <amodra@gmail.com>
1533 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1534 case statement with switch statement.
1536 2020-01-24 Nick Clifton <nickc@redhat.com>
1538 * readelf.c (get_build_id): Fix warning messages about corrupt
1541 2020-01-23 Nick Clifton <nickc@redhat.com>
1543 * po/fr.po: Updated French translation.
1545 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1548 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1550 2020-01-20 Nick Clifton <nickc@redhat.com>
1552 * po/pt.po: Updated Portuguese translation.
1553 * po/uk.po: Updated Ukranian translation.
1555 2020-01-18 Nick Clifton <nickc@redhat.com>
1557 * README-how-to-make-a-release: Update notes on how to cut a
1558 branch for a release.
1560 2020-01-18 Nick Clifton <nickc@redhat.com>
1562 * configure: Regenerate.
1563 * po/binutils.pot: Regenerate.
1565 2020-01-18 Nick Clifton <nickc@redhat.com>
1567 Binutils 2.34 branch created.
1569 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1571 * objdump.c (jump_info_visualize_address): Discard jumps that are
1573 (disassemble_bytes): Only compute the maximum level if jumps were
1576 2020-01-13 Nick Clifton <nickc@redhat.com>
1578 * objdump.c (disassemble_bytes): Remove C99-ism.
1579 * testsuite/binutils-all/debuginfod.exp: New tests.
1581 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1583 * objdump.c (visualize_jumps, color_output, extended_color_output)
1584 (detected_jumps): New variables.
1585 (usage): Add the new jump visualization options.
1586 (option_values): Add new option value.
1587 (long_options): Add the new option.
1588 (jump_info_new, jump_info_free): New functions.
1589 (jump_info_min_address, jump_info_max_address): Likewise.
1590 (jump_info_end_address, jump_info_is_start_address): Likewise.
1591 (jump_info_is_end_address, jump_info_size): Likewise.
1592 (jump_info_unlink, jump_info_insert): Likewise.
1593 (jump_info_add_front, jump_info_move_linked): Likewise.
1594 (jump_info_intersect, jump_info_merge): Likewise.
1595 (jump_info_sort, jump_info_visualize_address): Likewise.
1596 (disassemble_jumps): New function - used to locate jumps.
1597 (disassemble_bytes): Add ascii art generation.
1598 (disassemble_section): Add scan to locate jumps.
1599 (main): Parse the new visualization option.
1600 * doc/binutils.texi: Document the new feature.
1601 * NEWS: Mention the new feature.
1603 2020-01-13 Alan Modra <amodra@gmail.com>
1607 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1608 fde_fc col_type and col_offset.
1609 * readelf.c (apply_relocations): Move symsec check earlier.
1610 (free_debug_section): Free reloc_info.
1611 (process_notes_at): Free pnotes on error path.
1612 (process_object): Free dump_sects here..
1613 (process_archive): ..not here.
1615 2020-01-13 Alan Modra <amodra@gmail.com>
1618 * nm.c (display_rel_file): Free dyn_syms.
1620 2020-01-09 Nick Clifton <nickc@redhat.com>
1623 * objcopy.c (empty_name): New variable.
1624 (need_sym_before): Prevent an attempt to free a static variable.
1625 (filter_symbols): Avoid strcmp test by checking for pointer
1628 2020-01-09 Nick Clifton <nickc@redhat.com>
1630 * po/zh_TW.po: Updated Traditional Chinese translation.
1632 2020-01-09 Aaron Merey <amerey@redhat.com>
1634 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1635 * Makefile.in: Regenerate.
1637 * config.in: Regenerate.
1638 * configure: Regenerate.
1639 * configure.ac: Call AC_DEBUGINFOD.
1640 * doc/Makefile.in: Regenerate.
1641 * doc/binutils.texi: Add section on using binutils
1643 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1644 Query debuginfod servers for the target debug file.
1645 (load_separate_debug_info): Call
1646 debuginfod_fetch_separate_debug_info if configured with
1648 (load_separate_debug_files): Add file argument to
1649 load_separate_debug_info calls.
1650 * dwarf.h (get_build_id): Add declaration.
1651 * objdump.c (get_build_id): New function. Get build-id of file.
1652 * readelf.c (get_build_id): Likewise.
1653 * testsuite/binutils-all/debuginfod.exp: New tests.
1654 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1657 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1659 * readelf.c: Add support for new Z*) relocations and machine
1662 2020-01-01 Alan Modra <amodra@gmail.com>
1664 Update year range in copyright notice of all files.
1666 For older changes see ChangeLog-2019
1668 Copyright (C) 2020 Free Software Foundation, Inc.
1670 Copying and distribution of this file, with or without modification,
1671 are permitted in any medium without royalty provided the copyright
1672 notice and this notice are preserved.
1678 version-control: never