1 2020-11-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3 * NEWS: Announce SHF_GNU_RETAIN support.
4 * readelf.c (get_elf_section_flags): Handle SHF_GNU_RETAIN.
5 Recognize SHF_GNU_RETAIN and SHF_GNU_MBIND only for supported OSABIs.
6 * testsuite/binutils-all/readelf.exp: Run new tests.
7 Don't run run_dump_test when there isn't an assembler available.
8 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Adjust
10 * testsuite/binutils-all/readelf-maskos-1a.d: New test.
11 * testsuite/binutils-all/readelf-maskos-1b.d: New test.
12 * testsuite/binutils-all/readelf-maskos.s: New test.
13 * testsuite/binutils-all/retain1.s: New test.
14 * testsuite/binutils-all/retain1a.d: New test.
15 * testsuite/binutils-all/retain1b.d: New test.
17 2020-11-17 Howard Chu <hyc@symas.com>
19 * ar.c (main): Place the libdeps record in the second archive
22 2020-11-13 Nick Clifton <nickc@redhat.com>
25 * dwarf.c (struct dwo_info): Add cu_offset field.
26 (add_dwo_info): Add cu_offset parameter. Record in new dwo_info
28 (add_dwo_name): Add cu_offset field.
29 (add_dwo_dir): Add cu_offset field.
30 (add_dwo_id): Add cu_offset field.
31 (read_and_display_attr_value): Pass cu_offset to dwo recording
33 (load_separate_debug_files): Accumulate name, dir and id values
34 and display once for each CU.
35 * testsuite/binutils-all/dwo.sL Use a separate CU for the second
37 * testsuite/binutils-all/readelf.k2: Update expected output.
39 2020-11-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
41 * dwarf.c (display_debug_rnglists_list): Only bias the
42 DW_RLS_offset_pair with the base address.
44 2020-11-10 Nick Clifton <nickc@redhat.com>
46 * dwarf.c (skip_attr_bytes): Correctly handle DW_FORM_ref8.
47 (get_type_abbrev_from_form): Accept DW_FORM_ref8.
49 2020-11-09 Andreas Schwab <schwab@linux-m68k.org>
51 * Makefile.am (development.exp): Fix regexp.
52 * Makefile.in: Regenerate.
54 2020-11-09 Nick Clifton <nickc@redhat.com>
57 * dwarf.c (read_and_display_attr_value): In wide mode, display the
60 2020-11-09 Alan Modra <amodra@gmail.com>
62 * elfedit (usage): Avoid false positive "may be used uninitialised".
65 2020-11-09 Howard Chu <hyc@symas.com>
67 * ar.c (main): Use plugin_target rather than "target" when
68 resetting libdeps_bfd target.
70 2020-11-06 H.J. Lu <hongjiu.lu@intel.com>
72 * elfedit.c: Include "libiberty.h".
73 (usage): Update help message.
75 2020-11-03 Howard Chu <hyc@symas.com>
77 * ar.c (long_options): Add --record-libdeps.
78 (usage): Mention the new option.
79 (decode_options): Handle the new option.
80 (replace_members): If necessary, create a bfd to hold the libdeps
82 * binemul.c (ar_emul_append_bfd): New function.
83 (ar_emul_replace_bfd): New function.
84 (ar_emul_default_append): Replace file_name and target arguments
85 with new_bfd argument.
86 (ar_emul_default_replace): Likewise.
87 * binemul.h: Update prototypes.
88 (struct bin_emulation_xfer_struct): Update fields.
89 * doc/binutils.texi: Document the new option.
90 * NEWS: Mention the new feature.
91 * emul_aix.c (ar_emul_aix_append): Update.
92 (ar_emul_aix_replace): Likewise.
93 * testsuite/binutils-all/ar.exp: Add test of new feature.
95 2020-10-30 H.J. Lu <hongjiu.lu@intel.com>
98 * readelf.c (decode_x86_isa): Handle
99 * GNU_PROPERTY_X86_ISA_1_BASELINE.
100 * testsuite/binutils-all/i386/empty.d: Updated.
101 * testsuite/binutils-all/i386/ibt.d: Likewise.
102 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
103 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
104 * testsuite/binutils-all/i386/shstk.d: Likewise.
105 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
106 * testsuite/binutils-all/x86-64/empty.d: Likewise.
107 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
108 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
109 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
110 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
111 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
112 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
113 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
114 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
115 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
116 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
117 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
118 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
119 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
120 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
122 2020-10-29 H.J. Lu <hongjiu.lu@intel.com>
125 * dwarf.c (abbrev_list): Add abbrev_base.
126 (new_abbrev_list): Add an abbrev_base argument and record it.
127 (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
129 (process_debug_info): Pass abbrev_base to new_abbrev_list and
130 find_abbrev_list_by_abbrev_offset.
131 (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
132 and find_abbrev_list_by_abbrev_offset.
133 * testsuite/binutils-all/x86-64/pr26808.dump: New file.
134 * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
135 * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
138 2020-10-29 Nick Clifton <nickc@redhat.com>
141 * objcopy.c (is_dwo_section): Check for missing or short section
144 2020-10-26 Andreas Rammhold <andreas@rammhold.de>
146 * README-how-to-make-a-release: Use sha256sum instead of md5sum.
148 2020-10-28 Nick Clifton <nickc@redhat.com>
151 * elfedit.c (process_archive): Remove spurious call to free().
153 2020-10-27 Nick Clifton <nickc@redhat.com>
155 * dwarf.c (struct abbrev_list): New structure. Used to collect
156 lists of abbreviation sets.
157 (struct abbrev_map): New structure. Used to map CU offsets to
158 abbreviation offsets.
159 (record_abbrev_list): New function. A new entry to an
161 (free_all_abbrevs): Update to free abbreviation lists.
162 (new_abbrev_list): New function. Start a new abbreviation
164 (find_abbrev_list_by_abbrev_offset): New function.
165 (find_abbrev_map_by_offset): New function.
166 (add_abbrev): Add abbrev_list parameter.
167 (add_abbrev_attr): Likewise.
168 (process_abbrev_section): Rename to process_abbrev_set and add
170 (get_type_abbrev_from_form): New function. Attempts to decode the
171 forms used by DW_AT_type attributes.
172 (get_type_signedness): Display type names if operating in wide
173 mode. Use get_type_abbrev_from_form.
174 (read_and_display_attr_value): Use get_type_abbrev_from_form.
175 (process_debug_info): Pre-parse the CU headers to collate all the
176 abbrevs before starting the main scan.
177 (process_debug_abbrev): Do not free any loaded abbrevs.
178 (free_debug_memory): Free the abbrev maps.
180 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
182 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
183 error message on error.
185 2020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
187 * windmc.c (write_header_define): Fix printf format.
188 (write_header): Likewise.
190 2020-10-21 Nick Clifton <nickc@redhat.com>
192 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
193 when processing the DW_FORM_ref_addr form.
194 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
195 Handle DW_FORM_indirect.
196 (get_type_signedness): Allow a limited amount of recursion.
197 Do not attempt to decode types that use the DW_FORM_ref_addr form.
198 (read_and_display_attr_value): Do not attempt to decode types
199 that use the DW_FORM_ref_addr form.
201 2020-10-20 Alan Modra <amodra@gmail.com>
203 * readelf.c: Delete whitespace at end of line throughout.
204 (SECTION_NAME, SECTION_NAME_VALID): New.
205 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
206 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
207 (process_section_headers, process_section_groups): Likewise.
208 (shdr_to_ctf_sect): Likewise.
209 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
210 (ia64_process_unwind, hppa_process_unwind): Likewise.
211 (display_debug_section, initialise_dumps_byname): Likewise.
212 (process_lto_symbol_tables): Likewise. Check trailing period of
213 lto symbol table names.
214 (display_lto_symtab): Use sizeof instead of strlen.
216 2020-10-20 Nelson Chu <nelson.chu@sifive.com>
218 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
220 2020-10-19 Nick Clifton <nickc@redhat.com>
222 * readelf.c (do_lto_syms): New local.
223 (long_option_values): Add OPTION_LTO_SYMS.
224 (options): Add --lto-syms.
225 (usage): Mention the new option.
226 (parse_args): Parse the new option.
227 (get_lto_kind): New function.
228 (get_lto_visibility): New function.
229 (get_lto_sym_type): New function.
230 (display_lto_symtab): New function - displays the contents of an
231 LTo symbol table section.
232 (process_lto_symbol_tables): New functions. Calls
233 dipslay_lto_symtab on any LTO symbol table section.
234 (process_object_file): Call process_lto_symbol_tables.
235 * doc/binutils.texi: Document the new option.
236 * NEWS: Mention the new feature.
238 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
241 * readelf.c (decode_x86_compat_2_isa): New function.
242 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
243 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
244 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
245 and X86_COMPAT_2_ISA_1_NEEDED.
246 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
247 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
249 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
250 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
251 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
252 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
253 * testsuite/binutils-all/i386/empty.d: Updated.
254 * testsuite/binutils-all/i386/ibt.d: Likewise.
255 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
256 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
257 * testsuite/binutils-all/i386/shstk.d: Likewise.
258 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
259 * testsuite/binutils-all/x86-64/empty.d: Likewise.
260 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
261 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
262 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
263 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
264 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
265 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
266 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
267 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
268 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
269 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
270 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
271 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
272 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
273 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
275 2020-10-06 Nick Clifton <nickc@redhat.com>
277 * objcopy.c (copy_object): Compare input and output sections by
278 pointer rather than name.
280 2020-10-05 Nick Clifton <nickc@redhat.com>
283 * windmc.c (mc_unify_path): Fix typo checking character at end of
286 2020-10-05 Samanta Navarro <ferivoz@riseup.net>
288 * doc/binutils.texi: Fix spelling mistakes.
290 2020-09-29 Mark Wielaard <mark@klomp.org>
292 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
293 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
295 2020-09-25 Alan Modra <amodra@gmail.com>
297 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
299 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
300 allowed reloc_size. Don't read_leb128 outside of section.
302 2020-09-23 Mark Wielaard <mark@klomp.org>
304 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
305 * testsuite/binutils-all/dw5.W: Adjust expected output.
306 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
308 2020-09-23 Mark Wielaard <mark@klomp.org>
310 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
311 for dwarf_version 5 just as version 3 and 4 (only 2 is
313 (process_debug_info): Allow DW_UT_partial.
315 2020-09-24 Nick Clifton <nickc@redhat.com>
318 * doc/binutils.texi (nm): Document that 'c' is used for small
321 2020-09-21 Ludovic Courtès <ludo@gnu.org>
323 * doc/binutils.texi (objcopy, strip): Say that
324 '--strip-unneeded' implies '--strip-debug'.
326 2020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
328 * verilog.c (verilog_write_address): Properly handle 64-bit
329 addresses to avoid truncation of the high part.
331 2020-09-16 Alan Modra <amodra@gmail.com>
333 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
334 * objcopy.c (is_hidden_symbol): Likewise.
336 2020-09-15 Nick Clifton <nickc@redhat.com>
338 * README-how-to-make-a-release (https): Add a reminder to create a
339 new Bugzilla tag for the point release, once it has been published.
341 2020-09-11 H.J. Lu <hongjiu.lu@intel.com>
343 * readelf.c (get_note_type): Support NT_X86_CET.
345 2020-09-11 Nick Clifton <nickc@redhat.com>
348 * dwarf.c (load_separate_debug_info): Return NULL rather than
349 FALSE in error situations.
350 (load_separate_debug_file): Move code to load debug links to ...
351 (check_for_and_load_links): ... here. New function. Load
352 separate debug information pointed to by debuglink and
353 debugaltlink sections. Recursively scan newly loaded debug
354 information for more links and load them too.
356 2020-09-09 Alan Modra <amodra@gmail.com>
359 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
360 (load_separate_debug_files): Use a stack var for build_id_data.
362 2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
365 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
366 to ld on PE targets for PR 25662 test.
368 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
369 Kuan-Lin Chen <kuanlinchentw@gmail.com>
371 * readelf.c (target_specific_reloc_handling): Handle
372 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
374 2020-09-02 Alan Modra <amodra@gmail.com>
376 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
378 2020-08-30 Alan Modra <amodra@gmail.com>
380 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
383 2020-08-28 Nick Clifton <nickc@redhat.com>
386 * dwarf.c (read_leb128): When checking for overflow of a signed
387 read, use a signed shift.
389 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
391 * readelf.c (get_csky_section_type_name): New.
392 (get_section_type_name): Add handler for CSKY.
393 (display_csky_attribute): New.
394 (process_arch_specific): Add handler for CSKY.
395 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
398 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
400 * readelf.c (get_msp430x_section_type_name): Rename to ...
401 (get_msp430_section_type_name): ... this.
402 (get_section_type_name): Use get_msp430_section_type_name.
403 (display_msp430x_attribute): Rename to ...
404 (display_msp430_attribute): ... this.
405 (process_arch_specific): Use display_msp430_attribute.
407 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
410 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
411 "-j $PRIVATE$" to command on hppa*-*-hpux*.
412 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
413 dollar-sign quotes before quoting. Do this prior to generating log
416 2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
419 * mclex.c (skip_until_eol): If eol was found, increment line
422 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
424 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
425 * readelf.c (dump_ctf_errs): Likewise.
427 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
429 * objdump.c (dump_ctf_archive_member): Move error-
431 (dump_ctf_errs): ... into this separate function.
432 (dump_ctf): Call it on open errors.
433 * readelf.c (dump_ctf_archive_member): Move error-
435 (dump_ctf_errs): ... into this separate function. Support
436 calls with NULL fp. Adjust for new err parameter to
438 (dump_section_as_ctf): Call it on open errors.
440 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
442 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
443 * Makefile.in: Regenerated.
445 2020-08-26 Nick Clifton <nickc@redhat.com>
448 * readelf.c (get_segment_type): Handle OpenBSD segment types.
450 2020-08-26 Alan Modra <amodra@gmail.com>
453 * objcopy.c (copy_object): Don't fwrite NULL contents.
455 2020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
458 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
460 2020-08-24 Alan Modra <amodra@gmail.com>
462 * readelf.c (dump_section_as_strings) Avoid false positive
463 "may be used uninitialised".
465 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
468 * nm.c (print_symname): Display only one '@' for undefined
470 * doc/binutils.texi: Update nm version information.
472 2020-08-21 Mark Wielaard <mark@klomp.org>
474 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
475 recognize DW_LANG_C11.
477 2020-08-19 Alan Modra <amodra@gmail.com>
480 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
482 (dump_section_as_strings): Don't use %tx to display offset.
484 2020-08-14 Alan Modra <amodra@gmail.com>
487 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
488 of debug_information. Correct test of max_loc_offsets and
490 * rddbg.c (read_debugging_info): Free dhandle on error.
492 2020-08-14 Alan Modra <amodra@gmail.com>
494 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
496 2020-08-13 Alan Modra <amodra@gmail.com>
499 * objcopy.c (copy_object): Report file name with endian error.
500 Error and return on abfd->read_only.
502 2020-08-12 Tom Tromey <tromey@adacore.com>
504 * dwarf-mode.el (Version): Now 1.6.
505 (dwarf-die-button-action): Tighten DIE reference regexp.
506 (dwarf-font-lock-keywords): Update name regexp.
508 2020-08-12 Nick Clifton <nickc@redhat.com>
511 * readelf.c (do_demangle): New option flag.
512 (print_symbol): If do_demangle is enabled, demangle the symbol.
513 (enum long_option_values): New enum to hold long option values.
514 (options): Add demangle, no-demangle, recursion-limit and
515 no-recursion-limit options. Alpha sort the table.
516 (usage): Describe the new options.
517 (parse_args): Handle the new options.
518 * NEWS: Mention the new feature.
519 * doc/binutils.texi: Document the new feature.
520 * testsuite/binutils-all/readelf.exp: Test the new feature.
521 * testsuite/binutils-all/mangled.s: New file - assembler source.
522 * testsuite/binutils-all/readelf.demangled: New file - expected
525 2020-08-12 Nick Clifton <nickc@redhat.com>
527 * po/sr.po: Updated Serbian translation.
529 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
532 * nm.c (with_symbol_versions): Removed.
533 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
534 (long_options): Update --with-symbol-versions entry.
535 (print_symbol): Remove the with_symbol_versions check.
536 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
538 * doc/binutils.texi: Remove --with-symbol-versions.
540 2020-08-05 Alan Modra <amodra@gmail.com>
543 * objdump.c (load_specific_debug_section): Revert last change.
545 2020-08-05 Alan Modra <amodra@gmail.com>
548 * objdump.c (load_specific_debug_section): Don't malloc space for
549 section contents, use bfd_malloc_and_get_section.
551 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
553 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
554 * Makefile.in, doc/Makefile.in: Regenerate.
555 * configure: Regenerate.
557 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
559 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
561 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
562 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
563 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
564 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
565 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
567 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
569 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
571 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
573 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
575 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
577 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
579 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
581 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
583 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
585 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
587 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
589 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
591 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
593 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
595 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
597 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
599 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
601 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
603 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
606 * configure: Regenerated.
608 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
611 * configure: Regenerated.
613 2020-07-27 Alan Modra <amodra@gmail.com>
615 * objdump.c (dump_section): Don't return without calling
618 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
620 * doc/binutils.texi: Replace preceeded with preceded.
622 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
624 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
625 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
627 (has_newabi): Remove variable.
628 (has_abi, abi_asflags, abi_ldflags): New associative array
630 (irixemul): New variable.
631 Replace `run_dump_test' calls where applicable throughout with
632 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
633 as appropriate. Use `noarch' for tests that require their own
634 architecture setting.
635 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
636 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
637 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
638 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
639 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
640 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
641 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
642 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
643 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
644 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
645 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
646 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
647 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
648 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
650 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
651 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
652 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
653 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
654 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
655 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
656 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
658 2020-07-24 Aaron Merey <amerey@redhat.com>
660 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
661 * Makefile.in: Rebuild.
662 * configure: Rebuild.
663 * doc/Makefile.in: Rebuild.
665 2020-07-24 Nick Clifton <nickc@redhat.com>
667 * README-how-to-make-a-release: Various small updates whilst
668 creating the 2.35 release.
670 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
672 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
675 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
677 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
678 (dump_ctf): Likewise.
680 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
682 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
683 * readelf.c (dump_ctf_archive_member): Likewise.
685 2020-07-22 Nick Clifton <nickc@redhat.com>
687 * readelf.c (parse_args): Silence potential warnings about a
688 memory resource leak when allocating space for ctf option values.
689 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
692 2020-07-21 Nick Clifton <nickc@redhat.com>
694 * po/sv.po: Updated Swedish translation.
696 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
698 * testsuite/binutils-all/arc/double_regs.s: New test.
699 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
701 2020-07-13 Nick Clifton <nickc@redhat.com>
703 * po/fr.po: Updated French translation.
705 2020-07-13 Alan Modra <amodra@gmail.com>
707 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
708 optional machine-os arg.
710 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
712 * readelf.c (decode_x86_feature_2): Handle
713 GNU_PROPERTY_X86_FEATURE_2_TMM.
715 2020-07-10 Tom de Vries <tdevries@suse.de>
717 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
718 information in the end_sequence row.
719 * testsuite/binutils-all/dw5.W: Update.
720 * testsuite/binutils-all/objdump.WL: Update.
722 2020-07-09 Alan Modra <amodra@gmail.com>
724 * dlltool.c: Remove powerpc PE support and comments.
725 * configure.ac: Remove powerpc PE dlltool config.
726 * configure: Regenerate.
728 2020-07-09 Nick Clifton <nickc@redhat.com>
730 * rclex.c: Add OWNERDRAW keyword.
731 * rcparse.y: Add OWNERDRAW token.
732 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
733 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
735 * windres.c (extended_menuitems): Likewise.
736 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
738 2020-07-09 Alan Modra <amodra@gmail.com>
740 * readelf (slurp_hppa_unwind_table): Set table_len before use
741 in relocation sanity checks.
743 2020-07-07 Alan Modra <amodra@gmail.com>
745 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
746 * testsuite/binutils-all/nm.exp: Likewise.
747 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
748 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
749 * testsuite/binutils-all/set-section-alignment.d: Likewise.
750 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
752 2020-07-07 Alan Modra <amodra@gmail.com>
754 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
755 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
757 2020-07-06 Nick Clifton <nickc@redhat.com>
759 * po/bg.po: Updated Bulgarian translation.
760 * po/pt.po: Updated Portuguese translation.
761 * po/uk.po: Updated Ukranian translation.
763 2020-07-06 Alan Modra <amodra@gmail.com>
765 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
768 2020-07-04 Nick Clifton <nickc@redhat.com>
770 * configure: Regenerate.
771 * po/binutils.pot: Regenerate.
773 2020-07-04 Nick Clifton <nickc@redhat.com>
775 Binutils 2.35 branch created.
777 2020-07-02 Nick Clifton <nickc@redhat.com>
780 * readelf.c (print_symbol): Handle truncation of symbol names.
781 (options): Add -T/--silent-truncation option.
782 (parse_args): Handle the option.
783 (print_dynamic_symbol): Correct calculation of width available to
785 * doc/binutils.texi: Document the -T option to readelf.
786 * NEWS: Mention the new feature.
788 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
790 * NEWS: Mention x86 NaCl target support removal.
791 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
792 x86 NaCl target support.
793 * testsuite/binutils-all/elfedit-1.d: Likewise.
794 * testsuite/binutils-all/i386/i386.exp: Likewise.
795 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
796 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
797 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
798 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
799 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
800 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
801 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
802 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
803 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
804 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
805 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
806 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
808 2020-06-30 Nick Clifton <nickc@redhat.com>
810 * dwarf.c (read_and_display_attr_value): Support
811 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
814 2020-06-30 Alan Modra <amodra@gmail.com>
816 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
819 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
821 * dwarf.c (display_debug_str_offsets): Rename local variable
822 index to idx. Move to top of function.
824 2020-06-29 Alan Modra <amodra@gmail.com>
826 * dwarf.c: Use C style comments.
829 2020-06-27 Alan Modra <amodra@gmail.com>
831 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
833 (release_archive): Set fields of arch to NULL after freeing.
835 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
837 * readelf.c (dump_section_as_ctf): Support .ctf archives using
838 ctf_arc_bufopen. Automatically load the .ctf member of such
839 archives as the parent of all other members, unless specifically
840 overridden via --ctf-parent. Split out dumping code into...
841 (dump_ctf_archive_member): ... here, as in objdump, and call
842 it once per archive member.
843 (dump_ctf_indent_lines): Code style fix.
845 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
847 * configure.ac [--enable-libctf]: New, default yes.
848 Set ENABLE_LIBCTF accordingly.
849 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
850 * configure: Regenerate.
851 * config.in: Regenerate.
852 * Makefile.in: Regenerate.
853 * aclocal.m4: Regenerate.
854 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
855 (option_values): Likewise.
856 (long_options): Likewise.
858 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
859 (make_ctfsect): Likewise.
860 (dump_ctf_archive_member): Likewise.
861 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
862 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
863 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
865 (process_section_contents): Likewise.
866 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
867 (dump_ctf_indent_lines): Likewise.
868 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
870 2020-06-26 Jan Beulich <jbeulich@suse.com>
872 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
873 redundant text from x86 specific part of -M section.
875 2020-06-26 Pat Bernardi <bernardi@adacore.com>
877 * readelf.c (display_m68k_gnu_attribute): New function.
878 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
880 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
883 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
884 * testsuite/binutils-all/pr26160.r: Likewise.
885 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
887 2020-06-23 Nick Clifton <nickc@redhat.com>
890 * dwarf.c (fetch_indexed_string): Detect and handle old style
891 .debug_str_offset tables.
892 (display_debug_str_offsets): Likewise. Also add support for
893 .debug_str_offsets.dwo sections.
895 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
898 * testsuite/binutils-all/pr26112.o.bz2: New file.
899 * testsuite/binutils-all/pr26112.r: Likewise.
900 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
902 2020-06-23 Alan Modra <amodra@gmail.com>
904 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
905 remote_file delete command.
907 2020-06-22 Nick Clifton <nickc@redhat.com>
910 * dwarf.c (display_debug_str_offsets): Add code to display the
911 contents of the .debug_str_offsets section.
912 (display_debug_macro): Add support for DW_MACRO_define_strx and
915 2020-06-22 Saagar Jha <saagar@saagarjha.com>
917 * od-macho.c: Dump linkedit data for new load commands.
919 2020-06-19 Alan Modra <amodra@gmail.com>
921 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
922 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
923 (run_dump_test): Use check_relro_support to decide whether to pass
924 extra ld option "-z norelro".
926 2020-06-11 Alan Modra <amodra@gmail.com>
928 * readelf.c (process_mips_specific): Don't alloc memory for
929 Elf_Internal_Options.
931 2020-06-11 Alan Modra <amodra@gmail.com>
933 * readelf.c (process_mips_specific): Assert size of internal
934 types match size of external types, and simplify allocation of
935 internal buffer. Catch possible integer overflow when sanity
936 checking option size. Don't assume options are a regular array.
937 Sanity check reginfo option against option size. Use PRI macros
940 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
943 * mclex.c (yylex): Reject lines that reach end-of-file without a
944 terminating newline character.
946 2020-06-08 Nick Clifton <nickc@redhat.com>
949 * doc/binutils.texi (strings): Fix typo.
951 2020-06-08 Nick Clifton <nickc@redhat.com>
954 * dwarf.c (process_debug_info): Check that there is space in the
955 debug_information array before filling in an entry.
957 2020-06-06 Alan Modra <amodra@gmail.com>
959 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
961 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
964 * mclex.c (yylex): Add test for an empty input stream.
966 2020-06-04 Stephen Casner <casner@acm.org>
968 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
969 for test using section pseudo-ops compatible with pdp11.
970 * testsuite/binutils-all/objcopy.exp: Select alternate source.
972 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
974 * objdump.c (disassemble_data): Set disasm_info.endian_code to
975 disasm_info.endian after the latter is initialized to the
976 endianness reported by BFD.
978 2020-06-04 Alan Modra <amodra@gmail.com>
980 * testsuite/binutils-all/i386/i386.exp: Remove global directive
982 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
983 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
985 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
987 * windmc.h (struct mc_node): Add id_typecast field.
988 * mcparse.y (message): Initialise the id_typecast field.
989 * windmc.c (write_dbg): Use the id_typecast field as a parameter
990 when calling write_dbg_define.
991 (write_header): Likewise.
993 2020-06-03 Alan Modra <amodra@gmail.com>
996 * objcopy.c (copy_relocations_in_section): Free relpp on error.
997 Don't accidentally free isection->orelocation.
999 2020-06-02 Alan Modra <amodra@gmail.com>
1001 * testsuite/binutils-all/ar.exp (obj): Set up object file name
1002 extension. Use throughout. Don't completely exclude non-ELF
1003 alpha targets. Run long_filenames test for tic30. Exclude thin
1004 archive tests for aix, ecoff and vms.
1005 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
1006 extension. Use throughout. Don't exclude non-ELF alpha targets
1009 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
1011 * MAINTAINERS (Xtensa): Add myself as maintainer.
1013 2020-05-23 Alan Modra <amodra@gmail.com>
1015 * testsuite/binutils-all/ar.exp (many_files): New test.
1017 2020-05-21 Alan Modra <amodra@gmail.com>
1019 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
1020 * dlltool.c: Likewise.
1021 * elfcomm.c: Likewise.
1022 * rddbg.c: Likewise.
1023 * readelf.c: Likewise.
1024 * stabs.c: Likewise.
1025 * windmc.c: Likewise.
1026 * windres.c: Likewise.
1027 * wrstabs.c: Likewise.
1029 2020-05-21 Alan Modra <amodra@gmail.com>
1031 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
1034 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
1036 * dwarf.c: Updated since DECLARE_CSR is changed.
1038 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
1041 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
1042 segment doesn't match the .dynamic section and checks are
1044 (struct filedata): Add dynamic_symtab_section and
1045 dynamic_strtab_section fields.
1046 (process_section_headers): Set dynamic_symtab_section to the
1047 .dynsym section. Set dynamic_strtab_section to the .dynstr
1049 (process_dynamic_section): Warn if the .dynsym section doesn't
1050 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
1051 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
1053 2020-05-19 Alan Modra <amodra@gmail.com>
1055 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
1056 (replace_members): Use bfd_get_filename rather than accessing
1057 bfd->filename directly.
1058 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
1059 * binemul.c (do_ar_emul_append): Likewise.
1060 * coffgrok.c (coff_grok): Likewise.
1062 2020-05-18 Stafford Horne <shorne@gmail.com>
1064 * MAINTAINERS (OR1K): Add myself as maintainer.
1066 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1068 * doc/binutils.texi: Mention 'entry address' in the set-start and
1069 adjust-start options descriptions.
1071 2020-05-05 Nick Clifton <nickc@redhat.com>
1073 * dwarf.c (do_checks): New global variable.
1074 (display_formatted_table): Warn about an unexpected number of
1075 columns in the table, if checks are enabled. Do not complain
1076 about the lack of data following the number of entries in the
1077 table if the table is empty.
1078 (display_debug_lines_decoded): Only warn about an unexpected
1079 number of columns in a table if checks are enabled.
1080 * dwarf.h (do_checks): Add a prototype.
1081 * elfcomm.c (error): Remove weak attribute.
1083 * readelf.c (do_checks): Delete.
1085 (process_section_headers): Only warn about empty sections if
1088 2020-05-04 Fangrui Song <maskray@google.com>
1090 * objcopy.c (copy_object): Allow empty section.
1091 * testsuite/binutils-all/update-section.exp: Add test.
1093 2020-05-04 Nick Clifton <nickc@redhat.com>
1096 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
1097 supicious number of entries for DWARF-5 format directory and file
1098 name tables. Do not display file name table header if the table
1099 is empty. Do not allocate space for empty tables.
1101 2020-05-04 Alan Modra <amodra@gmail.com>
1103 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
1104 section. Don't assume endian of host matches nds32 target. Free
1107 2020-05-01 Alan Modra <amodra@gmail.com>
1108 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
1110 * objdump.c (disassemble_bytes): Don't scan for zeros when
1111 disassembling zeros. Translate "resuming at file offset" message.
1112 Formatting. Replace some signed variables with unsigned.
1114 2020-04-30 Alex Coplan <alex.coplan@arm.com>
1116 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
1118 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1120 2020-04-30 Nick Clifton <nickc@redhat.com>
1122 * testsuite/lib/binutils-common.exp (check_pie_support): New
1125 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1127 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
1128 range_entries for the same offset.
1130 2020-04-29 Nick Clifton <nickc@redhat.com>
1132 * readelf.c (warn): New function - like elfcomm.c version but only
1133 produces output if warnings are enabled.
1134 (struct options): Add --lint and --enable-checks.
1135 (usage): Add entry for --lint.
1136 (parse_args): Handle -L. If checks are enabled but no dumps have
1137 been selected then enable all dumps.
1138 (process_section_headers): Replace long if-then-else sequence with
1139 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
1140 SHT_PROGBITS sections.
1141 (process_file): Do not complain if the file is an archive and lint
1142 mode has been enabled.
1143 * elfcomm.c (error): Make the function weak.
1145 * NEWS: Mention the new feature.
1146 * doc/binutils.texi: Document the new feature.
1147 * dwarf.h (report_leb_status): Add file name and line number
1148 parameters. Include them in the diagnostic output.
1149 (READ_ULEB): Pass file and line number to report_leb_status.
1150 (READ_SLEB): Likewise.
1151 * dwarf.c (read_and_print_leb128): Pass file and line number to
1153 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1154 * testsuite/binutils-all/zero-sec.s: New test source file.
1155 * testsuite/binutils-all/zero-sec.r: Expected output from new
1158 2020-04-29 Nick Clifton <nickc@redhat.com>
1160 * po/sr.po: Updated Serbian translation.
1162 2020-04-26 Alan Modra <amodra@gmail.com>
1164 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1165 read before dereferencing, and gracefully return. Remove
1166 gnu_hash_error variable. Free gnu hash arrays if number of
1169 2020-04-24 Alan Modra <amodra@gmail.com>
1171 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1173 (process_dynamic_section): Call get_num_dynamic_syms once rather
1174 than in segment loop. Break out of segment loop on a successful
1175 load of dynamic symbols. Formatting.
1176 (process_object): Return error status from process_dynamic_section.
1178 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1180 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1181 * elf.c (elfcore_grok_arc_v2): New function.
1182 (elfcore_grok_note): Call the new function to handle the corresponding
1184 (elfcore_write_arc_v2): New function.
1185 (elfcore_write_register_note): Call the new function to handle the
1186 corresponding pseudo-sections.
1188 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1191 * readelf.c (is_none_reloc): Recognize
1192 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1193 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1195 2020-04-22 Nick Clifton <nickc@redhat.com>
1197 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1199 2020-04-22 Alan Modra <amodra@gmail.com>
1201 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1202 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1203 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1204 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1205 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1206 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1207 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1208 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1209 (section_headers_groups): Move to struct filedata. Update use
1212 2020-04-22 Alan Modra <amodra@gmail.com>
1214 * readelf.c (struct dump_data): New, used..
1215 (cmdline): ..here, and..
1216 (struct filedata): ..here. Adjust all uses.
1217 (request_dump_bynumber, request_dump, parse_args): Pass in a
1218 struct dump_data* rather than Filedata*. Adjust callers.
1219 (main): Don't set cmdline.file_name.
1221 2020-04-20 Alan Modra <amodra@gmail.com>
1223 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1226 2020-04-20 Alan Modra <amodra@gmail.com>
1228 * readelf.c (process_section_headers): Free dynamic symbols etc.
1231 2020-04-20 Alan Modra <amodra@gmail.com>
1233 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1234 on error without freeing.
1235 (process_dynamic_section): Don't recreate dynamic symbols from
1236 dynamic tag info when the dynamic symbols have already been
1237 read via section headers.
1239 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
1241 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1242 conditional VDUP instructions are disassembled correctly.
1243 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1245 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1246 that VDUP instructions (which are conditional in A32) can be
1247 disassembled in thumb mode.
1248 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1251 2020-04-17 Alan Modra <amodra@gmail.com>
1254 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1256 2020-04-16 Alan Modra <amodra@gmail.com>
1258 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1259 --no-addresses description.
1261 2020-04-15 Alan Modra <amodra@gmail.com>
1263 * objdump.c (no_addresses): New static var.
1264 (usage): Print help for --no-addresses.
1265 (long_options): Add --no-addresses entry.
1266 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1267 (disassemble_bytes): Don't print current line address, or reloc
1269 * doc/binutils.texi: Document objdump --no-addresses.
1271 2020-04-15 Alan Modra <amodra@gmail.com>
1274 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1275 reading buckets or chains fails.
1277 2020-04-15 Alan Modra <amodra@gmail.com>
1279 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1282 2020-04-15 Alan Modra <amodra@gmail.com>
1284 * readelf.c (get_group_flags): Translate text.
1285 (get_file_type, get_symbol_binding, get_symbol_type),
1286 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1288 2020-04-15 Alan Modra <amodra@gmail.com>
1291 * readelf.c (get_num_dynamic_syms): Typo fix.
1293 2020-04-14 Alan Modra <amodra@gmail.com>
1295 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1296 possibility of overflow when checking number of conflicts.
1298 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1301 * readelf.c (nbuckets): New.
1302 (nchains): Likewise.
1303 (buckets): Likewise.
1305 (ngnubuckets): Likewise.
1306 (gnubuckets): Likewise.
1307 (gnuchains): Likewise.
1308 (mipsxlat): Likewise.
1309 (ngnuchains): Likewise.
1310 (gnusymidx): Likewise.
1311 (VALID_SYMBOL_NAME): Likewise.
1312 (VALID_DYNAMIC_NAME): Use it.
1313 (get_dynamic_data): Moved before process_dynamic_section.
1314 (get_num_dynamic_syms): New function.
1315 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1316 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1317 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1319 (get_symbol_index_type): Don't print "bad section index" when
1320 there is no section header.
1321 (print_dynamic_symbol): Rewrite.
1322 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1325 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1327 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1328 enable on *-*-solaris*.
1330 2020-03-30 Nick Clifton <nickc@redhat.com>
1333 * objcopy.c (copy_object): When copying PE format files set the
1334 timestamp field in the pe_data structure if the preserve_dates
1336 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1337 --preserve-dates in place of the -p option, in order to make its
1338 effect more obvious.
1340 2020-03-28 Alan Modra <amodra@gmail.com>
1342 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1343 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1345 2020-03-28 Alan Modra <amodra@gmail.com>
1347 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1348 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1349 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1350 test. Pass "-p" to objcopy for the executable test.
1352 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1355 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1356 specify whether an object file or executable should be built and tested.
1357 Change test names to report whether an object file or executable is
1359 * testsuite/binutils-all/pr25662.ld: New test.
1360 * testsuite/binutils-all/pr25662.s: New test.
1362 2020-03-27 Alan Modra <amodra@gmail.com>
1364 * readelf.c (process_archive): Don't double free qualified_name.
1365 Don't break out of loop with "negative" archive_file_size, just
1366 set file offset to max.
1368 2020-03-25 Alan Modra <amodra@gmail.com>
1370 * readelf.c (process_archive): Prevent endless loop.
1372 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1375 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1376 with bfd_get_symbol_version_string.
1377 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1378 * objdump.c (objdump_print_symname): Likewise.
1380 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1383 * nm.c (SYM_NAME): Removed.
1384 (print_symname): Add a pointer to struct extended_symbol_info
1385 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1387 (print_symdef_entry): Pass NULL to print_symname.
1388 (print_symbol_info_bsd): Update call to print_symname.
1389 (print_symbol_info_sysv): Likewise.
1390 (print_symbol_info_posix): Likewise.
1392 2020-03-24 Alan Modra <amodra@gmail.com>
1394 * readelf.c (process_mips_specific): Free iconf on error path.
1396 2020-03-23 Nick Clifton <nickc@redhat.com>
1399 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1400 * write_stabs_in_sections_debugging_info: Likewise.
1401 * stab_enum_type: Likewise.
1402 * stab_modify_type: Likewise.
1403 * stab_struct_field: Likewise.
1404 * stab_end_struct_type: Likewise.
1405 * stab_start_class_type: Likewise.
1406 * stab_class_static_member: Likewise.
1407 * stab_class_baseclass: Likewise.
1408 * stab_class_start_method: Likewise.
1409 * stab_class_method_var: Likewise.
1410 * stab_class_end_method: Likewise.
1411 * stab_end_class_type: Likewise.
1412 * stab_typedef_type: Likewise.
1413 * stab_start_function: Likewise.
1414 * stab_end_block: Likewise.
1415 * stab_lineno: Likewise.
1417 2020-03-20 Nick Clifton <nickc@redhat.com>
1419 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1420 (process_section_headers): Check the return value from
1421 get_compression_header.
1422 (dump_section_as_strings): Likewise.
1423 (dump_section_as_bytes): Likewise.
1424 (load_specific_debug_section): Likewise.
1426 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1428 * ar.c (main): Update bfd_plugin_set_program_name call.
1429 * nm.c (main): Likewise.
1431 2020-03-19 Nick Clifton <nickc@redhat.com>
1434 * testsuite/binutils-all/dw4.s: New test source file.
1435 * testsuite/binutils-all/nm.exp: Run the new test.
1437 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1439 * readelf.c (process_symbol_table): Use unsigned long for si.
1441 2020-03-19 Alan Modra <amodra@gmail.com>
1443 * elfcomm.c: Don't include bfd.h or bucomm.h.
1444 (program_name): Declare.
1445 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1446 and substitute FALSE and TRUE.
1447 (setup_archive, setup_nested_archive): Likewise.
1448 * elfcomm.h: Likewise.
1450 2020-03-19 Alan Modra <amodra@gmail.com>
1452 * readelf.c (process_archive): Always return via path freeing
1455 2020-03-19 Alan Modra <amodra@gmail.com>
1457 * readelf.c (process_netbsd_elf_note): Validate descsz before
1458 accessing descdata. Formatting.
1460 2020-03-19 Alan Modra <amodra@gmail.com>
1462 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1463 * elfcomm.h (setup_archive): Update prototype.
1465 2020-03-16 Alan Modra <amodra@gmail.com>
1467 * readelf.c (get_symbols): New function.
1468 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1469 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1471 2020-03-16 Alan Modra <amodra@gmail.com>
1473 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1474 Detect shift overflows and check that terminating byte is found.
1475 Print an error on a bad uleb128.
1477 2020-03-14 Alan Modra <amodra@gmail.com>
1479 * readelf.c (process_file): Clean ba_cache.
1481 2020-03-14 Alan Modra <amodra@gmail.com>
1483 * elfcomm.h (setup_archive): Update prototype.
1484 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1485 check longnames_size.
1486 (setup_nested_archive): Get file size and pass to setup_archive.
1487 * elfedit.c (process_archive): Likewise.
1488 * readelf.c (process_archive): Pass filedata->file_size to
1491 2020-03-14 Alan Modra <amodra@gmail.com>
1493 * readelf.c (dump_section_as_strings): Free memory on error exit.
1494 (dump_section_as_bytes, process_notes_at): Likewise.
1495 (get_build_id): Free enote.
1497 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1499 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1500 NT_NETBSDCORE_LWPSTATUS notes.
1502 2020-03-13 Alan Modra <amodra@gmail.com>
1504 * elfcomm.c (get_archive_member_name): Always return malloc'd
1506 * elfedit.c (process_archive): Tidy memory on all return paths.
1507 * readelf.c (process_archive): Likewise.
1508 (process_symbol_table): Likewise.
1509 (ba_cache): New, replacing ..
1510 (get_symbol_for_build_attribute): ..static vars here. Free
1511 strtab and symtab before loading new ones. Reject symtab without
1512 valid strtab in loop, breaking out of loop on valid symtab.
1513 (process_file): Free ba_cache symtab and strtab here, resetting
1516 2020-03-12 Alan Modra <amodra@gmail.com>
1518 * readelf.c (process_section_headers): Don't just set
1519 filedata->section_headers NULL, free it first. Similarly for
1520 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1521 symtab_shndx_list. Zero associated counts too.
1522 (process_object): Free symtab_shndx_list.
1523 (process_file): Free various allocated filedata tables.
1525 2020-03-11 Nick Clifton <nickc@redhat.com>
1529 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1530 li_segment_size fields.
1531 * dwarf.c (read_debug_line_header): Record the address size and
1532 segment selector size values (if present) in the lineinfo
1534 (display_formatted_table): Warn if the format count is empty but
1535 the table itself is not empty.
1536 Display the format count and entry count at the start of the table
1538 (display_debug_lines_raw): Display the address size and segement
1539 selector size fields, if present.
1540 * testsuite/binutils-all/dw5.W: Update expected output.
1542 2020-03-11 Alan Modra <amodra@gmail.com>
1545 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1546 pad_to_set on second block of code dealing with padding.
1547 Replace "c" with "num_sec" and don't recalculate number of
1548 sections on second block. Size arrays using sizeof (element)
1549 rather than sizeof (element type).
1551 2020-03-10 Alan Modra <amodra@gmail.com>
1553 * objdump.c (disassemble_section): Don't call qsort unless
1554 sym count is at least two.
1555 (disassemble_data): Don't call memcpy with NULL src.
1557 2020-03-09 Alan Modra <amodra@gmail.com>
1560 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1561 to get_data rather than multiplying.
1562 (dump_ia64_vms_dynamic_relocs): Likewise.
1563 (process_version_sections): Correct order of size and nmemb args
1565 (process_mips_specific): Likewise.
1567 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1569 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1570 "memory checkers" in comments.
1572 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1575 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1576 * doc/Makefile.in: Re-generate.
1578 2020-03-06 Nick Clifton <nickc@redhat.com>
1580 * objcopy.c (check_new_section_flags): New function. Reject the
1581 SEC_COFF_SHARED flag if the target is not a COFF binary.
1582 (copy_object): Call check_new_section_flags.
1583 (setup_section): Likewise.
1584 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1585 flag cannot be applied to ELF binaries.
1587 2020-03-06 Alan Modra <amodra@gmail.com>
1590 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1592 2020-03-05 Alan Modra <amodra@gmail.com>
1595 * objcopy.c (filter_symbols): Don't segfault on NULL
1596 prefix_symbols_string.
1598 2020-03-04 Christian Eggers <ceggers@gmx.de>
1600 * objcopy.c (copy_object): Convert from bytes to octets for
1601 --gap-fill and --pad-to.
1603 2020-03-03 Nick Clifton <nickc@redhat.com>
1606 * prdbg.c (pr_tag_type): Remove call to abort.
1608 2020-03-02 Aaron Merey <amerey@redhat.com>
1610 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1613 2020-03-02 Nick Clifton <nickc@redhat.com>
1616 * readelf.c (dump_section_as_strings): Display new-line characters
1617 as \n and then insert a line break.
1618 * testsuite/binutils-all/pr25543.s: New test.
1619 * testsuite/binutils-all/pr25543.d: Test driver.
1620 * testsuite/binutils-all/readelf.exp: Run the new test.
1622 2020-02-27 Nick Clifton <nickc@redhat.com>
1625 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1626 get_data is unable to load the string table.
1628 2020-02-26 Alan Modra <amodra@gmail.com>
1630 * elfedit.c: Indent labels correctly.
1631 * readelf.c: Likewise.
1632 * resres.c: Likewise.
1634 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1637 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1638 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1640 2020-02-24 Nick Clifton <nickc@redhat.com>
1643 * doc/binutils.texi (objdump): Fix typo in description of
1644 objdump's -g option.
1646 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1648 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1651 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1653 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1655 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1657 * configure: Regenerate.
1659 2020-02-10 Fangrui Song <maskray@google.com>
1661 * objcopy.c (parse_flags): Handle "exclude".
1662 * doc/binutils.texi: Document the support.
1664 2020-02-10 Aaron Merey <amerey@redhat.com>
1666 * binutils/testsuite/binutils-all/debuginfod.exp:
1667 Replace set ::env with setenv.
1668 Start server before setting environment variable.
1669 Specify tmpdir as the location of the server's
1671 Check additional server metrics at start-up.
1673 2020-02-07 Nick Clifton <nickc@redhat.com>
1675 * README-how-to-make-a-release: Add note about updating the
1676 GAS/NEWS URL in the next release.
1678 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1681 * readelf.c (get_machine_flags): Add support for Z80N machine
1684 2020-02-07 Nick Clifton <nickc@redhat.com>
1686 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1687 of the truncated file name.
1689 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1691 * objdump.c (print_jump_visualisation): New function.
1692 (disassemble_bytes): Call new function.
1694 2020-02-06 Alan Modra <amodra@gmail.com>
1696 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1698 (supports_gnu_osabi): New procedure.
1699 (is_generic): New, from ld-lib.exp.
1700 (supports_gnu_unique): Use the above.
1702 2020-02-04 Alan Modra <amodra@gmail.com>
1704 * Makefile.am (CFILES): Add od-elf32_avr.c.
1705 * Makefile.in: Regenerate.
1706 * po/POTFILES.in: Regenerate.
1708 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1710 * readelf.c (dump_relocations, dump_relocations)
1711 (decode_arm_unwind_bytecode, process_dynamic_section)
1712 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1715 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1717 * coffdump.c (program_name): Drop redundant definition.
1718 * srconv.c (program_name): Likewise
1719 * sysdump.c (program_name): Likewise
1721 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1724 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1725 same file with different section pointers.
1727 2020-02-01 Nick Clifton <nickc@redhat.com>
1729 * README-how-to-make-a-release: Update with more details on the
1730 release making process.
1732 2020-01-31 Nick Clifton <nickc@redhat.com>
1734 * po/sv.po: Updated Swedish translation.
1736 2020-01-28 Nick Clifton <nickc@redhat.com>
1738 * readelf.c (get_build_id): Simplify warning message about corrupt
1739 notes encountered whilst scanning for the build-id.
1741 2020-01-27 Roland McGrath <mcgrathr@google.com>
1743 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1744 for overlapping ranges so that (A == B) == (B == A) holds.
1746 2020-01-27 Alan Modra <amodra@gmail.com>
1748 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1749 case statement with switch statement.
1751 2020-01-24 Nick Clifton <nickc@redhat.com>
1753 * readelf.c (get_build_id): Fix warning messages about corrupt
1756 2020-01-23 Nick Clifton <nickc@redhat.com>
1758 * po/fr.po: Updated French translation.
1760 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1763 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1765 2020-01-20 Nick Clifton <nickc@redhat.com>
1767 * po/pt.po: Updated Portuguese translation.
1768 * po/uk.po: Updated Ukranian translation.
1770 2020-01-18 Nick Clifton <nickc@redhat.com>
1772 * README-how-to-make-a-release: Update notes on how to cut a
1773 branch for a release.
1775 2020-01-18 Nick Clifton <nickc@redhat.com>
1777 * configure: Regenerate.
1778 * po/binutils.pot: Regenerate.
1780 2020-01-18 Nick Clifton <nickc@redhat.com>
1782 Binutils 2.34 branch created.
1784 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1786 * objdump.c (jump_info_visualize_address): Discard jumps that are
1788 (disassemble_bytes): Only compute the maximum level if jumps were
1791 2020-01-13 Nick Clifton <nickc@redhat.com>
1793 * objdump.c (disassemble_bytes): Remove C99-ism.
1794 * testsuite/binutils-all/debuginfod.exp: New tests.
1796 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1798 * objdump.c (visualize_jumps, color_output, extended_color_output)
1799 (detected_jumps): New variables.
1800 (usage): Add the new jump visualization options.
1801 (option_values): Add new option value.
1802 (long_options): Add the new option.
1803 (jump_info_new, jump_info_free): New functions.
1804 (jump_info_min_address, jump_info_max_address): Likewise.
1805 (jump_info_end_address, jump_info_is_start_address): Likewise.
1806 (jump_info_is_end_address, jump_info_size): Likewise.
1807 (jump_info_unlink, jump_info_insert): Likewise.
1808 (jump_info_add_front, jump_info_move_linked): Likewise.
1809 (jump_info_intersect, jump_info_merge): Likewise.
1810 (jump_info_sort, jump_info_visualize_address): Likewise.
1811 (disassemble_jumps): New function - used to locate jumps.
1812 (disassemble_bytes): Add ascii art generation.
1813 (disassemble_section): Add scan to locate jumps.
1814 (main): Parse the new visualization option.
1815 * doc/binutils.texi: Document the new feature.
1816 * NEWS: Mention the new feature.
1818 2020-01-13 Alan Modra <amodra@gmail.com>
1822 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1823 fde_fc col_type and col_offset.
1824 * readelf.c (apply_relocations): Move symsec check earlier.
1825 (free_debug_section): Free reloc_info.
1826 (process_notes_at): Free pnotes on error path.
1827 (process_object): Free dump_sects here..
1828 (process_archive): ..not here.
1830 2020-01-13 Alan Modra <amodra@gmail.com>
1833 * nm.c (display_rel_file): Free dyn_syms.
1835 2020-01-09 Nick Clifton <nickc@redhat.com>
1838 * objcopy.c (empty_name): New variable.
1839 (need_sym_before): Prevent an attempt to free a static variable.
1840 (filter_symbols): Avoid strcmp test by checking for pointer
1843 2020-01-09 Nick Clifton <nickc@redhat.com>
1845 * po/zh_TW.po: Updated Traditional Chinese translation.
1847 2020-01-09 Aaron Merey <amerey@redhat.com>
1849 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1850 * Makefile.in: Regenerate.
1852 * config.in: Regenerate.
1853 * configure: Regenerate.
1854 * configure.ac: Call AC_DEBUGINFOD.
1855 * doc/Makefile.in: Regenerate.
1856 * doc/binutils.texi: Add section on using binutils
1858 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1859 Query debuginfod servers for the target debug file.
1860 (load_separate_debug_info): Call
1861 debuginfod_fetch_separate_debug_info if configured with
1863 (load_separate_debug_files): Add file argument to
1864 load_separate_debug_info calls.
1865 * dwarf.h (get_build_id): Add declaration.
1866 * objdump.c (get_build_id): New function. Get build-id of file.
1867 * readelf.c (get_build_id): Likewise.
1868 * testsuite/binutils-all/debuginfod.exp: New tests.
1869 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1872 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1874 * readelf.c: Add support for new Z*) relocations and machine
1877 2020-01-01 Alan Modra <amodra@gmail.com>
1879 Update year range in copyright notice of all files.
1881 For older changes see ChangeLog-2019
1883 Copyright (C) 2020 Free Software Foundation, Inc.
1885 Copying and distribution of this file, with or without modification,
1886 are permitted in any medium without royalty provided the copyright
1887 notice and this notice are preserved.
1893 version-control: never