1 2020-10-28 Nick Clifton <nickc@redhat.com>
4 * elfedit.c (process_archive): Remove spurious call to free().
6 2020-10-27 Nick Clifton <nickc@redhat.com>
8 * dwarf.c (struct abbrev_list): New structure. Used to collect
9 lists of abbreviation sets.
10 (struct abbrev_map): New structure. Used to map CU offsets to
12 (record_abbrev_list): New function. A new entry to an
14 (free_all_abbrevs): Update to free abbreviation lists.
15 (new_abbrev_list): New function. Start a new abbreviation
17 (find_abbrev_list_by_abbrev_offset): New function.
18 (find_abbrev_map_by_offset): New function.
19 (add_abbrev): Add abbrev_list parameter.
20 (add_abbrev_attr): Likewise.
21 (process_abbrev_section): Rename to process_abbrev_set and add
23 (get_type_abbrev_from_form): New function. Attempts to decode the
24 forms used by DW_AT_type attributes.
25 (get_type_signedness): Display type names if operating in wide
26 mode. Use get_type_abbrev_from_form.
27 (read_and_display_attr_value): Use get_type_abbrev_from_form.
28 (process_debug_info): Pre-parse the CU headers to collate all the
29 abbrevs before starting the main scan.
30 (process_debug_abbrev): Do not free any loaded abbrevs.
31 (free_debug_memory): Free the abbrev maps.
33 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
35 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
36 error message on error.
38 2020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
40 * windmc.c (write_header_define): Fix printf format.
41 (write_header): Likewise.
43 2020-10-21 Nick Clifton <nickc@redhat.com>
45 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
46 when processing the DW_FORM_ref_addr form.
47 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
48 Handle DW_FORM_indirect.
49 (get_type_signedness): Allow a limited amount of recursion.
50 Do not attempt to decode types that use the DW_FORM_ref_addr form.
51 (read_and_display_attr_value): Do not attempt to decode types
52 that use the DW_FORM_ref_addr form.
54 2020-10-20 Alan Modra <amodra@gmail.com>
56 * readelf.c: Delete whitespace at end of line throughout.
57 (SECTION_NAME, SECTION_NAME_VALID): New.
58 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
59 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
60 (process_section_headers, process_section_groups): Likewise.
61 (shdr_to_ctf_sect): Likewise.
62 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
63 (ia64_process_unwind, hppa_process_unwind): Likewise.
64 (display_debug_section, initialise_dumps_byname): Likewise.
65 (process_lto_symbol_tables): Likewise. Check trailing period of
66 lto symbol table names.
67 (display_lto_symtab): Use sizeof instead of strlen.
69 2020-10-20 Nelson Chu <nelson.chu@sifive.com>
71 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
73 2020-10-19 Nick Clifton <nickc@redhat.com>
75 * readelf.c (do_lto_syms): New local.
76 (long_option_values): Add OPTION_LTO_SYMS.
77 (options): Add --lto-syms.
78 (usage): Mention the new option.
79 (parse_args): Parse the new option.
80 (get_lto_kind): New function.
81 (get_lto_visibility): New function.
82 (get_lto_sym_type): New function.
83 (display_lto_symtab): New function - displays the contents of an
84 LTo symbol table section.
85 (process_lto_symbol_tables): New functions. Calls
86 dipslay_lto_symtab on any LTO symbol table section.
87 (process_object_file): Call process_lto_symbol_tables.
88 * doc/binutils.texi: Document the new option.
89 * NEWS: Mention the new feature.
91 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
94 * readelf.c (decode_x86_compat_2_isa): New function.
95 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
96 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
97 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
98 and X86_COMPAT_2_ISA_1_NEEDED.
99 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
100 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
102 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
103 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
104 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
105 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
106 * testsuite/binutils-all/i386/empty.d: Updated.
107 * testsuite/binutils-all/i386/ibt.d: Likewise.
108 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
109 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
110 * testsuite/binutils-all/i386/shstk.d: Likewise.
111 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
112 * testsuite/binutils-all/x86-64/empty.d: Likewise.
113 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
114 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
115 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
116 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
117 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
118 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
119 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
120 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
121 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
122 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
123 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
124 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
125 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
126 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
128 2020-10-06 Nick Clifton <nickc@redhat.com>
130 * objcopy.c (copy_object): Compare input and output sections by
131 pointer rather than name.
133 2020-10-05 Nick Clifton <nickc@redhat.com>
136 * windmc.c (mc_unify_path): Fix typo checking character at end of
139 2020-10-05 Samanta Navarro <ferivoz@riseup.net>
141 * doc/binutils.texi: Fix spelling mistakes.
143 2020-09-29 Mark Wielaard <mark@klomp.org>
145 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
146 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
148 2020-09-25 Alan Modra <amodra@gmail.com>
150 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
152 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
153 allowed reloc_size. Don't read_leb128 outside of section.
155 2020-09-23 Mark Wielaard <mark@klomp.org>
157 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
158 * testsuite/binutils-all/dw5.W: Adjust expected output.
159 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
161 2020-09-23 Mark Wielaard <mark@klomp.org>
163 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
164 for dwarf_version 5 just as version 3 and 4 (only 2 is
166 (process_debug_info): Allow DW_UT_partial.
168 2020-09-24 Nick Clifton <nickc@redhat.com>
171 * doc/binutils.texi (nm): Document that 'c' is used for small
174 2020-09-21 Ludovic Courtès <ludo@gnu.org>
176 * doc/binutils.texi (objcopy, strip): Say that
177 '--strip-unneeded' implies '--strip-debug'.
179 2020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
181 * verilog.c (verilog_write_address): Properly handle 64-bit
182 addresses to avoid truncation of the high part.
184 2020-09-16 Alan Modra <amodra@gmail.com>
186 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
187 * objcopy.c (is_hidden_symbol): Likewise.
189 2020-09-15 Nick Clifton <nickc@redhat.com>
191 * README-how-to-make-a-release (https): Add a reminder to create a
192 new Bugzilla tag for the point release, once it has been published.
194 2020-09-11 H.J. Lu <hongjiu.lu@intel.com>
196 * readelf.c (get_note_type): Support NT_X86_CET.
198 2020-09-11 Nick Clifton <nickc@redhat.com>
201 * dwarf.c (load_separate_debug_info): Return NULL rather than
202 FALSE in error situations.
203 (load_separate_debug_file): Move code to load debug links to ...
204 (check_for_and_load_links): ... here. New function. Load
205 separate debug information pointed to by debuglink and
206 debugaltlink sections. Recursively scan newly loaded debug
207 information for more links and load them too.
209 2020-09-09 Alan Modra <amodra@gmail.com>
212 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
213 (load_separate_debug_files): Use a stack var for build_id_data.
215 2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
218 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
219 to ld on PE targets for PR 25662 test.
221 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
222 Kuan-Lin Chen <kuanlinchentw@gmail.com>
224 * readelf.c (target_specific_reloc_handling): Handle
225 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
227 2020-09-02 Alan Modra <amodra@gmail.com>
229 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
231 2020-08-30 Alan Modra <amodra@gmail.com>
233 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
236 2020-08-28 Nick Clifton <nickc@redhat.com>
239 * dwarf.c (read_leb128): When checking for overflow of a signed
240 read, use a signed shift.
242 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
244 * readelf.c (get_csky_section_type_name): New.
245 (get_section_type_name): Add handler for CSKY.
246 (display_csky_attribute): New.
247 (process_arch_specific): Add handler for CSKY.
248 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
251 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
253 * readelf.c (get_msp430x_section_type_name): Rename to ...
254 (get_msp430_section_type_name): ... this.
255 (get_section_type_name): Use get_msp430_section_type_name.
256 (display_msp430x_attribute): Rename to ...
257 (display_msp430_attribute): ... this.
258 (process_arch_specific): Use display_msp430_attribute.
260 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
263 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
264 "-j $PRIVATE$" to command on hppa*-*-hpux*.
265 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
266 dollar-sign quotes before quoting. Do this prior to generating log
269 2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
272 * mclex.c (skip_until_eol): If eol was found, increment line
275 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
277 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
278 * readelf.c (dump_ctf_errs): Likewise.
280 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
282 * objdump.c (dump_ctf_archive_member): Move error-
284 (dump_ctf_errs): ... into this separate function.
285 (dump_ctf): Call it on open errors.
286 * readelf.c (dump_ctf_archive_member): Move error-
288 (dump_ctf_errs): ... into this separate function. Support
289 calls with NULL fp. Adjust for new err parameter to
291 (dump_section_as_ctf): Call it on open errors.
293 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
295 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
296 * Makefile.in: Regenerated.
298 2020-08-26 Nick Clifton <nickc@redhat.com>
301 * readelf.c (get_segment_type): Handle OpenBSD segment types.
303 2020-08-26 Alan Modra <amodra@gmail.com>
306 * objcopy.c (copy_object): Don't fwrite NULL contents.
308 2020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
311 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
313 2020-08-24 Alan Modra <amodra@gmail.com>
315 * readelf.c (dump_section_as_strings) Avoid false positive
316 "may be used uninitialised".
318 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
321 * nm.c (print_symname): Display only one '@' for undefined
323 * doc/binutils.texi: Update nm version information.
325 2020-08-21 Mark Wielaard <mark@klomp.org>
327 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
328 recognize DW_LANG_C11.
330 2020-08-19 Alan Modra <amodra@gmail.com>
333 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
335 (dump_section_as_strings): Don't use %tx to display offset.
337 2020-08-14 Alan Modra <amodra@gmail.com>
340 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
341 of debug_information. Correct test of max_loc_offsets and
343 * rddbg.c (read_debugging_info): Free dhandle on error.
345 2020-08-14 Alan Modra <amodra@gmail.com>
347 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
349 2020-08-13 Alan Modra <amodra@gmail.com>
352 * objcopy.c (copy_object): Report file name with endian error.
353 Error and return on abfd->read_only.
355 2020-08-12 Tom Tromey <tromey@adacore.com>
357 * dwarf-mode.el (Version): Now 1.6.
358 (dwarf-die-button-action): Tighten DIE reference regexp.
359 (dwarf-font-lock-keywords): Update name regexp.
361 2020-08-12 Nick Clifton <nickc@redhat.com>
364 * readelf.c (do_demangle): New option flag.
365 (print_symbol): If do_demangle is enabled, demangle the symbol.
366 (enum long_option_values): New enum to hold long option values.
367 (options): Add demangle, no-demangle, recursion-limit and
368 no-recursion-limit options. Alpha sort the table.
369 (usage): Describe the new options.
370 (parse_args): Handle the new options.
371 * NEWS: Mention the new feature.
372 * doc/binutils.texi: Document the new feature.
373 * testsuite/binutils-all/readelf.exp: Test the new feature.
374 * testsuite/binutils-all/mangled.s: New file - assembler source.
375 * testsuite/binutils-all/readelf.demangled: New file - expected
378 2020-08-12 Nick Clifton <nickc@redhat.com>
380 * po/sr.po: Updated Serbian translation.
382 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
385 * nm.c (with_symbol_versions): Removed.
386 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
387 (long_options): Update --with-symbol-versions entry.
388 (print_symbol): Remove the with_symbol_versions check.
389 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
391 * doc/binutils.texi: Remove --with-symbol-versions.
393 2020-08-05 Alan Modra <amodra@gmail.com>
396 * objdump.c (load_specific_debug_section): Revert last change.
398 2020-08-05 Alan Modra <amodra@gmail.com>
401 * objdump.c (load_specific_debug_section): Don't malloc space for
402 section contents, use bfd_malloc_and_get_section.
404 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
406 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
407 * Makefile.in, doc/Makefile.in: Regenerate.
408 * configure: Regenerate.
410 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
412 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
414 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
415 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
416 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
417 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
418 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
420 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
422 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
424 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
426 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
428 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
430 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
432 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
434 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
436 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
438 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
440 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
442 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
444 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
446 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
448 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
450 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
452 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
454 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
456 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
459 * configure: Regenerated.
461 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
464 * configure: Regenerated.
466 2020-07-27 Alan Modra <amodra@gmail.com>
468 * objdump.c (dump_section): Don't return without calling
471 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
473 * doc/binutils.texi: Replace preceeded with preceded.
475 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
477 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
478 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
480 (has_newabi): Remove variable.
481 (has_abi, abi_asflags, abi_ldflags): New associative array
483 (irixemul): New variable.
484 Replace `run_dump_test' calls where applicable throughout with
485 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
486 as appropriate. Use `noarch' for tests that require their own
487 architecture setting.
488 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
489 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
490 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
491 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
492 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
493 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
494 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
495 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
496 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
497 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
498 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
499 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
500 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
501 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
503 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
504 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
505 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
506 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
507 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
508 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
509 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
511 2020-07-24 Aaron Merey <amerey@redhat.com>
513 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
514 * Makefile.in: Rebuild.
515 * configure: Rebuild.
516 * doc/Makefile.in: Rebuild.
518 2020-07-24 Nick Clifton <nickc@redhat.com>
520 * README-how-to-make-a-release: Various small updates whilst
521 creating the 2.35 release.
523 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
525 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
528 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
530 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
531 (dump_ctf): Likewise.
533 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
535 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
536 * readelf.c (dump_ctf_archive_member): Likewise.
538 2020-07-22 Nick Clifton <nickc@redhat.com>
540 * readelf.c (parse_args): Silence potential warnings about a
541 memory resource leak when allocating space for ctf option values.
542 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
545 2020-07-21 Nick Clifton <nickc@redhat.com>
547 * po/sv.po: Updated Swedish translation.
549 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
551 * testsuite/binutils-all/arc/double_regs.s: New test.
552 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
554 2020-07-13 Nick Clifton <nickc@redhat.com>
556 * po/fr.po: Updated French translation.
558 2020-07-13 Alan Modra <amodra@gmail.com>
560 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
561 optional machine-os arg.
563 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
565 * readelf.c (decode_x86_feature_2): Handle
566 GNU_PROPERTY_X86_FEATURE_2_TMM.
568 2020-07-10 Tom de Vries <tdevries@suse.de>
570 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
571 information in the end_sequence row.
572 * testsuite/binutils-all/dw5.W: Update.
573 * testsuite/binutils-all/objdump.WL: Update.
575 2020-07-09 Alan Modra <amodra@gmail.com>
577 * dlltool.c: Remove powerpc PE support and comments.
578 * configure.ac: Remove powerpc PE dlltool config.
579 * configure: Regenerate.
581 2020-07-09 Nick Clifton <nickc@redhat.com>
583 * rclex.c: Add OWNERDRAW keyword.
584 * rcparse.y: Add OWNERDRAW token.
585 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
586 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
588 * windres.c (extended_menuitems): Likewise.
589 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
591 2020-07-09 Alan Modra <amodra@gmail.com>
593 * readelf (slurp_hppa_unwind_table): Set table_len before use
594 in relocation sanity checks.
596 2020-07-07 Alan Modra <amodra@gmail.com>
598 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
599 * testsuite/binutils-all/nm.exp: Likewise.
600 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
601 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
602 * testsuite/binutils-all/set-section-alignment.d: Likewise.
603 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
605 2020-07-07 Alan Modra <amodra@gmail.com>
607 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
608 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
610 2020-07-06 Nick Clifton <nickc@redhat.com>
612 * po/bg.po: Updated Bulgarian translation.
613 * po/pt.po: Updated Portuguese translation.
614 * po/uk.po: Updated Ukranian translation.
616 2020-07-06 Alan Modra <amodra@gmail.com>
618 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
621 2020-07-04 Nick Clifton <nickc@redhat.com>
623 * configure: Regenerate.
624 * po/binutils.pot: Regenerate.
626 2020-07-04 Nick Clifton <nickc@redhat.com>
628 Binutils 2.35 branch created.
630 2020-07-02 Nick Clifton <nickc@redhat.com>
633 * readelf.c (print_symbol): Handle truncation of symbol names.
634 (options): Add -T/--silent-truncation option.
635 (parse_args): Handle the option.
636 (print_dynamic_symbol): Correct calculation of width available to
638 * doc/binutils.texi: Document the -T option to readelf.
639 * NEWS: Mention the new feature.
641 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
643 * NEWS: Mention x86 NaCl target support removal.
644 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
645 x86 NaCl target support.
646 * testsuite/binutils-all/elfedit-1.d: Likewise.
647 * testsuite/binutils-all/i386/i386.exp: Likewise.
648 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
649 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
650 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
651 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
652 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
653 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
654 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
655 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
656 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
657 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
658 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
659 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
661 2020-06-30 Nick Clifton <nickc@redhat.com>
663 * dwarf.c (read_and_display_attr_value): Support
664 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
667 2020-06-30 Alan Modra <amodra@gmail.com>
669 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
672 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
674 * dwarf.c (display_debug_str_offsets): Rename local variable
675 index to idx. Move to top of function.
677 2020-06-29 Alan Modra <amodra@gmail.com>
679 * dwarf.c: Use C style comments.
682 2020-06-27 Alan Modra <amodra@gmail.com>
684 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
686 (release_archive): Set fields of arch to NULL after freeing.
688 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
690 * readelf.c (dump_section_as_ctf): Support .ctf archives using
691 ctf_arc_bufopen. Automatically load the .ctf member of such
692 archives as the parent of all other members, unless specifically
693 overridden via --ctf-parent. Split out dumping code into...
694 (dump_ctf_archive_member): ... here, as in objdump, and call
695 it once per archive member.
696 (dump_ctf_indent_lines): Code style fix.
698 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
700 * configure.ac [--enable-libctf]: New, default yes.
701 Set ENABLE_LIBCTF accordingly.
702 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
703 * configure: Regenerate.
704 * config.in: Regenerate.
705 * Makefile.in: Regenerate.
706 * aclocal.m4: Regenerate.
707 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
708 (option_values): Likewise.
709 (long_options): Likewise.
711 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
712 (make_ctfsect): Likewise.
713 (dump_ctf_archive_member): Likewise.
714 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
715 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
716 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
718 (process_section_contents): Likewise.
719 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
720 (dump_ctf_indent_lines): Likewise.
721 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
723 2020-06-26 Jan Beulich <jbeulich@suse.com>
725 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
726 redundant text from x86 specific part of -M section.
728 2020-06-26 Pat Bernardi <bernardi@adacore.com>
730 * readelf.c (display_m68k_gnu_attribute): New function.
731 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
733 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
736 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
737 * testsuite/binutils-all/pr26160.r: Likewise.
738 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
740 2020-06-23 Nick Clifton <nickc@redhat.com>
743 * dwarf.c (fetch_indexed_string): Detect and handle old style
744 .debug_str_offset tables.
745 (display_debug_str_offsets): Likewise. Also add support for
746 .debug_str_offsets.dwo sections.
748 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
751 * testsuite/binutils-all/pr26112.o.bz2: New file.
752 * testsuite/binutils-all/pr26112.r: Likewise.
753 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
755 2020-06-23 Alan Modra <amodra@gmail.com>
757 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
758 remote_file delete command.
760 2020-06-22 Nick Clifton <nickc@redhat.com>
763 * dwarf.c (display_debug_str_offsets): Add code to display the
764 contents of the .debug_str_offsets section.
765 (display_debug_macro): Add support for DW_MACRO_define_strx and
768 2020-06-22 Saagar Jha <saagar@saagarjha.com>
770 * od-macho.c: Dump linkedit data for new load commands.
772 2020-06-19 Alan Modra <amodra@gmail.com>
774 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
775 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
776 (run_dump_test): Use check_relro_support to decide whether to pass
777 extra ld option "-z norelro".
779 2020-06-11 Alan Modra <amodra@gmail.com>
781 * readelf.c (process_mips_specific): Don't alloc memory for
782 Elf_Internal_Options.
784 2020-06-11 Alan Modra <amodra@gmail.com>
786 * readelf.c (process_mips_specific): Assert size of internal
787 types match size of external types, and simplify allocation of
788 internal buffer. Catch possible integer overflow when sanity
789 checking option size. Don't assume options are a regular array.
790 Sanity check reginfo option against option size. Use PRI macros
793 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
796 * mclex.c (yylex): Reject lines that reach end-of-file without a
797 terminating newline character.
799 2020-06-08 Nick Clifton <nickc@redhat.com>
802 * doc/binutils.texi (strings): Fix typo.
804 2020-06-08 Nick Clifton <nickc@redhat.com>
807 * dwarf.c (process_debug_info): Check that there is space in the
808 debug_information array before filling in an entry.
810 2020-06-06 Alan Modra <amodra@gmail.com>
812 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
814 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
817 * mclex.c (yylex): Add test for an empty input stream.
819 2020-06-04 Stephen Casner <casner@acm.org>
821 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
822 for test using section pseudo-ops compatible with pdp11.
823 * testsuite/binutils-all/objcopy.exp: Select alternate source.
825 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
827 * objdump.c (disassemble_data): Set disasm_info.endian_code to
828 disasm_info.endian after the latter is initialized to the
829 endianness reported by BFD.
831 2020-06-04 Alan Modra <amodra@gmail.com>
833 * testsuite/binutils-all/i386/i386.exp: Remove global directive
835 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
836 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
838 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
840 * windmc.h (struct mc_node): Add id_typecast field.
841 * mcparse.y (message): Initialise the id_typecast field.
842 * windmc.c (write_dbg): Use the id_typecast field as a parameter
843 when calling write_dbg_define.
844 (write_header): Likewise.
846 2020-06-03 Alan Modra <amodra@gmail.com>
849 * objcopy.c (copy_relocations_in_section): Free relpp on error.
850 Don't accidentally free isection->orelocation.
852 2020-06-02 Alan Modra <amodra@gmail.com>
854 * testsuite/binutils-all/ar.exp (obj): Set up object file name
855 extension. Use throughout. Don't completely exclude non-ELF
856 alpha targets. Run long_filenames test for tic30. Exclude thin
857 archive tests for aix, ecoff and vms.
858 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
859 extension. Use throughout. Don't exclude non-ELF alpha targets
862 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
864 * MAINTAINERS (Xtensa): Add myself as maintainer.
866 2020-05-23 Alan Modra <amodra@gmail.com>
868 * testsuite/binutils-all/ar.exp (many_files): New test.
870 2020-05-21 Alan Modra <amodra@gmail.com>
872 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
873 * dlltool.c: Likewise.
874 * elfcomm.c: Likewise.
876 * readelf.c: Likewise.
878 * windmc.c: Likewise.
879 * windres.c: Likewise.
880 * wrstabs.c: Likewise.
882 2020-05-21 Alan Modra <amodra@gmail.com>
884 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
887 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
889 * dwarf.c: Updated since DECLARE_CSR is changed.
891 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
894 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
895 segment doesn't match the .dynamic section and checks are
897 (struct filedata): Add dynamic_symtab_section and
898 dynamic_strtab_section fields.
899 (process_section_headers): Set dynamic_symtab_section to the
900 .dynsym section. Set dynamic_strtab_section to the .dynstr
902 (process_dynamic_section): Warn if the .dynsym section doesn't
903 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
904 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
906 2020-05-19 Alan Modra <amodra@gmail.com>
908 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
909 (replace_members): Use bfd_get_filename rather than accessing
910 bfd->filename directly.
911 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
912 * binemul.c (do_ar_emul_append): Likewise.
913 * coffgrok.c (coff_grok): Likewise.
915 2020-05-18 Stafford Horne <shorne@gmail.com>
917 * MAINTAINERS (OR1K): Add myself as maintainer.
919 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
921 * doc/binutils.texi: Mention 'entry address' in the set-start and
922 adjust-start options descriptions.
924 2020-05-05 Nick Clifton <nickc@redhat.com>
926 * dwarf.c (do_checks): New global variable.
927 (display_formatted_table): Warn about an unexpected number of
928 columns in the table, if checks are enabled. Do not complain
929 about the lack of data following the number of entries in the
930 table if the table is empty.
931 (display_debug_lines_decoded): Only warn about an unexpected
932 number of columns in a table if checks are enabled.
933 * dwarf.h (do_checks): Add a prototype.
934 * elfcomm.c (error): Remove weak attribute.
936 * readelf.c (do_checks): Delete.
938 (process_section_headers): Only warn about empty sections if
941 2020-05-04 Fangrui Song <maskray@google.com>
943 * objcopy.c (copy_object): Allow empty section.
944 * testsuite/binutils-all/update-section.exp: Add test.
946 2020-05-04 Nick Clifton <nickc@redhat.com>
949 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
950 supicious number of entries for DWARF-5 format directory and file
951 name tables. Do not display file name table header if the table
952 is empty. Do not allocate space for empty tables.
954 2020-05-04 Alan Modra <amodra@gmail.com>
956 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
957 section. Don't assume endian of host matches nds32 target. Free
960 2020-05-01 Alan Modra <amodra@gmail.com>
961 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
963 * objdump.c (disassemble_bytes): Don't scan for zeros when
964 disassembling zeros. Translate "resuming at file offset" message.
965 Formatting. Replace some signed variables with unsigned.
967 2020-04-30 Alex Coplan <alex.coplan@arm.com>
969 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
971 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
973 2020-04-30 Nick Clifton <nickc@redhat.com>
975 * testsuite/lib/binutils-common.exp (check_pie_support): New
978 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
980 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
981 range_entries for the same offset.
983 2020-04-29 Nick Clifton <nickc@redhat.com>
985 * readelf.c (warn): New function - like elfcomm.c version but only
986 produces output if warnings are enabled.
987 (struct options): Add --lint and --enable-checks.
988 (usage): Add entry for --lint.
989 (parse_args): Handle -L. If checks are enabled but no dumps have
990 been selected then enable all dumps.
991 (process_section_headers): Replace long if-then-else sequence with
992 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
993 SHT_PROGBITS sections.
994 (process_file): Do not complain if the file is an archive and lint
995 mode has been enabled.
996 * elfcomm.c (error): Make the function weak.
998 * NEWS: Mention the new feature.
999 * doc/binutils.texi: Document the new feature.
1000 * dwarf.h (report_leb_status): Add file name and line number
1001 parameters. Include them in the diagnostic output.
1002 (READ_ULEB): Pass file and line number to report_leb_status.
1003 (READ_SLEB): Likewise.
1004 * dwarf.c (read_and_print_leb128): Pass file and line number to
1006 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1007 * testsuite/binutils-all/zero-sec.s: New test source file.
1008 * testsuite/binutils-all/zero-sec.r: Expected output from new
1011 2020-04-29 Nick Clifton <nickc@redhat.com>
1013 * po/sr.po: Updated Serbian translation.
1015 2020-04-26 Alan Modra <amodra@gmail.com>
1017 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1018 read before dereferencing, and gracefully return. Remove
1019 gnu_hash_error variable. Free gnu hash arrays if number of
1022 2020-04-24 Alan Modra <amodra@gmail.com>
1024 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1026 (process_dynamic_section): Call get_num_dynamic_syms once rather
1027 than in segment loop. Break out of segment loop on a successful
1028 load of dynamic symbols. Formatting.
1029 (process_object): Return error status from process_dynamic_section.
1031 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1033 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1034 * elf.c (elfcore_grok_arc_v2): New function.
1035 (elfcore_grok_note): Call the new function to handle the corresponding
1037 (elfcore_write_arc_v2): New function.
1038 (elfcore_write_register_note): Call the new function to handle the
1039 corresponding pseudo-sections.
1041 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1044 * readelf.c (is_none_reloc): Recognize
1045 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1046 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1048 2020-04-22 Nick Clifton <nickc@redhat.com>
1050 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1052 2020-04-22 Alan Modra <amodra@gmail.com>
1054 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1055 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1056 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1057 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1058 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1059 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1060 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1061 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1062 (section_headers_groups): Move to struct filedata. Update use
1065 2020-04-22 Alan Modra <amodra@gmail.com>
1067 * readelf.c (struct dump_data): New, used..
1068 (cmdline): ..here, and..
1069 (struct filedata): ..here. Adjust all uses.
1070 (request_dump_bynumber, request_dump, parse_args): Pass in a
1071 struct dump_data* rather than Filedata*. Adjust callers.
1072 (main): Don't set cmdline.file_name.
1074 2020-04-20 Alan Modra <amodra@gmail.com>
1076 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1079 2020-04-20 Alan Modra <amodra@gmail.com>
1081 * readelf.c (process_section_headers): Free dynamic symbols etc.
1084 2020-04-20 Alan Modra <amodra@gmail.com>
1086 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1087 on error without freeing.
1088 (process_dynamic_section): Don't recreate dynamic symbols from
1089 dynamic tag info when the dynamic symbols have already been
1090 read via section headers.
1092 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
1094 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1095 conditional VDUP instructions are disassembled correctly.
1096 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1098 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1099 that VDUP instructions (which are conditional in A32) can be
1100 disassembled in thumb mode.
1101 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1104 2020-04-17 Alan Modra <amodra@gmail.com>
1107 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1109 2020-04-16 Alan Modra <amodra@gmail.com>
1111 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1112 --no-addresses description.
1114 2020-04-15 Alan Modra <amodra@gmail.com>
1116 * objdump.c (no_addresses): New static var.
1117 (usage): Print help for --no-addresses.
1118 (long_options): Add --no-addresses entry.
1119 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1120 (disassemble_bytes): Don't print current line address, or reloc
1122 * doc/binutils.texi: Document objdump --no-addresses.
1124 2020-04-15 Alan Modra <amodra@gmail.com>
1127 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1128 reading buckets or chains fails.
1130 2020-04-15 Alan Modra <amodra@gmail.com>
1132 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1135 2020-04-15 Alan Modra <amodra@gmail.com>
1137 * readelf.c (get_group_flags): Translate text.
1138 (get_file_type, get_symbol_binding, get_symbol_type),
1139 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1141 2020-04-15 Alan Modra <amodra@gmail.com>
1144 * readelf.c (get_num_dynamic_syms): Typo fix.
1146 2020-04-14 Alan Modra <amodra@gmail.com>
1148 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1149 possibility of overflow when checking number of conflicts.
1151 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1154 * readelf.c (nbuckets): New.
1155 (nchains): Likewise.
1156 (buckets): Likewise.
1158 (ngnubuckets): Likewise.
1159 (gnubuckets): Likewise.
1160 (gnuchains): Likewise.
1161 (mipsxlat): Likewise.
1162 (ngnuchains): Likewise.
1163 (gnusymidx): Likewise.
1164 (VALID_SYMBOL_NAME): Likewise.
1165 (VALID_DYNAMIC_NAME): Use it.
1166 (get_dynamic_data): Moved before process_dynamic_section.
1167 (get_num_dynamic_syms): New function.
1168 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1169 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1170 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1172 (get_symbol_index_type): Don't print "bad section index" when
1173 there is no section header.
1174 (print_dynamic_symbol): Rewrite.
1175 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1178 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1180 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1181 enable on *-*-solaris*.
1183 2020-03-30 Nick Clifton <nickc@redhat.com>
1186 * objcopy.c (copy_object): When copying PE format files set the
1187 timestamp field in the pe_data structure if the preserve_dates
1189 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1190 --preserve-dates in place of the -p option, in order to make its
1191 effect more obvious.
1193 2020-03-28 Alan Modra <amodra@gmail.com>
1195 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1196 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1198 2020-03-28 Alan Modra <amodra@gmail.com>
1200 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1201 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1202 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1203 test. Pass "-p" to objcopy for the executable test.
1205 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1208 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1209 specify whether an object file or executable should be built and tested.
1210 Change test names to report whether an object file or executable is
1212 * testsuite/binutils-all/pr25662.ld: New test.
1213 * testsuite/binutils-all/pr25662.s: New test.
1215 2020-03-27 Alan Modra <amodra@gmail.com>
1217 * readelf.c (process_archive): Don't double free qualified_name.
1218 Don't break out of loop with "negative" archive_file_size, just
1219 set file offset to max.
1221 2020-03-25 Alan Modra <amodra@gmail.com>
1223 * readelf.c (process_archive): Prevent endless loop.
1225 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1228 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1229 with bfd_get_symbol_version_string.
1230 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1231 * objdump.c (objdump_print_symname): Likewise.
1233 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1236 * nm.c (SYM_NAME): Removed.
1237 (print_symname): Add a pointer to struct extended_symbol_info
1238 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1240 (print_symdef_entry): Pass NULL to print_symname.
1241 (print_symbol_info_bsd): Update call to print_symname.
1242 (print_symbol_info_sysv): Likewise.
1243 (print_symbol_info_posix): Likewise.
1245 2020-03-24 Alan Modra <amodra@gmail.com>
1247 * readelf.c (process_mips_specific): Free iconf on error path.
1249 2020-03-23 Nick Clifton <nickc@redhat.com>
1252 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1253 * write_stabs_in_sections_debugging_info: Likewise.
1254 * stab_enum_type: Likewise.
1255 * stab_modify_type: Likewise.
1256 * stab_struct_field: Likewise.
1257 * stab_end_struct_type: Likewise.
1258 * stab_start_class_type: Likewise.
1259 * stab_class_static_member: Likewise.
1260 * stab_class_baseclass: Likewise.
1261 * stab_class_start_method: Likewise.
1262 * stab_class_method_var: Likewise.
1263 * stab_class_end_method: Likewise.
1264 * stab_end_class_type: Likewise.
1265 * stab_typedef_type: Likewise.
1266 * stab_start_function: Likewise.
1267 * stab_end_block: Likewise.
1268 * stab_lineno: Likewise.
1270 2020-03-20 Nick Clifton <nickc@redhat.com>
1272 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1273 (process_section_headers): Check the return value from
1274 get_compression_header.
1275 (dump_section_as_strings): Likewise.
1276 (dump_section_as_bytes): Likewise.
1277 (load_specific_debug_section): Likewise.
1279 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1281 * ar.c (main): Update bfd_plugin_set_program_name call.
1282 * nm.c (main): Likewise.
1284 2020-03-19 Nick Clifton <nickc@redhat.com>
1287 * testsuite/binutils-all/dw4.s: New test source file.
1288 * testsuite/binutils-all/nm.exp: Run the new test.
1290 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1292 * readelf.c (process_symbol_table): Use unsigned long for si.
1294 2020-03-19 Alan Modra <amodra@gmail.com>
1296 * elfcomm.c: Don't include bfd.h or bucomm.h.
1297 (program_name): Declare.
1298 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1299 and substitute FALSE and TRUE.
1300 (setup_archive, setup_nested_archive): Likewise.
1301 * elfcomm.h: Likewise.
1303 2020-03-19 Alan Modra <amodra@gmail.com>
1305 * readelf.c (process_archive): Always return via path freeing
1308 2020-03-19 Alan Modra <amodra@gmail.com>
1310 * readelf.c (process_netbsd_elf_note): Validate descsz before
1311 accessing descdata. Formatting.
1313 2020-03-19 Alan Modra <amodra@gmail.com>
1315 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1316 * elfcomm.h (setup_archive): Update prototype.
1318 2020-03-16 Alan Modra <amodra@gmail.com>
1320 * readelf.c (get_symbols): New function.
1321 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1322 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1324 2020-03-16 Alan Modra <amodra@gmail.com>
1326 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1327 Detect shift overflows and check that terminating byte is found.
1328 Print an error on a bad uleb128.
1330 2020-03-14 Alan Modra <amodra@gmail.com>
1332 * readelf.c (process_file): Clean ba_cache.
1334 2020-03-14 Alan Modra <amodra@gmail.com>
1336 * elfcomm.h (setup_archive): Update prototype.
1337 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1338 check longnames_size.
1339 (setup_nested_archive): Get file size and pass to setup_archive.
1340 * elfedit.c (process_archive): Likewise.
1341 * readelf.c (process_archive): Pass filedata->file_size to
1344 2020-03-14 Alan Modra <amodra@gmail.com>
1346 * readelf.c (dump_section_as_strings): Free memory on error exit.
1347 (dump_section_as_bytes, process_notes_at): Likewise.
1348 (get_build_id): Free enote.
1350 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1352 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1353 NT_NETBSDCORE_LWPSTATUS notes.
1355 2020-03-13 Alan Modra <amodra@gmail.com>
1357 * elfcomm.c (get_archive_member_name): Always return malloc'd
1359 * elfedit.c (process_archive): Tidy memory on all return paths.
1360 * readelf.c (process_archive): Likewise.
1361 (process_symbol_table): Likewise.
1362 (ba_cache): New, replacing ..
1363 (get_symbol_for_build_attribute): ..static vars here. Free
1364 strtab and symtab before loading new ones. Reject symtab without
1365 valid strtab in loop, breaking out of loop on valid symtab.
1366 (process_file): Free ba_cache symtab and strtab here, resetting
1369 2020-03-12 Alan Modra <amodra@gmail.com>
1371 * readelf.c (process_section_headers): Don't just set
1372 filedata->section_headers NULL, free it first. Similarly for
1373 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1374 symtab_shndx_list. Zero associated counts too.
1375 (process_object): Free symtab_shndx_list.
1376 (process_file): Free various allocated filedata tables.
1378 2020-03-11 Nick Clifton <nickc@redhat.com>
1382 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1383 li_segment_size fields.
1384 * dwarf.c (read_debug_line_header): Record the address size and
1385 segment selector size values (if present) in the lineinfo
1387 (display_formatted_table): Warn if the format count is empty but
1388 the table itself is not empty.
1389 Display the format count and entry count at the start of the table
1391 (display_debug_lines_raw): Display the address size and segement
1392 selector size fields, if present.
1393 * testsuite/binutils-all/dw5.W: Update expected output.
1395 2020-03-11 Alan Modra <amodra@gmail.com>
1398 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1399 pad_to_set on second block of code dealing with padding.
1400 Replace "c" with "num_sec" and don't recalculate number of
1401 sections on second block. Size arrays using sizeof (element)
1402 rather than sizeof (element type).
1404 2020-03-10 Alan Modra <amodra@gmail.com>
1406 * objdump.c (disassemble_section): Don't call qsort unless
1407 sym count is at least two.
1408 (disassemble_data): Don't call memcpy with NULL src.
1410 2020-03-09 Alan Modra <amodra@gmail.com>
1413 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1414 to get_data rather than multiplying.
1415 (dump_ia64_vms_dynamic_relocs): Likewise.
1416 (process_version_sections): Correct order of size and nmemb args
1418 (process_mips_specific): Likewise.
1420 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1422 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1423 "memory checkers" in comments.
1425 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1428 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1429 * doc/Makefile.in: Re-generate.
1431 2020-03-06 Nick Clifton <nickc@redhat.com>
1433 * objcopy.c (check_new_section_flags): New function. Reject the
1434 SEC_COFF_SHARED flag if the target is not a COFF binary.
1435 (copy_object): Call check_new_section_flags.
1436 (setup_section): Likewise.
1437 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1438 flag cannot be applied to ELF binaries.
1440 2020-03-06 Alan Modra <amodra@gmail.com>
1443 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1445 2020-03-05 Alan Modra <amodra@gmail.com>
1448 * objcopy.c (filter_symbols): Don't segfault on NULL
1449 prefix_symbols_string.
1451 2020-03-04 Christian Eggers <ceggers@gmx.de>
1453 * objcopy.c (copy_object): Convert from bytes to octets for
1454 --gap-fill and --pad-to.
1456 2020-03-03 Nick Clifton <nickc@redhat.com>
1459 * prdbg.c (pr_tag_type): Remove call to abort.
1461 2020-03-02 Aaron Merey <amerey@redhat.com>
1463 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1466 2020-03-02 Nick Clifton <nickc@redhat.com>
1469 * readelf.c (dump_section_as_strings): Display new-line characters
1470 as \n and then insert a line break.
1471 * testsuite/binutils-all/pr25543.s: New test.
1472 * testsuite/binutils-all/pr25543.d: Test driver.
1473 * testsuite/binutils-all/readelf.exp: Run the new test.
1475 2020-02-27 Nick Clifton <nickc@redhat.com>
1478 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1479 get_data is unable to load the string table.
1481 2020-02-26 Alan Modra <amodra@gmail.com>
1483 * elfedit.c: Indent labels correctly.
1484 * readelf.c: Likewise.
1485 * resres.c: Likewise.
1487 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1490 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1491 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1493 2020-02-24 Nick Clifton <nickc@redhat.com>
1496 * doc/binutils.texi (objdump): Fix typo in description of
1497 objdump's -g option.
1499 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1501 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1504 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1506 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1508 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1510 * configure: Regenerate.
1512 2020-02-10 Fangrui Song <maskray@google.com>
1514 * objcopy.c (parse_flags): Handle "exclude".
1515 * doc/binutils.texi: Document the support.
1517 2020-02-10 Aaron Merey <amerey@redhat.com>
1519 * binutils/testsuite/binutils-all/debuginfod.exp:
1520 Replace set ::env with setenv.
1521 Start server before setting environment variable.
1522 Specify tmpdir as the location of the server's
1524 Check additional server metrics at start-up.
1526 2020-02-07 Nick Clifton <nickc@redhat.com>
1528 * README-how-to-make-a-release: Add note about updating the
1529 GAS/NEWS URL in the next release.
1531 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1534 * readelf.c (get_machine_flags): Add support for Z80N machine
1537 2020-02-07 Nick Clifton <nickc@redhat.com>
1539 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1540 of the truncated file name.
1542 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1544 * objdump.c (print_jump_visualisation): New function.
1545 (disassemble_bytes): Call new function.
1547 2020-02-06 Alan Modra <amodra@gmail.com>
1549 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1551 (supports_gnu_osabi): New procedure.
1552 (is_generic): New, from ld-lib.exp.
1553 (supports_gnu_unique): Use the above.
1555 2020-02-04 Alan Modra <amodra@gmail.com>
1557 * Makefile.am (CFILES): Add od-elf32_avr.c.
1558 * Makefile.in: Regenerate.
1559 * po/POTFILES.in: Regenerate.
1561 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1563 * readelf.c (dump_relocations, dump_relocations)
1564 (decode_arm_unwind_bytecode, process_dynamic_section)
1565 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1568 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1570 * coffdump.c (program_name): Drop redundant definition.
1571 * srconv.c (program_name): Likewise
1572 * sysdump.c (program_name): Likewise
1574 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1577 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1578 same file with different section pointers.
1580 2020-02-01 Nick Clifton <nickc@redhat.com>
1582 * README-how-to-make-a-release: Update with more details on the
1583 release making process.
1585 2020-01-31 Nick Clifton <nickc@redhat.com>
1587 * po/sv.po: Updated Swedish translation.
1589 2020-01-28 Nick Clifton <nickc@redhat.com>
1591 * readelf.c (get_build_id): Simplify warning message about corrupt
1592 notes encountered whilst scanning for the build-id.
1594 2020-01-27 Roland McGrath <mcgrathr@google.com>
1596 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1597 for overlapping ranges so that (A == B) == (B == A) holds.
1599 2020-01-27 Alan Modra <amodra@gmail.com>
1601 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1602 case statement with switch statement.
1604 2020-01-24 Nick Clifton <nickc@redhat.com>
1606 * readelf.c (get_build_id): Fix warning messages about corrupt
1609 2020-01-23 Nick Clifton <nickc@redhat.com>
1611 * po/fr.po: Updated French translation.
1613 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1616 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1618 2020-01-20 Nick Clifton <nickc@redhat.com>
1620 * po/pt.po: Updated Portuguese translation.
1621 * po/uk.po: Updated Ukranian translation.
1623 2020-01-18 Nick Clifton <nickc@redhat.com>
1625 * README-how-to-make-a-release: Update notes on how to cut a
1626 branch for a release.
1628 2020-01-18 Nick Clifton <nickc@redhat.com>
1630 * configure: Regenerate.
1631 * po/binutils.pot: Regenerate.
1633 2020-01-18 Nick Clifton <nickc@redhat.com>
1635 Binutils 2.34 branch created.
1637 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1639 * objdump.c (jump_info_visualize_address): Discard jumps that are
1641 (disassemble_bytes): Only compute the maximum level if jumps were
1644 2020-01-13 Nick Clifton <nickc@redhat.com>
1646 * objdump.c (disassemble_bytes): Remove C99-ism.
1647 * testsuite/binutils-all/debuginfod.exp: New tests.
1649 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1651 * objdump.c (visualize_jumps, color_output, extended_color_output)
1652 (detected_jumps): New variables.
1653 (usage): Add the new jump visualization options.
1654 (option_values): Add new option value.
1655 (long_options): Add the new option.
1656 (jump_info_new, jump_info_free): New functions.
1657 (jump_info_min_address, jump_info_max_address): Likewise.
1658 (jump_info_end_address, jump_info_is_start_address): Likewise.
1659 (jump_info_is_end_address, jump_info_size): Likewise.
1660 (jump_info_unlink, jump_info_insert): Likewise.
1661 (jump_info_add_front, jump_info_move_linked): Likewise.
1662 (jump_info_intersect, jump_info_merge): Likewise.
1663 (jump_info_sort, jump_info_visualize_address): Likewise.
1664 (disassemble_jumps): New function - used to locate jumps.
1665 (disassemble_bytes): Add ascii art generation.
1666 (disassemble_section): Add scan to locate jumps.
1667 (main): Parse the new visualization option.
1668 * doc/binutils.texi: Document the new feature.
1669 * NEWS: Mention the new feature.
1671 2020-01-13 Alan Modra <amodra@gmail.com>
1675 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1676 fde_fc col_type and col_offset.
1677 * readelf.c (apply_relocations): Move symsec check earlier.
1678 (free_debug_section): Free reloc_info.
1679 (process_notes_at): Free pnotes on error path.
1680 (process_object): Free dump_sects here..
1681 (process_archive): ..not here.
1683 2020-01-13 Alan Modra <amodra@gmail.com>
1686 * nm.c (display_rel_file): Free dyn_syms.
1688 2020-01-09 Nick Clifton <nickc@redhat.com>
1691 * objcopy.c (empty_name): New variable.
1692 (need_sym_before): Prevent an attempt to free a static variable.
1693 (filter_symbols): Avoid strcmp test by checking for pointer
1696 2020-01-09 Nick Clifton <nickc@redhat.com>
1698 * po/zh_TW.po: Updated Traditional Chinese translation.
1700 2020-01-09 Aaron Merey <amerey@redhat.com>
1702 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1703 * Makefile.in: Regenerate.
1705 * config.in: Regenerate.
1706 * configure: Regenerate.
1707 * configure.ac: Call AC_DEBUGINFOD.
1708 * doc/Makefile.in: Regenerate.
1709 * doc/binutils.texi: Add section on using binutils
1711 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1712 Query debuginfod servers for the target debug file.
1713 (load_separate_debug_info): Call
1714 debuginfod_fetch_separate_debug_info if configured with
1716 (load_separate_debug_files): Add file argument to
1717 load_separate_debug_info calls.
1718 * dwarf.h (get_build_id): Add declaration.
1719 * objdump.c (get_build_id): New function. Get build-id of file.
1720 * readelf.c (get_build_id): Likewise.
1721 * testsuite/binutils-all/debuginfod.exp: New tests.
1722 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1725 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1727 * readelf.c: Add support for new Z*) relocations and machine
1730 2020-01-01 Alan Modra <amodra@gmail.com>
1732 Update year range in copyright notice of all files.
1734 For older changes see ChangeLog-2019
1736 Copyright (C) 2020 Free Software Foundation, Inc.
1738 Copying and distribution of this file, with or without modification,
1739 are permitted in any medium without royalty provided the copyright
1740 notice and this notice are preserved.
1746 version-control: never