1 2020-11-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3 * testsuite/lib/binutils-common.exp (supports_noinit_section): New.
4 (supports_persistent_section): New.
6 2020-11-23 Nick Alcock <nick.alcock@oracle.com>
8 * readelf.c (dump_section_as_ctf): Call ctf_arc_symsect_endianness.
10 2020-11-25 Alan Modra <amodra@gmail.com>
12 * testsuite/binutils-all/nm.exp (ifunc): xfail more targets.
14 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
16 * readelf.c (dump_section_as_ctf): Use .dynsym and .dynstr, not
19 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
21 * objdump.c (dump_ctf): Report errors from ctf_archive_iter.
22 * readelf.c (dump_section_as_ctf): Likewise.
24 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
26 * objdump.c (dump_ctf): Use ctf_dict_open, not
28 * readelf.c (dump_section_as_ctf): Likewise.
30 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
32 * objdump.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
33 (dump_ctf_archive_member): Likewise.
34 (dump_ctf): Likewise. Use ctf_dict_close, not ctf_file_close.
35 * readelf.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
36 (dump_ctf_archive_member): Likewise.
37 (dump_section_as_ctf): Likewise. Use ctf_dict_close, not
40 2020-11-20 Nick Clifton <nickc@redhat.com>
43 * nm.c (ifunc_type_chars): New variable.
44 (long_options): Add --ifunc-chars.
45 (print_symbol): Use ifunc_type_chars for ifunc symbols.
46 (main): Handle the new option.
47 * doc/binutils.texi: Document the new option.
48 * configure.ac: Add --enable-f-for-ifunc-symbols option which
49 changes the default symbol displayed by nm.
50 * NEWS: Mention the new feature.
51 * testsuite/binutils-all/nm.exp: Test the new feature.
52 * config.in: Regenerate.
53 * configure: Regenerate.
55 2020-11-20 Linda Zhang <lindasc@qq.com>
58 * dllwrap.c (main): Deprecate and warn the use of dllwrap.
60 2020-11-20 Jozef Lawrynowicz <jozef.l@mittosystems.com>
62 * testsuite/binutils-all/readelf-maskos-1a.d: Fix test for unrecognized
63 bit set in SHF_MASKOS range.
64 * testsuite/binutils-all/readelf-maskos-1b.d: Likewise.
65 * testsuite/binutils-all/readelf-maskos-unknown.s: New test.
67 2020-11-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
69 * NEWS: Announce SHF_GNU_RETAIN support.
70 * readelf.c (get_elf_section_flags): Handle SHF_GNU_RETAIN.
71 Recognize SHF_GNU_RETAIN and SHF_GNU_MBIND only for supported OSABIs.
72 * testsuite/binutils-all/readelf.exp: Run new tests.
73 Don't run run_dump_test when there isn't an assembler available.
74 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Adjust
76 * testsuite/binutils-all/readelf-maskos-1a.d: New test.
77 * testsuite/binutils-all/readelf-maskos-1b.d: New test.
78 * testsuite/binutils-all/readelf-maskos.s: New test.
79 * testsuite/binutils-all/retain1.s: New test.
80 * testsuite/binutils-all/retain1a.d: New test.
81 * testsuite/binutils-all/retain1b.d: New test.
83 2020-11-17 Howard Chu <hyc@symas.com>
85 * ar.c (main): Place the libdeps record in the second archive
88 2020-11-13 Nick Clifton <nickc@redhat.com>
91 * dwarf.c (struct dwo_info): Add cu_offset field.
92 (add_dwo_info): Add cu_offset parameter. Record in new dwo_info
94 (add_dwo_name): Add cu_offset field.
95 (add_dwo_dir): Add cu_offset field.
96 (add_dwo_id): Add cu_offset field.
97 (read_and_display_attr_value): Pass cu_offset to dwo recording
99 (load_separate_debug_files): Accumulate name, dir and id values
100 and display once for each CU.
101 * testsuite/binutils-all/dwo.sL Use a separate CU for the second
103 * testsuite/binutils-all/readelf.k2: Update expected output.
105 2020-11-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
107 * dwarf.c (display_debug_rnglists_list): Only bias the
108 DW_RLS_offset_pair with the base address.
110 2020-11-10 Nick Clifton <nickc@redhat.com>
112 * dwarf.c (skip_attr_bytes): Correctly handle DW_FORM_ref8.
113 (get_type_abbrev_from_form): Accept DW_FORM_ref8.
115 2020-11-09 Andreas Schwab <schwab@linux-m68k.org>
117 * Makefile.am (development.exp): Fix regexp.
118 * Makefile.in: Regenerate.
120 2020-11-09 Nick Clifton <nickc@redhat.com>
123 * dwarf.c (read_and_display_attr_value): In wide mode, display the
126 2020-11-09 Alan Modra <amodra@gmail.com>
128 * elfedit (usage): Avoid false positive "may be used uninitialised".
131 2020-11-09 Howard Chu <hyc@symas.com>
133 * ar.c (main): Use plugin_target rather than "target" when
134 resetting libdeps_bfd target.
136 2020-11-06 H.J. Lu <hongjiu.lu@intel.com>
138 * elfedit.c: Include "libiberty.h".
139 (usage): Update help message.
141 2020-11-03 Howard Chu <hyc@symas.com>
143 * ar.c (long_options): Add --record-libdeps.
144 (usage): Mention the new option.
145 (decode_options): Handle the new option.
146 (replace_members): If necessary, create a bfd to hold the libdeps
148 * binemul.c (ar_emul_append_bfd): New function.
149 (ar_emul_replace_bfd): New function.
150 (ar_emul_default_append): Replace file_name and target arguments
151 with new_bfd argument.
152 (ar_emul_default_replace): Likewise.
153 * binemul.h: Update prototypes.
154 (struct bin_emulation_xfer_struct): Update fields.
155 * doc/binutils.texi: Document the new option.
156 * NEWS: Mention the new feature.
157 * emul_aix.c (ar_emul_aix_append): Update.
158 (ar_emul_aix_replace): Likewise.
159 * testsuite/binutils-all/ar.exp: Add test of new feature.
161 2020-10-30 H.J. Lu <hongjiu.lu@intel.com>
164 * readelf.c (decode_x86_isa): Handle
165 * GNU_PROPERTY_X86_ISA_1_BASELINE.
166 * testsuite/binutils-all/i386/empty.d: Updated.
167 * testsuite/binutils-all/i386/ibt.d: Likewise.
168 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
169 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
170 * testsuite/binutils-all/i386/shstk.d: Likewise.
171 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
172 * testsuite/binutils-all/x86-64/empty.d: Likewise.
173 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
174 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
175 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
176 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
177 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
178 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
179 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
180 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
181 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
182 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
183 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
184 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
185 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
186 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
188 2020-10-29 H.J. Lu <hongjiu.lu@intel.com>
191 * dwarf.c (abbrev_list): Add abbrev_base.
192 (new_abbrev_list): Add an abbrev_base argument and record it.
193 (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
195 (process_debug_info): Pass abbrev_base to new_abbrev_list and
196 find_abbrev_list_by_abbrev_offset.
197 (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
198 and find_abbrev_list_by_abbrev_offset.
199 * testsuite/binutils-all/x86-64/pr26808.dump: New file.
200 * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
201 * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
204 2020-10-29 Nick Clifton <nickc@redhat.com>
207 * objcopy.c (is_dwo_section): Check for missing or short section
210 2020-10-26 Andreas Rammhold <andreas@rammhold.de>
212 * README-how-to-make-a-release: Use sha256sum instead of md5sum.
214 2020-10-28 Nick Clifton <nickc@redhat.com>
217 * elfedit.c (process_archive): Remove spurious call to free().
219 2020-10-27 Nick Clifton <nickc@redhat.com>
221 * dwarf.c (struct abbrev_list): New structure. Used to collect
222 lists of abbreviation sets.
223 (struct abbrev_map): New structure. Used to map CU offsets to
224 abbreviation offsets.
225 (record_abbrev_list): New function. A new entry to an
227 (free_all_abbrevs): Update to free abbreviation lists.
228 (new_abbrev_list): New function. Start a new abbreviation
230 (find_abbrev_list_by_abbrev_offset): New function.
231 (find_abbrev_map_by_offset): New function.
232 (add_abbrev): Add abbrev_list parameter.
233 (add_abbrev_attr): Likewise.
234 (process_abbrev_section): Rename to process_abbrev_set and add
236 (get_type_abbrev_from_form): New function. Attempts to decode the
237 forms used by DW_AT_type attributes.
238 (get_type_signedness): Display type names if operating in wide
239 mode. Use get_type_abbrev_from_form.
240 (read_and_display_attr_value): Use get_type_abbrev_from_form.
241 (process_debug_info): Pre-parse the CU headers to collate all the
242 abbrevs before starting the main scan.
243 (process_debug_abbrev): Do not free any loaded abbrevs.
244 (free_debug_memory): Free the abbrev maps.
246 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
248 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
249 error message on error.
251 2020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
253 * windmc.c (write_header_define): Fix printf format.
254 (write_header): Likewise.
256 2020-10-21 Nick Clifton <nickc@redhat.com>
258 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
259 when processing the DW_FORM_ref_addr form.
260 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
261 Handle DW_FORM_indirect.
262 (get_type_signedness): Allow a limited amount of recursion.
263 Do not attempt to decode types that use the DW_FORM_ref_addr form.
264 (read_and_display_attr_value): Do not attempt to decode types
265 that use the DW_FORM_ref_addr form.
267 2020-10-20 Alan Modra <amodra@gmail.com>
269 * readelf.c: Delete whitespace at end of line throughout.
270 (SECTION_NAME, SECTION_NAME_VALID): New.
271 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
272 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
273 (process_section_headers, process_section_groups): Likewise.
274 (shdr_to_ctf_sect): Likewise.
275 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
276 (ia64_process_unwind, hppa_process_unwind): Likewise.
277 (display_debug_section, initialise_dumps_byname): Likewise.
278 (process_lto_symbol_tables): Likewise. Check trailing period of
279 lto symbol table names.
280 (display_lto_symtab): Use sizeof instead of strlen.
282 2020-10-20 Nelson Chu <nelson.chu@sifive.com>
284 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
286 2020-10-19 Nick Clifton <nickc@redhat.com>
288 * readelf.c (do_lto_syms): New local.
289 (long_option_values): Add OPTION_LTO_SYMS.
290 (options): Add --lto-syms.
291 (usage): Mention the new option.
292 (parse_args): Parse the new option.
293 (get_lto_kind): New function.
294 (get_lto_visibility): New function.
295 (get_lto_sym_type): New function.
296 (display_lto_symtab): New function - displays the contents of an
297 LTo symbol table section.
298 (process_lto_symbol_tables): New functions. Calls
299 dipslay_lto_symtab on any LTO symbol table section.
300 (process_object_file): Call process_lto_symbol_tables.
301 * doc/binutils.texi: Document the new option.
302 * NEWS: Mention the new feature.
304 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
307 * readelf.c (decode_x86_compat_2_isa): New function.
308 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
309 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
310 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
311 and X86_COMPAT_2_ISA_1_NEEDED.
312 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
313 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
315 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
316 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
317 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
318 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
319 * testsuite/binutils-all/i386/empty.d: Updated.
320 * testsuite/binutils-all/i386/ibt.d: Likewise.
321 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
322 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
323 * testsuite/binutils-all/i386/shstk.d: Likewise.
324 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
325 * testsuite/binutils-all/x86-64/empty.d: Likewise.
326 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
327 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
328 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
329 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
330 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
331 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
332 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
333 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
334 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
335 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
336 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
337 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
338 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
339 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
341 2020-10-06 Nick Clifton <nickc@redhat.com>
343 * objcopy.c (copy_object): Compare input and output sections by
344 pointer rather than name.
346 2020-10-05 Nick Clifton <nickc@redhat.com>
349 * windmc.c (mc_unify_path): Fix typo checking character at end of
352 2020-10-05 Samanta Navarro <ferivoz@riseup.net>
354 * doc/binutils.texi: Fix spelling mistakes.
356 2020-09-29 Mark Wielaard <mark@klomp.org>
358 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
359 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
361 2020-09-25 Alan Modra <amodra@gmail.com>
363 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
365 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
366 allowed reloc_size. Don't read_leb128 outside of section.
368 2020-09-23 Mark Wielaard <mark@klomp.org>
370 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
371 * testsuite/binutils-all/dw5.W: Adjust expected output.
372 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
374 2020-09-23 Mark Wielaard <mark@klomp.org>
376 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
377 for dwarf_version 5 just as version 3 and 4 (only 2 is
379 (process_debug_info): Allow DW_UT_partial.
381 2020-09-24 Nick Clifton <nickc@redhat.com>
384 * doc/binutils.texi (nm): Document that 'c' is used for small
387 2020-09-21 Ludovic Courtès <ludo@gnu.org>
389 * doc/binutils.texi (objcopy, strip): Say that
390 '--strip-unneeded' implies '--strip-debug'.
392 2020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
394 * verilog.c (verilog_write_address): Properly handle 64-bit
395 addresses to avoid truncation of the high part.
397 2020-09-16 Alan Modra <amodra@gmail.com>
399 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
400 * objcopy.c (is_hidden_symbol): Likewise.
402 2020-09-15 Nick Clifton <nickc@redhat.com>
404 * README-how-to-make-a-release (https): Add a reminder to create a
405 new Bugzilla tag for the point release, once it has been published.
407 2020-09-11 H.J. Lu <hongjiu.lu@intel.com>
409 * readelf.c (get_note_type): Support NT_X86_CET.
411 2020-09-11 Nick Clifton <nickc@redhat.com>
414 * dwarf.c (load_separate_debug_info): Return NULL rather than
415 FALSE in error situations.
416 (load_separate_debug_file): Move code to load debug links to ...
417 (check_for_and_load_links): ... here. New function. Load
418 separate debug information pointed to by debuglink and
419 debugaltlink sections. Recursively scan newly loaded debug
420 information for more links and load them too.
422 2020-09-09 Alan Modra <amodra@gmail.com>
425 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
426 (load_separate_debug_files): Use a stack var for build_id_data.
428 2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
431 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
432 to ld on PE targets for PR 25662 test.
434 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
435 Kuan-Lin Chen <kuanlinchentw@gmail.com>
437 * readelf.c (target_specific_reloc_handling): Handle
438 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
440 2020-09-02 Alan Modra <amodra@gmail.com>
442 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
444 2020-08-30 Alan Modra <amodra@gmail.com>
446 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
449 2020-08-28 Nick Clifton <nickc@redhat.com>
452 * dwarf.c (read_leb128): When checking for overflow of a signed
453 read, use a signed shift.
455 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
457 * readelf.c (get_csky_section_type_name): New.
458 (get_section_type_name): Add handler for CSKY.
459 (display_csky_attribute): New.
460 (process_arch_specific): Add handler for CSKY.
461 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
464 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
466 * readelf.c (get_msp430x_section_type_name): Rename to ...
467 (get_msp430_section_type_name): ... this.
468 (get_section_type_name): Use get_msp430_section_type_name.
469 (display_msp430x_attribute): Rename to ...
470 (display_msp430_attribute): ... this.
471 (process_arch_specific): Use display_msp430_attribute.
473 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
476 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
477 "-j $PRIVATE$" to command on hppa*-*-hpux*.
478 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
479 dollar-sign quotes before quoting. Do this prior to generating log
482 2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
485 * mclex.c (skip_until_eol): If eol was found, increment line
488 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
490 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
491 * readelf.c (dump_ctf_errs): Likewise.
493 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
495 * objdump.c (dump_ctf_archive_member): Move error-
497 (dump_ctf_errs): ... into this separate function.
498 (dump_ctf): Call it on open errors.
499 * readelf.c (dump_ctf_archive_member): Move error-
501 (dump_ctf_errs): ... into this separate function. Support
502 calls with NULL fp. Adjust for new err parameter to
504 (dump_section_as_ctf): Call it on open errors.
506 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
508 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
509 * Makefile.in: Regenerated.
511 2020-08-26 Nick Clifton <nickc@redhat.com>
514 * readelf.c (get_segment_type): Handle OpenBSD segment types.
516 2020-08-26 Alan Modra <amodra@gmail.com>
519 * objcopy.c (copy_object): Don't fwrite NULL contents.
521 2020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
524 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
526 2020-08-24 Alan Modra <amodra@gmail.com>
528 * readelf.c (dump_section_as_strings) Avoid false positive
529 "may be used uninitialised".
531 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
534 * nm.c (print_symname): Display only one '@' for undefined
536 * doc/binutils.texi: Update nm version information.
538 2020-08-21 Mark Wielaard <mark@klomp.org>
540 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
541 recognize DW_LANG_C11.
543 2020-08-19 Alan Modra <amodra@gmail.com>
546 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
548 (dump_section_as_strings): Don't use %tx to display offset.
550 2020-08-14 Alan Modra <amodra@gmail.com>
553 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
554 of debug_information. Correct test of max_loc_offsets and
556 * rddbg.c (read_debugging_info): Free dhandle on error.
558 2020-08-14 Alan Modra <amodra@gmail.com>
560 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
562 2020-08-13 Alan Modra <amodra@gmail.com>
565 * objcopy.c (copy_object): Report file name with endian error.
566 Error and return on abfd->read_only.
568 2020-08-12 Tom Tromey <tromey@adacore.com>
570 * dwarf-mode.el (Version): Now 1.6.
571 (dwarf-die-button-action): Tighten DIE reference regexp.
572 (dwarf-font-lock-keywords): Update name regexp.
574 2020-08-12 Nick Clifton <nickc@redhat.com>
577 * readelf.c (do_demangle): New option flag.
578 (print_symbol): If do_demangle is enabled, demangle the symbol.
579 (enum long_option_values): New enum to hold long option values.
580 (options): Add demangle, no-demangle, recursion-limit and
581 no-recursion-limit options. Alpha sort the table.
582 (usage): Describe the new options.
583 (parse_args): Handle the new options.
584 * NEWS: Mention the new feature.
585 * doc/binutils.texi: Document the new feature.
586 * testsuite/binutils-all/readelf.exp: Test the new feature.
587 * testsuite/binutils-all/mangled.s: New file - assembler source.
588 * testsuite/binutils-all/readelf.demangled: New file - expected
591 2020-08-12 Nick Clifton <nickc@redhat.com>
593 * po/sr.po: Updated Serbian translation.
595 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
598 * nm.c (with_symbol_versions): Removed.
599 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
600 (long_options): Update --with-symbol-versions entry.
601 (print_symbol): Remove the with_symbol_versions check.
602 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
604 * doc/binutils.texi: Remove --with-symbol-versions.
606 2020-08-05 Alan Modra <amodra@gmail.com>
609 * objdump.c (load_specific_debug_section): Revert last change.
611 2020-08-05 Alan Modra <amodra@gmail.com>
614 * objdump.c (load_specific_debug_section): Don't malloc space for
615 section contents, use bfd_malloc_and_get_section.
617 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
619 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
620 * Makefile.in, doc/Makefile.in: Regenerate.
621 * configure: Regenerate.
623 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
625 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
627 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
628 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
629 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
630 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
631 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
633 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
635 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
637 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
639 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
641 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
643 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
645 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
647 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
649 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
651 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
653 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
655 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
657 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
659 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
661 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
663 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
665 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
667 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
669 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
672 * configure: Regenerated.
674 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
677 * configure: Regenerated.
679 2020-07-27 Alan Modra <amodra@gmail.com>
681 * objdump.c (dump_section): Don't return without calling
684 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
686 * doc/binutils.texi: Replace preceeded with preceded.
688 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
690 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
691 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
693 (has_newabi): Remove variable.
694 (has_abi, abi_asflags, abi_ldflags): New associative array
696 (irixemul): New variable.
697 Replace `run_dump_test' calls where applicable throughout with
698 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
699 as appropriate. Use `noarch' for tests that require their own
700 architecture setting.
701 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
702 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
703 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
704 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
705 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
706 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
707 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
708 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
709 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
710 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
711 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
712 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
713 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
714 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
716 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
717 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
718 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
719 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
720 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
721 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
722 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
724 2020-07-24 Aaron Merey <amerey@redhat.com>
726 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
727 * Makefile.in: Rebuild.
728 * configure: Rebuild.
729 * doc/Makefile.in: Rebuild.
731 2020-07-24 Nick Clifton <nickc@redhat.com>
733 * README-how-to-make-a-release: Various small updates whilst
734 creating the 2.35 release.
736 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
738 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
741 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
743 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
744 (dump_ctf): Likewise.
746 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
748 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
749 * readelf.c (dump_ctf_archive_member): Likewise.
751 2020-07-22 Nick Clifton <nickc@redhat.com>
753 * readelf.c (parse_args): Silence potential warnings about a
754 memory resource leak when allocating space for ctf option values.
755 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
758 2020-07-21 Nick Clifton <nickc@redhat.com>
760 * po/sv.po: Updated Swedish translation.
762 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
764 * testsuite/binutils-all/arc/double_regs.s: New test.
765 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
767 2020-07-13 Nick Clifton <nickc@redhat.com>
769 * po/fr.po: Updated French translation.
771 2020-07-13 Alan Modra <amodra@gmail.com>
773 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
774 optional machine-os arg.
776 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
778 * readelf.c (decode_x86_feature_2): Handle
779 GNU_PROPERTY_X86_FEATURE_2_TMM.
781 2020-07-10 Tom de Vries <tdevries@suse.de>
783 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
784 information in the end_sequence row.
785 * testsuite/binutils-all/dw5.W: Update.
786 * testsuite/binutils-all/objdump.WL: Update.
788 2020-07-09 Alan Modra <amodra@gmail.com>
790 * dlltool.c: Remove powerpc PE support and comments.
791 * configure.ac: Remove powerpc PE dlltool config.
792 * configure: Regenerate.
794 2020-07-09 Nick Clifton <nickc@redhat.com>
796 * rclex.c: Add OWNERDRAW keyword.
797 * rcparse.y: Add OWNERDRAW token.
798 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
799 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
801 * windres.c (extended_menuitems): Likewise.
802 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
804 2020-07-09 Alan Modra <amodra@gmail.com>
806 * readelf (slurp_hppa_unwind_table): Set table_len before use
807 in relocation sanity checks.
809 2020-07-07 Alan Modra <amodra@gmail.com>
811 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
812 * testsuite/binutils-all/nm.exp: Likewise.
813 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
814 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
815 * testsuite/binutils-all/set-section-alignment.d: Likewise.
816 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
818 2020-07-07 Alan Modra <amodra@gmail.com>
820 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
821 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
823 2020-07-06 Nick Clifton <nickc@redhat.com>
825 * po/bg.po: Updated Bulgarian translation.
826 * po/pt.po: Updated Portuguese translation.
827 * po/uk.po: Updated Ukranian translation.
829 2020-07-06 Alan Modra <amodra@gmail.com>
831 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
834 2020-07-04 Nick Clifton <nickc@redhat.com>
836 * configure: Regenerate.
837 * po/binutils.pot: Regenerate.
839 2020-07-04 Nick Clifton <nickc@redhat.com>
841 Binutils 2.35 branch created.
843 2020-07-02 Nick Clifton <nickc@redhat.com>
846 * readelf.c (print_symbol): Handle truncation of symbol names.
847 (options): Add -T/--silent-truncation option.
848 (parse_args): Handle the option.
849 (print_dynamic_symbol): Correct calculation of width available to
851 * doc/binutils.texi: Document the -T option to readelf.
852 * NEWS: Mention the new feature.
854 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
856 * NEWS: Mention x86 NaCl target support removal.
857 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
858 x86 NaCl target support.
859 * testsuite/binutils-all/elfedit-1.d: Likewise.
860 * testsuite/binutils-all/i386/i386.exp: Likewise.
861 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
862 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
863 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
864 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
865 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
866 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
867 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
868 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
869 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
870 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
871 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
872 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
874 2020-06-30 Nick Clifton <nickc@redhat.com>
876 * dwarf.c (read_and_display_attr_value): Support
877 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
880 2020-06-30 Alan Modra <amodra@gmail.com>
882 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
885 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
887 * dwarf.c (display_debug_str_offsets): Rename local variable
888 index to idx. Move to top of function.
890 2020-06-29 Alan Modra <amodra@gmail.com>
892 * dwarf.c: Use C style comments.
895 2020-06-27 Alan Modra <amodra@gmail.com>
897 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
899 (release_archive): Set fields of arch to NULL after freeing.
901 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
903 * readelf.c (dump_section_as_ctf): Support .ctf archives using
904 ctf_arc_bufopen. Automatically load the .ctf member of such
905 archives as the parent of all other members, unless specifically
906 overridden via --ctf-parent. Split out dumping code into...
907 (dump_ctf_archive_member): ... here, as in objdump, and call
908 it once per archive member.
909 (dump_ctf_indent_lines): Code style fix.
911 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
913 * configure.ac [--enable-libctf]: New, default yes.
914 Set ENABLE_LIBCTF accordingly.
915 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
916 * configure: Regenerate.
917 * config.in: Regenerate.
918 * Makefile.in: Regenerate.
919 * aclocal.m4: Regenerate.
920 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
921 (option_values): Likewise.
922 (long_options): Likewise.
924 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
925 (make_ctfsect): Likewise.
926 (dump_ctf_archive_member): Likewise.
927 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
928 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
929 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
931 (process_section_contents): Likewise.
932 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
933 (dump_ctf_indent_lines): Likewise.
934 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
936 2020-06-26 Jan Beulich <jbeulich@suse.com>
938 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
939 redundant text from x86 specific part of -M section.
941 2020-06-26 Pat Bernardi <bernardi@adacore.com>
943 * readelf.c (display_m68k_gnu_attribute): New function.
944 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
946 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
949 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
950 * testsuite/binutils-all/pr26160.r: Likewise.
951 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
953 2020-06-23 Nick Clifton <nickc@redhat.com>
956 * dwarf.c (fetch_indexed_string): Detect and handle old style
957 .debug_str_offset tables.
958 (display_debug_str_offsets): Likewise. Also add support for
959 .debug_str_offsets.dwo sections.
961 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
964 * testsuite/binutils-all/pr26112.o.bz2: New file.
965 * testsuite/binutils-all/pr26112.r: Likewise.
966 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
968 2020-06-23 Alan Modra <amodra@gmail.com>
970 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
971 remote_file delete command.
973 2020-06-22 Nick Clifton <nickc@redhat.com>
976 * dwarf.c (display_debug_str_offsets): Add code to display the
977 contents of the .debug_str_offsets section.
978 (display_debug_macro): Add support for DW_MACRO_define_strx and
981 2020-06-22 Saagar Jha <saagar@saagarjha.com>
983 * od-macho.c: Dump linkedit data for new load commands.
985 2020-06-19 Alan Modra <amodra@gmail.com>
987 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
988 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
989 (run_dump_test): Use check_relro_support to decide whether to pass
990 extra ld option "-z norelro".
992 2020-06-11 Alan Modra <amodra@gmail.com>
994 * readelf.c (process_mips_specific): Don't alloc memory for
995 Elf_Internal_Options.
997 2020-06-11 Alan Modra <amodra@gmail.com>
999 * readelf.c (process_mips_specific): Assert size of internal
1000 types match size of external types, and simplify allocation of
1001 internal buffer. Catch possible integer overflow when sanity
1002 checking option size. Don't assume options are a regular array.
1003 Sanity check reginfo option against option size. Use PRI macros
1006 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
1009 * mclex.c (yylex): Reject lines that reach end-of-file without a
1010 terminating newline character.
1012 2020-06-08 Nick Clifton <nickc@redhat.com>
1015 * doc/binutils.texi (strings): Fix typo.
1017 2020-06-08 Nick Clifton <nickc@redhat.com>
1020 * dwarf.c (process_debug_info): Check that there is space in the
1021 debug_information array before filling in an entry.
1023 2020-06-06 Alan Modra <amodra@gmail.com>
1025 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
1027 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
1030 * mclex.c (yylex): Add test for an empty input stream.
1032 2020-06-04 Stephen Casner <casner@acm.org>
1034 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
1035 for test using section pseudo-ops compatible with pdp11.
1036 * testsuite/binutils-all/objcopy.exp: Select alternate source.
1038 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1040 * objdump.c (disassemble_data): Set disasm_info.endian_code to
1041 disasm_info.endian after the latter is initialized to the
1042 endianness reported by BFD.
1044 2020-06-04 Alan Modra <amodra@gmail.com>
1046 * testsuite/binutils-all/i386/i386.exp: Remove global directive
1048 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
1049 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
1051 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
1053 * windmc.h (struct mc_node): Add id_typecast field.
1054 * mcparse.y (message): Initialise the id_typecast field.
1055 * windmc.c (write_dbg): Use the id_typecast field as a parameter
1056 when calling write_dbg_define.
1057 (write_header): Likewise.
1059 2020-06-03 Alan Modra <amodra@gmail.com>
1062 * objcopy.c (copy_relocations_in_section): Free relpp on error.
1063 Don't accidentally free isection->orelocation.
1065 2020-06-02 Alan Modra <amodra@gmail.com>
1067 * testsuite/binutils-all/ar.exp (obj): Set up object file name
1068 extension. Use throughout. Don't completely exclude non-ELF
1069 alpha targets. Run long_filenames test for tic30. Exclude thin
1070 archive tests for aix, ecoff and vms.
1071 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
1072 extension. Use throughout. Don't exclude non-ELF alpha targets
1075 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
1077 * MAINTAINERS (Xtensa): Add myself as maintainer.
1079 2020-05-23 Alan Modra <amodra@gmail.com>
1081 * testsuite/binutils-all/ar.exp (many_files): New test.
1083 2020-05-21 Alan Modra <amodra@gmail.com>
1085 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
1086 * dlltool.c: Likewise.
1087 * elfcomm.c: Likewise.
1088 * rddbg.c: Likewise.
1089 * readelf.c: Likewise.
1090 * stabs.c: Likewise.
1091 * windmc.c: Likewise.
1092 * windres.c: Likewise.
1093 * wrstabs.c: Likewise.
1095 2020-05-21 Alan Modra <amodra@gmail.com>
1097 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
1100 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
1102 * dwarf.c: Updated since DECLARE_CSR is changed.
1104 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
1107 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
1108 segment doesn't match the .dynamic section and checks are
1110 (struct filedata): Add dynamic_symtab_section and
1111 dynamic_strtab_section fields.
1112 (process_section_headers): Set dynamic_symtab_section to the
1113 .dynsym section. Set dynamic_strtab_section to the .dynstr
1115 (process_dynamic_section): Warn if the .dynsym section doesn't
1116 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
1117 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
1119 2020-05-19 Alan Modra <amodra@gmail.com>
1121 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
1122 (replace_members): Use bfd_get_filename rather than accessing
1123 bfd->filename directly.
1124 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
1125 * binemul.c (do_ar_emul_append): Likewise.
1126 * coffgrok.c (coff_grok): Likewise.
1128 2020-05-18 Stafford Horne <shorne@gmail.com>
1130 * MAINTAINERS (OR1K): Add myself as maintainer.
1132 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1134 * doc/binutils.texi: Mention 'entry address' in the set-start and
1135 adjust-start options descriptions.
1137 2020-05-05 Nick Clifton <nickc@redhat.com>
1139 * dwarf.c (do_checks): New global variable.
1140 (display_formatted_table): Warn about an unexpected number of
1141 columns in the table, if checks are enabled. Do not complain
1142 about the lack of data following the number of entries in the
1143 table if the table is empty.
1144 (display_debug_lines_decoded): Only warn about an unexpected
1145 number of columns in a table if checks are enabled.
1146 * dwarf.h (do_checks): Add a prototype.
1147 * elfcomm.c (error): Remove weak attribute.
1149 * readelf.c (do_checks): Delete.
1151 (process_section_headers): Only warn about empty sections if
1154 2020-05-04 Fangrui Song <maskray@google.com>
1156 * objcopy.c (copy_object): Allow empty section.
1157 * testsuite/binutils-all/update-section.exp: Add test.
1159 2020-05-04 Nick Clifton <nickc@redhat.com>
1162 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
1163 supicious number of entries for DWARF-5 format directory and file
1164 name tables. Do not display file name table header if the table
1165 is empty. Do not allocate space for empty tables.
1167 2020-05-04 Alan Modra <amodra@gmail.com>
1169 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
1170 section. Don't assume endian of host matches nds32 target. Free
1173 2020-05-01 Alan Modra <amodra@gmail.com>
1174 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
1176 * objdump.c (disassemble_bytes): Don't scan for zeros when
1177 disassembling zeros. Translate "resuming at file offset" message.
1178 Formatting. Replace some signed variables with unsigned.
1180 2020-04-30 Alex Coplan <alex.coplan@arm.com>
1182 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
1184 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1186 2020-04-30 Nick Clifton <nickc@redhat.com>
1188 * testsuite/lib/binutils-common.exp (check_pie_support): New
1191 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1193 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
1194 range_entries for the same offset.
1196 2020-04-29 Nick Clifton <nickc@redhat.com>
1198 * readelf.c (warn): New function - like elfcomm.c version but only
1199 produces output if warnings are enabled.
1200 (struct options): Add --lint and --enable-checks.
1201 (usage): Add entry for --lint.
1202 (parse_args): Handle -L. If checks are enabled but no dumps have
1203 been selected then enable all dumps.
1204 (process_section_headers): Replace long if-then-else sequence with
1205 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
1206 SHT_PROGBITS sections.
1207 (process_file): Do not complain if the file is an archive and lint
1208 mode has been enabled.
1209 * elfcomm.c (error): Make the function weak.
1211 * NEWS: Mention the new feature.
1212 * doc/binutils.texi: Document the new feature.
1213 * dwarf.h (report_leb_status): Add file name and line number
1214 parameters. Include them in the diagnostic output.
1215 (READ_ULEB): Pass file and line number to report_leb_status.
1216 (READ_SLEB): Likewise.
1217 * dwarf.c (read_and_print_leb128): Pass file and line number to
1219 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1220 * testsuite/binutils-all/zero-sec.s: New test source file.
1221 * testsuite/binutils-all/zero-sec.r: Expected output from new
1224 2020-04-29 Nick Clifton <nickc@redhat.com>
1226 * po/sr.po: Updated Serbian translation.
1228 2020-04-26 Alan Modra <amodra@gmail.com>
1230 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1231 read before dereferencing, and gracefully return. Remove
1232 gnu_hash_error variable. Free gnu hash arrays if number of
1235 2020-04-24 Alan Modra <amodra@gmail.com>
1237 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1239 (process_dynamic_section): Call get_num_dynamic_syms once rather
1240 than in segment loop. Break out of segment loop on a successful
1241 load of dynamic symbols. Formatting.
1242 (process_object): Return error status from process_dynamic_section.
1244 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1246 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1247 * elf.c (elfcore_grok_arc_v2): New function.
1248 (elfcore_grok_note): Call the new function to handle the corresponding
1250 (elfcore_write_arc_v2): New function.
1251 (elfcore_write_register_note): Call the new function to handle the
1252 corresponding pseudo-sections.
1254 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1257 * readelf.c (is_none_reloc): Recognize
1258 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1259 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1261 2020-04-22 Nick Clifton <nickc@redhat.com>
1263 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1265 2020-04-22 Alan Modra <amodra@gmail.com>
1267 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1268 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1269 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1270 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1271 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1272 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1273 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1274 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1275 (section_headers_groups): Move to struct filedata. Update use
1278 2020-04-22 Alan Modra <amodra@gmail.com>
1280 * readelf.c (struct dump_data): New, used..
1281 (cmdline): ..here, and..
1282 (struct filedata): ..here. Adjust all uses.
1283 (request_dump_bynumber, request_dump, parse_args): Pass in a
1284 struct dump_data* rather than Filedata*. Adjust callers.
1285 (main): Don't set cmdline.file_name.
1287 2020-04-20 Alan Modra <amodra@gmail.com>
1289 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1292 2020-04-20 Alan Modra <amodra@gmail.com>
1294 * readelf.c (process_section_headers): Free dynamic symbols etc.
1297 2020-04-20 Alan Modra <amodra@gmail.com>
1299 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1300 on error without freeing.
1301 (process_dynamic_section): Don't recreate dynamic symbols from
1302 dynamic tag info when the dynamic symbols have already been
1303 read via section headers.
1305 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
1307 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1308 conditional VDUP instructions are disassembled correctly.
1309 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1311 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1312 that VDUP instructions (which are conditional in A32) can be
1313 disassembled in thumb mode.
1314 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1317 2020-04-17 Alan Modra <amodra@gmail.com>
1320 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1322 2020-04-16 Alan Modra <amodra@gmail.com>
1324 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1325 --no-addresses description.
1327 2020-04-15 Alan Modra <amodra@gmail.com>
1329 * objdump.c (no_addresses): New static var.
1330 (usage): Print help for --no-addresses.
1331 (long_options): Add --no-addresses entry.
1332 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1333 (disassemble_bytes): Don't print current line address, or reloc
1335 * doc/binutils.texi: Document objdump --no-addresses.
1337 2020-04-15 Alan Modra <amodra@gmail.com>
1340 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1341 reading buckets or chains fails.
1343 2020-04-15 Alan Modra <amodra@gmail.com>
1345 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1348 2020-04-15 Alan Modra <amodra@gmail.com>
1350 * readelf.c (get_group_flags): Translate text.
1351 (get_file_type, get_symbol_binding, get_symbol_type),
1352 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1354 2020-04-15 Alan Modra <amodra@gmail.com>
1357 * readelf.c (get_num_dynamic_syms): Typo fix.
1359 2020-04-14 Alan Modra <amodra@gmail.com>
1361 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1362 possibility of overflow when checking number of conflicts.
1364 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1367 * readelf.c (nbuckets): New.
1368 (nchains): Likewise.
1369 (buckets): Likewise.
1371 (ngnubuckets): Likewise.
1372 (gnubuckets): Likewise.
1373 (gnuchains): Likewise.
1374 (mipsxlat): Likewise.
1375 (ngnuchains): Likewise.
1376 (gnusymidx): Likewise.
1377 (VALID_SYMBOL_NAME): Likewise.
1378 (VALID_DYNAMIC_NAME): Use it.
1379 (get_dynamic_data): Moved before process_dynamic_section.
1380 (get_num_dynamic_syms): New function.
1381 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1382 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1383 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1385 (get_symbol_index_type): Don't print "bad section index" when
1386 there is no section header.
1387 (print_dynamic_symbol): Rewrite.
1388 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1391 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1393 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1394 enable on *-*-solaris*.
1396 2020-03-30 Nick Clifton <nickc@redhat.com>
1399 * objcopy.c (copy_object): When copying PE format files set the
1400 timestamp field in the pe_data structure if the preserve_dates
1402 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1403 --preserve-dates in place of the -p option, in order to make its
1404 effect more obvious.
1406 2020-03-28 Alan Modra <amodra@gmail.com>
1408 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1409 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1411 2020-03-28 Alan Modra <amodra@gmail.com>
1413 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1414 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1415 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1416 test. Pass "-p" to objcopy for the executable test.
1418 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1421 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1422 specify whether an object file or executable should be built and tested.
1423 Change test names to report whether an object file or executable is
1425 * testsuite/binutils-all/pr25662.ld: New test.
1426 * testsuite/binutils-all/pr25662.s: New test.
1428 2020-03-27 Alan Modra <amodra@gmail.com>
1430 * readelf.c (process_archive): Don't double free qualified_name.
1431 Don't break out of loop with "negative" archive_file_size, just
1432 set file offset to max.
1434 2020-03-25 Alan Modra <amodra@gmail.com>
1436 * readelf.c (process_archive): Prevent endless loop.
1438 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1441 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1442 with bfd_get_symbol_version_string.
1443 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1444 * objdump.c (objdump_print_symname): Likewise.
1446 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1449 * nm.c (SYM_NAME): Removed.
1450 (print_symname): Add a pointer to struct extended_symbol_info
1451 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1453 (print_symdef_entry): Pass NULL to print_symname.
1454 (print_symbol_info_bsd): Update call to print_symname.
1455 (print_symbol_info_sysv): Likewise.
1456 (print_symbol_info_posix): Likewise.
1458 2020-03-24 Alan Modra <amodra@gmail.com>
1460 * readelf.c (process_mips_specific): Free iconf on error path.
1462 2020-03-23 Nick Clifton <nickc@redhat.com>
1465 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1466 * write_stabs_in_sections_debugging_info: Likewise.
1467 * stab_enum_type: Likewise.
1468 * stab_modify_type: Likewise.
1469 * stab_struct_field: Likewise.
1470 * stab_end_struct_type: Likewise.
1471 * stab_start_class_type: Likewise.
1472 * stab_class_static_member: Likewise.
1473 * stab_class_baseclass: Likewise.
1474 * stab_class_start_method: Likewise.
1475 * stab_class_method_var: Likewise.
1476 * stab_class_end_method: Likewise.
1477 * stab_end_class_type: Likewise.
1478 * stab_typedef_type: Likewise.
1479 * stab_start_function: Likewise.
1480 * stab_end_block: Likewise.
1481 * stab_lineno: Likewise.
1483 2020-03-20 Nick Clifton <nickc@redhat.com>
1485 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1486 (process_section_headers): Check the return value from
1487 get_compression_header.
1488 (dump_section_as_strings): Likewise.
1489 (dump_section_as_bytes): Likewise.
1490 (load_specific_debug_section): Likewise.
1492 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1494 * ar.c (main): Update bfd_plugin_set_program_name call.
1495 * nm.c (main): Likewise.
1497 2020-03-19 Nick Clifton <nickc@redhat.com>
1500 * testsuite/binutils-all/dw4.s: New test source file.
1501 * testsuite/binutils-all/nm.exp: Run the new test.
1503 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1505 * readelf.c (process_symbol_table): Use unsigned long for si.
1507 2020-03-19 Alan Modra <amodra@gmail.com>
1509 * elfcomm.c: Don't include bfd.h or bucomm.h.
1510 (program_name): Declare.
1511 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1512 and substitute FALSE and TRUE.
1513 (setup_archive, setup_nested_archive): Likewise.
1514 * elfcomm.h: Likewise.
1516 2020-03-19 Alan Modra <amodra@gmail.com>
1518 * readelf.c (process_archive): Always return via path freeing
1521 2020-03-19 Alan Modra <amodra@gmail.com>
1523 * readelf.c (process_netbsd_elf_note): Validate descsz before
1524 accessing descdata. Formatting.
1526 2020-03-19 Alan Modra <amodra@gmail.com>
1528 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1529 * elfcomm.h (setup_archive): Update prototype.
1531 2020-03-16 Alan Modra <amodra@gmail.com>
1533 * readelf.c (get_symbols): New function.
1534 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1535 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1537 2020-03-16 Alan Modra <amodra@gmail.com>
1539 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1540 Detect shift overflows and check that terminating byte is found.
1541 Print an error on a bad uleb128.
1543 2020-03-14 Alan Modra <amodra@gmail.com>
1545 * readelf.c (process_file): Clean ba_cache.
1547 2020-03-14 Alan Modra <amodra@gmail.com>
1549 * elfcomm.h (setup_archive): Update prototype.
1550 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1551 check longnames_size.
1552 (setup_nested_archive): Get file size and pass to setup_archive.
1553 * elfedit.c (process_archive): Likewise.
1554 * readelf.c (process_archive): Pass filedata->file_size to
1557 2020-03-14 Alan Modra <amodra@gmail.com>
1559 * readelf.c (dump_section_as_strings): Free memory on error exit.
1560 (dump_section_as_bytes, process_notes_at): Likewise.
1561 (get_build_id): Free enote.
1563 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1565 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1566 NT_NETBSDCORE_LWPSTATUS notes.
1568 2020-03-13 Alan Modra <amodra@gmail.com>
1570 * elfcomm.c (get_archive_member_name): Always return malloc'd
1572 * elfedit.c (process_archive): Tidy memory on all return paths.
1573 * readelf.c (process_archive): Likewise.
1574 (process_symbol_table): Likewise.
1575 (ba_cache): New, replacing ..
1576 (get_symbol_for_build_attribute): ..static vars here. Free
1577 strtab and symtab before loading new ones. Reject symtab without
1578 valid strtab in loop, breaking out of loop on valid symtab.
1579 (process_file): Free ba_cache symtab and strtab here, resetting
1582 2020-03-12 Alan Modra <amodra@gmail.com>
1584 * readelf.c (process_section_headers): Don't just set
1585 filedata->section_headers NULL, free it first. Similarly for
1586 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1587 symtab_shndx_list. Zero associated counts too.
1588 (process_object): Free symtab_shndx_list.
1589 (process_file): Free various allocated filedata tables.
1591 2020-03-11 Nick Clifton <nickc@redhat.com>
1595 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1596 li_segment_size fields.
1597 * dwarf.c (read_debug_line_header): Record the address size and
1598 segment selector size values (if present) in the lineinfo
1600 (display_formatted_table): Warn if the format count is empty but
1601 the table itself is not empty.
1602 Display the format count and entry count at the start of the table
1604 (display_debug_lines_raw): Display the address size and segement
1605 selector size fields, if present.
1606 * testsuite/binutils-all/dw5.W: Update expected output.
1608 2020-03-11 Alan Modra <amodra@gmail.com>
1611 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1612 pad_to_set on second block of code dealing with padding.
1613 Replace "c" with "num_sec" and don't recalculate number of
1614 sections on second block. Size arrays using sizeof (element)
1615 rather than sizeof (element type).
1617 2020-03-10 Alan Modra <amodra@gmail.com>
1619 * objdump.c (disassemble_section): Don't call qsort unless
1620 sym count is at least two.
1621 (disassemble_data): Don't call memcpy with NULL src.
1623 2020-03-09 Alan Modra <amodra@gmail.com>
1626 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1627 to get_data rather than multiplying.
1628 (dump_ia64_vms_dynamic_relocs): Likewise.
1629 (process_version_sections): Correct order of size and nmemb args
1631 (process_mips_specific): Likewise.
1633 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1635 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1636 "memory checkers" in comments.
1638 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1641 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1642 * doc/Makefile.in: Re-generate.
1644 2020-03-06 Nick Clifton <nickc@redhat.com>
1646 * objcopy.c (check_new_section_flags): New function. Reject the
1647 SEC_COFF_SHARED flag if the target is not a COFF binary.
1648 (copy_object): Call check_new_section_flags.
1649 (setup_section): Likewise.
1650 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1651 flag cannot be applied to ELF binaries.
1653 2020-03-06 Alan Modra <amodra@gmail.com>
1656 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1658 2020-03-05 Alan Modra <amodra@gmail.com>
1661 * objcopy.c (filter_symbols): Don't segfault on NULL
1662 prefix_symbols_string.
1664 2020-03-04 Christian Eggers <ceggers@gmx.de>
1666 * objcopy.c (copy_object): Convert from bytes to octets for
1667 --gap-fill and --pad-to.
1669 2020-03-03 Nick Clifton <nickc@redhat.com>
1672 * prdbg.c (pr_tag_type): Remove call to abort.
1674 2020-03-02 Aaron Merey <amerey@redhat.com>
1676 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1679 2020-03-02 Nick Clifton <nickc@redhat.com>
1682 * readelf.c (dump_section_as_strings): Display new-line characters
1683 as \n and then insert a line break.
1684 * testsuite/binutils-all/pr25543.s: New test.
1685 * testsuite/binutils-all/pr25543.d: Test driver.
1686 * testsuite/binutils-all/readelf.exp: Run the new test.
1688 2020-02-27 Nick Clifton <nickc@redhat.com>
1691 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1692 get_data is unable to load the string table.
1694 2020-02-26 Alan Modra <amodra@gmail.com>
1696 * elfedit.c: Indent labels correctly.
1697 * readelf.c: Likewise.
1698 * resres.c: Likewise.
1700 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1703 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1704 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1706 2020-02-24 Nick Clifton <nickc@redhat.com>
1709 * doc/binutils.texi (objdump): Fix typo in description of
1710 objdump's -g option.
1712 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1714 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1717 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1719 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1721 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1723 * configure: Regenerate.
1725 2020-02-10 Fangrui Song <maskray@google.com>
1727 * objcopy.c (parse_flags): Handle "exclude".
1728 * doc/binutils.texi: Document the support.
1730 2020-02-10 Aaron Merey <amerey@redhat.com>
1732 * binutils/testsuite/binutils-all/debuginfod.exp:
1733 Replace set ::env with setenv.
1734 Start server before setting environment variable.
1735 Specify tmpdir as the location of the server's
1737 Check additional server metrics at start-up.
1739 2020-02-07 Nick Clifton <nickc@redhat.com>
1741 * README-how-to-make-a-release: Add note about updating the
1742 GAS/NEWS URL in the next release.
1744 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1747 * readelf.c (get_machine_flags): Add support for Z80N machine
1750 2020-02-07 Nick Clifton <nickc@redhat.com>
1752 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1753 of the truncated file name.
1755 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1757 * objdump.c (print_jump_visualisation): New function.
1758 (disassemble_bytes): Call new function.
1760 2020-02-06 Alan Modra <amodra@gmail.com>
1762 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1764 (supports_gnu_osabi): New procedure.
1765 (is_generic): New, from ld-lib.exp.
1766 (supports_gnu_unique): Use the above.
1768 2020-02-04 Alan Modra <amodra@gmail.com>
1770 * Makefile.am (CFILES): Add od-elf32_avr.c.
1771 * Makefile.in: Regenerate.
1772 * po/POTFILES.in: Regenerate.
1774 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1776 * readelf.c (dump_relocations, dump_relocations)
1777 (decode_arm_unwind_bytecode, process_dynamic_section)
1778 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1781 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1783 * coffdump.c (program_name): Drop redundant definition.
1784 * srconv.c (program_name): Likewise
1785 * sysdump.c (program_name): Likewise
1787 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1790 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1791 same file with different section pointers.
1793 2020-02-01 Nick Clifton <nickc@redhat.com>
1795 * README-how-to-make-a-release: Update with more details on the
1796 release making process.
1798 2020-01-31 Nick Clifton <nickc@redhat.com>
1800 * po/sv.po: Updated Swedish translation.
1802 2020-01-28 Nick Clifton <nickc@redhat.com>
1804 * readelf.c (get_build_id): Simplify warning message about corrupt
1805 notes encountered whilst scanning for the build-id.
1807 2020-01-27 Roland McGrath <mcgrathr@google.com>
1809 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1810 for overlapping ranges so that (A == B) == (B == A) holds.
1812 2020-01-27 Alan Modra <amodra@gmail.com>
1814 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1815 case statement with switch statement.
1817 2020-01-24 Nick Clifton <nickc@redhat.com>
1819 * readelf.c (get_build_id): Fix warning messages about corrupt
1822 2020-01-23 Nick Clifton <nickc@redhat.com>
1824 * po/fr.po: Updated French translation.
1826 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1829 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1831 2020-01-20 Nick Clifton <nickc@redhat.com>
1833 * po/pt.po: Updated Portuguese translation.
1834 * po/uk.po: Updated Ukranian translation.
1836 2020-01-18 Nick Clifton <nickc@redhat.com>
1838 * README-how-to-make-a-release: Update notes on how to cut a
1839 branch for a release.
1841 2020-01-18 Nick Clifton <nickc@redhat.com>
1843 * configure: Regenerate.
1844 * po/binutils.pot: Regenerate.
1846 2020-01-18 Nick Clifton <nickc@redhat.com>
1848 Binutils 2.34 branch created.
1850 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1852 * objdump.c (jump_info_visualize_address): Discard jumps that are
1854 (disassemble_bytes): Only compute the maximum level if jumps were
1857 2020-01-13 Nick Clifton <nickc@redhat.com>
1859 * objdump.c (disassemble_bytes): Remove C99-ism.
1860 * testsuite/binutils-all/debuginfod.exp: New tests.
1862 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1864 * objdump.c (visualize_jumps, color_output, extended_color_output)
1865 (detected_jumps): New variables.
1866 (usage): Add the new jump visualization options.
1867 (option_values): Add new option value.
1868 (long_options): Add the new option.
1869 (jump_info_new, jump_info_free): New functions.
1870 (jump_info_min_address, jump_info_max_address): Likewise.
1871 (jump_info_end_address, jump_info_is_start_address): Likewise.
1872 (jump_info_is_end_address, jump_info_size): Likewise.
1873 (jump_info_unlink, jump_info_insert): Likewise.
1874 (jump_info_add_front, jump_info_move_linked): Likewise.
1875 (jump_info_intersect, jump_info_merge): Likewise.
1876 (jump_info_sort, jump_info_visualize_address): Likewise.
1877 (disassemble_jumps): New function - used to locate jumps.
1878 (disassemble_bytes): Add ascii art generation.
1879 (disassemble_section): Add scan to locate jumps.
1880 (main): Parse the new visualization option.
1881 * doc/binutils.texi: Document the new feature.
1882 * NEWS: Mention the new feature.
1884 2020-01-13 Alan Modra <amodra@gmail.com>
1888 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1889 fde_fc col_type and col_offset.
1890 * readelf.c (apply_relocations): Move symsec check earlier.
1891 (free_debug_section): Free reloc_info.
1892 (process_notes_at): Free pnotes on error path.
1893 (process_object): Free dump_sects here..
1894 (process_archive): ..not here.
1896 2020-01-13 Alan Modra <amodra@gmail.com>
1899 * nm.c (display_rel_file): Free dyn_syms.
1901 2020-01-09 Nick Clifton <nickc@redhat.com>
1904 * objcopy.c (empty_name): New variable.
1905 (need_sym_before): Prevent an attempt to free a static variable.
1906 (filter_symbols): Avoid strcmp test by checking for pointer
1909 2020-01-09 Nick Clifton <nickc@redhat.com>
1911 * po/zh_TW.po: Updated Traditional Chinese translation.
1913 2020-01-09 Aaron Merey <amerey@redhat.com>
1915 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1916 * Makefile.in: Regenerate.
1918 * config.in: Regenerate.
1919 * configure: Regenerate.
1920 * configure.ac: Call AC_DEBUGINFOD.
1921 * doc/Makefile.in: Regenerate.
1922 * doc/binutils.texi: Add section on using binutils
1924 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1925 Query debuginfod servers for the target debug file.
1926 (load_separate_debug_info): Call
1927 debuginfod_fetch_separate_debug_info if configured with
1929 (load_separate_debug_files): Add file argument to
1930 load_separate_debug_info calls.
1931 * dwarf.h (get_build_id): Add declaration.
1932 * objdump.c (get_build_id): New function. Get build-id of file.
1933 * readelf.c (get_build_id): Likewise.
1934 * testsuite/binutils-all/debuginfod.exp: New tests.
1935 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1938 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1940 * readelf.c: Add support for new Z*) relocations and machine
1943 2020-01-01 Alan Modra <amodra@gmail.com>
1945 Update year range in copyright notice of all files.
1947 For older changes see ChangeLog-2019
1949 Copyright (C) 2020 Free Software Foundation, Inc.
1951 Copying and distribution of this file, with or without modification,
1952 are permitted in any medium without royalty provided the copyright
1953 notice and this notice are preserved.
1959 version-control: never