1 2020-12-07 Nick Clifton <nickc@redhat.com>
3 * README-how-to-make-a-release (point releases): Add a note to
4 update the milestone list on sourceware's bugzilla.
6 2020-12-04 Alan Modra <amodra@gmail.com>
8 * dwarf.c (frame_display_row): Do without static variable "sloc".
9 (cu_tu_indexes_read): Move to file scope.
10 (free_debug_memory): Reset it here, along with level_type_signed.
11 Free and clear a number of other static variables.
12 * readelf.c (arm_attr_public_tag <table>): Constify, updating..
13 (arm_attr_tag_*): ..all these uses.
14 (process_mips_specific): Free "rels" on error path.
16 2020-11-27 Nick Clifton <nickc@redhat.com>
19 * windres.c (main): If the preprocessor name includes spaces,
20 ensure that it is quoted.
22 2020-11-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24 * testsuite/lib/binutils-common.exp (supports_noinit_section): New.
25 (supports_persistent_section): New.
27 2020-11-23 Nick Alcock <nick.alcock@oracle.com>
29 * readelf.c (dump_section_as_ctf): Call ctf_arc_symsect_endianness.
31 2020-11-25 Alan Modra <amodra@gmail.com>
33 * testsuite/binutils-all/nm.exp (ifunc): xfail more targets.
35 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
37 * readelf.c (dump_section_as_ctf): Use .dynsym and .dynstr, not
40 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
42 * objdump.c (dump_ctf): Report errors from ctf_archive_iter.
43 * readelf.c (dump_section_as_ctf): Likewise.
45 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
47 * objdump.c (dump_ctf): Use ctf_dict_open, not
49 * readelf.c (dump_section_as_ctf): Likewise.
51 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
53 * objdump.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
54 (dump_ctf_archive_member): Likewise.
55 (dump_ctf): Likewise. Use ctf_dict_close, not ctf_file_close.
56 * readelf.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
57 (dump_ctf_archive_member): Likewise.
58 (dump_section_as_ctf): Likewise. Use ctf_dict_close, not
61 2020-11-20 Nick Clifton <nickc@redhat.com>
64 * nm.c (ifunc_type_chars): New variable.
65 (long_options): Add --ifunc-chars.
66 (print_symbol): Use ifunc_type_chars for ifunc symbols.
67 (main): Handle the new option.
68 * doc/binutils.texi: Document the new option.
69 * configure.ac: Add --enable-f-for-ifunc-symbols option which
70 changes the default symbol displayed by nm.
71 * NEWS: Mention the new feature.
72 * testsuite/binutils-all/nm.exp: Test the new feature.
73 * config.in: Regenerate.
74 * configure: Regenerate.
76 2020-11-20 Linda Zhang <lindasc@qq.com>
79 * dllwrap.c (main): Deprecate and warn the use of dllwrap.
81 2020-11-20 Jozef Lawrynowicz <jozef.l@mittosystems.com>
83 * testsuite/binutils-all/readelf-maskos-1a.d: Fix test for unrecognized
84 bit set in SHF_MASKOS range.
85 * testsuite/binutils-all/readelf-maskos-1b.d: Likewise.
86 * testsuite/binutils-all/readelf-maskos-unknown.s: New test.
88 2020-11-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
90 * NEWS: Announce SHF_GNU_RETAIN support.
91 * readelf.c (get_elf_section_flags): Handle SHF_GNU_RETAIN.
92 Recognize SHF_GNU_RETAIN and SHF_GNU_MBIND only for supported OSABIs.
93 * testsuite/binutils-all/readelf.exp: Run new tests.
94 Don't run run_dump_test when there isn't an assembler available.
95 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Adjust
97 * testsuite/binutils-all/readelf-maskos-1a.d: New test.
98 * testsuite/binutils-all/readelf-maskos-1b.d: New test.
99 * testsuite/binutils-all/readelf-maskos.s: New test.
100 * testsuite/binutils-all/retain1.s: New test.
101 * testsuite/binutils-all/retain1a.d: New test.
102 * testsuite/binutils-all/retain1b.d: New test.
104 2020-11-17 Howard Chu <hyc@symas.com>
106 * ar.c (main): Place the libdeps record in the second archive
109 2020-11-13 Nick Clifton <nickc@redhat.com>
112 * dwarf.c (struct dwo_info): Add cu_offset field.
113 (add_dwo_info): Add cu_offset parameter. Record in new dwo_info
115 (add_dwo_name): Add cu_offset field.
116 (add_dwo_dir): Add cu_offset field.
117 (add_dwo_id): Add cu_offset field.
118 (read_and_display_attr_value): Pass cu_offset to dwo recording
120 (load_separate_debug_files): Accumulate name, dir and id values
121 and display once for each CU.
122 * testsuite/binutils-all/dwo.sL Use a separate CU for the second
124 * testsuite/binutils-all/readelf.k2: Update expected output.
126 2020-11-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
128 * dwarf.c (display_debug_rnglists_list): Only bias the
129 DW_RLS_offset_pair with the base address.
131 2020-11-10 Nick Clifton <nickc@redhat.com>
133 * dwarf.c (skip_attr_bytes): Correctly handle DW_FORM_ref8.
134 (get_type_abbrev_from_form): Accept DW_FORM_ref8.
136 2020-11-09 Andreas Schwab <schwab@linux-m68k.org>
138 * Makefile.am (development.exp): Fix regexp.
139 * Makefile.in: Regenerate.
141 2020-11-09 Nick Clifton <nickc@redhat.com>
144 * dwarf.c (read_and_display_attr_value): In wide mode, display the
147 2020-11-09 Alan Modra <amodra@gmail.com>
149 * elfedit (usage): Avoid false positive "may be used uninitialised".
152 2020-11-09 Howard Chu <hyc@symas.com>
154 * ar.c (main): Use plugin_target rather than "target" when
155 resetting libdeps_bfd target.
157 2020-11-06 H.J. Lu <hongjiu.lu@intel.com>
159 * elfedit.c: Include "libiberty.h".
160 (usage): Update help message.
162 2020-11-03 Howard Chu <hyc@symas.com>
164 * ar.c (long_options): Add --record-libdeps.
165 (usage): Mention the new option.
166 (decode_options): Handle the new option.
167 (replace_members): If necessary, create a bfd to hold the libdeps
169 * binemul.c (ar_emul_append_bfd): New function.
170 (ar_emul_replace_bfd): New function.
171 (ar_emul_default_append): Replace file_name and target arguments
172 with new_bfd argument.
173 (ar_emul_default_replace): Likewise.
174 * binemul.h: Update prototypes.
175 (struct bin_emulation_xfer_struct): Update fields.
176 * doc/binutils.texi: Document the new option.
177 * NEWS: Mention the new feature.
178 * emul_aix.c (ar_emul_aix_append): Update.
179 (ar_emul_aix_replace): Likewise.
180 * testsuite/binutils-all/ar.exp: Add test of new feature.
182 2020-10-30 H.J. Lu <hongjiu.lu@intel.com>
185 * readelf.c (decode_x86_isa): Handle
186 * GNU_PROPERTY_X86_ISA_1_BASELINE.
187 * testsuite/binutils-all/i386/empty.d: Updated.
188 * testsuite/binutils-all/i386/ibt.d: Likewise.
189 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
190 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
191 * testsuite/binutils-all/i386/shstk.d: Likewise.
192 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
193 * testsuite/binutils-all/x86-64/empty.d: Likewise.
194 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
195 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
196 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
197 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
198 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
199 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
200 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
201 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
202 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
203 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
204 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
205 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
206 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
207 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
209 2020-10-29 H.J. Lu <hongjiu.lu@intel.com>
212 * dwarf.c (abbrev_list): Add abbrev_base.
213 (new_abbrev_list): Add an abbrev_base argument and record it.
214 (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
216 (process_debug_info): Pass abbrev_base to new_abbrev_list and
217 find_abbrev_list_by_abbrev_offset.
218 (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
219 and find_abbrev_list_by_abbrev_offset.
220 * testsuite/binutils-all/x86-64/pr26808.dump: New file.
221 * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
222 * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
225 2020-10-29 Nick Clifton <nickc@redhat.com>
228 * objcopy.c (is_dwo_section): Check for missing or short section
231 2020-10-26 Andreas Rammhold <andreas@rammhold.de>
233 * README-how-to-make-a-release: Use sha256sum instead of md5sum.
235 2020-10-28 Nick Clifton <nickc@redhat.com>
238 * elfedit.c (process_archive): Remove spurious call to free().
240 2020-10-27 Nick Clifton <nickc@redhat.com>
242 * dwarf.c (struct abbrev_list): New structure. Used to collect
243 lists of abbreviation sets.
244 (struct abbrev_map): New structure. Used to map CU offsets to
245 abbreviation offsets.
246 (record_abbrev_list): New function. A new entry to an
248 (free_all_abbrevs): Update to free abbreviation lists.
249 (new_abbrev_list): New function. Start a new abbreviation
251 (find_abbrev_list_by_abbrev_offset): New function.
252 (find_abbrev_map_by_offset): New function.
253 (add_abbrev): Add abbrev_list parameter.
254 (add_abbrev_attr): Likewise.
255 (process_abbrev_section): Rename to process_abbrev_set and add
257 (get_type_abbrev_from_form): New function. Attempts to decode the
258 forms used by DW_AT_type attributes.
259 (get_type_signedness): Display type names if operating in wide
260 mode. Use get_type_abbrev_from_form.
261 (read_and_display_attr_value): Use get_type_abbrev_from_form.
262 (process_debug_info): Pre-parse the CU headers to collate all the
263 abbrevs before starting the main scan.
264 (process_debug_abbrev): Do not free any loaded abbrevs.
265 (free_debug_memory): Free the abbrev maps.
267 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
269 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
270 error message on error.
272 2020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
274 * windmc.c (write_header_define): Fix printf format.
275 (write_header): Likewise.
277 2020-10-21 Nick Clifton <nickc@redhat.com>
279 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
280 when processing the DW_FORM_ref_addr form.
281 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
282 Handle DW_FORM_indirect.
283 (get_type_signedness): Allow a limited amount of recursion.
284 Do not attempt to decode types that use the DW_FORM_ref_addr form.
285 (read_and_display_attr_value): Do not attempt to decode types
286 that use the DW_FORM_ref_addr form.
288 2020-10-20 Alan Modra <amodra@gmail.com>
290 * readelf.c: Delete whitespace at end of line throughout.
291 (SECTION_NAME, SECTION_NAME_VALID): New.
292 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
293 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
294 (process_section_headers, process_section_groups): Likewise.
295 (shdr_to_ctf_sect): Likewise.
296 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
297 (ia64_process_unwind, hppa_process_unwind): Likewise.
298 (display_debug_section, initialise_dumps_byname): Likewise.
299 (process_lto_symbol_tables): Likewise. Check trailing period of
300 lto symbol table names.
301 (display_lto_symtab): Use sizeof instead of strlen.
303 2020-10-20 Nelson Chu <nelson.chu@sifive.com>
305 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
307 2020-10-19 Nick Clifton <nickc@redhat.com>
309 * readelf.c (do_lto_syms): New local.
310 (long_option_values): Add OPTION_LTO_SYMS.
311 (options): Add --lto-syms.
312 (usage): Mention the new option.
313 (parse_args): Parse the new option.
314 (get_lto_kind): New function.
315 (get_lto_visibility): New function.
316 (get_lto_sym_type): New function.
317 (display_lto_symtab): New function - displays the contents of an
318 LTo symbol table section.
319 (process_lto_symbol_tables): New functions. Calls
320 dipslay_lto_symtab on any LTO symbol table section.
321 (process_object_file): Call process_lto_symbol_tables.
322 * doc/binutils.texi: Document the new option.
323 * NEWS: Mention the new feature.
325 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
328 * readelf.c (decode_x86_compat_2_isa): New function.
329 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
330 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
331 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
332 and X86_COMPAT_2_ISA_1_NEEDED.
333 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
334 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
336 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
337 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
338 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
339 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
340 * testsuite/binutils-all/i386/empty.d: Updated.
341 * testsuite/binutils-all/i386/ibt.d: Likewise.
342 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
343 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
344 * testsuite/binutils-all/i386/shstk.d: Likewise.
345 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
346 * testsuite/binutils-all/x86-64/empty.d: Likewise.
347 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
348 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
349 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
350 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
351 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
352 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
353 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
354 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
355 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
356 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
357 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
358 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
359 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
360 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
362 2020-10-06 Nick Clifton <nickc@redhat.com>
364 * objcopy.c (copy_object): Compare input and output sections by
365 pointer rather than name.
367 2020-10-05 Nick Clifton <nickc@redhat.com>
370 * windmc.c (mc_unify_path): Fix typo checking character at end of
373 2020-10-05 Samanta Navarro <ferivoz@riseup.net>
375 * doc/binutils.texi: Fix spelling mistakes.
377 2020-09-29 Mark Wielaard <mark@klomp.org>
379 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
380 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
382 2020-09-25 Alan Modra <amodra@gmail.com>
384 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
386 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
387 allowed reloc_size. Don't read_leb128 outside of section.
389 2020-09-23 Mark Wielaard <mark@klomp.org>
391 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
392 * testsuite/binutils-all/dw5.W: Adjust expected output.
393 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
395 2020-09-23 Mark Wielaard <mark@klomp.org>
397 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
398 for dwarf_version 5 just as version 3 and 4 (only 2 is
400 (process_debug_info): Allow DW_UT_partial.
402 2020-09-24 Nick Clifton <nickc@redhat.com>
405 * doc/binutils.texi (nm): Document that 'c' is used for small
408 2020-09-21 Ludovic Courtès <ludo@gnu.org>
410 * doc/binutils.texi (objcopy, strip): Say that
411 '--strip-unneeded' implies '--strip-debug'.
413 2020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
415 * verilog.c (verilog_write_address): Properly handle 64-bit
416 addresses to avoid truncation of the high part.
418 2020-09-16 Alan Modra <amodra@gmail.com>
420 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
421 * objcopy.c (is_hidden_symbol): Likewise.
423 2020-09-15 Nick Clifton <nickc@redhat.com>
425 * README-how-to-make-a-release (https): Add a reminder to create a
426 new Bugzilla tag for the point release, once it has been published.
428 2020-09-11 H.J. Lu <hongjiu.lu@intel.com>
430 * readelf.c (get_note_type): Support NT_X86_CET.
432 2020-09-11 Nick Clifton <nickc@redhat.com>
435 * dwarf.c (load_separate_debug_info): Return NULL rather than
436 FALSE in error situations.
437 (load_separate_debug_file): Move code to load debug links to ...
438 (check_for_and_load_links): ... here. New function. Load
439 separate debug information pointed to by debuglink and
440 debugaltlink sections. Recursively scan newly loaded debug
441 information for more links and load them too.
443 2020-09-09 Alan Modra <amodra@gmail.com>
446 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
447 (load_separate_debug_files): Use a stack var for build_id_data.
449 2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
452 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
453 to ld on PE targets for PR 25662 test.
455 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
456 Kuan-Lin Chen <kuanlinchentw@gmail.com>
458 * readelf.c (target_specific_reloc_handling): Handle
459 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
461 2020-09-02 Alan Modra <amodra@gmail.com>
463 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
465 2020-08-30 Alan Modra <amodra@gmail.com>
467 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
470 2020-08-28 Nick Clifton <nickc@redhat.com>
473 * dwarf.c (read_leb128): When checking for overflow of a signed
474 read, use a signed shift.
476 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
478 * readelf.c (get_csky_section_type_name): New.
479 (get_section_type_name): Add handler for CSKY.
480 (display_csky_attribute): New.
481 (process_arch_specific): Add handler for CSKY.
482 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
485 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
487 * readelf.c (get_msp430x_section_type_name): Rename to ...
488 (get_msp430_section_type_name): ... this.
489 (get_section_type_name): Use get_msp430_section_type_name.
490 (display_msp430x_attribute): Rename to ...
491 (display_msp430_attribute): ... this.
492 (process_arch_specific): Use display_msp430_attribute.
494 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
497 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
498 "-j $PRIVATE$" to command on hppa*-*-hpux*.
499 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
500 dollar-sign quotes before quoting. Do this prior to generating log
503 2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
506 * mclex.c (skip_until_eol): If eol was found, increment line
509 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
511 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
512 * readelf.c (dump_ctf_errs): Likewise.
514 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
516 * objdump.c (dump_ctf_archive_member): Move error-
518 (dump_ctf_errs): ... into this separate function.
519 (dump_ctf): Call it on open errors.
520 * readelf.c (dump_ctf_archive_member): Move error-
522 (dump_ctf_errs): ... into this separate function. Support
523 calls with NULL fp. Adjust for new err parameter to
525 (dump_section_as_ctf): Call it on open errors.
527 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
529 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
530 * Makefile.in: Regenerated.
532 2020-08-26 Nick Clifton <nickc@redhat.com>
535 * readelf.c (get_segment_type): Handle OpenBSD segment types.
537 2020-08-26 Alan Modra <amodra@gmail.com>
540 * objcopy.c (copy_object): Don't fwrite NULL contents.
542 2020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
545 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
547 2020-08-24 Alan Modra <amodra@gmail.com>
549 * readelf.c (dump_section_as_strings) Avoid false positive
550 "may be used uninitialised".
552 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
555 * nm.c (print_symname): Display only one '@' for undefined
557 * doc/binutils.texi: Update nm version information.
559 2020-08-21 Mark Wielaard <mark@klomp.org>
561 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
562 recognize DW_LANG_C11.
564 2020-08-19 Alan Modra <amodra@gmail.com>
567 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
569 (dump_section_as_strings): Don't use %tx to display offset.
571 2020-08-14 Alan Modra <amodra@gmail.com>
574 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
575 of debug_information. Correct test of max_loc_offsets and
577 * rddbg.c (read_debugging_info): Free dhandle on error.
579 2020-08-14 Alan Modra <amodra@gmail.com>
581 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
583 2020-08-13 Alan Modra <amodra@gmail.com>
586 * objcopy.c (copy_object): Report file name with endian error.
587 Error and return on abfd->read_only.
589 2020-08-12 Tom Tromey <tromey@adacore.com>
591 * dwarf-mode.el (Version): Now 1.6.
592 (dwarf-die-button-action): Tighten DIE reference regexp.
593 (dwarf-font-lock-keywords): Update name regexp.
595 2020-08-12 Nick Clifton <nickc@redhat.com>
598 * readelf.c (do_demangle): New option flag.
599 (print_symbol): If do_demangle is enabled, demangle the symbol.
600 (enum long_option_values): New enum to hold long option values.
601 (options): Add demangle, no-demangle, recursion-limit and
602 no-recursion-limit options. Alpha sort the table.
603 (usage): Describe the new options.
604 (parse_args): Handle the new options.
605 * NEWS: Mention the new feature.
606 * doc/binutils.texi: Document the new feature.
607 * testsuite/binutils-all/readelf.exp: Test the new feature.
608 * testsuite/binutils-all/mangled.s: New file - assembler source.
609 * testsuite/binutils-all/readelf.demangled: New file - expected
612 2020-08-12 Nick Clifton <nickc@redhat.com>
614 * po/sr.po: Updated Serbian translation.
616 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
619 * nm.c (with_symbol_versions): Removed.
620 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
621 (long_options): Update --with-symbol-versions entry.
622 (print_symbol): Remove the with_symbol_versions check.
623 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
625 * doc/binutils.texi: Remove --with-symbol-versions.
627 2020-08-05 Alan Modra <amodra@gmail.com>
630 * objdump.c (load_specific_debug_section): Revert last change.
632 2020-08-05 Alan Modra <amodra@gmail.com>
635 * objdump.c (load_specific_debug_section): Don't malloc space for
636 section contents, use bfd_malloc_and_get_section.
638 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
640 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
641 * Makefile.in, doc/Makefile.in: Regenerate.
642 * configure: Regenerate.
644 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
646 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
648 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
649 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
650 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
651 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
652 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
654 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
656 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
658 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
660 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
662 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
664 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
666 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
668 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
670 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
672 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
674 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
676 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
678 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
680 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
682 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
684 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
686 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
688 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
690 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
693 * configure: Regenerated.
695 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
698 * configure: Regenerated.
700 2020-07-27 Alan Modra <amodra@gmail.com>
702 * objdump.c (dump_section): Don't return without calling
705 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
707 * doc/binutils.texi: Replace preceeded with preceded.
709 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
711 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
712 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
714 (has_newabi): Remove variable.
715 (has_abi, abi_asflags, abi_ldflags): New associative array
717 (irixemul): New variable.
718 Replace `run_dump_test' calls where applicable throughout with
719 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
720 as appropriate. Use `noarch' for tests that require their own
721 architecture setting.
722 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
723 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
724 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
725 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
726 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
727 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
728 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
729 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
730 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
731 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
732 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
733 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
734 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
735 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
737 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
738 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
739 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
740 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
741 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
742 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
743 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
745 2020-07-24 Aaron Merey <amerey@redhat.com>
747 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
748 * Makefile.in: Rebuild.
749 * configure: Rebuild.
750 * doc/Makefile.in: Rebuild.
752 2020-07-24 Nick Clifton <nickc@redhat.com>
754 * README-how-to-make-a-release: Various small updates whilst
755 creating the 2.35 release.
757 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
759 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
762 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
764 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
765 (dump_ctf): Likewise.
767 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
769 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
770 * readelf.c (dump_ctf_archive_member): Likewise.
772 2020-07-22 Nick Clifton <nickc@redhat.com>
774 * readelf.c (parse_args): Silence potential warnings about a
775 memory resource leak when allocating space for ctf option values.
776 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
779 2020-07-21 Nick Clifton <nickc@redhat.com>
781 * po/sv.po: Updated Swedish translation.
783 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
785 * testsuite/binutils-all/arc/double_regs.s: New test.
786 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
788 2020-07-13 Nick Clifton <nickc@redhat.com>
790 * po/fr.po: Updated French translation.
792 2020-07-13 Alan Modra <amodra@gmail.com>
794 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
795 optional machine-os arg.
797 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
799 * readelf.c (decode_x86_feature_2): Handle
800 GNU_PROPERTY_X86_FEATURE_2_TMM.
802 2020-07-10 Tom de Vries <tdevries@suse.de>
804 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
805 information in the end_sequence row.
806 * testsuite/binutils-all/dw5.W: Update.
807 * testsuite/binutils-all/objdump.WL: Update.
809 2020-07-09 Alan Modra <amodra@gmail.com>
811 * dlltool.c: Remove powerpc PE support and comments.
812 * configure.ac: Remove powerpc PE dlltool config.
813 * configure: Regenerate.
815 2020-07-09 Nick Clifton <nickc@redhat.com>
817 * rclex.c: Add OWNERDRAW keyword.
818 * rcparse.y: Add OWNERDRAW token.
819 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
820 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
822 * windres.c (extended_menuitems): Likewise.
823 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
825 2020-07-09 Alan Modra <amodra@gmail.com>
827 * readelf (slurp_hppa_unwind_table): Set table_len before use
828 in relocation sanity checks.
830 2020-07-07 Alan Modra <amodra@gmail.com>
832 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
833 * testsuite/binutils-all/nm.exp: Likewise.
834 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
835 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
836 * testsuite/binutils-all/set-section-alignment.d: Likewise.
837 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
839 2020-07-07 Alan Modra <amodra@gmail.com>
841 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
842 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
844 2020-07-06 Nick Clifton <nickc@redhat.com>
846 * po/bg.po: Updated Bulgarian translation.
847 * po/pt.po: Updated Portuguese translation.
848 * po/uk.po: Updated Ukranian translation.
850 2020-07-06 Alan Modra <amodra@gmail.com>
852 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
855 2020-07-04 Nick Clifton <nickc@redhat.com>
857 * configure: Regenerate.
858 * po/binutils.pot: Regenerate.
860 2020-07-04 Nick Clifton <nickc@redhat.com>
862 Binutils 2.35 branch created.
864 2020-07-02 Nick Clifton <nickc@redhat.com>
867 * readelf.c (print_symbol): Handle truncation of symbol names.
868 (options): Add -T/--silent-truncation option.
869 (parse_args): Handle the option.
870 (print_dynamic_symbol): Correct calculation of width available to
872 * doc/binutils.texi: Document the -T option to readelf.
873 * NEWS: Mention the new feature.
875 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
877 * NEWS: Mention x86 NaCl target support removal.
878 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
879 x86 NaCl target support.
880 * testsuite/binutils-all/elfedit-1.d: Likewise.
881 * testsuite/binutils-all/i386/i386.exp: Likewise.
882 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
883 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
884 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
885 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
886 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
887 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
888 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
889 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
890 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
891 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
892 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
893 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
895 2020-06-30 Nick Clifton <nickc@redhat.com>
897 * dwarf.c (read_and_display_attr_value): Support
898 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
901 2020-06-30 Alan Modra <amodra@gmail.com>
903 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
906 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
908 * dwarf.c (display_debug_str_offsets): Rename local variable
909 index to idx. Move to top of function.
911 2020-06-29 Alan Modra <amodra@gmail.com>
913 * dwarf.c: Use C style comments.
916 2020-06-27 Alan Modra <amodra@gmail.com>
918 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
920 (release_archive): Set fields of arch to NULL after freeing.
922 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
924 * readelf.c (dump_section_as_ctf): Support .ctf archives using
925 ctf_arc_bufopen. Automatically load the .ctf member of such
926 archives as the parent of all other members, unless specifically
927 overridden via --ctf-parent. Split out dumping code into...
928 (dump_ctf_archive_member): ... here, as in objdump, and call
929 it once per archive member.
930 (dump_ctf_indent_lines): Code style fix.
932 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
934 * configure.ac [--enable-libctf]: New, default yes.
935 Set ENABLE_LIBCTF accordingly.
936 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
937 * configure: Regenerate.
938 * config.in: Regenerate.
939 * Makefile.in: Regenerate.
940 * aclocal.m4: Regenerate.
941 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
942 (option_values): Likewise.
943 (long_options): Likewise.
945 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
946 (make_ctfsect): Likewise.
947 (dump_ctf_archive_member): Likewise.
948 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
949 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
950 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
952 (process_section_contents): Likewise.
953 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
954 (dump_ctf_indent_lines): Likewise.
955 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
957 2020-06-26 Jan Beulich <jbeulich@suse.com>
959 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
960 redundant text from x86 specific part of -M section.
962 2020-06-26 Pat Bernardi <bernardi@adacore.com>
964 * readelf.c (display_m68k_gnu_attribute): New function.
965 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
967 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
970 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
971 * testsuite/binutils-all/pr26160.r: Likewise.
972 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
974 2020-06-23 Nick Clifton <nickc@redhat.com>
977 * dwarf.c (fetch_indexed_string): Detect and handle old style
978 .debug_str_offset tables.
979 (display_debug_str_offsets): Likewise. Also add support for
980 .debug_str_offsets.dwo sections.
982 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
985 * testsuite/binutils-all/pr26112.o.bz2: New file.
986 * testsuite/binutils-all/pr26112.r: Likewise.
987 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
989 2020-06-23 Alan Modra <amodra@gmail.com>
991 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
992 remote_file delete command.
994 2020-06-22 Nick Clifton <nickc@redhat.com>
997 * dwarf.c (display_debug_str_offsets): Add code to display the
998 contents of the .debug_str_offsets section.
999 (display_debug_macro): Add support for DW_MACRO_define_strx and
1000 DW_MACRO_undef_strx.
1002 2020-06-22 Saagar Jha <saagar@saagarjha.com>
1004 * od-macho.c: Dump linkedit data for new load commands.
1006 2020-06-19 Alan Modra <amodra@gmail.com>
1008 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
1009 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
1010 (run_dump_test): Use check_relro_support to decide whether to pass
1011 extra ld option "-z norelro".
1013 2020-06-11 Alan Modra <amodra@gmail.com>
1015 * readelf.c (process_mips_specific): Don't alloc memory for
1016 Elf_Internal_Options.
1018 2020-06-11 Alan Modra <amodra@gmail.com>
1020 * readelf.c (process_mips_specific): Assert size of internal
1021 types match size of external types, and simplify allocation of
1022 internal buffer. Catch possible integer overflow when sanity
1023 checking option size. Don't assume options are a regular array.
1024 Sanity check reginfo option against option size. Use PRI macros
1027 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
1030 * mclex.c (yylex): Reject lines that reach end-of-file without a
1031 terminating newline character.
1033 2020-06-08 Nick Clifton <nickc@redhat.com>
1036 * doc/binutils.texi (strings): Fix typo.
1038 2020-06-08 Nick Clifton <nickc@redhat.com>
1041 * dwarf.c (process_debug_info): Check that there is space in the
1042 debug_information array before filling in an entry.
1044 2020-06-06 Alan Modra <amodra@gmail.com>
1046 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
1048 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
1051 * mclex.c (yylex): Add test for an empty input stream.
1053 2020-06-04 Stephen Casner <casner@acm.org>
1055 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
1056 for test using section pseudo-ops compatible with pdp11.
1057 * testsuite/binutils-all/objcopy.exp: Select alternate source.
1059 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1061 * objdump.c (disassemble_data): Set disasm_info.endian_code to
1062 disasm_info.endian after the latter is initialized to the
1063 endianness reported by BFD.
1065 2020-06-04 Alan Modra <amodra@gmail.com>
1067 * testsuite/binutils-all/i386/i386.exp: Remove global directive
1069 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
1070 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
1072 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
1074 * windmc.h (struct mc_node): Add id_typecast field.
1075 * mcparse.y (message): Initialise the id_typecast field.
1076 * windmc.c (write_dbg): Use the id_typecast field as a parameter
1077 when calling write_dbg_define.
1078 (write_header): Likewise.
1080 2020-06-03 Alan Modra <amodra@gmail.com>
1083 * objcopy.c (copy_relocations_in_section): Free relpp on error.
1084 Don't accidentally free isection->orelocation.
1086 2020-06-02 Alan Modra <amodra@gmail.com>
1088 * testsuite/binutils-all/ar.exp (obj): Set up object file name
1089 extension. Use throughout. Don't completely exclude non-ELF
1090 alpha targets. Run long_filenames test for tic30. Exclude thin
1091 archive tests for aix, ecoff and vms.
1092 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
1093 extension. Use throughout. Don't exclude non-ELF alpha targets
1096 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
1098 * MAINTAINERS (Xtensa): Add myself as maintainer.
1100 2020-05-23 Alan Modra <amodra@gmail.com>
1102 * testsuite/binutils-all/ar.exp (many_files): New test.
1104 2020-05-21 Alan Modra <amodra@gmail.com>
1106 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
1107 * dlltool.c: Likewise.
1108 * elfcomm.c: Likewise.
1109 * rddbg.c: Likewise.
1110 * readelf.c: Likewise.
1111 * stabs.c: Likewise.
1112 * windmc.c: Likewise.
1113 * windres.c: Likewise.
1114 * wrstabs.c: Likewise.
1116 2020-05-21 Alan Modra <amodra@gmail.com>
1118 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
1121 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
1123 * dwarf.c: Updated since DECLARE_CSR is changed.
1125 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
1128 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
1129 segment doesn't match the .dynamic section and checks are
1131 (struct filedata): Add dynamic_symtab_section and
1132 dynamic_strtab_section fields.
1133 (process_section_headers): Set dynamic_symtab_section to the
1134 .dynsym section. Set dynamic_strtab_section to the .dynstr
1136 (process_dynamic_section): Warn if the .dynsym section doesn't
1137 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
1138 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
1140 2020-05-19 Alan Modra <amodra@gmail.com>
1142 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
1143 (replace_members): Use bfd_get_filename rather than accessing
1144 bfd->filename directly.
1145 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
1146 * binemul.c (do_ar_emul_append): Likewise.
1147 * coffgrok.c (coff_grok): Likewise.
1149 2020-05-18 Stafford Horne <shorne@gmail.com>
1151 * MAINTAINERS (OR1K): Add myself as maintainer.
1153 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1155 * doc/binutils.texi: Mention 'entry address' in the set-start and
1156 adjust-start options descriptions.
1158 2020-05-05 Nick Clifton <nickc@redhat.com>
1160 * dwarf.c (do_checks): New global variable.
1161 (display_formatted_table): Warn about an unexpected number of
1162 columns in the table, if checks are enabled. Do not complain
1163 about the lack of data following the number of entries in the
1164 table if the table is empty.
1165 (display_debug_lines_decoded): Only warn about an unexpected
1166 number of columns in a table if checks are enabled.
1167 * dwarf.h (do_checks): Add a prototype.
1168 * elfcomm.c (error): Remove weak attribute.
1170 * readelf.c (do_checks): Delete.
1172 (process_section_headers): Only warn about empty sections if
1175 2020-05-04 Fangrui Song <maskray@google.com>
1177 * objcopy.c (copy_object): Allow empty section.
1178 * testsuite/binutils-all/update-section.exp: Add test.
1180 2020-05-04 Nick Clifton <nickc@redhat.com>
1183 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
1184 supicious number of entries for DWARF-5 format directory and file
1185 name tables. Do not display file name table header if the table
1186 is empty. Do not allocate space for empty tables.
1188 2020-05-04 Alan Modra <amodra@gmail.com>
1190 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
1191 section. Don't assume endian of host matches nds32 target. Free
1194 2020-05-01 Alan Modra <amodra@gmail.com>
1195 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
1197 * objdump.c (disassemble_bytes): Don't scan for zeros when
1198 disassembling zeros. Translate "resuming at file offset" message.
1199 Formatting. Replace some signed variables with unsigned.
1201 2020-04-30 Alex Coplan <alex.coplan@arm.com>
1203 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
1205 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1207 2020-04-30 Nick Clifton <nickc@redhat.com>
1209 * testsuite/lib/binutils-common.exp (check_pie_support): New
1212 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1214 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
1215 range_entries for the same offset.
1217 2020-04-29 Nick Clifton <nickc@redhat.com>
1219 * readelf.c (warn): New function - like elfcomm.c version but only
1220 produces output if warnings are enabled.
1221 (struct options): Add --lint and --enable-checks.
1222 (usage): Add entry for --lint.
1223 (parse_args): Handle -L. If checks are enabled but no dumps have
1224 been selected then enable all dumps.
1225 (process_section_headers): Replace long if-then-else sequence with
1226 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
1227 SHT_PROGBITS sections.
1228 (process_file): Do not complain if the file is an archive and lint
1229 mode has been enabled.
1230 * elfcomm.c (error): Make the function weak.
1232 * NEWS: Mention the new feature.
1233 * doc/binutils.texi: Document the new feature.
1234 * dwarf.h (report_leb_status): Add file name and line number
1235 parameters. Include them in the diagnostic output.
1236 (READ_ULEB): Pass file and line number to report_leb_status.
1237 (READ_SLEB): Likewise.
1238 * dwarf.c (read_and_print_leb128): Pass file and line number to
1240 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1241 * testsuite/binutils-all/zero-sec.s: New test source file.
1242 * testsuite/binutils-all/zero-sec.r: Expected output from new
1245 2020-04-29 Nick Clifton <nickc@redhat.com>
1247 * po/sr.po: Updated Serbian translation.
1249 2020-04-26 Alan Modra <amodra@gmail.com>
1251 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1252 read before dereferencing, and gracefully return. Remove
1253 gnu_hash_error variable. Free gnu hash arrays if number of
1256 2020-04-24 Alan Modra <amodra@gmail.com>
1258 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1260 (process_dynamic_section): Call get_num_dynamic_syms once rather
1261 than in segment loop. Break out of segment loop on a successful
1262 load of dynamic symbols. Formatting.
1263 (process_object): Return error status from process_dynamic_section.
1265 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1267 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1268 * elf.c (elfcore_grok_arc_v2): New function.
1269 (elfcore_grok_note): Call the new function to handle the corresponding
1271 (elfcore_write_arc_v2): New function.
1272 (elfcore_write_register_note): Call the new function to handle the
1273 corresponding pseudo-sections.
1275 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1278 * readelf.c (is_none_reloc): Recognize
1279 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1280 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1282 2020-04-22 Nick Clifton <nickc@redhat.com>
1284 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1286 2020-04-22 Alan Modra <amodra@gmail.com>
1288 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1289 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1290 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1291 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1292 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1293 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1294 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1295 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1296 (section_headers_groups): Move to struct filedata. Update use
1299 2020-04-22 Alan Modra <amodra@gmail.com>
1301 * readelf.c (struct dump_data): New, used..
1302 (cmdline): ..here, and..
1303 (struct filedata): ..here. Adjust all uses.
1304 (request_dump_bynumber, request_dump, parse_args): Pass in a
1305 struct dump_data* rather than Filedata*. Adjust callers.
1306 (main): Don't set cmdline.file_name.
1308 2020-04-20 Alan Modra <amodra@gmail.com>
1310 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1313 2020-04-20 Alan Modra <amodra@gmail.com>
1315 * readelf.c (process_section_headers): Free dynamic symbols etc.
1318 2020-04-20 Alan Modra <amodra@gmail.com>
1320 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1321 on error without freeing.
1322 (process_dynamic_section): Don't recreate dynamic symbols from
1323 dynamic tag info when the dynamic symbols have already been
1324 read via section headers.
1326 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
1328 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1329 conditional VDUP instructions are disassembled correctly.
1330 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1332 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1333 that VDUP instructions (which are conditional in A32) can be
1334 disassembled in thumb mode.
1335 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1338 2020-04-17 Alan Modra <amodra@gmail.com>
1341 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1343 2020-04-16 Alan Modra <amodra@gmail.com>
1345 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1346 --no-addresses description.
1348 2020-04-15 Alan Modra <amodra@gmail.com>
1350 * objdump.c (no_addresses): New static var.
1351 (usage): Print help for --no-addresses.
1352 (long_options): Add --no-addresses entry.
1353 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1354 (disassemble_bytes): Don't print current line address, or reloc
1356 * doc/binutils.texi: Document objdump --no-addresses.
1358 2020-04-15 Alan Modra <amodra@gmail.com>
1361 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1362 reading buckets or chains fails.
1364 2020-04-15 Alan Modra <amodra@gmail.com>
1366 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1369 2020-04-15 Alan Modra <amodra@gmail.com>
1371 * readelf.c (get_group_flags): Translate text.
1372 (get_file_type, get_symbol_binding, get_symbol_type),
1373 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1375 2020-04-15 Alan Modra <amodra@gmail.com>
1378 * readelf.c (get_num_dynamic_syms): Typo fix.
1380 2020-04-14 Alan Modra <amodra@gmail.com>
1382 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1383 possibility of overflow when checking number of conflicts.
1385 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1388 * readelf.c (nbuckets): New.
1389 (nchains): Likewise.
1390 (buckets): Likewise.
1392 (ngnubuckets): Likewise.
1393 (gnubuckets): Likewise.
1394 (gnuchains): Likewise.
1395 (mipsxlat): Likewise.
1396 (ngnuchains): Likewise.
1397 (gnusymidx): Likewise.
1398 (VALID_SYMBOL_NAME): Likewise.
1399 (VALID_DYNAMIC_NAME): Use it.
1400 (get_dynamic_data): Moved before process_dynamic_section.
1401 (get_num_dynamic_syms): New function.
1402 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1403 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1404 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1406 (get_symbol_index_type): Don't print "bad section index" when
1407 there is no section header.
1408 (print_dynamic_symbol): Rewrite.
1409 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1412 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1414 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1415 enable on *-*-solaris*.
1417 2020-03-30 Nick Clifton <nickc@redhat.com>
1420 * objcopy.c (copy_object): When copying PE format files set the
1421 timestamp field in the pe_data structure if the preserve_dates
1423 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1424 --preserve-dates in place of the -p option, in order to make its
1425 effect more obvious.
1427 2020-03-28 Alan Modra <amodra@gmail.com>
1429 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1430 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1432 2020-03-28 Alan Modra <amodra@gmail.com>
1434 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1435 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1436 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1437 test. Pass "-p" to objcopy for the executable test.
1439 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1442 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1443 specify whether an object file or executable should be built and tested.
1444 Change test names to report whether an object file or executable is
1446 * testsuite/binutils-all/pr25662.ld: New test.
1447 * testsuite/binutils-all/pr25662.s: New test.
1449 2020-03-27 Alan Modra <amodra@gmail.com>
1451 * readelf.c (process_archive): Don't double free qualified_name.
1452 Don't break out of loop with "negative" archive_file_size, just
1453 set file offset to max.
1455 2020-03-25 Alan Modra <amodra@gmail.com>
1457 * readelf.c (process_archive): Prevent endless loop.
1459 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1462 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1463 with bfd_get_symbol_version_string.
1464 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1465 * objdump.c (objdump_print_symname): Likewise.
1467 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1470 * nm.c (SYM_NAME): Removed.
1471 (print_symname): Add a pointer to struct extended_symbol_info
1472 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1474 (print_symdef_entry): Pass NULL to print_symname.
1475 (print_symbol_info_bsd): Update call to print_symname.
1476 (print_symbol_info_sysv): Likewise.
1477 (print_symbol_info_posix): Likewise.
1479 2020-03-24 Alan Modra <amodra@gmail.com>
1481 * readelf.c (process_mips_specific): Free iconf on error path.
1483 2020-03-23 Nick Clifton <nickc@redhat.com>
1486 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1487 * write_stabs_in_sections_debugging_info: Likewise.
1488 * stab_enum_type: Likewise.
1489 * stab_modify_type: Likewise.
1490 * stab_struct_field: Likewise.
1491 * stab_end_struct_type: Likewise.
1492 * stab_start_class_type: Likewise.
1493 * stab_class_static_member: Likewise.
1494 * stab_class_baseclass: Likewise.
1495 * stab_class_start_method: Likewise.
1496 * stab_class_method_var: Likewise.
1497 * stab_class_end_method: Likewise.
1498 * stab_end_class_type: Likewise.
1499 * stab_typedef_type: Likewise.
1500 * stab_start_function: Likewise.
1501 * stab_end_block: Likewise.
1502 * stab_lineno: Likewise.
1504 2020-03-20 Nick Clifton <nickc@redhat.com>
1506 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1507 (process_section_headers): Check the return value from
1508 get_compression_header.
1509 (dump_section_as_strings): Likewise.
1510 (dump_section_as_bytes): Likewise.
1511 (load_specific_debug_section): Likewise.
1513 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1515 * ar.c (main): Update bfd_plugin_set_program_name call.
1516 * nm.c (main): Likewise.
1518 2020-03-19 Nick Clifton <nickc@redhat.com>
1521 * testsuite/binutils-all/dw4.s: New test source file.
1522 * testsuite/binutils-all/nm.exp: Run the new test.
1524 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1526 * readelf.c (process_symbol_table): Use unsigned long for si.
1528 2020-03-19 Alan Modra <amodra@gmail.com>
1530 * elfcomm.c: Don't include bfd.h or bucomm.h.
1531 (program_name): Declare.
1532 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1533 and substitute FALSE and TRUE.
1534 (setup_archive, setup_nested_archive): Likewise.
1535 * elfcomm.h: Likewise.
1537 2020-03-19 Alan Modra <amodra@gmail.com>
1539 * readelf.c (process_archive): Always return via path freeing
1542 2020-03-19 Alan Modra <amodra@gmail.com>
1544 * readelf.c (process_netbsd_elf_note): Validate descsz before
1545 accessing descdata. Formatting.
1547 2020-03-19 Alan Modra <amodra@gmail.com>
1549 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1550 * elfcomm.h (setup_archive): Update prototype.
1552 2020-03-16 Alan Modra <amodra@gmail.com>
1554 * readelf.c (get_symbols): New function.
1555 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1556 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1558 2020-03-16 Alan Modra <amodra@gmail.com>
1560 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1561 Detect shift overflows and check that terminating byte is found.
1562 Print an error on a bad uleb128.
1564 2020-03-14 Alan Modra <amodra@gmail.com>
1566 * readelf.c (process_file): Clean ba_cache.
1568 2020-03-14 Alan Modra <amodra@gmail.com>
1570 * elfcomm.h (setup_archive): Update prototype.
1571 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1572 check longnames_size.
1573 (setup_nested_archive): Get file size and pass to setup_archive.
1574 * elfedit.c (process_archive): Likewise.
1575 * readelf.c (process_archive): Pass filedata->file_size to
1578 2020-03-14 Alan Modra <amodra@gmail.com>
1580 * readelf.c (dump_section_as_strings): Free memory on error exit.
1581 (dump_section_as_bytes, process_notes_at): Likewise.
1582 (get_build_id): Free enote.
1584 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1586 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1587 NT_NETBSDCORE_LWPSTATUS notes.
1589 2020-03-13 Alan Modra <amodra@gmail.com>
1591 * elfcomm.c (get_archive_member_name): Always return malloc'd
1593 * elfedit.c (process_archive): Tidy memory on all return paths.
1594 * readelf.c (process_archive): Likewise.
1595 (process_symbol_table): Likewise.
1596 (ba_cache): New, replacing ..
1597 (get_symbol_for_build_attribute): ..static vars here. Free
1598 strtab and symtab before loading new ones. Reject symtab without
1599 valid strtab in loop, breaking out of loop on valid symtab.
1600 (process_file): Free ba_cache symtab and strtab here, resetting
1603 2020-03-12 Alan Modra <amodra@gmail.com>
1605 * readelf.c (process_section_headers): Don't just set
1606 filedata->section_headers NULL, free it first. Similarly for
1607 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1608 symtab_shndx_list. Zero associated counts too.
1609 (process_object): Free symtab_shndx_list.
1610 (process_file): Free various allocated filedata tables.
1612 2020-03-11 Nick Clifton <nickc@redhat.com>
1616 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1617 li_segment_size fields.
1618 * dwarf.c (read_debug_line_header): Record the address size and
1619 segment selector size values (if present) in the lineinfo
1621 (display_formatted_table): Warn if the format count is empty but
1622 the table itself is not empty.
1623 Display the format count and entry count at the start of the table
1625 (display_debug_lines_raw): Display the address size and segement
1626 selector size fields, if present.
1627 * testsuite/binutils-all/dw5.W: Update expected output.
1629 2020-03-11 Alan Modra <amodra@gmail.com>
1632 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1633 pad_to_set on second block of code dealing with padding.
1634 Replace "c" with "num_sec" and don't recalculate number of
1635 sections on second block. Size arrays using sizeof (element)
1636 rather than sizeof (element type).
1638 2020-03-10 Alan Modra <amodra@gmail.com>
1640 * objdump.c (disassemble_section): Don't call qsort unless
1641 sym count is at least two.
1642 (disassemble_data): Don't call memcpy with NULL src.
1644 2020-03-09 Alan Modra <amodra@gmail.com>
1647 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1648 to get_data rather than multiplying.
1649 (dump_ia64_vms_dynamic_relocs): Likewise.
1650 (process_version_sections): Correct order of size and nmemb args
1652 (process_mips_specific): Likewise.
1654 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1656 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1657 "memory checkers" in comments.
1659 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1662 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1663 * doc/Makefile.in: Re-generate.
1665 2020-03-06 Nick Clifton <nickc@redhat.com>
1667 * objcopy.c (check_new_section_flags): New function. Reject the
1668 SEC_COFF_SHARED flag if the target is not a COFF binary.
1669 (copy_object): Call check_new_section_flags.
1670 (setup_section): Likewise.
1671 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1672 flag cannot be applied to ELF binaries.
1674 2020-03-06 Alan Modra <amodra@gmail.com>
1677 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1679 2020-03-05 Alan Modra <amodra@gmail.com>
1682 * objcopy.c (filter_symbols): Don't segfault on NULL
1683 prefix_symbols_string.
1685 2020-03-04 Christian Eggers <ceggers@gmx.de>
1687 * objcopy.c (copy_object): Convert from bytes to octets for
1688 --gap-fill and --pad-to.
1690 2020-03-03 Nick Clifton <nickc@redhat.com>
1693 * prdbg.c (pr_tag_type): Remove call to abort.
1695 2020-03-02 Aaron Merey <amerey@redhat.com>
1697 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1700 2020-03-02 Nick Clifton <nickc@redhat.com>
1703 * readelf.c (dump_section_as_strings): Display new-line characters
1704 as \n and then insert a line break.
1705 * testsuite/binutils-all/pr25543.s: New test.
1706 * testsuite/binutils-all/pr25543.d: Test driver.
1707 * testsuite/binutils-all/readelf.exp: Run the new test.
1709 2020-02-27 Nick Clifton <nickc@redhat.com>
1712 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1713 get_data is unable to load the string table.
1715 2020-02-26 Alan Modra <amodra@gmail.com>
1717 * elfedit.c: Indent labels correctly.
1718 * readelf.c: Likewise.
1719 * resres.c: Likewise.
1721 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1724 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1725 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1727 2020-02-24 Nick Clifton <nickc@redhat.com>
1730 * doc/binutils.texi (objdump): Fix typo in description of
1731 objdump's -g option.
1733 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1735 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1738 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1740 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1742 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1744 * configure: Regenerate.
1746 2020-02-10 Fangrui Song <maskray@google.com>
1748 * objcopy.c (parse_flags): Handle "exclude".
1749 * doc/binutils.texi: Document the support.
1751 2020-02-10 Aaron Merey <amerey@redhat.com>
1753 * binutils/testsuite/binutils-all/debuginfod.exp:
1754 Replace set ::env with setenv.
1755 Start server before setting environment variable.
1756 Specify tmpdir as the location of the server's
1758 Check additional server metrics at start-up.
1760 2020-02-07 Nick Clifton <nickc@redhat.com>
1762 * README-how-to-make-a-release: Add note about updating the
1763 GAS/NEWS URL in the next release.
1765 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1768 * readelf.c (get_machine_flags): Add support for Z80N machine
1771 2020-02-07 Nick Clifton <nickc@redhat.com>
1773 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1774 of the truncated file name.
1776 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1778 * objdump.c (print_jump_visualisation): New function.
1779 (disassemble_bytes): Call new function.
1781 2020-02-06 Alan Modra <amodra@gmail.com>
1783 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1785 (supports_gnu_osabi): New procedure.
1786 (is_generic): New, from ld-lib.exp.
1787 (supports_gnu_unique): Use the above.
1789 2020-02-04 Alan Modra <amodra@gmail.com>
1791 * Makefile.am (CFILES): Add od-elf32_avr.c.
1792 * Makefile.in: Regenerate.
1793 * po/POTFILES.in: Regenerate.
1795 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1797 * readelf.c (dump_relocations, dump_relocations)
1798 (decode_arm_unwind_bytecode, process_dynamic_section)
1799 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1802 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1804 * coffdump.c (program_name): Drop redundant definition.
1805 * srconv.c (program_name): Likewise
1806 * sysdump.c (program_name): Likewise
1808 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1811 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1812 same file with different section pointers.
1814 2020-02-01 Nick Clifton <nickc@redhat.com>
1816 * README-how-to-make-a-release: Update with more details on the
1817 release making process.
1819 2020-01-31 Nick Clifton <nickc@redhat.com>
1821 * po/sv.po: Updated Swedish translation.
1823 2020-01-28 Nick Clifton <nickc@redhat.com>
1825 * readelf.c (get_build_id): Simplify warning message about corrupt
1826 notes encountered whilst scanning for the build-id.
1828 2020-01-27 Roland McGrath <mcgrathr@google.com>
1830 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1831 for overlapping ranges so that (A == B) == (B == A) holds.
1833 2020-01-27 Alan Modra <amodra@gmail.com>
1835 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1836 case statement with switch statement.
1838 2020-01-24 Nick Clifton <nickc@redhat.com>
1840 * readelf.c (get_build_id): Fix warning messages about corrupt
1843 2020-01-23 Nick Clifton <nickc@redhat.com>
1845 * po/fr.po: Updated French translation.
1847 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1850 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1852 2020-01-20 Nick Clifton <nickc@redhat.com>
1854 * po/pt.po: Updated Portuguese translation.
1855 * po/uk.po: Updated Ukranian translation.
1857 2020-01-18 Nick Clifton <nickc@redhat.com>
1859 * README-how-to-make-a-release: Update notes on how to cut a
1860 branch for a release.
1862 2020-01-18 Nick Clifton <nickc@redhat.com>
1864 * configure: Regenerate.
1865 * po/binutils.pot: Regenerate.
1867 2020-01-18 Nick Clifton <nickc@redhat.com>
1869 Binutils 2.34 branch created.
1871 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1873 * objdump.c (jump_info_visualize_address): Discard jumps that are
1875 (disassemble_bytes): Only compute the maximum level if jumps were
1878 2020-01-13 Nick Clifton <nickc@redhat.com>
1880 * objdump.c (disassemble_bytes): Remove C99-ism.
1881 * testsuite/binutils-all/debuginfod.exp: New tests.
1883 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1885 * objdump.c (visualize_jumps, color_output, extended_color_output)
1886 (detected_jumps): New variables.
1887 (usage): Add the new jump visualization options.
1888 (option_values): Add new option value.
1889 (long_options): Add the new option.
1890 (jump_info_new, jump_info_free): New functions.
1891 (jump_info_min_address, jump_info_max_address): Likewise.
1892 (jump_info_end_address, jump_info_is_start_address): Likewise.
1893 (jump_info_is_end_address, jump_info_size): Likewise.
1894 (jump_info_unlink, jump_info_insert): Likewise.
1895 (jump_info_add_front, jump_info_move_linked): Likewise.
1896 (jump_info_intersect, jump_info_merge): Likewise.
1897 (jump_info_sort, jump_info_visualize_address): Likewise.
1898 (disassemble_jumps): New function - used to locate jumps.
1899 (disassemble_bytes): Add ascii art generation.
1900 (disassemble_section): Add scan to locate jumps.
1901 (main): Parse the new visualization option.
1902 * doc/binutils.texi: Document the new feature.
1903 * NEWS: Mention the new feature.
1905 2020-01-13 Alan Modra <amodra@gmail.com>
1909 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1910 fde_fc col_type and col_offset.
1911 * readelf.c (apply_relocations): Move symsec check earlier.
1912 (free_debug_section): Free reloc_info.
1913 (process_notes_at): Free pnotes on error path.
1914 (process_object): Free dump_sects here..
1915 (process_archive): ..not here.
1917 2020-01-13 Alan Modra <amodra@gmail.com>
1920 * nm.c (display_rel_file): Free dyn_syms.
1922 2020-01-09 Nick Clifton <nickc@redhat.com>
1925 * objcopy.c (empty_name): New variable.
1926 (need_sym_before): Prevent an attempt to free a static variable.
1927 (filter_symbols): Avoid strcmp test by checking for pointer
1930 2020-01-09 Nick Clifton <nickc@redhat.com>
1932 * po/zh_TW.po: Updated Traditional Chinese translation.
1934 2020-01-09 Aaron Merey <amerey@redhat.com>
1936 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1937 * Makefile.in: Regenerate.
1939 * config.in: Regenerate.
1940 * configure: Regenerate.
1941 * configure.ac: Call AC_DEBUGINFOD.
1942 * doc/Makefile.in: Regenerate.
1943 * doc/binutils.texi: Add section on using binutils
1945 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1946 Query debuginfod servers for the target debug file.
1947 (load_separate_debug_info): Call
1948 debuginfod_fetch_separate_debug_info if configured with
1950 (load_separate_debug_files): Add file argument to
1951 load_separate_debug_info calls.
1952 * dwarf.h (get_build_id): Add declaration.
1953 * objdump.c (get_build_id): New function. Get build-id of file.
1954 * readelf.c (get_build_id): Likewise.
1955 * testsuite/binutils-all/debuginfod.exp: New tests.
1956 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1959 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1961 * readelf.c: Add support for new Z*) relocations and machine
1964 2020-01-01 Alan Modra <amodra@gmail.com>
1966 Update year range in copyright notice of all files.
1968 For older changes see ChangeLog-2019
1970 Copyright (C) 2020 Free Software Foundation, Inc.
1972 Copying and distribution of this file, with or without modification,
1973 are permitted in any medium without royalty provided the copyright
1974 notice and this notice are preserved.
1980 version-control: never