1 2020-10-20 Alan Modra <amodra@gmail.com>
3 * readelf.c: Delete whitespace at end of line throughout.
4 (SECTION_NAME, SECTION_NAME_VALID): New.
5 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
6 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
7 (process_section_headers, process_section_groups): Likewise.
8 (shdr_to_ctf_sect): Likewise.
9 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
10 (ia64_process_unwind, hppa_process_unwind): Likewise.
11 (display_debug_section, initialise_dumps_byname): Likewise.
12 (process_lto_symbol_tables): Likewise. Check trailing period of
13 lto symbol table names.
14 (display_lto_symtab): Use sizeof instead of strlen.
16 2020-10-20 Nelson Chu <nelson.chu@sifive.com>
18 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
20 2020-10-19 Nick Clifton <nickc@redhat.com>
22 * readelf.c (do_lto_syms): New local.
23 (long_option_values): Add OPTION_LTO_SYMS.
24 (options): Add --lto-syms.
25 (usage): Mention the new option.
26 (parse_args): Parse the new option.
27 (get_lto_kind): New function.
28 (get_lto_visibility): New function.
29 (get_lto_sym_type): New function.
30 (display_lto_symtab): New function - displays the contents of an
31 LTo symbol table section.
32 (process_lto_symbol_tables): New functions. Calls
33 dipslay_lto_symtab on any LTO symbol table section.
34 (process_object_file): Call process_lto_symbol_tables.
35 * doc/binutils.texi: Document the new option.
36 * NEWS: Mention the new feature.
38 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
41 * readelf.c (decode_x86_compat_2_isa): New function.
42 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
43 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
44 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
45 and X86_COMPAT_2_ISA_1_NEEDED.
46 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
47 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
49 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
50 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
51 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
52 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
53 * testsuite/binutils-all/i386/empty.d: Updated.
54 * testsuite/binutils-all/i386/ibt.d: Likewise.
55 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
56 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
57 * testsuite/binutils-all/i386/shstk.d: Likewise.
58 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
59 * testsuite/binutils-all/x86-64/empty.d: Likewise.
60 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
61 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
62 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
63 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
64 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
65 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
66 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
67 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
68 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
69 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
70 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
71 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
72 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
73 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
75 2020-10-06 Nick Clifton <nickc@redhat.com>
77 * objcopy.c (copy_object): Compare input and output sections by
78 pointer rather than name.
80 2020-10-05 Nick Clifton <nickc@redhat.com>
83 * windmc.c (mc_unify_path): Fix typo checking character at end of
86 2020-10-05 Samanta Navarro <ferivoz@riseup.net>
88 * doc/binutils.texi: Fix spelling mistakes.
90 2020-09-29 Mark Wielaard <mark@klomp.org>
92 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
93 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
95 2020-09-25 Alan Modra <amodra@gmail.com>
97 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
99 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
100 allowed reloc_size. Don't read_leb128 outside of section.
102 2020-09-23 Mark Wielaard <mark@klomp.org>
104 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
105 * testsuite/binutils-all/dw5.W: Adjust expected output.
106 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
108 2020-09-23 Mark Wielaard <mark@klomp.org>
110 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
111 for dwarf_version 5 just as version 3 and 4 (only 2 is
113 (process_debug_info): Allow DW_UT_partial.
115 2020-09-24 Nick Clifton <nickc@redhat.com>
118 * doc/binutils.texi (nm): Document that 'c' is used for small
121 2020-09-21 Ludovic Courtès <ludo@gnu.org>
123 * doc/binutils.texi (objcopy, strip): Say that
124 '--strip-unneeded' implies '--strip-debug'.
126 2020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
128 * verilog.c (verilog_write_address): Properly handle 64-bit
129 addresses to avoid truncation of the high part.
131 2020-09-16 Alan Modra <amodra@gmail.com>
133 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
134 * objcopy.c (is_hidden_symbol): Likewise.
136 2020-09-15 Nick Clifton <nickc@redhat.com>
138 * README-how-to-make-a-release (https): Add a reminder to create a
139 new Bugzilla tag for the point release, once it has been published.
141 2020-09-11 H.J. Lu <hongjiu.lu@intel.com>
143 * readelf.c (get_note_type): Support NT_X86_CET.
145 2020-09-11 Nick Clifton <nickc@redhat.com>
148 * dwarf.c (load_separate_debug_info): Return NULL rather than
149 FALSE in error situations.
150 (load_separate_debug_file): Move code to load debug links to ...
151 (check_for_and_load_links): ... here. New function. Load
152 separate debug information pointed to by debuglink and
153 debugaltlink sections. Recursively scan newly loaded debug
154 information for more links and load them too.
156 2020-09-09 Alan Modra <amodra@gmail.com>
159 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
160 (load_separate_debug_files): Use a stack var for build_id_data.
162 2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
165 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
166 to ld on PE targets for PR 25662 test.
168 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
169 Kuan-Lin Chen <kuanlinchentw@gmail.com>
171 * readelf.c (target_specific_reloc_handling): Handle
172 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
174 2020-09-02 Alan Modra <amodra@gmail.com>
176 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
178 2020-08-30 Alan Modra <amodra@gmail.com>
180 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
183 2020-08-28 Nick Clifton <nickc@redhat.com>
186 * dwarf.c (read_leb128): When checking for overflow of a signed
187 read, use a signed shift.
189 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
191 * readelf.c (get_csky_section_type_name): New.
192 (get_section_type_name): Add handler for CSKY.
193 (display_csky_attribute): New.
194 (process_arch_specific): Add handler for CSKY.
195 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
198 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
200 * readelf.c (get_msp430x_section_type_name): Rename to ...
201 (get_msp430_section_type_name): ... this.
202 (get_section_type_name): Use get_msp430_section_type_name.
203 (display_msp430x_attribute): Rename to ...
204 (display_msp430_attribute): ... this.
205 (process_arch_specific): Use display_msp430_attribute.
207 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
210 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
211 "-j $PRIVATE$" to command on hppa*-*-hpux*.
212 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
213 dollar-sign quotes before quoting. Do this prior to generating log
216 2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
219 * mclex.c (skip_until_eol): If eol was found, increment line
222 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
224 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
225 * readelf.c (dump_ctf_errs): Likewise.
227 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
229 * objdump.c (dump_ctf_archive_member): Move error-
231 (dump_ctf_errs): ... into this separate function.
232 (dump_ctf): Call it on open errors.
233 * readelf.c (dump_ctf_archive_member): Move error-
235 (dump_ctf_errs): ... into this separate function. Support
236 calls with NULL fp. Adjust for new err parameter to
238 (dump_section_as_ctf): Call it on open errors.
240 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
242 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
243 * Makefile.in: Regenerated.
245 2020-08-26 Nick Clifton <nickc@redhat.com>
248 * readelf.c (get_segment_type): Handle OpenBSD segment types.
250 2020-08-26 Alan Modra <amodra@gmail.com>
253 * objcopy.c (copy_object): Don't fwrite NULL contents.
255 2020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
258 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
260 2020-08-24 Alan Modra <amodra@gmail.com>
262 * readelf.c (dump_section_as_strings) Avoid false positive
263 "may be used uninitialised".
265 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
268 * nm.c (print_symname): Display only one '@' for undefined
270 * doc/binutils.texi: Update nm version information.
272 2020-08-21 Mark Wielaard <mark@klomp.org>
274 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
275 recognize DW_LANG_C11.
277 2020-08-19 Alan Modra <amodra@gmail.com>
280 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
282 (dump_section_as_strings): Don't use %tx to display offset.
284 2020-08-14 Alan Modra <amodra@gmail.com>
287 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
288 of debug_information. Correct test of max_loc_offsets and
290 * rddbg.c (read_debugging_info): Free dhandle on error.
292 2020-08-14 Alan Modra <amodra@gmail.com>
294 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
296 2020-08-13 Alan Modra <amodra@gmail.com>
299 * objcopy.c (copy_object): Report file name with endian error.
300 Error and return on abfd->read_only.
302 2020-08-12 Tom Tromey <tromey@adacore.com>
304 * dwarf-mode.el (Version): Now 1.6.
305 (dwarf-die-button-action): Tighten DIE reference regexp.
306 (dwarf-font-lock-keywords): Update name regexp.
308 2020-08-12 Nick Clifton <nickc@redhat.com>
311 * readelf.c (do_demangle): New option flag.
312 (print_symbol): If do_demangle is enabled, demangle the symbol.
313 (enum long_option_values): New enum to hold long option values.
314 (options): Add demangle, no-demangle, recursion-limit and
315 no-recursion-limit options. Alpha sort the table.
316 (usage): Describe the new options.
317 (parse_args): Handle the new options.
318 * NEWS: Mention the new feature.
319 * doc/binutils.texi: Document the new feature.
320 * testsuite/binutils-all/readelf.exp: Test the new feature.
321 * testsuite/binutils-all/mangled.s: New file - assembler source.
322 * testsuite/binutils-all/readelf.demangled: New file - expected
325 2020-08-12 Nick Clifton <nickc@redhat.com>
327 * po/sr.po: Updated Serbian translation.
329 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
332 * nm.c (with_symbol_versions): Removed.
333 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
334 (long_options): Update --with-symbol-versions entry.
335 (print_symbol): Remove the with_symbol_versions check.
336 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
338 * doc/binutils.texi: Remove --with-symbol-versions.
340 2020-08-05 Alan Modra <amodra@gmail.com>
343 * objdump.c (load_specific_debug_section): Revert last change.
345 2020-08-05 Alan Modra <amodra@gmail.com>
348 * objdump.c (load_specific_debug_section): Don't malloc space for
349 section contents, use bfd_malloc_and_get_section.
351 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
353 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
354 * Makefile.in, doc/Makefile.in: Regenerate.
355 * configure: Regenerate.
357 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
359 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
361 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
362 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
363 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
364 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
365 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
367 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
369 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
371 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
373 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
375 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
377 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
379 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
381 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
383 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
385 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
387 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
389 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
391 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
393 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
395 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
397 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
399 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
401 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
403 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
406 * configure: Regenerated.
408 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
411 * configure: Regenerated.
413 2020-07-27 Alan Modra <amodra@gmail.com>
415 * objdump.c (dump_section): Don't return without calling
418 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
420 * doc/binutils.texi: Replace preceeded with preceded.
422 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
424 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
425 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
427 (has_newabi): Remove variable.
428 (has_abi, abi_asflags, abi_ldflags): New associative array
430 (irixemul): New variable.
431 Replace `run_dump_test' calls where applicable throughout with
432 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
433 as appropriate. Use `noarch' for tests that require their own
434 architecture setting.
435 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
436 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
437 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
438 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
439 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
440 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
441 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
442 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
443 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
444 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
445 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
446 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
447 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
448 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
450 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
451 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
452 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
453 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
454 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
455 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
456 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
458 2020-07-24 Aaron Merey <amerey@redhat.com>
460 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
461 * Makefile.in: Rebuild.
462 * configure: Rebuild.
463 * doc/Makefile.in: Rebuild.
465 2020-07-24 Nick Clifton <nickc@redhat.com>
467 * README-how-to-make-a-release: Various small updates whilst
468 creating the 2.35 release.
470 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
472 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
475 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
477 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
478 (dump_ctf): Likewise.
480 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
482 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
483 * readelf.c (dump_ctf_archive_member): Likewise.
485 2020-07-22 Nick Clifton <nickc@redhat.com>
487 * readelf.c (parse_args): Silence potential warnings about a
488 memory resource leak when allocating space for ctf option values.
489 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
492 2020-07-21 Nick Clifton <nickc@redhat.com>
494 * po/sv.po: Updated Swedish translation.
496 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
498 * testsuite/binutils-all/arc/double_regs.s: New test.
499 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
501 2020-07-13 Nick Clifton <nickc@redhat.com>
503 * po/fr.po: Updated French translation.
505 2020-07-13 Alan Modra <amodra@gmail.com>
507 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
508 optional machine-os arg.
510 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
512 * readelf.c (decode_x86_feature_2): Handle
513 GNU_PROPERTY_X86_FEATURE_2_TMM.
515 2020-07-10 Tom de Vries <tdevries@suse.de>
517 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
518 information in the end_sequence row.
519 * testsuite/binutils-all/dw5.W: Update.
520 * testsuite/binutils-all/objdump.WL: Update.
522 2020-07-09 Alan Modra <amodra@gmail.com>
524 * dlltool.c: Remove powerpc PE support and comments.
525 * configure.ac: Remove powerpc PE dlltool config.
526 * configure: Regenerate.
528 2020-07-09 Nick Clifton <nickc@redhat.com>
530 * rclex.c: Add OWNERDRAW keyword.
531 * rcparse.y: Add OWNERDRAW token.
532 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
533 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
535 * windres.c (extended_menuitems): Likewise.
536 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
538 2020-07-09 Alan Modra <amodra@gmail.com>
540 * readelf (slurp_hppa_unwind_table): Set table_len before use
541 in relocation sanity checks.
543 2020-07-07 Alan Modra <amodra@gmail.com>
545 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
546 * testsuite/binutils-all/nm.exp: Likewise.
547 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
548 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
549 * testsuite/binutils-all/set-section-alignment.d: Likewise.
550 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
552 2020-07-07 Alan Modra <amodra@gmail.com>
554 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
555 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
557 2020-07-06 Nick Clifton <nickc@redhat.com>
559 * po/bg.po: Updated Bulgarian translation.
560 * po/pt.po: Updated Portuguese translation.
561 * po/uk.po: Updated Ukranian translation.
563 2020-07-06 Alan Modra <amodra@gmail.com>
565 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
568 2020-07-04 Nick Clifton <nickc@redhat.com>
570 * configure: Regenerate.
571 * po/binutils.pot: Regenerate.
573 2020-07-04 Nick Clifton <nickc@redhat.com>
575 Binutils 2.35 branch created.
577 2020-07-02 Nick Clifton <nickc@redhat.com>
580 * readelf.c (print_symbol): Handle truncation of symbol names.
581 (options): Add -T/--silent-truncation option.
582 (parse_args): Handle the option.
583 (print_dynamic_symbol): Correct calculation of width available to
585 * doc/binutils.texi: Document the -T option to readelf.
586 * NEWS: Mention the new feature.
588 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
590 * NEWS: Mention x86 NaCl target support removal.
591 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
592 x86 NaCl target support.
593 * testsuite/binutils-all/elfedit-1.d: Likewise.
594 * testsuite/binutils-all/i386/i386.exp: Likewise.
595 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
596 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
597 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
598 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
599 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
600 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
601 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
602 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
603 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
604 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
605 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
606 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
608 2020-06-30 Nick Clifton <nickc@redhat.com>
610 * dwarf.c (read_and_display_attr_value): Support
611 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
614 2020-06-30 Alan Modra <amodra@gmail.com>
616 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
619 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
621 * dwarf.c (display_debug_str_offsets): Rename local variable
622 index to idx. Move to top of function.
624 2020-06-29 Alan Modra <amodra@gmail.com>
626 * dwarf.c: Use C style comments.
629 2020-06-27 Alan Modra <amodra@gmail.com>
631 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
633 (release_archive): Set fields of arch to NULL after freeing.
635 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
637 * readelf.c (dump_section_as_ctf): Support .ctf archives using
638 ctf_arc_bufopen. Automatically load the .ctf member of such
639 archives as the parent of all other members, unless specifically
640 overridden via --ctf-parent. Split out dumping code into...
641 (dump_ctf_archive_member): ... here, as in objdump, and call
642 it once per archive member.
643 (dump_ctf_indent_lines): Code style fix.
645 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
647 * configure.ac [--enable-libctf]: New, default yes.
648 Set ENABLE_LIBCTF accordingly.
649 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
650 * configure: Regenerate.
651 * config.in: Regenerate.
652 * Makefile.in: Regenerate.
653 * aclocal.m4: Regenerate.
654 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
655 (option_values): Likewise.
656 (long_options): Likewise.
658 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
659 (make_ctfsect): Likewise.
660 (dump_ctf_archive_member): Likewise.
661 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
662 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
663 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
665 (process_section_contents): Likewise.
666 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
667 (dump_ctf_indent_lines): Likewise.
668 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
670 2020-06-26 Jan Beulich <jbeulich@suse.com>
672 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
673 redundant text from x86 specific part of -M section.
675 2020-06-26 Pat Bernardi <bernardi@adacore.com>
677 * readelf.c (display_m68k_gnu_attribute): New function.
678 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
680 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
683 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
684 * testsuite/binutils-all/pr26160.r: Likewise.
685 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
687 2020-06-23 Nick Clifton <nickc@redhat.com>
690 * dwarf.c (fetch_indexed_string): Detect and handle old style
691 .debug_str_offset tables.
692 (display_debug_str_offsets): Likewise. Also add support for
693 .debug_str_offsets.dwo sections.
695 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
698 * testsuite/binutils-all/pr26112.o.bz2: New file.
699 * testsuite/binutils-all/pr26112.r: Likewise.
700 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
702 2020-06-23 Alan Modra <amodra@gmail.com>
704 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
705 remote_file delete command.
707 2020-06-22 Nick Clifton <nickc@redhat.com>
710 * dwarf.c (display_debug_str_offsets): Add code to display the
711 contents of the .debug_str_offsets section.
712 (display_debug_macro): Add support for DW_MACRO_define_strx and
715 2020-06-22 Saagar Jha <saagar@saagarjha.com>
717 * od-macho.c: Dump linkedit data for new load commands.
719 2020-06-19 Alan Modra <amodra@gmail.com>
721 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
722 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
723 (run_dump_test): Use check_relro_support to decide whether to pass
724 extra ld option "-z norelro".
726 2020-06-11 Alan Modra <amodra@gmail.com>
728 * readelf.c (process_mips_specific): Don't alloc memory for
729 Elf_Internal_Options.
731 2020-06-11 Alan Modra <amodra@gmail.com>
733 * readelf.c (process_mips_specific): Assert size of internal
734 types match size of external types, and simplify allocation of
735 internal buffer. Catch possible integer overflow when sanity
736 checking option size. Don't assume options are a regular array.
737 Sanity check reginfo option against option size. Use PRI macros
740 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
743 * mclex.c (yylex): Reject lines that reach end-of-file without a
744 terminating newline character.
746 2020-06-08 Nick Clifton <nickc@redhat.com>
749 * doc/binutils.texi (strings): Fix typo.
751 2020-06-08 Nick Clifton <nickc@redhat.com>
754 * dwarf.c (process_debug_info): Check that there is space in the
755 debug_information array before filling in an entry.
757 2020-06-06 Alan Modra <amodra@gmail.com>
759 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
761 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
764 * mclex.c (yylex): Add test for an empty input stream.
766 2020-06-04 Stephen Casner <casner@acm.org>
768 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
769 for test using section pseudo-ops compatible with pdp11.
770 * testsuite/binutils-all/objcopy.exp: Select alternate source.
772 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
774 * objdump.c (disassemble_data): Set disasm_info.endian_code to
775 disasm_info.endian after the latter is initialized to the
776 endianness reported by BFD.
778 2020-06-04 Alan Modra <amodra@gmail.com>
780 * testsuite/binutils-all/i386/i386.exp: Remove global directive
782 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
783 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
785 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
787 * windmc.h (struct mc_node): Add id_typecast field.
788 * mcparse.y (message): Initialise the id_typecast field.
789 * windmc.c (write_dbg): Use the id_typecast field as a parameter
790 when calling write_dbg_define.
791 (write_header): Likewise.
793 2020-06-03 Alan Modra <amodra@gmail.com>
796 * objcopy.c (copy_relocations_in_section): Free relpp on error.
797 Don't accidentally free isection->orelocation.
799 2020-06-02 Alan Modra <amodra@gmail.com>
801 * testsuite/binutils-all/ar.exp (obj): Set up object file name
802 extension. Use throughout. Don't completely exclude non-ELF
803 alpha targets. Run long_filenames test for tic30. Exclude thin
804 archive tests for aix, ecoff and vms.
805 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
806 extension. Use throughout. Don't exclude non-ELF alpha targets
809 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
811 * MAINTAINERS (Xtensa): Add myself as maintainer.
813 2020-05-23 Alan Modra <amodra@gmail.com>
815 * testsuite/binutils-all/ar.exp (many_files): New test.
817 2020-05-21 Alan Modra <amodra@gmail.com>
819 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
820 * dlltool.c: Likewise.
821 * elfcomm.c: Likewise.
823 * readelf.c: Likewise.
825 * windmc.c: Likewise.
826 * windres.c: Likewise.
827 * wrstabs.c: Likewise.
829 2020-05-21 Alan Modra <amodra@gmail.com>
831 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
834 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
836 * dwarf.c: Updated since DECLARE_CSR is changed.
838 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
841 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
842 segment doesn't match the .dynamic section and checks are
844 (struct filedata): Add dynamic_symtab_section and
845 dynamic_strtab_section fields.
846 (process_section_headers): Set dynamic_symtab_section to the
847 .dynsym section. Set dynamic_strtab_section to the .dynstr
849 (process_dynamic_section): Warn if the .dynsym section doesn't
850 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
851 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
853 2020-05-19 Alan Modra <amodra@gmail.com>
855 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
856 (replace_members): Use bfd_get_filename rather than accessing
857 bfd->filename directly.
858 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
859 * binemul.c (do_ar_emul_append): Likewise.
860 * coffgrok.c (coff_grok): Likewise.
862 2020-05-18 Stafford Horne <shorne@gmail.com>
864 * MAINTAINERS (OR1K): Add myself as maintainer.
866 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
868 * doc/binutils.texi: Mention 'entry address' in the set-start and
869 adjust-start options descriptions.
871 2020-05-05 Nick Clifton <nickc@redhat.com>
873 * dwarf.c (do_checks): New global variable.
874 (display_formatted_table): Warn about an unexpected number of
875 columns in the table, if checks are enabled. Do not complain
876 about the lack of data following the number of entries in the
877 table if the table is empty.
878 (display_debug_lines_decoded): Only warn about an unexpected
879 number of columns in a table if checks are enabled.
880 * dwarf.h (do_checks): Add a prototype.
881 * elfcomm.c (error): Remove weak attribute.
883 * readelf.c (do_checks): Delete.
885 (process_section_headers): Only warn about empty sections if
888 2020-05-04 Fangrui Song <maskray@google.com>
890 * objcopy.c (copy_object): Allow empty section.
891 * testsuite/binutils-all/update-section.exp: Add test.
893 2020-05-04 Nick Clifton <nickc@redhat.com>
896 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
897 supicious number of entries for DWARF-5 format directory and file
898 name tables. Do not display file name table header if the table
899 is empty. Do not allocate space for empty tables.
901 2020-05-04 Alan Modra <amodra@gmail.com>
903 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
904 section. Don't assume endian of host matches nds32 target. Free
907 2020-05-01 Alan Modra <amodra@gmail.com>
908 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
910 * objdump.c (disassemble_bytes): Don't scan for zeros when
911 disassembling zeros. Translate "resuming at file offset" message.
912 Formatting. Replace some signed variables with unsigned.
914 2020-04-30 Alex Coplan <alex.coplan@arm.com>
916 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
918 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
920 2020-04-30 Nick Clifton <nickc@redhat.com>
922 * testsuite/lib/binutils-common.exp (check_pie_support): New
925 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
927 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
928 range_entries for the same offset.
930 2020-04-29 Nick Clifton <nickc@redhat.com>
932 * readelf.c (warn): New function - like elfcomm.c version but only
933 produces output if warnings are enabled.
934 (struct options): Add --lint and --enable-checks.
935 (usage): Add entry for --lint.
936 (parse_args): Handle -L. If checks are enabled but no dumps have
937 been selected then enable all dumps.
938 (process_section_headers): Replace long if-then-else sequence with
939 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
940 SHT_PROGBITS sections.
941 (process_file): Do not complain if the file is an archive and lint
942 mode has been enabled.
943 * elfcomm.c (error): Make the function weak.
945 * NEWS: Mention the new feature.
946 * doc/binutils.texi: Document the new feature.
947 * dwarf.h (report_leb_status): Add file name and line number
948 parameters. Include them in the diagnostic output.
949 (READ_ULEB): Pass file and line number to report_leb_status.
950 (READ_SLEB): Likewise.
951 * dwarf.c (read_and_print_leb128): Pass file and line number to
953 * testsuite/binutils-all/readelf.exp: Add test of new feature.
954 * testsuite/binutils-all/zero-sec.s: New test source file.
955 * testsuite/binutils-all/zero-sec.r: Expected output from new
958 2020-04-29 Nick Clifton <nickc@redhat.com>
960 * po/sr.po: Updated Serbian translation.
962 2020-04-26 Alan Modra <amodra@gmail.com>
964 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
965 read before dereferencing, and gracefully return. Remove
966 gnu_hash_error variable. Free gnu hash arrays if number of
969 2020-04-24 Alan Modra <amodra@gmail.com>
971 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
973 (process_dynamic_section): Call get_num_dynamic_syms once rather
974 than in segment loop. Break out of segment loop on a successful
975 load of dynamic symbols. Formatting.
976 (process_object): Return error status from process_dynamic_section.
978 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
980 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
981 * elf.c (elfcore_grok_arc_v2): New function.
982 (elfcore_grok_note): Call the new function to handle the corresponding
984 (elfcore_write_arc_v2): New function.
985 (elfcore_write_register_note): Call the new function to handle the
986 corresponding pseudo-sections.
988 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
991 * readelf.c (is_none_reloc): Recognize
992 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
993 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
995 2020-04-22 Nick Clifton <nickc@redhat.com>
997 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
999 2020-04-22 Alan Modra <amodra@gmail.com>
1001 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1002 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1003 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1004 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1005 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1006 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1007 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1008 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1009 (section_headers_groups): Move to struct filedata. Update use
1012 2020-04-22 Alan Modra <amodra@gmail.com>
1014 * readelf.c (struct dump_data): New, used..
1015 (cmdline): ..here, and..
1016 (struct filedata): ..here. Adjust all uses.
1017 (request_dump_bynumber, request_dump, parse_args): Pass in a
1018 struct dump_data* rather than Filedata*. Adjust callers.
1019 (main): Don't set cmdline.file_name.
1021 2020-04-20 Alan Modra <amodra@gmail.com>
1023 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1026 2020-04-20 Alan Modra <amodra@gmail.com>
1028 * readelf.c (process_section_headers): Free dynamic symbols etc.
1031 2020-04-20 Alan Modra <amodra@gmail.com>
1033 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1034 on error without freeing.
1035 (process_dynamic_section): Don't recreate dynamic symbols from
1036 dynamic tag info when the dynamic symbols have already been
1037 read via section headers.
1039 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
1041 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1042 conditional VDUP instructions are disassembled correctly.
1043 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1045 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1046 that VDUP instructions (which are conditional in A32) can be
1047 disassembled in thumb mode.
1048 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1051 2020-04-17 Alan Modra <amodra@gmail.com>
1054 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1056 2020-04-16 Alan Modra <amodra@gmail.com>
1058 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1059 --no-addresses description.
1061 2020-04-15 Alan Modra <amodra@gmail.com>
1063 * objdump.c (no_addresses): New static var.
1064 (usage): Print help for --no-addresses.
1065 (long_options): Add --no-addresses entry.
1066 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1067 (disassemble_bytes): Don't print current line address, or reloc
1069 * doc/binutils.texi: Document objdump --no-addresses.
1071 2020-04-15 Alan Modra <amodra@gmail.com>
1074 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1075 reading buckets or chains fails.
1077 2020-04-15 Alan Modra <amodra@gmail.com>
1079 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1082 2020-04-15 Alan Modra <amodra@gmail.com>
1084 * readelf.c (get_group_flags): Translate text.
1085 (get_file_type, get_symbol_binding, get_symbol_type),
1086 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1088 2020-04-15 Alan Modra <amodra@gmail.com>
1091 * readelf.c (get_num_dynamic_syms): Typo fix.
1093 2020-04-14 Alan Modra <amodra@gmail.com>
1095 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1096 possibility of overflow when checking number of conflicts.
1098 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1101 * readelf.c (nbuckets): New.
1102 (nchains): Likewise.
1103 (buckets): Likewise.
1105 (ngnubuckets): Likewise.
1106 (gnubuckets): Likewise.
1107 (gnuchains): Likewise.
1108 (mipsxlat): Likewise.
1109 (ngnuchains): Likewise.
1110 (gnusymidx): Likewise.
1111 (VALID_SYMBOL_NAME): Likewise.
1112 (VALID_DYNAMIC_NAME): Use it.
1113 (get_dynamic_data): Moved before process_dynamic_section.
1114 (get_num_dynamic_syms): New function.
1115 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1116 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1117 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1119 (get_symbol_index_type): Don't print "bad section index" when
1120 there is no section header.
1121 (print_dynamic_symbol): Rewrite.
1122 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1125 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1127 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1128 enable on *-*-solaris*.
1130 2020-03-30 Nick Clifton <nickc@redhat.com>
1133 * objcopy.c (copy_object): When copying PE format files set the
1134 timestamp field in the pe_data structure if the preserve_dates
1136 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1137 --preserve-dates in place of the -p option, in order to make its
1138 effect more obvious.
1140 2020-03-28 Alan Modra <amodra@gmail.com>
1142 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1143 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1145 2020-03-28 Alan Modra <amodra@gmail.com>
1147 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1148 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1149 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1150 test. Pass "-p" to objcopy for the executable test.
1152 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1155 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1156 specify whether an object file or executable should be built and tested.
1157 Change test names to report whether an object file or executable is
1159 * testsuite/binutils-all/pr25662.ld: New test.
1160 * testsuite/binutils-all/pr25662.s: New test.
1162 2020-03-27 Alan Modra <amodra@gmail.com>
1164 * readelf.c (process_archive): Don't double free qualified_name.
1165 Don't break out of loop with "negative" archive_file_size, just
1166 set file offset to max.
1168 2020-03-25 Alan Modra <amodra@gmail.com>
1170 * readelf.c (process_archive): Prevent endless loop.
1172 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1175 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1176 with bfd_get_symbol_version_string.
1177 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1178 * objdump.c (objdump_print_symname): Likewise.
1180 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1183 * nm.c (SYM_NAME): Removed.
1184 (print_symname): Add a pointer to struct extended_symbol_info
1185 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1187 (print_symdef_entry): Pass NULL to print_symname.
1188 (print_symbol_info_bsd): Update call to print_symname.
1189 (print_symbol_info_sysv): Likewise.
1190 (print_symbol_info_posix): Likewise.
1192 2020-03-24 Alan Modra <amodra@gmail.com>
1194 * readelf.c (process_mips_specific): Free iconf on error path.
1196 2020-03-23 Nick Clifton <nickc@redhat.com>
1199 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1200 * write_stabs_in_sections_debugging_info: Likewise.
1201 * stab_enum_type: Likewise.
1202 * stab_modify_type: Likewise.
1203 * stab_struct_field: Likewise.
1204 * stab_end_struct_type: Likewise.
1205 * stab_start_class_type: Likewise.
1206 * stab_class_static_member: Likewise.
1207 * stab_class_baseclass: Likewise.
1208 * stab_class_start_method: Likewise.
1209 * stab_class_method_var: Likewise.
1210 * stab_class_end_method: Likewise.
1211 * stab_end_class_type: Likewise.
1212 * stab_typedef_type: Likewise.
1213 * stab_start_function: Likewise.
1214 * stab_end_block: Likewise.
1215 * stab_lineno: Likewise.
1217 2020-03-20 Nick Clifton <nickc@redhat.com>
1219 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1220 (process_section_headers): Check the return value from
1221 get_compression_header.
1222 (dump_section_as_strings): Likewise.
1223 (dump_section_as_bytes): Likewise.
1224 (load_specific_debug_section): Likewise.
1226 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1228 * ar.c (main): Update bfd_plugin_set_program_name call.
1229 * nm.c (main): Likewise.
1231 2020-03-19 Nick Clifton <nickc@redhat.com>
1234 * testsuite/binutils-all/dw4.s: New test source file.
1235 * testsuite/binutils-all/nm.exp: Run the new test.
1237 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1239 * readelf.c (process_symbol_table): Use unsigned long for si.
1241 2020-03-19 Alan Modra <amodra@gmail.com>
1243 * elfcomm.c: Don't include bfd.h or bucomm.h.
1244 (program_name): Declare.
1245 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1246 and substitute FALSE and TRUE.
1247 (setup_archive, setup_nested_archive): Likewise.
1248 * elfcomm.h: Likewise.
1250 2020-03-19 Alan Modra <amodra@gmail.com>
1252 * readelf.c (process_archive): Always return via path freeing
1255 2020-03-19 Alan Modra <amodra@gmail.com>
1257 * readelf.c (process_netbsd_elf_note): Validate descsz before
1258 accessing descdata. Formatting.
1260 2020-03-19 Alan Modra <amodra@gmail.com>
1262 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1263 * elfcomm.h (setup_archive): Update prototype.
1265 2020-03-16 Alan Modra <amodra@gmail.com>
1267 * readelf.c (get_symbols): New function.
1268 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1269 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1271 2020-03-16 Alan Modra <amodra@gmail.com>
1273 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1274 Detect shift overflows and check that terminating byte is found.
1275 Print an error on a bad uleb128.
1277 2020-03-14 Alan Modra <amodra@gmail.com>
1279 * readelf.c (process_file): Clean ba_cache.
1281 2020-03-14 Alan Modra <amodra@gmail.com>
1283 * elfcomm.h (setup_archive): Update prototype.
1284 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1285 check longnames_size.
1286 (setup_nested_archive): Get file size and pass to setup_archive.
1287 * elfedit.c (process_archive): Likewise.
1288 * readelf.c (process_archive): Pass filedata->file_size to
1291 2020-03-14 Alan Modra <amodra@gmail.com>
1293 * readelf.c (dump_section_as_strings): Free memory on error exit.
1294 (dump_section_as_bytes, process_notes_at): Likewise.
1295 (get_build_id): Free enote.
1297 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1299 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1300 NT_NETBSDCORE_LWPSTATUS notes.
1302 2020-03-13 Alan Modra <amodra@gmail.com>
1304 * elfcomm.c (get_archive_member_name): Always return malloc'd
1306 * elfedit.c (process_archive): Tidy memory on all return paths.
1307 * readelf.c (process_archive): Likewise.
1308 (process_symbol_table): Likewise.
1309 (ba_cache): New, replacing ..
1310 (get_symbol_for_build_attribute): ..static vars here. Free
1311 strtab and symtab before loading new ones. Reject symtab without
1312 valid strtab in loop, breaking out of loop on valid symtab.
1313 (process_file): Free ba_cache symtab and strtab here, resetting
1316 2020-03-12 Alan Modra <amodra@gmail.com>
1318 * readelf.c (process_section_headers): Don't just set
1319 filedata->section_headers NULL, free it first. Similarly for
1320 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1321 symtab_shndx_list. Zero associated counts too.
1322 (process_object): Free symtab_shndx_list.
1323 (process_file): Free various allocated filedata tables.
1325 2020-03-11 Nick Clifton <nickc@redhat.com>
1329 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1330 li_segment_size fields.
1331 * dwarf.c (read_debug_line_header): Record the address size and
1332 segment selector size values (if present) in the lineinfo
1334 (display_formatted_table): Warn if the format count is empty but
1335 the table itself is not empty.
1336 Display the format count and entry count at the start of the table
1338 (display_debug_lines_raw): Display the address size and segement
1339 selector size fields, if present.
1340 * testsuite/binutils-all/dw5.W: Update expected output.
1342 2020-03-11 Alan Modra <amodra@gmail.com>
1345 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1346 pad_to_set on second block of code dealing with padding.
1347 Replace "c" with "num_sec" and don't recalculate number of
1348 sections on second block. Size arrays using sizeof (element)
1349 rather than sizeof (element type).
1351 2020-03-10 Alan Modra <amodra@gmail.com>
1353 * objdump.c (disassemble_section): Don't call qsort unless
1354 sym count is at least two.
1355 (disassemble_data): Don't call memcpy with NULL src.
1357 2020-03-09 Alan Modra <amodra@gmail.com>
1360 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1361 to get_data rather than multiplying.
1362 (dump_ia64_vms_dynamic_relocs): Likewise.
1363 (process_version_sections): Correct order of size and nmemb args
1365 (process_mips_specific): Likewise.
1367 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1369 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1370 "memory checkers" in comments.
1372 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1375 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1376 * doc/Makefile.in: Re-generate.
1378 2020-03-06 Nick Clifton <nickc@redhat.com>
1380 * objcopy.c (check_new_section_flags): New function. Reject the
1381 SEC_COFF_SHARED flag if the target is not a COFF binary.
1382 (copy_object): Call check_new_section_flags.
1383 (setup_section): Likewise.
1384 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1385 flag cannot be applied to ELF binaries.
1387 2020-03-06 Alan Modra <amodra@gmail.com>
1390 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1392 2020-03-05 Alan Modra <amodra@gmail.com>
1395 * objcopy.c (filter_symbols): Don't segfault on NULL
1396 prefix_symbols_string.
1398 2020-03-04 Christian Eggers <ceggers@gmx.de>
1400 * objcopy.c (copy_object): Convert from bytes to octets for
1401 --gap-fill and --pad-to.
1403 2020-03-03 Nick Clifton <nickc@redhat.com>
1406 * prdbg.c (pr_tag_type): Remove call to abort.
1408 2020-03-02 Aaron Merey <amerey@redhat.com>
1410 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1413 2020-03-02 Nick Clifton <nickc@redhat.com>
1416 * readelf.c (dump_section_as_strings): Display new-line characters
1417 as \n and then insert a line break.
1418 * testsuite/binutils-all/pr25543.s: New test.
1419 * testsuite/binutils-all/pr25543.d: Test driver.
1420 * testsuite/binutils-all/readelf.exp: Run the new test.
1422 2020-02-27 Nick Clifton <nickc@redhat.com>
1425 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1426 get_data is unable to load the string table.
1428 2020-02-26 Alan Modra <amodra@gmail.com>
1430 * elfedit.c: Indent labels correctly.
1431 * readelf.c: Likewise.
1432 * resres.c: Likewise.
1434 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1437 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1438 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1440 2020-02-24 Nick Clifton <nickc@redhat.com>
1443 * doc/binutils.texi (objdump): Fix typo in description of
1444 objdump's -g option.
1446 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1448 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1451 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1453 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1455 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1457 * configure: Regenerate.
1459 2020-02-10 Fangrui Song <maskray@google.com>
1461 * objcopy.c (parse_flags): Handle "exclude".
1462 * doc/binutils.texi: Document the support.
1464 2020-02-10 Aaron Merey <amerey@redhat.com>
1466 * binutils/testsuite/binutils-all/debuginfod.exp:
1467 Replace set ::env with setenv.
1468 Start server before setting environment variable.
1469 Specify tmpdir as the location of the server's
1471 Check additional server metrics at start-up.
1473 2020-02-07 Nick Clifton <nickc@redhat.com>
1475 * README-how-to-make-a-release: Add note about updating the
1476 GAS/NEWS URL in the next release.
1478 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1481 * readelf.c (get_machine_flags): Add support for Z80N machine
1484 2020-02-07 Nick Clifton <nickc@redhat.com>
1486 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1487 of the truncated file name.
1489 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1491 * objdump.c (print_jump_visualisation): New function.
1492 (disassemble_bytes): Call new function.
1494 2020-02-06 Alan Modra <amodra@gmail.com>
1496 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1498 (supports_gnu_osabi): New procedure.
1499 (is_generic): New, from ld-lib.exp.
1500 (supports_gnu_unique): Use the above.
1502 2020-02-04 Alan Modra <amodra@gmail.com>
1504 * Makefile.am (CFILES): Add od-elf32_avr.c.
1505 * Makefile.in: Regenerate.
1506 * po/POTFILES.in: Regenerate.
1508 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1510 * readelf.c (dump_relocations, dump_relocations)
1511 (decode_arm_unwind_bytecode, process_dynamic_section)
1512 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1515 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1517 * coffdump.c (program_name): Drop redundant definition.
1518 * srconv.c (program_name): Likewise
1519 * sysdump.c (program_name): Likewise
1521 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1524 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1525 same file with different section pointers.
1527 2020-02-01 Nick Clifton <nickc@redhat.com>
1529 * README-how-to-make-a-release: Update with more details on the
1530 release making process.
1532 2020-01-31 Nick Clifton <nickc@redhat.com>
1534 * po/sv.po: Updated Swedish translation.
1536 2020-01-28 Nick Clifton <nickc@redhat.com>
1538 * readelf.c (get_build_id): Simplify warning message about corrupt
1539 notes encountered whilst scanning for the build-id.
1541 2020-01-27 Roland McGrath <mcgrathr@google.com>
1543 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1544 for overlapping ranges so that (A == B) == (B == A) holds.
1546 2020-01-27 Alan Modra <amodra@gmail.com>
1548 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1549 case statement with switch statement.
1551 2020-01-24 Nick Clifton <nickc@redhat.com>
1553 * readelf.c (get_build_id): Fix warning messages about corrupt
1556 2020-01-23 Nick Clifton <nickc@redhat.com>
1558 * po/fr.po: Updated French translation.
1560 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1563 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1565 2020-01-20 Nick Clifton <nickc@redhat.com>
1567 * po/pt.po: Updated Portuguese translation.
1568 * po/uk.po: Updated Ukranian translation.
1570 2020-01-18 Nick Clifton <nickc@redhat.com>
1572 * README-how-to-make-a-release: Update notes on how to cut a
1573 branch for a release.
1575 2020-01-18 Nick Clifton <nickc@redhat.com>
1577 * configure: Regenerate.
1578 * po/binutils.pot: Regenerate.
1580 2020-01-18 Nick Clifton <nickc@redhat.com>
1582 Binutils 2.34 branch created.
1584 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1586 * objdump.c (jump_info_visualize_address): Discard jumps that are
1588 (disassemble_bytes): Only compute the maximum level if jumps were
1591 2020-01-13 Nick Clifton <nickc@redhat.com>
1593 * objdump.c (disassemble_bytes): Remove C99-ism.
1594 * testsuite/binutils-all/debuginfod.exp: New tests.
1596 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1598 * objdump.c (visualize_jumps, color_output, extended_color_output)
1599 (detected_jumps): New variables.
1600 (usage): Add the new jump visualization options.
1601 (option_values): Add new option value.
1602 (long_options): Add the new option.
1603 (jump_info_new, jump_info_free): New functions.
1604 (jump_info_min_address, jump_info_max_address): Likewise.
1605 (jump_info_end_address, jump_info_is_start_address): Likewise.
1606 (jump_info_is_end_address, jump_info_size): Likewise.
1607 (jump_info_unlink, jump_info_insert): Likewise.
1608 (jump_info_add_front, jump_info_move_linked): Likewise.
1609 (jump_info_intersect, jump_info_merge): Likewise.
1610 (jump_info_sort, jump_info_visualize_address): Likewise.
1611 (disassemble_jumps): New function - used to locate jumps.
1612 (disassemble_bytes): Add ascii art generation.
1613 (disassemble_section): Add scan to locate jumps.
1614 (main): Parse the new visualization option.
1615 * doc/binutils.texi: Document the new feature.
1616 * NEWS: Mention the new feature.
1618 2020-01-13 Alan Modra <amodra@gmail.com>
1622 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1623 fde_fc col_type and col_offset.
1624 * readelf.c (apply_relocations): Move symsec check earlier.
1625 (free_debug_section): Free reloc_info.
1626 (process_notes_at): Free pnotes on error path.
1627 (process_object): Free dump_sects here..
1628 (process_archive): ..not here.
1630 2020-01-13 Alan Modra <amodra@gmail.com>
1633 * nm.c (display_rel_file): Free dyn_syms.
1635 2020-01-09 Nick Clifton <nickc@redhat.com>
1638 * objcopy.c (empty_name): New variable.
1639 (need_sym_before): Prevent an attempt to free a static variable.
1640 (filter_symbols): Avoid strcmp test by checking for pointer
1643 2020-01-09 Nick Clifton <nickc@redhat.com>
1645 * po/zh_TW.po: Updated Traditional Chinese translation.
1647 2020-01-09 Aaron Merey <amerey@redhat.com>
1649 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1650 * Makefile.in: Regenerate.
1652 * config.in: Regenerate.
1653 * configure: Regenerate.
1654 * configure.ac: Call AC_DEBUGINFOD.
1655 * doc/Makefile.in: Regenerate.
1656 * doc/binutils.texi: Add section on using binutils
1658 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1659 Query debuginfod servers for the target debug file.
1660 (load_separate_debug_info): Call
1661 debuginfod_fetch_separate_debug_info if configured with
1663 (load_separate_debug_files): Add file argument to
1664 load_separate_debug_info calls.
1665 * dwarf.h (get_build_id): Add declaration.
1666 * objdump.c (get_build_id): New function. Get build-id of file.
1667 * readelf.c (get_build_id): Likewise.
1668 * testsuite/binutils-all/debuginfod.exp: New tests.
1669 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1672 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1674 * readelf.c: Add support for new Z*) relocations and machine
1677 2020-01-01 Alan Modra <amodra@gmail.com>
1679 Update year range in copyright notice of all files.
1681 For older changes see ChangeLog-2019
1683 Copyright (C) 2020 Free Software Foundation, Inc.
1685 Copying and distribution of this file, with or without modification,
1686 are permitted in any medium without royalty provided the copyright
1687 notice and this notice are preserved.
1693 version-control: never