1 2020-10-30 H.J. Lu <hongjiu.lu@intel.com>
4 * readelf.c (decode_x86_isa): Handle
5 * GNU_PROPERTY_X86_ISA_1_BASELINE.
6 * testsuite/binutils-all/i386/empty.d: Updated.
7 * testsuite/binutils-all/i386/ibt.d: Likewise.
8 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
9 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
10 * testsuite/binutils-all/i386/shstk.d: Likewise.
11 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
12 * testsuite/binutils-all/x86-64/empty.d: Likewise.
13 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
14 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
15 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
16 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
17 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
18 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
19 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
20 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
21 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
22 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
23 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
24 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
25 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
26 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
28 2020-10-29 H.J. Lu <hongjiu.lu@intel.com>
31 * dwarf.c (abbrev_list): Add abbrev_base.
32 (new_abbrev_list): Add an abbrev_base argument and record it.
33 (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
35 (process_debug_info): Pass abbrev_base to new_abbrev_list and
36 find_abbrev_list_by_abbrev_offset.
37 (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
38 and find_abbrev_list_by_abbrev_offset.
39 * testsuite/binutils-all/x86-64/pr26808.dump: New file.
40 * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
41 * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
44 2020-10-29 Nick Clifton <nickc@redhat.com>
47 * objcopy.c (is_dwo_section): Check for missing or short section
50 2020-10-26 Andreas Rammhold <andreas@rammhold.de>
52 * README-how-to-make-a-release: Use sha256sum instead of md5sum.
54 2020-10-28 Nick Clifton <nickc@redhat.com>
57 * elfedit.c (process_archive): Remove spurious call to free().
59 2020-10-27 Nick Clifton <nickc@redhat.com>
61 * dwarf.c (struct abbrev_list): New structure. Used to collect
62 lists of abbreviation sets.
63 (struct abbrev_map): New structure. Used to map CU offsets to
65 (record_abbrev_list): New function. A new entry to an
67 (free_all_abbrevs): Update to free abbreviation lists.
68 (new_abbrev_list): New function. Start a new abbreviation
70 (find_abbrev_list_by_abbrev_offset): New function.
71 (find_abbrev_map_by_offset): New function.
72 (add_abbrev): Add abbrev_list parameter.
73 (add_abbrev_attr): Likewise.
74 (process_abbrev_section): Rename to process_abbrev_set and add
76 (get_type_abbrev_from_form): New function. Attempts to decode the
77 forms used by DW_AT_type attributes.
78 (get_type_signedness): Display type names if operating in wide
79 mode. Use get_type_abbrev_from_form.
80 (read_and_display_attr_value): Use get_type_abbrev_from_form.
81 (process_debug_info): Pre-parse the CU headers to collate all the
82 abbrevs before starting the main scan.
83 (process_debug_abbrev): Do not free any loaded abbrevs.
84 (free_debug_memory): Free the abbrev maps.
86 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
88 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
89 error message on error.
91 2020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
93 * windmc.c (write_header_define): Fix printf format.
94 (write_header): Likewise.
96 2020-10-21 Nick Clifton <nickc@redhat.com>
98 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
99 when processing the DW_FORM_ref_addr form.
100 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
101 Handle DW_FORM_indirect.
102 (get_type_signedness): Allow a limited amount of recursion.
103 Do not attempt to decode types that use the DW_FORM_ref_addr form.
104 (read_and_display_attr_value): Do not attempt to decode types
105 that use the DW_FORM_ref_addr form.
107 2020-10-20 Alan Modra <amodra@gmail.com>
109 * readelf.c: Delete whitespace at end of line throughout.
110 (SECTION_NAME, SECTION_NAME_VALID): New.
111 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
112 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
113 (process_section_headers, process_section_groups): Likewise.
114 (shdr_to_ctf_sect): Likewise.
115 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
116 (ia64_process_unwind, hppa_process_unwind): Likewise.
117 (display_debug_section, initialise_dumps_byname): Likewise.
118 (process_lto_symbol_tables): Likewise. Check trailing period of
119 lto symbol table names.
120 (display_lto_symtab): Use sizeof instead of strlen.
122 2020-10-20 Nelson Chu <nelson.chu@sifive.com>
124 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
126 2020-10-19 Nick Clifton <nickc@redhat.com>
128 * readelf.c (do_lto_syms): New local.
129 (long_option_values): Add OPTION_LTO_SYMS.
130 (options): Add --lto-syms.
131 (usage): Mention the new option.
132 (parse_args): Parse the new option.
133 (get_lto_kind): New function.
134 (get_lto_visibility): New function.
135 (get_lto_sym_type): New function.
136 (display_lto_symtab): New function - displays the contents of an
137 LTo symbol table section.
138 (process_lto_symbol_tables): New functions. Calls
139 dipslay_lto_symtab on any LTO symbol table section.
140 (process_object_file): Call process_lto_symbol_tables.
141 * doc/binutils.texi: Document the new option.
142 * NEWS: Mention the new feature.
144 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
147 * readelf.c (decode_x86_compat_2_isa): New function.
148 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
149 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
150 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
151 and X86_COMPAT_2_ISA_1_NEEDED.
152 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
153 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
155 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
156 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
157 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
158 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
159 * testsuite/binutils-all/i386/empty.d: Updated.
160 * testsuite/binutils-all/i386/ibt.d: Likewise.
161 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
162 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
163 * testsuite/binutils-all/i386/shstk.d: Likewise.
164 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
165 * testsuite/binutils-all/x86-64/empty.d: Likewise.
166 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
167 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
168 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
169 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
170 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
171 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
172 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
173 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
174 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
175 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
176 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
177 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
178 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
179 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
181 2020-10-06 Nick Clifton <nickc@redhat.com>
183 * objcopy.c (copy_object): Compare input and output sections by
184 pointer rather than name.
186 2020-10-05 Nick Clifton <nickc@redhat.com>
189 * windmc.c (mc_unify_path): Fix typo checking character at end of
192 2020-10-05 Samanta Navarro <ferivoz@riseup.net>
194 * doc/binutils.texi: Fix spelling mistakes.
196 2020-09-29 Mark Wielaard <mark@klomp.org>
198 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
199 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
201 2020-09-25 Alan Modra <amodra@gmail.com>
203 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
205 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
206 allowed reloc_size. Don't read_leb128 outside of section.
208 2020-09-23 Mark Wielaard <mark@klomp.org>
210 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
211 * testsuite/binutils-all/dw5.W: Adjust expected output.
212 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
214 2020-09-23 Mark Wielaard <mark@klomp.org>
216 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
217 for dwarf_version 5 just as version 3 and 4 (only 2 is
219 (process_debug_info): Allow DW_UT_partial.
221 2020-09-24 Nick Clifton <nickc@redhat.com>
224 * doc/binutils.texi (nm): Document that 'c' is used for small
227 2020-09-21 Ludovic Courtès <ludo@gnu.org>
229 * doc/binutils.texi (objcopy, strip): Say that
230 '--strip-unneeded' implies '--strip-debug'.
232 2020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
234 * verilog.c (verilog_write_address): Properly handle 64-bit
235 addresses to avoid truncation of the high part.
237 2020-09-16 Alan Modra <amodra@gmail.com>
239 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
240 * objcopy.c (is_hidden_symbol): Likewise.
242 2020-09-15 Nick Clifton <nickc@redhat.com>
244 * README-how-to-make-a-release (https): Add a reminder to create a
245 new Bugzilla tag for the point release, once it has been published.
247 2020-09-11 H.J. Lu <hongjiu.lu@intel.com>
249 * readelf.c (get_note_type): Support NT_X86_CET.
251 2020-09-11 Nick Clifton <nickc@redhat.com>
254 * dwarf.c (load_separate_debug_info): Return NULL rather than
255 FALSE in error situations.
256 (load_separate_debug_file): Move code to load debug links to ...
257 (check_for_and_load_links): ... here. New function. Load
258 separate debug information pointed to by debuglink and
259 debugaltlink sections. Recursively scan newly loaded debug
260 information for more links and load them too.
262 2020-09-09 Alan Modra <amodra@gmail.com>
265 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
266 (load_separate_debug_files): Use a stack var for build_id_data.
268 2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
271 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
272 to ld on PE targets for PR 25662 test.
274 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
275 Kuan-Lin Chen <kuanlinchentw@gmail.com>
277 * readelf.c (target_specific_reloc_handling): Handle
278 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
280 2020-09-02 Alan Modra <amodra@gmail.com>
282 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
284 2020-08-30 Alan Modra <amodra@gmail.com>
286 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
289 2020-08-28 Nick Clifton <nickc@redhat.com>
292 * dwarf.c (read_leb128): When checking for overflow of a signed
293 read, use a signed shift.
295 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
297 * readelf.c (get_csky_section_type_name): New.
298 (get_section_type_name): Add handler for CSKY.
299 (display_csky_attribute): New.
300 (process_arch_specific): Add handler for CSKY.
301 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
304 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
306 * readelf.c (get_msp430x_section_type_name): Rename to ...
307 (get_msp430_section_type_name): ... this.
308 (get_section_type_name): Use get_msp430_section_type_name.
309 (display_msp430x_attribute): Rename to ...
310 (display_msp430_attribute): ... this.
311 (process_arch_specific): Use display_msp430_attribute.
313 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
316 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
317 "-j $PRIVATE$" to command on hppa*-*-hpux*.
318 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
319 dollar-sign quotes before quoting. Do this prior to generating log
322 2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
325 * mclex.c (skip_until_eol): If eol was found, increment line
328 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
330 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
331 * readelf.c (dump_ctf_errs): Likewise.
333 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
335 * objdump.c (dump_ctf_archive_member): Move error-
337 (dump_ctf_errs): ... into this separate function.
338 (dump_ctf): Call it on open errors.
339 * readelf.c (dump_ctf_archive_member): Move error-
341 (dump_ctf_errs): ... into this separate function. Support
342 calls with NULL fp. Adjust for new err parameter to
344 (dump_section_as_ctf): Call it on open errors.
346 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
348 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
349 * Makefile.in: Regenerated.
351 2020-08-26 Nick Clifton <nickc@redhat.com>
354 * readelf.c (get_segment_type): Handle OpenBSD segment types.
356 2020-08-26 Alan Modra <amodra@gmail.com>
359 * objcopy.c (copy_object): Don't fwrite NULL contents.
361 2020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
364 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
366 2020-08-24 Alan Modra <amodra@gmail.com>
368 * readelf.c (dump_section_as_strings) Avoid false positive
369 "may be used uninitialised".
371 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
374 * nm.c (print_symname): Display only one '@' for undefined
376 * doc/binutils.texi: Update nm version information.
378 2020-08-21 Mark Wielaard <mark@klomp.org>
380 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
381 recognize DW_LANG_C11.
383 2020-08-19 Alan Modra <amodra@gmail.com>
386 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
388 (dump_section_as_strings): Don't use %tx to display offset.
390 2020-08-14 Alan Modra <amodra@gmail.com>
393 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
394 of debug_information. Correct test of max_loc_offsets and
396 * rddbg.c (read_debugging_info): Free dhandle on error.
398 2020-08-14 Alan Modra <amodra@gmail.com>
400 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
402 2020-08-13 Alan Modra <amodra@gmail.com>
405 * objcopy.c (copy_object): Report file name with endian error.
406 Error and return on abfd->read_only.
408 2020-08-12 Tom Tromey <tromey@adacore.com>
410 * dwarf-mode.el (Version): Now 1.6.
411 (dwarf-die-button-action): Tighten DIE reference regexp.
412 (dwarf-font-lock-keywords): Update name regexp.
414 2020-08-12 Nick Clifton <nickc@redhat.com>
417 * readelf.c (do_demangle): New option flag.
418 (print_symbol): If do_demangle is enabled, demangle the symbol.
419 (enum long_option_values): New enum to hold long option values.
420 (options): Add demangle, no-demangle, recursion-limit and
421 no-recursion-limit options. Alpha sort the table.
422 (usage): Describe the new options.
423 (parse_args): Handle the new options.
424 * NEWS: Mention the new feature.
425 * doc/binutils.texi: Document the new feature.
426 * testsuite/binutils-all/readelf.exp: Test the new feature.
427 * testsuite/binutils-all/mangled.s: New file - assembler source.
428 * testsuite/binutils-all/readelf.demangled: New file - expected
431 2020-08-12 Nick Clifton <nickc@redhat.com>
433 * po/sr.po: Updated Serbian translation.
435 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
438 * nm.c (with_symbol_versions): Removed.
439 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
440 (long_options): Update --with-symbol-versions entry.
441 (print_symbol): Remove the with_symbol_versions check.
442 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
444 * doc/binutils.texi: Remove --with-symbol-versions.
446 2020-08-05 Alan Modra <amodra@gmail.com>
449 * objdump.c (load_specific_debug_section): Revert last change.
451 2020-08-05 Alan Modra <amodra@gmail.com>
454 * objdump.c (load_specific_debug_section): Don't malloc space for
455 section contents, use bfd_malloc_and_get_section.
457 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
459 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
460 * Makefile.in, doc/Makefile.in: Regenerate.
461 * configure: Regenerate.
463 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
465 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
467 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
468 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
469 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
470 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
471 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
473 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
475 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
477 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
479 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
481 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
483 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
485 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
487 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
489 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
491 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
493 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
495 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
497 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
499 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
501 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
503 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
505 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
507 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
509 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
512 * configure: Regenerated.
514 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
517 * configure: Regenerated.
519 2020-07-27 Alan Modra <amodra@gmail.com>
521 * objdump.c (dump_section): Don't return without calling
524 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
526 * doc/binutils.texi: Replace preceeded with preceded.
528 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
530 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
531 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
533 (has_newabi): Remove variable.
534 (has_abi, abi_asflags, abi_ldflags): New associative array
536 (irixemul): New variable.
537 Replace `run_dump_test' calls where applicable throughout with
538 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
539 as appropriate. Use `noarch' for tests that require their own
540 architecture setting.
541 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
542 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
543 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
544 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
545 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
546 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
547 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
548 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
549 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
550 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
551 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
552 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
553 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
554 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
556 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
557 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
558 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
559 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
560 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
561 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
562 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
564 2020-07-24 Aaron Merey <amerey@redhat.com>
566 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
567 * Makefile.in: Rebuild.
568 * configure: Rebuild.
569 * doc/Makefile.in: Rebuild.
571 2020-07-24 Nick Clifton <nickc@redhat.com>
573 * README-how-to-make-a-release: Various small updates whilst
574 creating the 2.35 release.
576 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
578 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
581 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
583 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
584 (dump_ctf): Likewise.
586 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
588 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
589 * readelf.c (dump_ctf_archive_member): Likewise.
591 2020-07-22 Nick Clifton <nickc@redhat.com>
593 * readelf.c (parse_args): Silence potential warnings about a
594 memory resource leak when allocating space for ctf option values.
595 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
598 2020-07-21 Nick Clifton <nickc@redhat.com>
600 * po/sv.po: Updated Swedish translation.
602 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
604 * testsuite/binutils-all/arc/double_regs.s: New test.
605 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
607 2020-07-13 Nick Clifton <nickc@redhat.com>
609 * po/fr.po: Updated French translation.
611 2020-07-13 Alan Modra <amodra@gmail.com>
613 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
614 optional machine-os arg.
616 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
618 * readelf.c (decode_x86_feature_2): Handle
619 GNU_PROPERTY_X86_FEATURE_2_TMM.
621 2020-07-10 Tom de Vries <tdevries@suse.de>
623 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
624 information in the end_sequence row.
625 * testsuite/binutils-all/dw5.W: Update.
626 * testsuite/binutils-all/objdump.WL: Update.
628 2020-07-09 Alan Modra <amodra@gmail.com>
630 * dlltool.c: Remove powerpc PE support and comments.
631 * configure.ac: Remove powerpc PE dlltool config.
632 * configure: Regenerate.
634 2020-07-09 Nick Clifton <nickc@redhat.com>
636 * rclex.c: Add OWNERDRAW keyword.
637 * rcparse.y: Add OWNERDRAW token.
638 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
639 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
641 * windres.c (extended_menuitems): Likewise.
642 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
644 2020-07-09 Alan Modra <amodra@gmail.com>
646 * readelf (slurp_hppa_unwind_table): Set table_len before use
647 in relocation sanity checks.
649 2020-07-07 Alan Modra <amodra@gmail.com>
651 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
652 * testsuite/binutils-all/nm.exp: Likewise.
653 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
654 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
655 * testsuite/binutils-all/set-section-alignment.d: Likewise.
656 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
658 2020-07-07 Alan Modra <amodra@gmail.com>
660 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
661 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
663 2020-07-06 Nick Clifton <nickc@redhat.com>
665 * po/bg.po: Updated Bulgarian translation.
666 * po/pt.po: Updated Portuguese translation.
667 * po/uk.po: Updated Ukranian translation.
669 2020-07-06 Alan Modra <amodra@gmail.com>
671 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
674 2020-07-04 Nick Clifton <nickc@redhat.com>
676 * configure: Regenerate.
677 * po/binutils.pot: Regenerate.
679 2020-07-04 Nick Clifton <nickc@redhat.com>
681 Binutils 2.35 branch created.
683 2020-07-02 Nick Clifton <nickc@redhat.com>
686 * readelf.c (print_symbol): Handle truncation of symbol names.
687 (options): Add -T/--silent-truncation option.
688 (parse_args): Handle the option.
689 (print_dynamic_symbol): Correct calculation of width available to
691 * doc/binutils.texi: Document the -T option to readelf.
692 * NEWS: Mention the new feature.
694 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
696 * NEWS: Mention x86 NaCl target support removal.
697 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
698 x86 NaCl target support.
699 * testsuite/binutils-all/elfedit-1.d: Likewise.
700 * testsuite/binutils-all/i386/i386.exp: Likewise.
701 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
702 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
703 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
704 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
705 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
706 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
707 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
708 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
709 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
710 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
711 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
712 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
714 2020-06-30 Nick Clifton <nickc@redhat.com>
716 * dwarf.c (read_and_display_attr_value): Support
717 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
720 2020-06-30 Alan Modra <amodra@gmail.com>
722 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
725 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
727 * dwarf.c (display_debug_str_offsets): Rename local variable
728 index to idx. Move to top of function.
730 2020-06-29 Alan Modra <amodra@gmail.com>
732 * dwarf.c: Use C style comments.
735 2020-06-27 Alan Modra <amodra@gmail.com>
737 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
739 (release_archive): Set fields of arch to NULL after freeing.
741 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
743 * readelf.c (dump_section_as_ctf): Support .ctf archives using
744 ctf_arc_bufopen. Automatically load the .ctf member of such
745 archives as the parent of all other members, unless specifically
746 overridden via --ctf-parent. Split out dumping code into...
747 (dump_ctf_archive_member): ... here, as in objdump, and call
748 it once per archive member.
749 (dump_ctf_indent_lines): Code style fix.
751 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
753 * configure.ac [--enable-libctf]: New, default yes.
754 Set ENABLE_LIBCTF accordingly.
755 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
756 * configure: Regenerate.
757 * config.in: Regenerate.
758 * Makefile.in: Regenerate.
759 * aclocal.m4: Regenerate.
760 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
761 (option_values): Likewise.
762 (long_options): Likewise.
764 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
765 (make_ctfsect): Likewise.
766 (dump_ctf_archive_member): Likewise.
767 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
768 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
769 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
771 (process_section_contents): Likewise.
772 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
773 (dump_ctf_indent_lines): Likewise.
774 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
776 2020-06-26 Jan Beulich <jbeulich@suse.com>
778 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
779 redundant text from x86 specific part of -M section.
781 2020-06-26 Pat Bernardi <bernardi@adacore.com>
783 * readelf.c (display_m68k_gnu_attribute): New function.
784 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
786 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
789 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
790 * testsuite/binutils-all/pr26160.r: Likewise.
791 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
793 2020-06-23 Nick Clifton <nickc@redhat.com>
796 * dwarf.c (fetch_indexed_string): Detect and handle old style
797 .debug_str_offset tables.
798 (display_debug_str_offsets): Likewise. Also add support for
799 .debug_str_offsets.dwo sections.
801 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
804 * testsuite/binutils-all/pr26112.o.bz2: New file.
805 * testsuite/binutils-all/pr26112.r: Likewise.
806 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
808 2020-06-23 Alan Modra <amodra@gmail.com>
810 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
811 remote_file delete command.
813 2020-06-22 Nick Clifton <nickc@redhat.com>
816 * dwarf.c (display_debug_str_offsets): Add code to display the
817 contents of the .debug_str_offsets section.
818 (display_debug_macro): Add support for DW_MACRO_define_strx and
821 2020-06-22 Saagar Jha <saagar@saagarjha.com>
823 * od-macho.c: Dump linkedit data for new load commands.
825 2020-06-19 Alan Modra <amodra@gmail.com>
827 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
828 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
829 (run_dump_test): Use check_relro_support to decide whether to pass
830 extra ld option "-z norelro".
832 2020-06-11 Alan Modra <amodra@gmail.com>
834 * readelf.c (process_mips_specific): Don't alloc memory for
835 Elf_Internal_Options.
837 2020-06-11 Alan Modra <amodra@gmail.com>
839 * readelf.c (process_mips_specific): Assert size of internal
840 types match size of external types, and simplify allocation of
841 internal buffer. Catch possible integer overflow when sanity
842 checking option size. Don't assume options are a regular array.
843 Sanity check reginfo option against option size. Use PRI macros
846 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
849 * mclex.c (yylex): Reject lines that reach end-of-file without a
850 terminating newline character.
852 2020-06-08 Nick Clifton <nickc@redhat.com>
855 * doc/binutils.texi (strings): Fix typo.
857 2020-06-08 Nick Clifton <nickc@redhat.com>
860 * dwarf.c (process_debug_info): Check that there is space in the
861 debug_information array before filling in an entry.
863 2020-06-06 Alan Modra <amodra@gmail.com>
865 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
867 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
870 * mclex.c (yylex): Add test for an empty input stream.
872 2020-06-04 Stephen Casner <casner@acm.org>
874 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
875 for test using section pseudo-ops compatible with pdp11.
876 * testsuite/binutils-all/objcopy.exp: Select alternate source.
878 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
880 * objdump.c (disassemble_data): Set disasm_info.endian_code to
881 disasm_info.endian after the latter is initialized to the
882 endianness reported by BFD.
884 2020-06-04 Alan Modra <amodra@gmail.com>
886 * testsuite/binutils-all/i386/i386.exp: Remove global directive
888 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
889 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
891 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
893 * windmc.h (struct mc_node): Add id_typecast field.
894 * mcparse.y (message): Initialise the id_typecast field.
895 * windmc.c (write_dbg): Use the id_typecast field as a parameter
896 when calling write_dbg_define.
897 (write_header): Likewise.
899 2020-06-03 Alan Modra <amodra@gmail.com>
902 * objcopy.c (copy_relocations_in_section): Free relpp on error.
903 Don't accidentally free isection->orelocation.
905 2020-06-02 Alan Modra <amodra@gmail.com>
907 * testsuite/binutils-all/ar.exp (obj): Set up object file name
908 extension. Use throughout. Don't completely exclude non-ELF
909 alpha targets. Run long_filenames test for tic30. Exclude thin
910 archive tests for aix, ecoff and vms.
911 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
912 extension. Use throughout. Don't exclude non-ELF alpha targets
915 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
917 * MAINTAINERS (Xtensa): Add myself as maintainer.
919 2020-05-23 Alan Modra <amodra@gmail.com>
921 * testsuite/binutils-all/ar.exp (many_files): New test.
923 2020-05-21 Alan Modra <amodra@gmail.com>
925 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
926 * dlltool.c: Likewise.
927 * elfcomm.c: Likewise.
929 * readelf.c: Likewise.
931 * windmc.c: Likewise.
932 * windres.c: Likewise.
933 * wrstabs.c: Likewise.
935 2020-05-21 Alan Modra <amodra@gmail.com>
937 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
940 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
942 * dwarf.c: Updated since DECLARE_CSR is changed.
944 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
947 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
948 segment doesn't match the .dynamic section and checks are
950 (struct filedata): Add dynamic_symtab_section and
951 dynamic_strtab_section fields.
952 (process_section_headers): Set dynamic_symtab_section to the
953 .dynsym section. Set dynamic_strtab_section to the .dynstr
955 (process_dynamic_section): Warn if the .dynsym section doesn't
956 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
957 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
959 2020-05-19 Alan Modra <amodra@gmail.com>
961 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
962 (replace_members): Use bfd_get_filename rather than accessing
963 bfd->filename directly.
964 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
965 * binemul.c (do_ar_emul_append): Likewise.
966 * coffgrok.c (coff_grok): Likewise.
968 2020-05-18 Stafford Horne <shorne@gmail.com>
970 * MAINTAINERS (OR1K): Add myself as maintainer.
972 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
974 * doc/binutils.texi: Mention 'entry address' in the set-start and
975 adjust-start options descriptions.
977 2020-05-05 Nick Clifton <nickc@redhat.com>
979 * dwarf.c (do_checks): New global variable.
980 (display_formatted_table): Warn about an unexpected number of
981 columns in the table, if checks are enabled. Do not complain
982 about the lack of data following the number of entries in the
983 table if the table is empty.
984 (display_debug_lines_decoded): Only warn about an unexpected
985 number of columns in a table if checks are enabled.
986 * dwarf.h (do_checks): Add a prototype.
987 * elfcomm.c (error): Remove weak attribute.
989 * readelf.c (do_checks): Delete.
991 (process_section_headers): Only warn about empty sections if
994 2020-05-04 Fangrui Song <maskray@google.com>
996 * objcopy.c (copy_object): Allow empty section.
997 * testsuite/binutils-all/update-section.exp: Add test.
999 2020-05-04 Nick Clifton <nickc@redhat.com>
1002 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
1003 supicious number of entries for DWARF-5 format directory and file
1004 name tables. Do not display file name table header if the table
1005 is empty. Do not allocate space for empty tables.
1007 2020-05-04 Alan Modra <amodra@gmail.com>
1009 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
1010 section. Don't assume endian of host matches nds32 target. Free
1013 2020-05-01 Alan Modra <amodra@gmail.com>
1014 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
1016 * objdump.c (disassemble_bytes): Don't scan for zeros when
1017 disassembling zeros. Translate "resuming at file offset" message.
1018 Formatting. Replace some signed variables with unsigned.
1020 2020-04-30 Alex Coplan <alex.coplan@arm.com>
1022 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
1024 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1026 2020-04-30 Nick Clifton <nickc@redhat.com>
1028 * testsuite/lib/binutils-common.exp (check_pie_support): New
1031 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1033 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
1034 range_entries for the same offset.
1036 2020-04-29 Nick Clifton <nickc@redhat.com>
1038 * readelf.c (warn): New function - like elfcomm.c version but only
1039 produces output if warnings are enabled.
1040 (struct options): Add --lint and --enable-checks.
1041 (usage): Add entry for --lint.
1042 (parse_args): Handle -L. If checks are enabled but no dumps have
1043 been selected then enable all dumps.
1044 (process_section_headers): Replace long if-then-else sequence with
1045 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
1046 SHT_PROGBITS sections.
1047 (process_file): Do not complain if the file is an archive and lint
1048 mode has been enabled.
1049 * elfcomm.c (error): Make the function weak.
1051 * NEWS: Mention the new feature.
1052 * doc/binutils.texi: Document the new feature.
1053 * dwarf.h (report_leb_status): Add file name and line number
1054 parameters. Include them in the diagnostic output.
1055 (READ_ULEB): Pass file and line number to report_leb_status.
1056 (READ_SLEB): Likewise.
1057 * dwarf.c (read_and_print_leb128): Pass file and line number to
1059 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1060 * testsuite/binutils-all/zero-sec.s: New test source file.
1061 * testsuite/binutils-all/zero-sec.r: Expected output from new
1064 2020-04-29 Nick Clifton <nickc@redhat.com>
1066 * po/sr.po: Updated Serbian translation.
1068 2020-04-26 Alan Modra <amodra@gmail.com>
1070 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1071 read before dereferencing, and gracefully return. Remove
1072 gnu_hash_error variable. Free gnu hash arrays if number of
1075 2020-04-24 Alan Modra <amodra@gmail.com>
1077 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1079 (process_dynamic_section): Call get_num_dynamic_syms once rather
1080 than in segment loop. Break out of segment loop on a successful
1081 load of dynamic symbols. Formatting.
1082 (process_object): Return error status from process_dynamic_section.
1084 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1086 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1087 * elf.c (elfcore_grok_arc_v2): New function.
1088 (elfcore_grok_note): Call the new function to handle the corresponding
1090 (elfcore_write_arc_v2): New function.
1091 (elfcore_write_register_note): Call the new function to handle the
1092 corresponding pseudo-sections.
1094 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1097 * readelf.c (is_none_reloc): Recognize
1098 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1099 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1101 2020-04-22 Nick Clifton <nickc@redhat.com>
1103 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1105 2020-04-22 Alan Modra <amodra@gmail.com>
1107 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1108 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1109 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1110 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1111 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1112 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1113 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1114 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1115 (section_headers_groups): Move to struct filedata. Update use
1118 2020-04-22 Alan Modra <amodra@gmail.com>
1120 * readelf.c (struct dump_data): New, used..
1121 (cmdline): ..here, and..
1122 (struct filedata): ..here. Adjust all uses.
1123 (request_dump_bynumber, request_dump, parse_args): Pass in a
1124 struct dump_data* rather than Filedata*. Adjust callers.
1125 (main): Don't set cmdline.file_name.
1127 2020-04-20 Alan Modra <amodra@gmail.com>
1129 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1132 2020-04-20 Alan Modra <amodra@gmail.com>
1134 * readelf.c (process_section_headers): Free dynamic symbols etc.
1137 2020-04-20 Alan Modra <amodra@gmail.com>
1139 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1140 on error without freeing.
1141 (process_dynamic_section): Don't recreate dynamic symbols from
1142 dynamic tag info when the dynamic symbols have already been
1143 read via section headers.
1145 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
1147 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1148 conditional VDUP instructions are disassembled correctly.
1149 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1151 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1152 that VDUP instructions (which are conditional in A32) can be
1153 disassembled in thumb mode.
1154 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1157 2020-04-17 Alan Modra <amodra@gmail.com>
1160 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1162 2020-04-16 Alan Modra <amodra@gmail.com>
1164 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1165 --no-addresses description.
1167 2020-04-15 Alan Modra <amodra@gmail.com>
1169 * objdump.c (no_addresses): New static var.
1170 (usage): Print help for --no-addresses.
1171 (long_options): Add --no-addresses entry.
1172 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1173 (disassemble_bytes): Don't print current line address, or reloc
1175 * doc/binutils.texi: Document objdump --no-addresses.
1177 2020-04-15 Alan Modra <amodra@gmail.com>
1180 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1181 reading buckets or chains fails.
1183 2020-04-15 Alan Modra <amodra@gmail.com>
1185 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1188 2020-04-15 Alan Modra <amodra@gmail.com>
1190 * readelf.c (get_group_flags): Translate text.
1191 (get_file_type, get_symbol_binding, get_symbol_type),
1192 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1194 2020-04-15 Alan Modra <amodra@gmail.com>
1197 * readelf.c (get_num_dynamic_syms): Typo fix.
1199 2020-04-14 Alan Modra <amodra@gmail.com>
1201 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1202 possibility of overflow when checking number of conflicts.
1204 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1207 * readelf.c (nbuckets): New.
1208 (nchains): Likewise.
1209 (buckets): Likewise.
1211 (ngnubuckets): Likewise.
1212 (gnubuckets): Likewise.
1213 (gnuchains): Likewise.
1214 (mipsxlat): Likewise.
1215 (ngnuchains): Likewise.
1216 (gnusymidx): Likewise.
1217 (VALID_SYMBOL_NAME): Likewise.
1218 (VALID_DYNAMIC_NAME): Use it.
1219 (get_dynamic_data): Moved before process_dynamic_section.
1220 (get_num_dynamic_syms): New function.
1221 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1222 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1223 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1225 (get_symbol_index_type): Don't print "bad section index" when
1226 there is no section header.
1227 (print_dynamic_symbol): Rewrite.
1228 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1231 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1233 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1234 enable on *-*-solaris*.
1236 2020-03-30 Nick Clifton <nickc@redhat.com>
1239 * objcopy.c (copy_object): When copying PE format files set the
1240 timestamp field in the pe_data structure if the preserve_dates
1242 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1243 --preserve-dates in place of the -p option, in order to make its
1244 effect more obvious.
1246 2020-03-28 Alan Modra <amodra@gmail.com>
1248 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1249 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1251 2020-03-28 Alan Modra <amodra@gmail.com>
1253 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1254 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1255 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1256 test. Pass "-p" to objcopy for the executable test.
1258 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1261 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1262 specify whether an object file or executable should be built and tested.
1263 Change test names to report whether an object file or executable is
1265 * testsuite/binutils-all/pr25662.ld: New test.
1266 * testsuite/binutils-all/pr25662.s: New test.
1268 2020-03-27 Alan Modra <amodra@gmail.com>
1270 * readelf.c (process_archive): Don't double free qualified_name.
1271 Don't break out of loop with "negative" archive_file_size, just
1272 set file offset to max.
1274 2020-03-25 Alan Modra <amodra@gmail.com>
1276 * readelf.c (process_archive): Prevent endless loop.
1278 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1281 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1282 with bfd_get_symbol_version_string.
1283 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1284 * objdump.c (objdump_print_symname): Likewise.
1286 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1289 * nm.c (SYM_NAME): Removed.
1290 (print_symname): Add a pointer to struct extended_symbol_info
1291 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1293 (print_symdef_entry): Pass NULL to print_symname.
1294 (print_symbol_info_bsd): Update call to print_symname.
1295 (print_symbol_info_sysv): Likewise.
1296 (print_symbol_info_posix): Likewise.
1298 2020-03-24 Alan Modra <amodra@gmail.com>
1300 * readelf.c (process_mips_specific): Free iconf on error path.
1302 2020-03-23 Nick Clifton <nickc@redhat.com>
1305 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1306 * write_stabs_in_sections_debugging_info: Likewise.
1307 * stab_enum_type: Likewise.
1308 * stab_modify_type: Likewise.
1309 * stab_struct_field: Likewise.
1310 * stab_end_struct_type: Likewise.
1311 * stab_start_class_type: Likewise.
1312 * stab_class_static_member: Likewise.
1313 * stab_class_baseclass: Likewise.
1314 * stab_class_start_method: Likewise.
1315 * stab_class_method_var: Likewise.
1316 * stab_class_end_method: Likewise.
1317 * stab_end_class_type: Likewise.
1318 * stab_typedef_type: Likewise.
1319 * stab_start_function: Likewise.
1320 * stab_end_block: Likewise.
1321 * stab_lineno: Likewise.
1323 2020-03-20 Nick Clifton <nickc@redhat.com>
1325 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1326 (process_section_headers): Check the return value from
1327 get_compression_header.
1328 (dump_section_as_strings): Likewise.
1329 (dump_section_as_bytes): Likewise.
1330 (load_specific_debug_section): Likewise.
1332 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1334 * ar.c (main): Update bfd_plugin_set_program_name call.
1335 * nm.c (main): Likewise.
1337 2020-03-19 Nick Clifton <nickc@redhat.com>
1340 * testsuite/binutils-all/dw4.s: New test source file.
1341 * testsuite/binutils-all/nm.exp: Run the new test.
1343 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1345 * readelf.c (process_symbol_table): Use unsigned long for si.
1347 2020-03-19 Alan Modra <amodra@gmail.com>
1349 * elfcomm.c: Don't include bfd.h or bucomm.h.
1350 (program_name): Declare.
1351 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1352 and substitute FALSE and TRUE.
1353 (setup_archive, setup_nested_archive): Likewise.
1354 * elfcomm.h: Likewise.
1356 2020-03-19 Alan Modra <amodra@gmail.com>
1358 * readelf.c (process_archive): Always return via path freeing
1361 2020-03-19 Alan Modra <amodra@gmail.com>
1363 * readelf.c (process_netbsd_elf_note): Validate descsz before
1364 accessing descdata. Formatting.
1366 2020-03-19 Alan Modra <amodra@gmail.com>
1368 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1369 * elfcomm.h (setup_archive): Update prototype.
1371 2020-03-16 Alan Modra <amodra@gmail.com>
1373 * readelf.c (get_symbols): New function.
1374 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1375 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1377 2020-03-16 Alan Modra <amodra@gmail.com>
1379 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1380 Detect shift overflows and check that terminating byte is found.
1381 Print an error on a bad uleb128.
1383 2020-03-14 Alan Modra <amodra@gmail.com>
1385 * readelf.c (process_file): Clean ba_cache.
1387 2020-03-14 Alan Modra <amodra@gmail.com>
1389 * elfcomm.h (setup_archive): Update prototype.
1390 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1391 check longnames_size.
1392 (setup_nested_archive): Get file size and pass to setup_archive.
1393 * elfedit.c (process_archive): Likewise.
1394 * readelf.c (process_archive): Pass filedata->file_size to
1397 2020-03-14 Alan Modra <amodra@gmail.com>
1399 * readelf.c (dump_section_as_strings): Free memory on error exit.
1400 (dump_section_as_bytes, process_notes_at): Likewise.
1401 (get_build_id): Free enote.
1403 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1405 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1406 NT_NETBSDCORE_LWPSTATUS notes.
1408 2020-03-13 Alan Modra <amodra@gmail.com>
1410 * elfcomm.c (get_archive_member_name): Always return malloc'd
1412 * elfedit.c (process_archive): Tidy memory on all return paths.
1413 * readelf.c (process_archive): Likewise.
1414 (process_symbol_table): Likewise.
1415 (ba_cache): New, replacing ..
1416 (get_symbol_for_build_attribute): ..static vars here. Free
1417 strtab and symtab before loading new ones. Reject symtab without
1418 valid strtab in loop, breaking out of loop on valid symtab.
1419 (process_file): Free ba_cache symtab and strtab here, resetting
1422 2020-03-12 Alan Modra <amodra@gmail.com>
1424 * readelf.c (process_section_headers): Don't just set
1425 filedata->section_headers NULL, free it first. Similarly for
1426 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1427 symtab_shndx_list. Zero associated counts too.
1428 (process_object): Free symtab_shndx_list.
1429 (process_file): Free various allocated filedata tables.
1431 2020-03-11 Nick Clifton <nickc@redhat.com>
1435 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1436 li_segment_size fields.
1437 * dwarf.c (read_debug_line_header): Record the address size and
1438 segment selector size values (if present) in the lineinfo
1440 (display_formatted_table): Warn if the format count is empty but
1441 the table itself is not empty.
1442 Display the format count and entry count at the start of the table
1444 (display_debug_lines_raw): Display the address size and segement
1445 selector size fields, if present.
1446 * testsuite/binutils-all/dw5.W: Update expected output.
1448 2020-03-11 Alan Modra <amodra@gmail.com>
1451 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1452 pad_to_set on second block of code dealing with padding.
1453 Replace "c" with "num_sec" and don't recalculate number of
1454 sections on second block. Size arrays using sizeof (element)
1455 rather than sizeof (element type).
1457 2020-03-10 Alan Modra <amodra@gmail.com>
1459 * objdump.c (disassemble_section): Don't call qsort unless
1460 sym count is at least two.
1461 (disassemble_data): Don't call memcpy with NULL src.
1463 2020-03-09 Alan Modra <amodra@gmail.com>
1466 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1467 to get_data rather than multiplying.
1468 (dump_ia64_vms_dynamic_relocs): Likewise.
1469 (process_version_sections): Correct order of size and nmemb args
1471 (process_mips_specific): Likewise.
1473 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1475 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1476 "memory checkers" in comments.
1478 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1481 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1482 * doc/Makefile.in: Re-generate.
1484 2020-03-06 Nick Clifton <nickc@redhat.com>
1486 * objcopy.c (check_new_section_flags): New function. Reject the
1487 SEC_COFF_SHARED flag if the target is not a COFF binary.
1488 (copy_object): Call check_new_section_flags.
1489 (setup_section): Likewise.
1490 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1491 flag cannot be applied to ELF binaries.
1493 2020-03-06 Alan Modra <amodra@gmail.com>
1496 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1498 2020-03-05 Alan Modra <amodra@gmail.com>
1501 * objcopy.c (filter_symbols): Don't segfault on NULL
1502 prefix_symbols_string.
1504 2020-03-04 Christian Eggers <ceggers@gmx.de>
1506 * objcopy.c (copy_object): Convert from bytes to octets for
1507 --gap-fill and --pad-to.
1509 2020-03-03 Nick Clifton <nickc@redhat.com>
1512 * prdbg.c (pr_tag_type): Remove call to abort.
1514 2020-03-02 Aaron Merey <amerey@redhat.com>
1516 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1519 2020-03-02 Nick Clifton <nickc@redhat.com>
1522 * readelf.c (dump_section_as_strings): Display new-line characters
1523 as \n and then insert a line break.
1524 * testsuite/binutils-all/pr25543.s: New test.
1525 * testsuite/binutils-all/pr25543.d: Test driver.
1526 * testsuite/binutils-all/readelf.exp: Run the new test.
1528 2020-02-27 Nick Clifton <nickc@redhat.com>
1531 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1532 get_data is unable to load the string table.
1534 2020-02-26 Alan Modra <amodra@gmail.com>
1536 * elfedit.c: Indent labels correctly.
1537 * readelf.c: Likewise.
1538 * resres.c: Likewise.
1540 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1543 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1544 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1546 2020-02-24 Nick Clifton <nickc@redhat.com>
1549 * doc/binutils.texi (objdump): Fix typo in description of
1550 objdump's -g option.
1552 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1554 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1557 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1559 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1561 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1563 * configure: Regenerate.
1565 2020-02-10 Fangrui Song <maskray@google.com>
1567 * objcopy.c (parse_flags): Handle "exclude".
1568 * doc/binutils.texi: Document the support.
1570 2020-02-10 Aaron Merey <amerey@redhat.com>
1572 * binutils/testsuite/binutils-all/debuginfod.exp:
1573 Replace set ::env with setenv.
1574 Start server before setting environment variable.
1575 Specify tmpdir as the location of the server's
1577 Check additional server metrics at start-up.
1579 2020-02-07 Nick Clifton <nickc@redhat.com>
1581 * README-how-to-make-a-release: Add note about updating the
1582 GAS/NEWS URL in the next release.
1584 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1587 * readelf.c (get_machine_flags): Add support for Z80N machine
1590 2020-02-07 Nick Clifton <nickc@redhat.com>
1592 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1593 of the truncated file name.
1595 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1597 * objdump.c (print_jump_visualisation): New function.
1598 (disassemble_bytes): Call new function.
1600 2020-02-06 Alan Modra <amodra@gmail.com>
1602 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1604 (supports_gnu_osabi): New procedure.
1605 (is_generic): New, from ld-lib.exp.
1606 (supports_gnu_unique): Use the above.
1608 2020-02-04 Alan Modra <amodra@gmail.com>
1610 * Makefile.am (CFILES): Add od-elf32_avr.c.
1611 * Makefile.in: Regenerate.
1612 * po/POTFILES.in: Regenerate.
1614 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1616 * readelf.c (dump_relocations, dump_relocations)
1617 (decode_arm_unwind_bytecode, process_dynamic_section)
1618 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1621 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1623 * coffdump.c (program_name): Drop redundant definition.
1624 * srconv.c (program_name): Likewise
1625 * sysdump.c (program_name): Likewise
1627 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1630 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1631 same file with different section pointers.
1633 2020-02-01 Nick Clifton <nickc@redhat.com>
1635 * README-how-to-make-a-release: Update with more details on the
1636 release making process.
1638 2020-01-31 Nick Clifton <nickc@redhat.com>
1640 * po/sv.po: Updated Swedish translation.
1642 2020-01-28 Nick Clifton <nickc@redhat.com>
1644 * readelf.c (get_build_id): Simplify warning message about corrupt
1645 notes encountered whilst scanning for the build-id.
1647 2020-01-27 Roland McGrath <mcgrathr@google.com>
1649 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1650 for overlapping ranges so that (A == B) == (B == A) holds.
1652 2020-01-27 Alan Modra <amodra@gmail.com>
1654 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1655 case statement with switch statement.
1657 2020-01-24 Nick Clifton <nickc@redhat.com>
1659 * readelf.c (get_build_id): Fix warning messages about corrupt
1662 2020-01-23 Nick Clifton <nickc@redhat.com>
1664 * po/fr.po: Updated French translation.
1666 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1669 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1671 2020-01-20 Nick Clifton <nickc@redhat.com>
1673 * po/pt.po: Updated Portuguese translation.
1674 * po/uk.po: Updated Ukranian translation.
1676 2020-01-18 Nick Clifton <nickc@redhat.com>
1678 * README-how-to-make-a-release: Update notes on how to cut a
1679 branch for a release.
1681 2020-01-18 Nick Clifton <nickc@redhat.com>
1683 * configure: Regenerate.
1684 * po/binutils.pot: Regenerate.
1686 2020-01-18 Nick Clifton <nickc@redhat.com>
1688 Binutils 2.34 branch created.
1690 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1692 * objdump.c (jump_info_visualize_address): Discard jumps that are
1694 (disassemble_bytes): Only compute the maximum level if jumps were
1697 2020-01-13 Nick Clifton <nickc@redhat.com>
1699 * objdump.c (disassemble_bytes): Remove C99-ism.
1700 * testsuite/binutils-all/debuginfod.exp: New tests.
1702 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1704 * objdump.c (visualize_jumps, color_output, extended_color_output)
1705 (detected_jumps): New variables.
1706 (usage): Add the new jump visualization options.
1707 (option_values): Add new option value.
1708 (long_options): Add the new option.
1709 (jump_info_new, jump_info_free): New functions.
1710 (jump_info_min_address, jump_info_max_address): Likewise.
1711 (jump_info_end_address, jump_info_is_start_address): Likewise.
1712 (jump_info_is_end_address, jump_info_size): Likewise.
1713 (jump_info_unlink, jump_info_insert): Likewise.
1714 (jump_info_add_front, jump_info_move_linked): Likewise.
1715 (jump_info_intersect, jump_info_merge): Likewise.
1716 (jump_info_sort, jump_info_visualize_address): Likewise.
1717 (disassemble_jumps): New function - used to locate jumps.
1718 (disassemble_bytes): Add ascii art generation.
1719 (disassemble_section): Add scan to locate jumps.
1720 (main): Parse the new visualization option.
1721 * doc/binutils.texi: Document the new feature.
1722 * NEWS: Mention the new feature.
1724 2020-01-13 Alan Modra <amodra@gmail.com>
1728 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1729 fde_fc col_type and col_offset.
1730 * readelf.c (apply_relocations): Move symsec check earlier.
1731 (free_debug_section): Free reloc_info.
1732 (process_notes_at): Free pnotes on error path.
1733 (process_object): Free dump_sects here..
1734 (process_archive): ..not here.
1736 2020-01-13 Alan Modra <amodra@gmail.com>
1739 * nm.c (display_rel_file): Free dyn_syms.
1741 2020-01-09 Nick Clifton <nickc@redhat.com>
1744 * objcopy.c (empty_name): New variable.
1745 (need_sym_before): Prevent an attempt to free a static variable.
1746 (filter_symbols): Avoid strcmp test by checking for pointer
1749 2020-01-09 Nick Clifton <nickc@redhat.com>
1751 * po/zh_TW.po: Updated Traditional Chinese translation.
1753 2020-01-09 Aaron Merey <amerey@redhat.com>
1755 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1756 * Makefile.in: Regenerate.
1758 * config.in: Regenerate.
1759 * configure: Regenerate.
1760 * configure.ac: Call AC_DEBUGINFOD.
1761 * doc/Makefile.in: Regenerate.
1762 * doc/binutils.texi: Add section on using binutils
1764 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1765 Query debuginfod servers for the target debug file.
1766 (load_separate_debug_info): Call
1767 debuginfod_fetch_separate_debug_info if configured with
1769 (load_separate_debug_files): Add file argument to
1770 load_separate_debug_info calls.
1771 * dwarf.h (get_build_id): Add declaration.
1772 * objdump.c (get_build_id): New function. Get build-id of file.
1773 * readelf.c (get_build_id): Likewise.
1774 * testsuite/binutils-all/debuginfod.exp: New tests.
1775 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1778 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1780 * readelf.c: Add support for new Z*) relocations and machine
1783 2020-01-01 Alan Modra <amodra@gmail.com>
1785 Update year range in copyright notice of all files.
1787 For older changes see ChangeLog-2019
1789 Copyright (C) 2020 Free Software Foundation, Inc.
1791 Copying and distribution of this file, with or without modification,
1792 are permitted in any medium without royalty provided the copyright
1793 notice and this notice are preserved.
1799 version-control: never