change and rename gmp_string_asprintf to return an std::string
[binutils-gdb.git] / binutils / ChangeLog
blobf899b6d3f132e6104cfd0f814c2c0e760506403a
1 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
3         * readelf.c (dump_section_as_ctf): Use .dynsym and .dynstr, not
4         .symtab and .strtab.
6 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
8         * objdump.c (dump_ctf): Report errors from ctf_archive_iter.
9         * readelf.c (dump_section_as_ctf): Likewise.
11 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
13         * objdump.c (dump_ctf): Use ctf_dict_open, not
14         ctf_arc_open_by_name.
15         * readelf.c (dump_section_as_ctf): Likewise.
17 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
19         * objdump.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
20         (dump_ctf_archive_member): Likewise.
21         (dump_ctf): Likewise. Use ctf_dict_close, not ctf_file_close.
22         * readelf.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
23         (dump_ctf_archive_member): Likewise.
24         (dump_section_as_ctf): Likewise.  Use ctf_dict_close, not
25         ctf_file_close.
27 2020-11-20  Nick Clifton  <nickc@redhat.com>
29         PR 22967
30         * nm.c (ifunc_type_chars): New variable.
31         (long_options): Add --ifunc-chars.
32         (print_symbol): Use ifunc_type_chars for ifunc symbols.
33         (main): Handle the new option.
34         * doc/binutils.texi: Document the new option.
35         * configure.ac: Add --enable-f-for-ifunc-symbols option which
36         changes the default symbol displayed by nm.
37         * NEWS: Mention the new feature.
38         * testsuite/binutils-all/nm.exp: Test the new feature.
39         * config.in: Regenerate.
40         * configure: Regenerate.
42 2020-11-20  Linda Zhang  <lindasc@qq.com>
44         PR 20979
45         * dllwrap.c (main): Deprecate and warn the use of dllwrap.
47 2020-11-20  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
49         * testsuite/binutils-all/readelf-maskos-1a.d: Fix test for unrecognized
50         bit set in SHF_MASKOS range.
51         * testsuite/binutils-all/readelf-maskos-1b.d: Likewise.
52         * testsuite/binutils-all/readelf-maskos-unknown.s: New test.
54 2020-11-18  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
56         * NEWS: Announce SHF_GNU_RETAIN support.
57         * readelf.c (get_elf_section_flags): Handle SHF_GNU_RETAIN.
58         Recognize SHF_GNU_RETAIN and SHF_GNU_MBIND only for supported OSABIs.
59         * testsuite/binutils-all/readelf.exp: Run new tests.
60         Don't run run_dump_test when there isn't an assembler available.
61         * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Adjust
62         comment.
63         * testsuite/binutils-all/readelf-maskos-1a.d: New test.
64         * testsuite/binutils-all/readelf-maskos-1b.d: New test.
65         * testsuite/binutils-all/readelf-maskos.s: New test.
66         * testsuite/binutils-all/retain1.s: New test.
67         * testsuite/binutils-all/retain1a.d: New test.
68         * testsuite/binutils-all/retain1b.d: New test.
70 2020-11-17  Howard Chu  <hyc@symas.com>
72         * ar.c (main): Place the libdeps record in the second archive
73         slot.
75 2020-11-13  Nick Clifton  <nickc@redhat.com>
77         PR 26829
78         * dwarf.c (struct dwo_info): Add cu_offset field.
79         (add_dwo_info): Add cu_offset parameter.  Record in new dwo_info
80         struct.
81         (add_dwo_name): Add cu_offset field.
82         (add_dwo_dir): Add cu_offset field.
83         (add_dwo_id): Add cu_offset field.
84         (read_and_display_attr_value): Pass cu_offset to dwo recording
85         functions.
86         (load_separate_debug_files): Accumulate name, dir and id values
87         and display once for each CU.
88         * testsuite/binutils-all/dwo.sL Use a separate CU for the second
89         dwo link.
90         * testsuite/binutils-all/readelf.k2: Update expected output.
92 2020-11-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
94         * dwarf.c (display_debug_rnglists_list): Only bias the
95         DW_RLS_offset_pair with the base address.
97 2020-11-10  Nick Clifton  <nickc@redhat.com>
99         * dwarf.c (skip_attr_bytes): Correctly handle DW_FORM_ref8.
100         (get_type_abbrev_from_form): Accept DW_FORM_ref8.
102 2020-11-09  Andreas Schwab  <schwab@linux-m68k.org>
104         * Makefile.am (development.exp): Fix regexp.
105         * Makefile.in: Regenerate.
107 2020-11-09  Nick Clifton  <nickc@redhat.com>
109         PR 26847
110         * dwarf.c (read_and_display_attr_value): In wide mode, display the
111         name of the form.
113 2020-11-09  Alan Modra  <amodra@gmail.com>
115         * elfedit (usage): Avoid false positive "may be used uninitialised".
116         Don't leak memory.
118 2020-11-09  Howard Chu  <hyc@symas.com>
120         * ar.c (main): Use plugin_target rather than "target" when
121         resetting libdeps_bfd target.
123 2020-11-06  H.J. Lu  <hongjiu.lu@intel.com>
125         * elfedit.c: Include "libiberty.h".
126         (usage): Update help message.
128 2020-11-03  Howard Chu  <hyc@symas.com>
130         * ar.c (long_options): Add --record-libdeps.
131         (usage): Mention the new option.
132         (decode_options): Handle the new option.
133         (replace_members): If necessary, create a bfd to hold the libdeps
134         description.
135         * binemul.c (ar_emul_append_bfd): New function.
136         (ar_emul_replace_bfd): New function.
137         (ar_emul_default_append): Replace file_name and target arguments
138         with new_bfd argument.
139         (ar_emul_default_replace): Likewise.
140         * binemul.h: Update prototypes.
141         (struct bin_emulation_xfer_struct): Update fields.
142         * doc/binutils.texi: Document the new option.
143         * NEWS: Mention the new feature.
144         * emul_aix.c (ar_emul_aix_append): Update.
145         (ar_emul_aix_replace): Likewise.
146         * testsuite/binutils-all/ar.exp: Add test of new feature.
148 2020-10-30  H.J. Lu  <hongjiu.lu@intel.com>
150         PR gas/26703
151         * readelf.c (decode_x86_isa): Handle
152         * GNU_PROPERTY_X86_ISA_1_BASELINE.
153         * testsuite/binutils-all/i386/empty.d: Updated.
154         * testsuite/binutils-all/i386/ibt.d: Likewise.
155         * testsuite/binutils-all/i386/pr21231a.d: Likewise.
156         * testsuite/binutils-all/i386/pr21231b.d: Likewise.
157         * testsuite/binutils-all/i386/shstk.d: Likewise.
158         * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
159         * testsuite/binutils-all/x86-64/empty.d: Likewise.
160         * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
161         * testsuite/binutils-all/x86-64/ibt.d: Likewise.
162         * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
163         * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
164         * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
165         * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
166         * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
167         * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
168         * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
169         * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
170         * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
171         * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
172         * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
173         * testsuite/binutils-all/x86-64/shstk.d: Likewise.
175 2020-10-29  H.J. Lu  <hongjiu.lu@intel.com>
177         PR binutils/26808
178         * dwarf.c (abbrev_list): Add abbrev_base.
179         (new_abbrev_list): Add an abbrev_base argument and record it.
180         (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
181         and match it.
182         (process_debug_info): Pass abbrev_base to new_abbrev_list and
183         find_abbrev_list_by_abbrev_offset.
184         (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
185         and find_abbrev_list_by_abbrev_offset.
186         * testsuite/binutils-all/x86-64/pr26808.dump: New file.
187         * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
188         * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
189         test.
191 2020-10-29  Nick Clifton  <nickc@redhat.com>
193         PR 26805
194         * objcopy.c (is_dwo_section): Check for missing or short section
195         names.
197 2020-10-26  Andreas Rammhold <andreas@rammhold.de>
199         * README-how-to-make-a-release: Use sha256sum instead of md5sum.
201 2020-10-28  Nick Clifton  <nickc@redhat.com>
203         PR 26795
204         * elfedit.c (process_archive): Remove spurious call to free().
206 2020-10-27  Nick Clifton  <nickc@redhat.com>
208         * dwarf.c (struct abbrev_list): New structure.  Used to collect
209         lists of abbreviation sets.
210         (struct abbrev_map): New structure.  Used to map CU offsets to
211         abbreviation offsets.
212         (record_abbrev_list): New function.  A new entry to an
213         abbreviation list.
214         (free_all_abbrevs): Update to free abbreviation lists.
215         (new_abbrev_list): New function.  Start a new abbreviation
216         list.
217         (find_abbrev_list_by_abbrev_offset): New function.
218         (find_abbrev_map_by_offset): New function.
219         (add_abbrev): Add abbrev_list parameter.
220         (add_abbrev_attr): Likewise.
221         (process_abbrev_section): Rename to process_abbrev_set and add
222         list parameter.
223         (get_type_abbrev_from_form): New function.  Attempts to decode the
224         forms used by DW_AT_type attributes.
225         (get_type_signedness): Display type names if operating in wide
226         mode.  Use get_type_abbrev_from_form.
227         (read_and_display_attr_value): Use get_type_abbrev_from_form.
228         (process_debug_info): Pre-parse the CU headers to collate all the
229         abbrevs before starting the main scan.
230         (process_debug_abbrev): Do not free any loaded abbrevs.
231         (free_debug_memory): Free the abbrev maps.
233 2020-10-22  H.J. Lu  <hongjiu.lu@intel.com>
235         * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
236         error message on error.
238 2020-10-22  Dr. David Alan Gilbert  <dgilbert@redhat.com>
240         * windmc.c (write_header_define): Fix printf format.
241         (write_header): Likewise.
243 2020-10-21  Nick Clifton  <nickc@redhat.com>
245         * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
246         when processing the DW_FORM_ref_addr form.
247         Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
248         Handle DW_FORM_indirect.
249         (get_type_signedness): Allow a limited amount of recursion.
250         Do not attempt to decode types that use the DW_FORM_ref_addr form.
251         (read_and_display_attr_value):  Do not attempt to decode types
252         that use the DW_FORM_ref_addr form.
254 2020-10-20  Alan Modra  <amodra@gmail.com>
256         * readelf.c: Delete whitespace at end of line throughout.
257         (SECTION_NAME, SECTION_NAME_VALID): New.
258         (SECTION_NAME_PRINT): Rename from SECTION_NAME.  Formatting.
259         (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
260         (process_section_headers, process_section_groups): Likewise.
261         (shdr_to_ctf_sect): Likewise.
262         (find_section, find_section_in_set): Use SECTION_NAME_VALID.
263         (ia64_process_unwind, hppa_process_unwind): Likewise.
264         (display_debug_section, initialise_dumps_byname): Likewise.
265         (process_lto_symbol_tables): Likewise.  Check trailing period of
266         lto symbol table names.
267         (display_lto_symtab): Use sizeof instead of strlen.
269 2020-10-20  Nelson Chu  <nelson.chu@sifive.com>
271         * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
273 2020-10-19  Nick Clifton  <nickc@redhat.com>
275         * readelf.c (do_lto_syms): New local.
276         (long_option_values): Add OPTION_LTO_SYMS.
277         (options): Add --lto-syms.
278         (usage): Mention the new option.
279         (parse_args): Parse the new option.
280         (get_lto_kind): New function.
281         (get_lto_visibility): New function.
282         (get_lto_sym_type): New function.
283         (display_lto_symtab): New function - displays the contents of an
284         LTo symbol table section.
285         (process_lto_symbol_tables): New functions.  Calls
286         dipslay_lto_symtab on any LTO symbol table section.
287         (process_object_file): Call process_lto_symbol_tables.
288         * doc/binutils.texi: Document the new option.
289         * NEWS: Mention the new feature.
291 2020-10-09  H.J. Lu  <hongjiu.lu@intel.com>
293         PR gas/26703
294         * readelf.c (decode_x86_compat_2_isa): New function.
295         (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
296         (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
297         (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
298         and X86_COMPAT_2_ISA_1_NEEDED.
299         * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
300         GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
301         values.
302         * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
303         * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
304         * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
305         * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
306         * testsuite/binutils-all/i386/empty.d: Updated.
307         * testsuite/binutils-all/i386/ibt.d: Likewise.
308         * testsuite/binutils-all/i386/pr21231a.d: Likewise.
309         * testsuite/binutils-all/i386/pr21231b.d: Likewise.
310         * testsuite/binutils-all/i386/shstk.d: Likewise.
311         * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
312         * testsuite/binutils-all/x86-64/empty.d: Likewise.
313         * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
314         * testsuite/binutils-all/x86-64/ibt.d: Likewise.
315         * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
316         * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
317         * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
318         * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
319         * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
320         * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
321         * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
322         * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
323         * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
324         * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
325         * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
326         * testsuite/binutils-all/x86-64/shstk.d: Likewise.
328 2020-10-06  Nick Clifton  <nickc@redhat.com>
330         * objcopy.c (copy_object): Compare input and output sections by
331         pointer rather than name.
333 2020-10-05  Nick Clifton  <nickc@redhat.com>
335         PR 26698
336         * windmc.c (mc_unify_path): Fix typo checking character at end of
337         pathname.
339 2020-10-05  Samanta Navarro  <ferivoz@riseup.net>
341         * doc/binutils.texi: Fix spelling mistakes.
343 2020-09-29  Mark Wielaard  <mark@klomp.org>
345         * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
346         DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
348 2020-09-25  Alan Modra  <amodra@gmail.com>
350         * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
351         more field sizes.
352         * readelf.c (target_specific_reloc_handling <MSP430>): Limit
353         allowed reloc_size.  Don't read_leb128 outside of section.
355 2020-09-23  Mark Wielaard  <mark@klomp.org>
357         * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
358         * testsuite/binutils-all/dw5.W: Adjust expected output.
359         * testsuite/binutils-all/dwarf-attributes.W: Likewise.
361 2020-09-23  Mark Wielaard  <mark@klomp.org>
363         * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
364         for dwarf_version 5 just as version 3 and 4 (only 2 is
365         different).
366         (process_debug_info): Allow DW_UT_partial.
368 2020-09-24  Nick Clifton  <nickc@redhat.com>
370         PR 26662
371         * doc/binutils.texi (nm): Document that 'c' is used for small
372         common symbols.
374 2020-09-21  Ludovic Courtès  <ludo@gnu.org>
376         * doc/binutils.texi (objcopy, strip): Say that
377         '--strip-unneeded' implies '--strip-debug'.
379 2020-09-16  Anatoly Parshintsev  <kupokupokupopo@gmail.com>
381        * verilog.c (verilog_write_address): Properly handle 64-bit
382         addresses to avoid truncation of the high part.
384 2020-09-16  Alan Modra  <amodra@gmail.com>
386         * nm.c (print_symbol): Adjust elf_symbol_from invocation.
387         * objcopy.c (is_hidden_symbol): Likewise.
389 2020-09-15  Nick Clifton  <nickc@redhat.com>
391         * README-how-to-make-a-release (https): Add a reminder to create a
392         new Bugzilla tag for the point release, once it has been published.
394 2020-09-11  H.J. Lu  <hongjiu.lu@intel.com>
396         * readelf.c (get_note_type): Support NT_X86_CET.
398 2020-09-11  Nick Clifton  <nickc@redhat.com>
400         PR 26595
401         * dwarf.c (load_separate_debug_info): Return NULL rather than
402         FALSE in error situations.
403         (load_separate_debug_file): Move code to load debug links to ...
404         (check_for_and_load_links): ... here.  New function.  Load
405         separate debug information pointed to by debuglink and
406         debugaltlink sections.  Recursively scan newly loaded debug
407         information for more links and load them too.
409 2020-09-09  Alan Modra  <amodra@gmail.com>
411         PR 26578
412         * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
413         (load_separate_debug_files): Use a stack var for build_id_data.
415 2020-09-08  H.J. Lu  <hongjiu.lu@intel.com>
417         PR ld/26587
418         * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
419         to ld on PE targets for PR 25662 test.
421 2020-09-08  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
422         Kuan-Lin Chen  <kuanlinchentw@gmail.com>
424         * readelf.c (target_specific_reloc_handling): Handle
425         R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
427 2020-09-02  Alan Modra  <amodra@gmail.com>
429         * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
431 2020-08-30  Alan Modra  <amodra@gmail.com>
433         * readelf.c (print_gnu_build_attribute_name): Use unsigned long
434         long for "bytes".
436 2020-08-28  Nick Clifton  <nickc@redhat.com>
438         PR 26548
439         * dwarf.c (read_leb128): When checking for overflow of a signed
440         read, use a signed shift.
442 2020-08-28  Cooper Qu  <cooper.qu@linux.alibaba.com>
444         * readelf.c (get_csky_section_type_name): New.
445         (get_section_type_name): Add handler for CSKY.
446         (display_csky_attribute): New.
447         (process_arch_specific): Add handler for CSKY.
448         * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
449         section.
451 2020-08-27  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
453         * readelf.c (get_msp430x_section_type_name): Rename to ...
454         (get_msp430_section_type_name): ... this.
455         (get_section_type_name): Use get_msp430_section_type_name.
456         (display_msp430x_attribute): Rename to ...
457         (display_msp430_attribute): ... this.
458         (process_arch_specific): Use display_msp430_attribute.
460 2020-08-27  John David Anglin  <danglin@gcc.gnu.org>
462         PR 26356
463         * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
464         "-j $PRIVATE$" to command on hppa*-*-hpux*.
465         * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
466         dollar-sign quotes before quoting.  Do this prior to generating log
467         output.
469 2020-08-27  Ralf Habacker  <ralf.habacker@freenet.de>
471         PR 26088
472         * mclex.c (skip_until_eol): If eol was found, increment line
473         number.
475 2020-08-27  Nick Alcock  <nick.alcock@oracle.com>
477         * objdump.c (dump_ctf_errs): Unquote CTF error messages.
478         * readelf.c (dump_ctf_errs): Likewise.
480 2020-08-27  Nick Alcock  <nick.alcock@oracle.com>
482         * objdump.c (dump_ctf_archive_member): Move error-
483         reporting...
484         (dump_ctf_errs): ... into this separate function.
485         (dump_ctf): Call it on open errors.
486         * readelf.c (dump_ctf_archive_member): Move error-
487         reporting...
488         (dump_ctf_errs): ... into this separate function.  Support
489         calls with NULL fp. Adjust for new err parameter to
490         ctf_errwarning_next.
491         (dump_section_as_ctf): Call it on open errors.
493 2020-08-27  Nick Alcock  <nick.alcock@oracle.com>
495         * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
496         * Makefile.in: Regenerated.
498 2020-08-26  Nick Clifton  <nickc@redhat.com>
500         PR 26405
501         * readelf.c (get_segment_type): Handle OpenBSD segment types.
503 2020-08-26  Alan Modra  <amodra@gmail.com>
505         PR 26412
506         * objcopy.c (copy_object): Don't fwrite NULL contents.
508 2020-08-26  Katayama Hirofumi  <katayama.hirofumi.mz@gmail.com>
510         PR 26340
511         * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
513 2020-08-24  Alan Modra  <amodra@gmail.com>
515         * readelf.c (dump_section_as_strings) Avoid false positive
516         "may be used uninitialised".
518 2020-08-22  H.J. Lu  <hongjiu.lu@intel.com>
520         PR ld/26382
521         * nm.c (print_symname): Display only one '@' for undefined
522         versioned symbols.
523         * doc/binutils.texi: Update nm version information.
525 2020-08-21  Mark Wielaard  <mark@klomp.org>
527         * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
528         recognize DW_LANG_C11.
530 2020-08-19  Alan Modra  <amodra@gmail.com>
532         PR 26349
533         * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
534         and info fields.
535         (dump_section_as_strings): Don't use %tx to display offset.
537 2020-08-14  Alan Modra  <amodra@gmail.com>
539         PR 26388
540         * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
541         of debug_information.  Correct test of max_loc_offsets and
542         max_range_lists.
543         * rddbg.c (read_debugging_info): Free dhandle on error.
545 2020-08-14  Alan Modra  <amodra@gmail.com>
547         * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
549 2020-08-13  Alan Modra  <amodra@gmail.com>
551         PR 26348
552         * objcopy.c (copy_object): Report file name with endian error.
553         Error and return on abfd->read_only.
555 2020-08-12  Tom Tromey  <tromey@adacore.com>
557         * dwarf-mode.el (Version): Now 1.6.
558         (dwarf-die-button-action): Tighten DIE reference regexp.
559         (dwarf-font-lock-keywords): Update name regexp.
561 2020-08-12  Nick Clifton  <nickc@redhat.com>
563         PR binutils/26331
564         * readelf.c (do_demangle): New option flag.
565         (print_symbol): If do_demangle is enabled, demangle the symbol.
566         (enum long_option_values): New enum to hold long option values.
567         (options): Add demangle, no-demangle, recursion-limit and
568         no-recursion-limit options.  Alpha sort the table.
569         (usage): Describe the new options.
570         (parse_args): Handle the new options.
571         * NEWS: Mention the new feature.
572         * doc/binutils.texi: Document the new feature.
573         * testsuite/binutils-all/readelf.exp: Test the new feature.
574         * testsuite/binutils-all/mangled.s: New file - assembler source.
575         * testsuite/binutils-all/readelf.demangled: New file - expected
576         output from readelf.
578 2020-08-12  Nick Clifton  <nickc@redhat.com>
580         * po/sr.po: Updated Serbian translation.
582 2020-08-10  H.J. Lu  <hongjiu.lu@intel.com>
584         PR binutils/26302
585         * nm.c (with_symbol_versions): Removed.
586         (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
587         (long_options): Update --with-symbol-versions entry.
588         (print_symbol): Remove the with_symbol_versions check.
589         (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
590         compatibility.
591         * doc/binutils.texi: Remove --with-symbol-versions.
593 2020-08-05  Alan Modra  <amodra@gmail.com>
595         PR 26337
596         * objdump.c (load_specific_debug_section): Revert last change.
598 2020-08-05  Alan Modra  <amodra@gmail.com>
600         PR 26337
601         * objdump.c (load_specific_debug_section): Don't malloc space for
602         section contents, use bfd_malloc_and_get_section.
604 2020-07-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
606         * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
607         * Makefile.in, doc/Makefile.in: Regenerate.
608         * configure: Regenerate.
610 2020-07-30  H.J. Lu  <hongjiu.lu@intel.com>
612         * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
613         to assembler.
614         * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
615         * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
616         * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
617         * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
618         * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
620 2020-07-29  Maciej W. Rozycki  <macro@linux-mips.org>
622         * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
623         New test.
624         * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
625         New test.
626         * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
627         New test.
628         * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
629         New test.
630         * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
631         New test.
632         * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
633         New test.
634         * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
635         New test.
636         * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
637         New test.
638         * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
639         New test.
640         * testsuite/binutils-all/mips/mips.exp: Run the new tests.
642 2020-07-29  Maciej W. Rozycki  <macro@linux-mips.org>
644         * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
645         test.
646         * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
647         test.
648         * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
649         test.
650         * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
651         test.
652         * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
653         test.
654         * testsuite/binutils-all/mips/mips.exp: Run the new tests.
656 2020-07-28  H.J. Lu  <hongjiu.lu@intel.com>
658         PR binutils/26301
659         * configure: Regenerated.
661 2020-07-28  H.J. Lu  <hongjiu.lu@intel.com>
663         PR binutils/26301
664         * configure: Regenerated.
666 2020-07-27  Alan Modra  <amodra@gmail.com>
668         * objdump.c (dump_section): Don't return without calling
669         process_section_p.
671 2020-07-27  H.J. Lu  <hongjiu.lu@intel.com>
673         * doc/binutils.texi: Replace preceeded with preceded.
675 2020-07-26  Maciej W. Rozycki  <macro@linux-mips.org>
677         * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
678         (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
679         procedures.
680         (has_newabi): Remove variable.
681         (has_abi, abi_asflags, abi_ldflags): New associative array
682         variables.
683         (irixemul): New variable.
684         Replace `run_dump_test' calls where applicable throughout with
685         `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
686         as appropriate.  Use `noarch' for tests that require their own
687         architecture setting.
688         * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
689         * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
690         * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
691         * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
692         * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
693         * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
694         * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
695         * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
696         * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
697         * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
698         * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
699         * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
700         * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
701         * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
702         GAS flags.
703         * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
704         * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
705         * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
706         * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
707         * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
708         * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
709         * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
711 2020-07-24  Aaron Merey  <amerey@redhat.com>
713         * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
714         * Makefile.in: Rebuild.
715         * configure: Rebuild.
716         * doc/Makefile.in: Rebuild.
718 2020-07-24  Nick Clifton  <nickc@redhat.com>
720         * README-how-to-make-a-release: Various small updates whilst
721         creating the 2.35 release.
723 2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
725         * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
726         option.
728 2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
730         * objdump.c (dump_ctf_archive_member): Remove linefeeds.
731         (dump_ctf): Likewise.
733 2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
735         * objdump.c (ctf_archive_member): Print CTF errors and warnings.
736         * readelf.c (dump_ctf_archive_member): Likewise.
738 2020-07-22  Nick Clifton  <nickc@redhat.com>
740         * readelf.c (parse_args): Silence potential warnings about a
741         memory resource leak when allocating space for ctf option values.
742         (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
743         variable.
745 2020-07-21  Nick Clifton  <nickc@redhat.com>
747         * po/sv.po: Updated Swedish translation.
749 2020-07-14  Claudiu Zissulescu  <claziss@gmail.com>
751         * testsuite/binutils-all/arc/double_regs.s: New test.
752         * testsuite/binutils-all/arc/objdump.exp: Add the above test.
754 2020-07-13  Nick Clifton  <nickc@redhat.com>
756         * po/fr.po: Updated French translation.
758 2020-07-13  Alan Modra  <amodra@gmail.com>
760         * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
761         optional machine-os arg.
763 2020-07-11  H.J. Lu  <hongjiu.lu@intel.com>
765         * readelf.c (decode_x86_feature_2): Handle
766         GNU_PROPERTY_X86_FEATURE_2_TMM.
768 2020-07-10  Tom de Vries  <tdevries@suse.de>
770         * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
771         information in the end_sequence row.
772         * testsuite/binutils-all/dw5.W: Update.
773         * testsuite/binutils-all/objdump.WL: Update.
775 2020-07-09  Alan Modra  <amodra@gmail.com>
777         * dlltool.c: Remove powerpc PE support and comments.
778         * configure.ac: Remove powerpc PE dlltool config.
779         * configure: Regenerate.
781 2020-07-09  Nick Clifton  <nickc@redhat.com>
783         * rclex.c: Add OWNERDRAW keyword.
784         * rcparse.y: Add OWNERDRAW token.
785         (menuitem_flag) Add BITMAP and OWNERDRAW entries.
786         * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
787         BITMAP flags.
788         * windres.c (extended_menuitems): Likewise.
789         * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
791 2020-07-09  Alan Modra  <amodra@gmail.com>
793         * readelf (slurp_hppa_unwind_table): Set table_len before use
794         in relocation sanity checks.
796 2020-07-07  Alan Modra  <amodra@gmail.com>
798         * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
799         * testsuite/binutils-all/nm.exp: Likewise.
800         * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
801         * testsuite/binutils-all/copy-3.d: Run only for elf targets.
802         * testsuite/binutils-all/set-section-alignment.d: Likewise.
803         * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
805 2020-07-07  Alan Modra  <amodra@gmail.com>
807         * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
808         * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
810 2020-07-06  Nick Clifton  <nickc@redhat.com>
812         * po/bg.po: Updated Bulgarian translation.
813         * po/pt.po: Updated Portuguese translation.
814         * po/uk.po: Updated Ukranian translation.
816 2020-07-06  Alan Modra  <amodra@gmail.com>
818         * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
819         find string length.
821 2020-07-04  Nick Clifton  <nickc@redhat.com>
823         * configure: Regenerate.
824         * po/binutils.pot: Regenerate.
826 2020-07-04  Nick Clifton  <nickc@redhat.com>
828         Binutils 2.35 branch created.
830 2020-07-02  Nick Clifton  <nickc@redhat.com>
832         PR 26028
833         * readelf.c (print_symbol): Handle truncation of symbol names.
834         (options): Add -T/--silent-truncation option.
835         (parse_args): Handle the option.
836         (print_dynamic_symbol): Correct calculation of width available to
837         display symbol name.
838         * doc/binutils.texi: Document the -T option to readelf.
839         * NEWS: Mention the new feature.
841 2020-06-30  H.J. Lu  <hongjiu.lu@intel.com>
843         * NEWS: Mention x86 NaCl target support removal.
844         * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
845         x86 NaCl target support.
846         * testsuite/binutils-all/elfedit-1.d: Likewise.
847         * testsuite/binutils-all/i386/i386.exp: Likewise.
848         * testsuite/binutils-all/x86-64/objects.exp: Likewise.
849         * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
850         * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
851         * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
852         * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
853         * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
854         * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
855         * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
856         * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
857         * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
858         * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
859         * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
861 2020-06-30  Nick Clifton  <nickc@redhat.com>
863         * dwarf.c (read_and_display_attr_value): Support
864         DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
865         DW_AT_comp_dir.
867 2020-06-30  Alan Modra  <amodra@gmail.com>
869         * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
870         xfail for nds32.
872 2020-06-29  Hans-Peter Nilsson  <hp@bitrange.com>
874         * dwarf.c (display_debug_str_offsets): Rename local variable
875         index to idx.  Move to top of function.
877 2020-06-29  Alan Modra  <amodra@gmail.com>
879         * dwarf.c: Use C style comments.
880         * resrc.c: Likewise.
882 2020-06-27  Alan Modra  <amodra@gmail.com>
884         * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
885         after freeing.
886         (release_archive): Set fields of arch to NULL after freeing.
888 2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
890         * readelf.c (dump_section_as_ctf): Support .ctf archives using
891         ctf_arc_bufopen.  Automatically load the .ctf member of such
892         archives as the parent of all other members, unless specifically
893         overridden via --ctf-parent.  Split out dumping code into...
894         (dump_ctf_archive_member): ... here, as in objdump, and call
895         it once per archive member.
896         (dump_ctf_indent_lines): Code style fix.
898 2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
900         * configure.ac [--enable-libctf]: New, default yes.
901         Set ENABLE_LIBCTF accordingly.
902         * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
903         * configure: Regenerate.
904         * config.in: Regenerate.
905         * Makefile.in: Regenerate.
906         * aclocal.m4: Regenerate.
907         * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
908         (option_values): Likewise.
909         (long_options): Likewise.
910         (main): Likewise.
911         (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
912         (make_ctfsect): Likewise.
913         (dump_ctf_archive_member): Likewise.
914         (dump_ctf) [ENABLE_LIBCTF]: Likewise.
915         (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
916         * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
917         (usage): Likewise.
918         (process_section_contents): Likewise.
919         (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
920         (dump_ctf_indent_lines): Likewise.
921         (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
923 2020-06-26  Jan Beulich  <jbeulich@suse.com>
925         * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
926         redundant text from x86 specific part of -M section.
928 2020-06-26  Pat Bernardi  <bernardi@adacore.com>
930         * readelf.c (display_m68k_gnu_attribute): New function.
931         (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
933 2020-06-23  H.J. Lu  <hongjiu.lu@intel.com>
935         PR binutils/26160
936         * testsuite/binutils-all/pr26160.dwp.bz2: New file.
937         * testsuite/binutils-all/pr26160.r: Likewise.
938         * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
940 2020-06-23  Nick Clifton  <nickc@redhat.com>
942         PR 26160
943         * dwarf.c (fetch_indexed_string): Detect and handle old style
944         .debug_str_offset tables.
945         (display_debug_str_offsets): Likewise.  Also add support for
946         .debug_str_offsets.dwo sections.
948 2020-06-23  H.J. Lu  <hongjiu.lu@intel.com>
950         PR binutils/26112
951         * testsuite/binutils-all/pr26112.o.bz2: New file.
952         * testsuite/binutils-all/pr26112.r: Likewise.
953         * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
955 2020-06-23  Alan Modra  <amodra@gmail.com>
957         * testsuite/binutils-all/objdump.exp (bintest.a): Correct
958         remote_file delete command.
960 2020-06-22  Nick Clifton  <nickc@redhat.com>
962         PR 26112
963         * dwarf.c (display_debug_str_offsets): Add code to display the
964         contents of the .debug_str_offsets section.
965         (display_debug_macro): Add support for DW_MACRO_define_strx and
966         DW_MACRO_undef_strx.
968 2020-06-22  Saagar Jha  <saagar@saagarjha.com>
970         * od-macho.c: Dump linkedit data for new load commands.
972 2020-06-19  Alan Modra  <amodra@gmail.com>
974         * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
975         * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
976         (run_dump_test): Use check_relro_support to decide whether to pass
977         extra ld option "-z norelro".
979 2020-06-11  Alan Modra  <amodra@gmail.com>
981         * readelf.c (process_mips_specific): Don't alloc memory for
982         Elf_Internal_Options.
984 2020-06-11  Alan Modra  <amodra@gmail.com>
986         * readelf.c (process_mips_specific): Assert size of internal
987         types match size of external types, and simplify allocation of
988         internal buffer.  Catch possible integer overflow when sanity
989         checking option size.  Don't assume options are a regular array.
990         Sanity check reginfo option against option size.  Use PRI macros
991         when printing.
993 2020-06-10  Ralf Habacker  <ralf.habacker@freenet.de>
995         PR 26082
996         * mclex.c (yylex): Reject lines that reach end-of-file without a
997         terminating newline character.
999 2020-06-08  Nick Clifton  <nickc@redhat.com>
1001         PR 26093
1002         * doc/binutils.texi (strings): Fix typo.
1004 2020-06-08  Nick Clifton  <nickc@redhat.com>
1006         PR 26086
1007         * dwarf.c (process_debug_info): Check that there is space in the
1008         debug_information array before filling in an entry.
1010 2020-06-06  Alan Modra  <amodra@gmail.com>
1012         * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
1014 2020-06-05  Joel Anderson  <joelanderson333@gmail.com>
1016         PR 26082
1017         * mclex.c (yylex): Add test for an empty input stream.
1019 2020-06-04  Stephen Casner  <casner@acm.org>
1021         * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
1022         for test using section pseudo-ops compatible with pdp11.
1023         * testsuite/binutils-all/objcopy.exp: Select alternate source.
1025 2020-06-04  Jose E. Marchesi  <jose.marchesi@oracle.com>
1027         * objdump.c (disassemble_data): Set disasm_info.endian_code to
1028         disasm_info.endian after the latter is initialized to the
1029         endianness reported by BFD.
1031 2020-06-04  Alan Modra  <amodra@gmail.com>
1033         * testsuite/binutils-all/i386/i386.exp: Remove global directive
1034         outside proc body.
1035         * testsuite/binutils-all/x86-64/objects.exp: Likewise.
1036         * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
1038 2020-06-03  Joel Anderson  <joelanderson333@gmail.com>
1040         * windmc.h (struct mc_node): Add id_typecast field.
1041         * mcparse.y (message): Initialise the id_typecast field.
1042         * windmc.c (write_dbg): Use the id_typecast field as a parameter
1043         when calling write_dbg_define.
1044         (write_header): Likewise.
1046 2020-06-03  Alan Modra  <amodra@gmail.com>
1048         PR 26069
1049         * objcopy.c (copy_relocations_in_section): Free relpp on error.
1050         Don't accidentally free isection->orelocation.
1052 2020-06-02  Alan Modra  <amodra@gmail.com>
1054         * testsuite/binutils-all/ar.exp (obj): Set up object file name
1055         extension.  Use throughout.  Don't completely exclude non-ELF
1056         alpha targets.  Run long_filenames test for tic30.  Exclude thin
1057         archive tests for aix, ecoff and vms.
1058         * estsuite/binutils-all/objdump.exp (obj): Set up object file name
1059         extension.  Use throughout.  Don't exclude non-ELF alpha targets
1060         from "bintest.a".
1062 2020-05-28  Max Filippov  <jcmvbkbc@gmail.com>
1064         * MAINTAINERS (Xtensa): Add myself as maintainer.
1066 2020-05-23  Alan Modra  <amodra@gmail.com>
1068         * testsuite/binutils-all/ar.exp (many_files): New test.
1070 2020-05-21  Alan Modra  <amodra@gmail.com>
1072         * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
1073         * dlltool.c: Likewise.
1074         * elfcomm.c: Likewise.
1075         * rddbg.c: Likewise.
1076         * readelf.c: Likewise.
1077         * stabs.c: Likewise.
1078         * windmc.c: Likewise.
1079         * windres.c: Likewise.
1080         * wrstabs.c: Likewise.
1082 2020-05-21  Alan Modra  <amodra@gmail.com>
1084         * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
1085         access.
1087 2020-05-20  Nelson Chu  <nelson.chu@sifive.com>
1089         * dwarf.c: Updated since DECLARE_CSR is changed.
1091 2020-05-19  H.J. Lu  <hjl.tools@gmail.com>
1093         PR binutils/25809
1094         * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
1095         segment doesn't match the .dynamic section and checks are
1096         enabled.
1097         (struct filedata): Add dynamic_symtab_section and
1098         dynamic_strtab_section fields.
1099         (process_section_headers): Set dynamic_symtab_section to the
1100         .dynsym section.  Set dynamic_strtab_section to the .dynstr
1101         section.
1102         (process_dynamic_section): Warn if the .dynsym section doesn't
1103         match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
1104         DT_STRTAB and DT_STRSZ.  But only if checks are enabled.
1106 2020-05-19  Alan Modra  <amodra@gmail.com>
1108         * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
1109         (replace_members): Use bfd_get_filename rather than accessing
1110         bfd->filename directly.
1111         * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
1112         * binemul.c (do_ar_emul_append): Likewise.
1113         * coffgrok.c (coff_grok): Likewise.
1115 2020-05-18  Stafford Horne  <shorne@gmail.com>
1117         * MAINTAINERS (OR1K): Add myself as maintainer.
1119 2020-05-07  Andrew Burgess  <andrew.burgess@embecosm.com>
1121         * doc/binutils.texi: Mention 'entry address' in the set-start and
1122         adjust-start options descriptions.
1124 2020-05-05  Nick Clifton  <nickc@redhat.com>
1126         * dwarf.c (do_checks): New global variable.
1127         (display_formatted_table): Warn about an unexpected number of
1128         columns in the table, if checks are enabled.  Do not complain
1129         about the lack of data following the number of entries in the
1130         table if the table is empty.
1131         (display_debug_lines_decoded): Only warn about an unexpected
1132         number of columns in a table if checks are enabled.
1133         * dwarf.h (do_checks): Add a prototype.
1134         * elfcomm.c (error): Remove weak attribute.
1135         (warn): Likewise.
1136         * readelf.c (do_checks): Delete.
1137         (warn): Delete.
1138         (process_section_headers): Only warn about empty sections if
1139         checks are enabled.
1141 2020-05-04  Fangrui Song   <maskray@google.com>
1143         * objcopy.c (copy_object): Allow empty section.
1144         * testsuite/binutils-all/update-section.exp: Add test.
1146 2020-05-04  Nick Clifton  <nickc@redhat.com>
1148         PR 25917
1149         * dwarf.c (display_debug_lines_decoded): Warn if encountering a
1150         supicious number of entries for DWARF-5 format directory and file
1151         name tables.  Do not display file name table header if the table
1152         is empty.  Do not allocate space for empty tables.
1154 2020-05-04  Alan Modra  <amodra@gmail.com>
1156         * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
1157         section.  Don't assume endian of host matches nds32 target.  Free
1158         buffer.
1160 2020-05-01  Alan Modra  <amodra@gmail.com>
1161             Haim Shimonovich  <Haim.Shimonovich@ceva-dsp.com>
1163         * objdump.c (disassemble_bytes): Don't scan for zeros when
1164         disassembling zeros.  Translate "resuming at file offset" message.
1165         Formatting.  Replace some signed variables with unsigned.
1167 2020-04-30  Alex Coplan  <alex.coplan@arm.com>
1169         * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
1170         disassembly.
1171         * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1173 2020-04-30  Nick Clifton  <nickc@redhat.com>
1175         * testsuite/lib/binutils-common.exp (check_pie_support): New
1176         proc.
1178 2020-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
1180         * dwarf.c (display_debug_ranges): Ignore duplicate entries in
1181         range_entries for the same offset.
1183 2020-04-29  Nick Clifton  <nickc@redhat.com>
1185         * readelf.c (warn): New function - like elfcomm.c version but only
1186         produces output if warnings are enabled.
1187         (struct options): Add --lint and --enable-checks.
1188         (usage): Add entry for --lint.
1189         (parse_args): Handle -L.  If checks are enabled but no dumps have
1190         been selected then enable all dumps.
1191         (process_section_headers): Replace long if-then-else sequence with
1192         a switch.  Add warning messages for empty SHT_REL, SHT_RELA and
1193         SHT_PROGBITS sections.
1194         (process_file): Do not complain if the file is an archive and lint
1195         mode has been enabled.
1196         * elfcomm.c (error): Make the function weak.
1197         (warn): Likewise.
1198         * NEWS: Mention the new feature.
1199         * doc/binutils.texi: Document the new feature.
1200         * dwarf.h (report_leb_status): Add file name and line number
1201         parameters.  Include them in the diagnostic output.
1202         (READ_ULEB): Pass file and line number to report_leb_status.
1203         (READ_SLEB): Likewise.
1204         * dwarf.c (read_and_print_leb128): Pass file and line number to
1205         report_leb_status.
1206         * testsuite/binutils-all/readelf.exp: Add test of new feature.
1207         * testsuite/binutils-all/zero-sec.s: New test source file.
1208         * testsuite/binutils-all/zero-sec.r: Expected output from new
1209         test.
1211 2020-04-29  Nick Clifton  <nickc@redhat.com>
1213         * po/sr.po: Updated Serbian translation.
1215 2020-04-26  Alan Modra  <amodra@gmail.com>
1217         * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1218         read before dereferencing, and gracefully return.  Remove
1219         gnu_hash_error variable.  Free gnu hash arrays if number of
1220         syms found is zero.
1222 2020-04-24  Alan Modra  <amodra@gmail.com>
1224         * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1225         non-zero.
1226         (process_dynamic_section): Call get_num_dynamic_syms once rather
1227         than in segment loop.  Break out of segment loop on a successful
1228         load of dynamic symbols.  Formatting.
1229         (process_object): Return error status from process_dynamic_section.
1231 2020-04-23  Anton Kolesov  <anton.kolesov@synopsys.com>
1233         * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1234         * elf.c (elfcore_grok_arc_v2): New function.
1235         (elfcore_grok_note): Call the new function to handle the corresponding
1236         note.
1237         (elfcore_write_arc_v2): New function.
1238         (elfcore_write_register_note): Call the new function to handle the
1239         corresponding pseudo-sections.
1241 2020-04-22  Max Filippov  <jcmvbkbc@gmail.com>
1243         PR ld/25861
1244         * readelf.c (is_none_reloc): Recognize
1245         BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1246         BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1248 2020-04-22  Nick Clifton  <nickc@redhat.com>
1250         * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1252 2020-04-22  Alan Modra  <amodra@gmail.com>
1254         * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1255         (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1256         (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1257         (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1258         (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1259         (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1260         (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1261         (dynamic_section, symtab_shndx_list, group_count, section_groups),
1262         (section_headers_groups): Move to struct filedata.  Update use
1263         throughout file.
1265 2020-04-22  Alan Modra  <amodra@gmail.com>
1267         * readelf.c (struct dump_data): New, used..
1268         (cmdline): ..here, and..
1269         (struct filedata): ..here.  Adjust all uses.
1270         (request_dump_bynumber, request_dump, parse_args): Pass in a
1271         struct dump_data* rather than Filedata*.  Adjust callers.
1272         (main): Don't set cmdline.file_name.
1274 2020-04-20  Alan Modra  <amodra@gmail.com>
1276         * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1277         and nbuckets.
1279 2020-04-20  Alan Modra  <amodra@gmail.com>
1281         * readelf.c (process_section_headers): Free dynamic symbols etc.
1282         earlier.
1284 2020-04-20  Alan Modra  <amodra@gmail.com>
1286         * readelf.c (get_num_dynamic_syms): Formatting.  Don't return
1287         on error without freeing.
1288         (process_dynamic_section): Don't recreate dynamic symbols from
1289         dynamic tag info when the dynamic symbols have already been
1290         read via section headers.
1292 2020-04-17  Fredrik Strupe  <fredrik@strupe.net>
1294         * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1295         conditional VDUP instructions are disassembled correctly.
1296         * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1297         vdup-cond.d.
1298         * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1299         that VDUP instructions (which are conditional in A32) can be
1300         disassembled in thumb mode.
1301         * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1302         vdup-thumb.d.
1304 2020-04-17  Alan Modra  <amodra@gmail.com>
1306         PR 25840
1307         * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1309 2020-04-16  Alan Modra  <amodra@gmail.com>
1311         * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1312         --no-addresses description.
1314 2020-04-15  Alan Modra  <amodra@gmail.com>
1316         * objdump.c (no_addresses): New static var.
1317         (usage): Print help for --no-addresses.
1318         (long_options): Add --no-addresses entry.
1319         (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1320         (disassemble_bytes): Don't print current line address, or reloc
1321         address.
1322         * doc/binutils.texi: Document objdump --no-addresses.
1324 2020-04-15  Alan Modra  <amodra@gmail.com>
1326         PR 25822
1327         * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1328         reading buckets or chains fails.
1330 2020-04-15  Alan Modra  <amodra@gmail.com>
1332         * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1333         etc. after freeing.
1335 2020-04-15  Alan Modra  <amodra@gmail.com>
1337         * readelf.c (get_group_flags): Translate text.
1338         (get_file_type, get_symbol_binding, get_symbol_type),
1339         (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1341 2020-04-15  Alan Modra  <amodra@gmail.com>
1343         PR 25821
1344         * readelf.c (get_num_dynamic_syms): Typo fix.
1346 2020-04-14  Alan Modra  <amodra@gmail.com>
1348         * readelf.c (process_mips_specific): Free eopt and iopt.  Avoid
1349         possibility of overflow when checking number of conflicts.
1351 2020-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1353         PR binutils/25707
1354         * readelf.c (nbuckets): New.
1355         (nchains): Likewise.
1356         (buckets): Likewise.
1357         (chains): Likewise.
1358         (ngnubuckets): Likewise.
1359         (gnubuckets): Likewise.
1360         (gnuchains): Likewise.
1361         (mipsxlat): Likewise.
1362         (ngnuchains): Likewise.
1363         (gnusymidx): Likewise.
1364         (VALID_SYMBOL_NAME): Likewise.
1365         (VALID_DYNAMIC_NAME): Use it.
1366         (get_dynamic_data): Moved before process_dynamic_section.
1367         (get_num_dynamic_syms): New function.
1368         (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1369         DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1370         table.  Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1371         table.
1372         (get_symbol_index_type): Don't print "bad section index" when
1373         there is no section header.
1374         (print_dynamic_symbol): Rewrite.
1375         (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1376         symbol table.
1378 2020-04-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1380         * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1381         enable on *-*-solaris*.
1383 2020-03-30  Nick Clifton  <nickc@redhat.com>
1385         PR binutils/25662
1386         * objcopy.c (copy_object): When copying PE format files set the
1387         timestamp field in the pe_data structure if the preserve_dates
1388         flag is set.
1389         * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1390         --preserve-dates in place of the -p option, in order to make its
1391         effect more obvious.
1393 2020-03-28  Alan Modra  <amodra@gmail.com>
1395         * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1396         clear_xfail hppa*-*-*elf*.  Revert mips xfails.
1398 2020-03-28  Alan Modra  <amodra@gmail.com>
1400         * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1401         from here to calls.  Remove "m8*-*-*" entry.  Don't xfail tic54x
1402         but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1403         test.  Pass "-p" to objcopy for the executable test.
1405 2020-03-27  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1407         PR binutils/25662
1408         * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1409         specify whether an object file or executable should be built and tested.
1410         Change test names to report whether an object file or executable is
1411         being tested.
1412         * testsuite/binutils-all/pr25662.ld: New test.
1413         * testsuite/binutils-all/pr25662.s: New test.
1415 2020-03-27  Alan Modra  <amodra@gmail.com>
1417         * readelf.c (process_archive): Don't double free qualified_name.
1418         Don't break out of loop with "negative" archive_file_size, just
1419         set file offset to max.
1421 2020-03-25  Alan Modra  <amodra@gmail.com>
1423         * readelf.c (process_archive): Prevent endless loop.
1425 2020-03-24  H.J. Lu  <hongjiu.lu@intel.com>
1427         PR binutils/25708
1428         * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1429         with bfd_get_symbol_version_string.
1430         (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1431         * objdump.c (objdump_print_symname): Likewise.
1433 2020-03-24  H.J. Lu  <hongjiu.lu@intel.com>
1435         PR binutils/25708
1436         * nm.c (SYM_NAME): Removed.
1437         (print_symname): Add a pointer to struct extended_symbol_info
1438         argument.  Call _bfd_elf_get_symbol_version_name to get symbol
1439         version.
1440         (print_symdef_entry): Pass NULL to print_symname.
1441         (print_symbol_info_bsd): Update call to print_symname.
1442         (print_symbol_info_sysv): Likewise.
1443         (print_symbol_info_posix): Likewise.
1445 2020-03-24  Alan Modra  <amodra@gmail.com>
1447         * readelf.c (process_mips_specific): Free iconf on error path.
1449 2020-03-23  Nick Clifton  <nickc@redhat.com>
1451         PR 25714
1452         * wrstabs.c (stab_pop_type): Replace assertion with error return.
1453         * write_stabs_in_sections_debugging_info: Likewise.
1454         * stab_enum_type: Likewise.
1455         * stab_modify_type: Likewise.
1456         * stab_struct_field: Likewise.
1457         * stab_end_struct_type: Likewise.
1458         * stab_start_class_type: Likewise.
1459         * stab_class_static_member: Likewise.
1460         * stab_class_baseclass: Likewise.
1461         * stab_class_start_method: Likewise.
1462         * stab_class_method_var: Likewise.
1463         * stab_class_end_method: Likewise.
1464         * stab_end_class_type: Likewise.
1465         * stab_typedef_type: Likewise.
1466         * stab_start_function: Likewise.
1467         * stab_end_block: Likewise.
1468         * stab_lineno: Likewise.
1470 2020-03-20  Nick Clifton  <nickc@redhat.com>
1472         * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1473         (process_section_headers): Check the return value from
1474         get_compression_header.
1475         (dump_section_as_strings): Likewise.
1476         (dump_section_as_bytes): Likewise.
1477         (load_specific_debug_section): Likewise.
1479 2020-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1481         * ar.c (main): Update bfd_plugin_set_program_name call.
1482         * nm.c (main): Likewise.
1484 2020-03-19  Nick Clifton  <nickc@redhat.com>
1486         PR 25676
1487         * testsuite/binutils-all/dw4.s: New test source file.
1488         * testsuite/binutils-all/nm.exp: Run the new test.
1490 2020-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1492         * readelf.c (process_symbol_table): Use unsigned long for si.
1494 2020-03-19  Alan Modra  <amodra@gmail.com>
1496         * elfcomm.c: Don't include bfd.h or bucomm.h.
1497         (program_name): Declare.
1498         (process_archive_index_and_symbols): Replace bfd_boolean with int,
1499         and substitute FALSE and TRUE.
1500         (setup_archive, setup_nested_archive): Likewise.
1501         * elfcomm.h: Likewise.
1503 2020-03-19  Alan Modra  <amodra@gmail.com>
1505         * readelf.c (process_archive): Always return via path freeing
1506         memory.  Formatting.
1508 2020-03-19  Alan Modra  <amodra@gmail.com>
1510         * readelf.c (process_netbsd_elf_note): Validate descsz before
1511         accessing descdata.  Formatting.
1513 2020-03-19  Alan Modra  <amodra@gmail.com>
1515         * elfcomm.c (setup_archive): Make file_size an off_t.  Comment.
1516         * elfcomm.h (setup_archive): Update prototype.
1518 2020-03-16  Alan Modra  <amodra@gmail.com>
1520         * readelf.c (get_symbols): New function.
1521         (process_relocs, ia64_process_unwind, hppa_process_unwind),
1522         (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1524 2020-03-16  Alan Modra  <amodra@gmail.com>
1526         * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1527         Detect shift overflows and check that terminating byte is found.
1528         Print an error on a bad uleb128.
1530 2020-03-14  Alan Modra  <amodra@gmail.com>
1532         * readelf.c (process_file): Clean ba_cache.
1534 2020-03-14  Alan Modra  <amodra@gmail.com>
1536         * elfcomm.h (setup_archive): Update prototype.
1537         * elfcomm.c (setup_archive): Add file_size parameter and sanity
1538         check longnames_size.
1539         (setup_nested_archive): Get file size and pass to setup_archive.
1540         * elfedit.c (process_archive): Likewise.
1541         * readelf.c (process_archive): Pass filedata->file_size to
1542         setup_archive.
1544 2020-03-14  Alan Modra  <amodra@gmail.com>
1546         * readelf.c (dump_section_as_strings): Free memory on error exit.
1547         (dump_section_as_bytes, process_notes_at): Likewise.
1548         (get_build_id): Free enote.
1550 2020-03-13  Kamil Rytarowski  <n54@gmx.com>
1552         * readelf.c (get_netbsd_elfcore_note_type): Add support for
1553         NT_NETBSDCORE_LWPSTATUS notes.
1555 2020-03-13  Alan Modra  <amodra@gmail.com>
1557         * elfcomm.c (get_archive_member_name): Always return malloc'd
1558         string or NULL.
1559         * elfedit.c (process_archive): Tidy memory on all return paths.
1560         * readelf.c (process_archive): Likewise.
1561         (process_symbol_table): Likewise.
1562         (ba_cache): New, replacing ..
1563         (get_symbol_for_build_attribute): ..static vars here.  Free
1564         strtab and symtab before loading new ones.  Reject symtab without
1565         valid strtab in loop, breaking out of loop on valid symtab.
1566         (process_file): Free ba_cache symtab and strtab here, resetting
1567         ba_cache.
1569 2020-03-12  Alan Modra  <amodra@gmail.com>
1571         * readelf.c (process_section_headers): Don't just set
1572         filedata->section_headers NULL, free it first.  Similarly for
1573         dynamic_symbols, dynamic_strings, dynamic_syminfo and
1574         symtab_shndx_list.  Zero associated counts too.
1575         (process_object): Free symtab_shndx_list.
1576         (process_file): Free various allocated filedata tables.
1578 2020-03-11  Nick Clifton  <nickc@redhat.com>
1580         PR 25611
1581         PR 25614
1582         * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1583         li_segment_size fields.
1584         * dwarf.c (read_debug_line_header): Record the address size and
1585         segment selector size values (if present) in the lineinfo
1586         structure.
1587         (display_formatted_table): Warn if the format count is empty but
1588         the table itself is not empty.
1589         Display the format count and entry count at the start of the table
1590         dump.
1591         (display_debug_lines_raw): Display the address size and segement
1592         selector size fields, if present.
1593         * testsuite/binutils-all/dw5.W: Update expected output.
1595 2020-03-11  Alan Modra  <amodra@gmail.com>
1597         PR 25651
1598         * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1599         pad_to_set on second block of code dealing with padding.
1600         Replace "c" with "num_sec" and don't recalculate number of
1601         sections on second block.  Size arrays using sizeof (element)
1602         rather than sizeof (element type).
1604 2020-03-10  Alan Modra  <amodra@gmail.com>
1606         * objdump.c (disassemble_section): Don't call qsort unless
1607         sym count is at least two.
1608         (disassemble_data): Don't call memcpy with NULL src.
1610 2020-03-09  Alan Modra  <amodra@gmail.com>
1612         PR 25645
1613         * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1614         to get_data rather than multiplying.
1615         (dump_ia64_vms_dynamic_relocs): Likewise.
1616         (process_version_sections): Correct order of size and nmemb args
1617         in get_data call.
1618         (process_mips_specific): Likewise.
1620 2020-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1622         * readelf.c (get_dynamic_data): Replace "memory chekers" with
1623         "memory checkers" in comments.
1625 2020-03-06  Simon Marchi  <simon.marchi@efficios.com>
1627         PR 25491
1628         * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1629         * doc/Makefile.in: Re-generate.
1631 2020-03-06  Nick Clifton  <nickc@redhat.com>
1633         * objcopy.c (check_new_section_flags): New function.  Reject the
1634         SEC_COFF_SHARED flag if the target is not a COFF binary.
1635         (copy_object): Call check_new_section_flags.
1636         (setup_section): Likewise.
1637         * doc/binutils.texi (objcopy): Add a note that the 'share' section
1638         flag cannot be applied to ELF binaries.
1640 2020-03-06  Alan Modra  <amodra@gmail.com>
1642         PR 25637
1643         * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1645 2020-03-05  Alan Modra  <amodra@gmail.com>
1647         PR 25629
1648         * objcopy.c (filter_symbols): Don't segfault on NULL
1649         prefix_symbols_string.
1651 2020-03-04  Christian Eggers  <ceggers@gmx.de>
1653         * objcopy.c (copy_object): Convert from bytes to octets for
1654         --gap-fill and --pad-to.
1656 2020-03-03  Nick Clifton  <nickc@redhat.com>
1658         PR 25625
1659         * prdbg.c (pr_tag_type): Remove call to abort.
1661 2020-03-02  Aaron Merey  <amerey@redhat.com>
1663         * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1664         selection.
1666 2020-03-02  Nick Clifton  <nickc@redhat.com>
1668         PR 25543
1669         * readelf.c (dump_section_as_strings): Display new-line characters
1670         as \n and then insert a line break.
1671         * testsuite/binutils-all/pr25543.s: New test.
1672         * testsuite/binutils-all/pr25543.d: Test driver.
1673         * testsuite/binutils-all/readelf.exp: Run the new test.
1675 2020-02-27  Nick Clifton  <nickc@redhat.com>
1677         PR 25526
1678         * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1679         get_data is unable to load the string table.
1681 2020-02-26  Alan Modra  <amodra@gmail.com>
1683         * elfedit.c: Indent labels correctly.
1684         * readelf.c: Likewise.
1685         * resres.c: Likewise.
1687 2020-02-25  H.J. Lu  <hongjiu.lu@intel.com>
1689         PR binutils/25584
1690         * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1691         * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1693 2020-02-24  Nick Clifton  <nickc@redhat.com>
1695         PR 25499
1696         * doc/binutils.texi (objdump): Fix typo in description of
1697         objdump's -g option.
1699 2020-02-20  Nelson Chu  <nelson.chu@sifive.com>
1701         * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1702         is changed.
1704 2020-02-19  Jordan Rupprecht  <rupprecht@google.com>
1706         * objdump.c (show_line): call bfd_demangle when using do_demangle.
1708 2020-02-19  Andrew Burgess  <andrew.burgess@embecosm.com>
1710         * configure: Regenerate.
1712 2020-02-10  Fangrui Song   <maskray@google.com>
1714         * objcopy.c (parse_flags): Handle "exclude".
1715         * doc/binutils.texi: Document the support.
1717 2020-02-10  Aaron Merey  <amerey@redhat.com>
1719         * binutils/testsuite/binutils-all/debuginfod.exp:
1720         Replace set ::env with setenv.
1721         Start server before setting environment variable.
1722         Specify tmpdir as the location of the server's
1723         database.
1724         Check additional server metrics at start-up.
1726 2020-02-07  Nick Clifton  <nickc@redhat.com>
1728         * README-how-to-make-a-release: Add note about updating the
1729         GAS/NEWS URL in the next release.
1731 2020-02-07  Sergey Belyashov  <sergey.belyashov@gmail.com>
1733         PR 25469
1734         * readelf.c (get_machine_flags): Add support for Z80N machine
1735         number.
1737 2020-02-07  Nick Clifton  <nickc@redhat.com>
1739         * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1740         of the truncated file name.
1742 2020-02-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1744         * objdump.c (print_jump_visualisation): New function.
1745         (disassemble_bytes): Call new function.
1747 2020-02-06  Alan Modra  <amodra@gmail.com>
1749         * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1750         TCL procedure.
1751         (supports_gnu_osabi): New procedure.
1752         (is_generic): New, from ld-lib.exp.
1753         (supports_gnu_unique): Use the above.
1755 2020-02-04  Alan Modra  <amodra@gmail.com>
1757         * Makefile.am (CFILES): Add od-elf32_avr.c.
1758         * Makefile.in: Regenerate.
1759         * po/POTFILES.in: Regenerate.
1761 2020-02-03  Andreas Schwab  <schwab@linux-m68k.org>
1763         * readelf.c (dump_relocations, dump_relocations)
1764         (decode_arm_unwind_bytecode, process_dynamic_section)
1765         (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1766         error message.
1768 2020-02-03  Sergei Trofimovich  <siarheit@google.com>
1770         * coffdump.c (program_name): Drop redundant definition.
1771         * srconv.c (program_name): Likewise
1772         * sysdump.c (program_name): Likewise
1774 2020-02-02  H.J. Lu  <hongjiu.lu@intel.com>
1776         PR gas/25380
1777         * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1778         same file with different section pointers.
1780 2020-02-01  Nick Clifton  <nickc@redhat.com>
1782         * README-how-to-make-a-release: Update with more details on the
1783         release making process.
1785 2020-01-31  Nick Clifton  <nickc@redhat.com>
1787         * po/sv.po: Updated Swedish translation.
1789 2020-01-28  Nick Clifton  <nickc@redhat.com>
1791         * readelf.c (get_build_id): Simplify warning message about corrupt
1792         notes encountered whilst scanning for the build-id.
1794 2020-01-27  Roland McGrath  <mcgrathr@google.com>
1796         * objcopy.c (compare_gnu_build_notes): Fix comparison results
1797         for overlapping ranges so that (A == B) == (B == A) holds.
1799 2020-01-27  Alan Modra  <amodra@gmail.com>
1801         * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1802         case statement with switch statement.
1804 2020-01-24  Nick Clifton  <nickc@redhat.com>
1806         * readelf.c (get_build_id): Fix warning messages about corrupt
1807         notes.
1809 2020-01-23  Nick Clifton  <nickc@redhat.com>
1811         * po/fr.po: Updated French translation.
1813 2020-01-22  Yuri Chornoivan  <yurchor@mageia.org>
1815         PR 25417
1816         * readelf.c (get_alpha_symbol_other): Fix error message typo.
1818 2020-01-20  Nick Clifton  <nickc@redhat.com>
1820         * po/pt.po: Updated Portuguese translation.
1821         * po/uk.po: Updated Ukranian translation.
1823 2020-01-18  Nick Clifton  <nickc@redhat.com>
1825         * README-how-to-make-a-release: Update notes on how to cut a
1826         branch for a release.
1828 2020-01-18  Nick Clifton  <nickc@redhat.com>
1830         * configure: Regenerate.
1831         * po/binutils.pot: Regenerate.
1833 2020-01-18  Nick Clifton  <nickc@redhat.com>
1835         Binutils 2.34 branch created.
1837 2020-01-17  Thomas Troeger  <tstroege@gmx.de>
1839         * objdump.c (jump_info_visualize_address): Discard jumps that are
1840         no longer needed.
1841         (disassemble_bytes): Only compute the maximum level if jumps were
1842         detected.
1844 2020-01-13  Nick Clifton  <nickc@redhat.com>
1846         * objdump.c (disassemble_bytes): Remove C99-ism.
1847         * testsuite/binutils-all/debuginfod.exp: New tests.
1849 2020-01-13  Thomas Troeger  <tstroege@gmx.de>
1851         * objdump.c (visualize_jumps, color_output, extended_color_output)
1852         (detected_jumps): New variables.
1853         (usage): Add the new jump visualization options.
1854         (option_values): Add new option value.
1855         (long_options): Add the new option.
1856         (jump_info_new, jump_info_free): New functions.
1857         (jump_info_min_address, jump_info_max_address): Likewise.
1858         (jump_info_end_address, jump_info_is_start_address): Likewise.
1859         (jump_info_is_end_address, jump_info_size): Likewise.
1860         (jump_info_unlink, jump_info_insert): Likewise.
1861         (jump_info_add_front, jump_info_move_linked): Likewise.
1862         (jump_info_intersect, jump_info_merge): Likewise.
1863         (jump_info_sort, jump_info_visualize_address): Likewise.
1864         (disassemble_jumps): New function - used to locate jumps.
1865         (disassemble_bytes): Add ascii art generation.
1866         (disassemble_section): Add scan to locate jumps.
1867         (main): Parse the new visualization option.
1868         * doc/binutils.texi: Document the new feature.
1869         * NEWS: Mention the new feature.
1871 2020-01-13  Alan Modra  <amodra@gmail.com>
1873         PR 25360
1874         PR 25361
1875         * dwarf.c (display_debug_frames): Move fde_fc earlier.  Free
1876         fde_fc col_type and col_offset.
1877         * readelf.c (apply_relocations): Move symsec check earlier.
1878         (free_debug_section): Free reloc_info.
1879         (process_notes_at): Free pnotes on error path.
1880         (process_object): Free dump_sects here..
1881         (process_archive): ..not here.
1883 2020-01-13  Alan Modra  <amodra@gmail.com>
1885         PR 25362
1886         * nm.c (display_rel_file): Free dyn_syms.
1888 2020-01-09  Nick Clifton  <nickc@redhat.com>
1890         PR 25220
1891         * objcopy.c (empty_name): New variable.
1892         (need_sym_before): Prevent an attempt to free a static variable.
1893         (filter_symbols): Avoid strcmp test by checking for pointer
1894         equality.
1896 2020-01-09  Nick Clifton  <nickc@redhat.com>
1898         * po/zh_TW.po: Updated Traditional Chinese translation.
1900 2020-01-09  Aaron Merey  <amerey@redhat.com>
1902         * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1903         * Makefile.in: Regenerate.
1904         * NEWS: Update.
1905         * config.in: Regenerate.
1906         * configure: Regenerate.
1907         * configure.ac: Call AC_DEBUGINFOD.
1908         * doc/Makefile.in: Regenerate.
1909         * doc/binutils.texi: Add section on using binutils
1910         with debuginfod.
1911         * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1912         Query debuginfod servers for the target debug file.
1913         (load_separate_debug_info): Call
1914         debuginfod_fetch_separate_debug_info if configured with
1915         debuginfod.
1916         (load_separate_debug_files): Add file argument to
1917         load_separate_debug_info calls.
1918         * dwarf.h (get_build_id): Add declaration.
1919         * objdump.c (get_build_id): New function. Get build-id of file.
1920         * readelf.c (get_build_id): Likewise.
1921         * testsuite/binutils-all/debuginfod.exp: New tests.
1922         * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1923         section.
1925 2020-01-02  Sergey Belyashov  <sergey.belyashov@gmail.com>
1927         * readelf.c: Add support for new Z*) relocations and machine
1928         types.
1930 2020-01-01  Alan Modra  <amodra@gmail.com>
1932         Update year range in copyright notice of all files.
1934 For older changes see ChangeLog-2019
1936 Copyright (C) 2020 Free Software Foundation, Inc.
1938 Copying and distribution of this file, with or without modification,
1939 are permitted in any medium without royalty provided the copyright
1940 notice and this notice are preserved.
1942 Local Variables:
1943 mode: change-log
1944 left-margin: 8
1945 fill-column: 74
1946 version-control: never
1947 End: