1 2020-11-27 Nick Clifton <nickc@redhat.com>
4 * windres.c (main): If the preprocessor name includes spaces,
5 ensure that it is quoted.
7 2020-11-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9 * testsuite/lib/binutils-common.exp (supports_noinit_section): New.
10 (supports_persistent_section): New.
12 2020-11-23 Nick Alcock <nick.alcock@oracle.com>
14 * readelf.c (dump_section_as_ctf): Call ctf_arc_symsect_endianness.
16 2020-11-25 Alan Modra <amodra@gmail.com>
18 * testsuite/binutils-all/nm.exp (ifunc): xfail more targets.
20 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
22 * readelf.c (dump_section_as_ctf): Use .dynsym and .dynstr, not
25 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
27 * objdump.c (dump_ctf): Report errors from ctf_archive_iter.
28 * readelf.c (dump_section_as_ctf): Likewise.
30 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
32 * objdump.c (dump_ctf): Use ctf_dict_open, not
34 * readelf.c (dump_section_as_ctf): Likewise.
36 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
38 * objdump.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
39 (dump_ctf_archive_member): Likewise.
40 (dump_ctf): Likewise. Use ctf_dict_close, not ctf_file_close.
41 * readelf.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
42 (dump_ctf_archive_member): Likewise.
43 (dump_section_as_ctf): Likewise. Use ctf_dict_close, not
46 2020-11-20 Nick Clifton <nickc@redhat.com>
49 * nm.c (ifunc_type_chars): New variable.
50 (long_options): Add --ifunc-chars.
51 (print_symbol): Use ifunc_type_chars for ifunc symbols.
52 (main): Handle the new option.
53 * doc/binutils.texi: Document the new option.
54 * configure.ac: Add --enable-f-for-ifunc-symbols option which
55 changes the default symbol displayed by nm.
56 * NEWS: Mention the new feature.
57 * testsuite/binutils-all/nm.exp: Test the new feature.
58 * config.in: Regenerate.
59 * configure: Regenerate.
61 2020-11-20 Linda Zhang <lindasc@qq.com>
64 * dllwrap.c (main): Deprecate and warn the use of dllwrap.
66 2020-11-20 Jozef Lawrynowicz <jozef.l@mittosystems.com>
68 * testsuite/binutils-all/readelf-maskos-1a.d: Fix test for unrecognized
69 bit set in SHF_MASKOS range.
70 * testsuite/binutils-all/readelf-maskos-1b.d: Likewise.
71 * testsuite/binutils-all/readelf-maskos-unknown.s: New test.
73 2020-11-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
75 * NEWS: Announce SHF_GNU_RETAIN support.
76 * readelf.c (get_elf_section_flags): Handle SHF_GNU_RETAIN.
77 Recognize SHF_GNU_RETAIN and SHF_GNU_MBIND only for supported OSABIs.
78 * testsuite/binutils-all/readelf.exp: Run new tests.
79 Don't run run_dump_test when there isn't an assembler available.
80 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Adjust
82 * testsuite/binutils-all/readelf-maskos-1a.d: New test.
83 * testsuite/binutils-all/readelf-maskos-1b.d: New test.
84 * testsuite/binutils-all/readelf-maskos.s: New test.
85 * testsuite/binutils-all/retain1.s: New test.
86 * testsuite/binutils-all/retain1a.d: New test.
87 * testsuite/binutils-all/retain1b.d: New test.
89 2020-11-17 Howard Chu <hyc@symas.com>
91 * ar.c (main): Place the libdeps record in the second archive
94 2020-11-13 Nick Clifton <nickc@redhat.com>
97 * dwarf.c (struct dwo_info): Add cu_offset field.
98 (add_dwo_info): Add cu_offset parameter. Record in new dwo_info
100 (add_dwo_name): Add cu_offset field.
101 (add_dwo_dir): Add cu_offset field.
102 (add_dwo_id): Add cu_offset field.
103 (read_and_display_attr_value): Pass cu_offset to dwo recording
105 (load_separate_debug_files): Accumulate name, dir and id values
106 and display once for each CU.
107 * testsuite/binutils-all/dwo.sL Use a separate CU for the second
109 * testsuite/binutils-all/readelf.k2: Update expected output.
111 2020-11-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
113 * dwarf.c (display_debug_rnglists_list): Only bias the
114 DW_RLS_offset_pair with the base address.
116 2020-11-10 Nick Clifton <nickc@redhat.com>
118 * dwarf.c (skip_attr_bytes): Correctly handle DW_FORM_ref8.
119 (get_type_abbrev_from_form): Accept DW_FORM_ref8.
121 2020-11-09 Andreas Schwab <schwab@linux-m68k.org>
123 * Makefile.am (development.exp): Fix regexp.
124 * Makefile.in: Regenerate.
126 2020-11-09 Nick Clifton <nickc@redhat.com>
129 * dwarf.c (read_and_display_attr_value): In wide mode, display the
132 2020-11-09 Alan Modra <amodra@gmail.com>
134 * elfedit (usage): Avoid false positive "may be used uninitialised".
137 2020-11-09 Howard Chu <hyc@symas.com>
139 * ar.c (main): Use plugin_target rather than "target" when
140 resetting libdeps_bfd target.
142 2020-11-06 H.J. Lu <hongjiu.lu@intel.com>
144 * elfedit.c: Include "libiberty.h".
145 (usage): Update help message.
147 2020-11-03 Howard Chu <hyc@symas.com>
149 * ar.c (long_options): Add --record-libdeps.
150 (usage): Mention the new option.
151 (decode_options): Handle the new option.
152 (replace_members): If necessary, create a bfd to hold the libdeps
154 * binemul.c (ar_emul_append_bfd): New function.
155 (ar_emul_replace_bfd): New function.
156 (ar_emul_default_append): Replace file_name and target arguments
157 with new_bfd argument.
158 (ar_emul_default_replace): Likewise.
159 * binemul.h: Update prototypes.
160 (struct bin_emulation_xfer_struct): Update fields.
161 * doc/binutils.texi: Document the new option.
162 * NEWS: Mention the new feature.
163 * emul_aix.c (ar_emul_aix_append): Update.
164 (ar_emul_aix_replace): Likewise.
165 * testsuite/binutils-all/ar.exp: Add test of new feature.
167 2020-10-30 H.J. Lu <hongjiu.lu@intel.com>
170 * readelf.c (decode_x86_isa): Handle
171 * GNU_PROPERTY_X86_ISA_1_BASELINE.
172 * testsuite/binutils-all/i386/empty.d: Updated.
173 * testsuite/binutils-all/i386/ibt.d: Likewise.
174 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
175 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
176 * testsuite/binutils-all/i386/shstk.d: Likewise.
177 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
178 * testsuite/binutils-all/x86-64/empty.d: Likewise.
179 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
180 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
181 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
182 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
183 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
184 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
185 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
186 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
187 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
188 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
189 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
190 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
191 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
192 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
194 2020-10-29 H.J. Lu <hongjiu.lu@intel.com>
197 * dwarf.c (abbrev_list): Add abbrev_base.
198 (new_abbrev_list): Add an abbrev_base argument and record it.
199 (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
201 (process_debug_info): Pass abbrev_base to new_abbrev_list and
202 find_abbrev_list_by_abbrev_offset.
203 (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
204 and find_abbrev_list_by_abbrev_offset.
205 * testsuite/binutils-all/x86-64/pr26808.dump: New file.
206 * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
207 * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
210 2020-10-29 Nick Clifton <nickc@redhat.com>
213 * objcopy.c (is_dwo_section): Check for missing or short section
216 2020-10-26 Andreas Rammhold <andreas@rammhold.de>
218 * README-how-to-make-a-release: Use sha256sum instead of md5sum.
220 2020-10-28 Nick Clifton <nickc@redhat.com>
223 * elfedit.c (process_archive): Remove spurious call to free().
225 2020-10-27 Nick Clifton <nickc@redhat.com>
227 * dwarf.c (struct abbrev_list): New structure. Used to collect
228 lists of abbreviation sets.
229 (struct abbrev_map): New structure. Used to map CU offsets to
230 abbreviation offsets.
231 (record_abbrev_list): New function. A new entry to an
233 (free_all_abbrevs): Update to free abbreviation lists.
234 (new_abbrev_list): New function. Start a new abbreviation
236 (find_abbrev_list_by_abbrev_offset): New function.
237 (find_abbrev_map_by_offset): New function.
238 (add_abbrev): Add abbrev_list parameter.
239 (add_abbrev_attr): Likewise.
240 (process_abbrev_section): Rename to process_abbrev_set and add
242 (get_type_abbrev_from_form): New function. Attempts to decode the
243 forms used by DW_AT_type attributes.
244 (get_type_signedness): Display type names if operating in wide
245 mode. Use get_type_abbrev_from_form.
246 (read_and_display_attr_value): Use get_type_abbrev_from_form.
247 (process_debug_info): Pre-parse the CU headers to collate all the
248 abbrevs before starting the main scan.
249 (process_debug_abbrev): Do not free any loaded abbrevs.
250 (free_debug_memory): Free the abbrev maps.
252 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
254 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
255 error message on error.
257 2020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
259 * windmc.c (write_header_define): Fix printf format.
260 (write_header): Likewise.
262 2020-10-21 Nick Clifton <nickc@redhat.com>
264 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
265 when processing the DW_FORM_ref_addr form.
266 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
267 Handle DW_FORM_indirect.
268 (get_type_signedness): Allow a limited amount of recursion.
269 Do not attempt to decode types that use the DW_FORM_ref_addr form.
270 (read_and_display_attr_value): Do not attempt to decode types
271 that use the DW_FORM_ref_addr form.
273 2020-10-20 Alan Modra <amodra@gmail.com>
275 * readelf.c: Delete whitespace at end of line throughout.
276 (SECTION_NAME, SECTION_NAME_VALID): New.
277 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
278 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
279 (process_section_headers, process_section_groups): Likewise.
280 (shdr_to_ctf_sect): Likewise.
281 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
282 (ia64_process_unwind, hppa_process_unwind): Likewise.
283 (display_debug_section, initialise_dumps_byname): Likewise.
284 (process_lto_symbol_tables): Likewise. Check trailing period of
285 lto symbol table names.
286 (display_lto_symtab): Use sizeof instead of strlen.
288 2020-10-20 Nelson Chu <nelson.chu@sifive.com>
290 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
292 2020-10-19 Nick Clifton <nickc@redhat.com>
294 * readelf.c (do_lto_syms): New local.
295 (long_option_values): Add OPTION_LTO_SYMS.
296 (options): Add --lto-syms.
297 (usage): Mention the new option.
298 (parse_args): Parse the new option.
299 (get_lto_kind): New function.
300 (get_lto_visibility): New function.
301 (get_lto_sym_type): New function.
302 (display_lto_symtab): New function - displays the contents of an
303 LTo symbol table section.
304 (process_lto_symbol_tables): New functions. Calls
305 dipslay_lto_symtab on any LTO symbol table section.
306 (process_object_file): Call process_lto_symbol_tables.
307 * doc/binutils.texi: Document the new option.
308 * NEWS: Mention the new feature.
310 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
313 * readelf.c (decode_x86_compat_2_isa): New function.
314 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
315 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
316 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
317 and X86_COMPAT_2_ISA_1_NEEDED.
318 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
319 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
321 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
322 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
323 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
324 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
325 * testsuite/binutils-all/i386/empty.d: Updated.
326 * testsuite/binutils-all/i386/ibt.d: Likewise.
327 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
328 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
329 * testsuite/binutils-all/i386/shstk.d: Likewise.
330 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
331 * testsuite/binutils-all/x86-64/empty.d: Likewise.
332 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
333 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
334 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
335 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
336 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
337 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
338 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
339 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
340 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
341 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
342 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
343 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
344 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
345 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
347 2020-10-06 Nick Clifton <nickc@redhat.com>
349 * objcopy.c (copy_object): Compare input and output sections by
350 pointer rather than name.
352 2020-10-05 Nick Clifton <nickc@redhat.com>
355 * windmc.c (mc_unify_path): Fix typo checking character at end of
358 2020-10-05 Samanta Navarro <ferivoz@riseup.net>
360 * doc/binutils.texi: Fix spelling mistakes.
362 2020-09-29 Mark Wielaard <mark@klomp.org>
364 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
365 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
367 2020-09-25 Alan Modra <amodra@gmail.com>
369 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
371 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
372 allowed reloc_size. Don't read_leb128 outside of section.
374 2020-09-23 Mark Wielaard <mark@klomp.org>
376 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
377 * testsuite/binutils-all/dw5.W: Adjust expected output.
378 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
380 2020-09-23 Mark Wielaard <mark@klomp.org>
382 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
383 for dwarf_version 5 just as version 3 and 4 (only 2 is
385 (process_debug_info): Allow DW_UT_partial.
387 2020-09-24 Nick Clifton <nickc@redhat.com>
390 * doc/binutils.texi (nm): Document that 'c' is used for small
393 2020-09-21 Ludovic Courtès <ludo@gnu.org>
395 * doc/binutils.texi (objcopy, strip): Say that
396 '--strip-unneeded' implies '--strip-debug'.
398 2020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
400 * verilog.c (verilog_write_address): Properly handle 64-bit
401 addresses to avoid truncation of the high part.
403 2020-09-16 Alan Modra <amodra@gmail.com>
405 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
406 * objcopy.c (is_hidden_symbol): Likewise.
408 2020-09-15 Nick Clifton <nickc@redhat.com>
410 * README-how-to-make-a-release (https): Add a reminder to create a
411 new Bugzilla tag for the point release, once it has been published.
413 2020-09-11 H.J. Lu <hongjiu.lu@intel.com>
415 * readelf.c (get_note_type): Support NT_X86_CET.
417 2020-09-11 Nick Clifton <nickc@redhat.com>
420 * dwarf.c (load_separate_debug_info): Return NULL rather than
421 FALSE in error situations.
422 (load_separate_debug_file): Move code to load debug links to ...
423 (check_for_and_load_links): ... here. New function. Load
424 separate debug information pointed to by debuglink and
425 debugaltlink sections. Recursively scan newly loaded debug
426 information for more links and load them too.
428 2020-09-09 Alan Modra <amodra@gmail.com>
431 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
432 (load_separate_debug_files): Use a stack var for build_id_data.
434 2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
437 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
438 to ld on PE targets for PR 25662 test.
440 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
441 Kuan-Lin Chen <kuanlinchentw@gmail.com>
443 * readelf.c (target_specific_reloc_handling): Handle
444 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
446 2020-09-02 Alan Modra <amodra@gmail.com>
448 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
450 2020-08-30 Alan Modra <amodra@gmail.com>
452 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
455 2020-08-28 Nick Clifton <nickc@redhat.com>
458 * dwarf.c (read_leb128): When checking for overflow of a signed
459 read, use a signed shift.
461 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
463 * readelf.c (get_csky_section_type_name): New.
464 (get_section_type_name): Add handler for CSKY.
465 (display_csky_attribute): New.
466 (process_arch_specific): Add handler for CSKY.
467 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
470 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
472 * readelf.c (get_msp430x_section_type_name): Rename to ...
473 (get_msp430_section_type_name): ... this.
474 (get_section_type_name): Use get_msp430_section_type_name.
475 (display_msp430x_attribute): Rename to ...
476 (display_msp430_attribute): ... this.
477 (process_arch_specific): Use display_msp430_attribute.
479 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
482 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
483 "-j $PRIVATE$" to command on hppa*-*-hpux*.
484 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
485 dollar-sign quotes before quoting. Do this prior to generating log
488 2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
491 * mclex.c (skip_until_eol): If eol was found, increment line
494 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
496 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
497 * readelf.c (dump_ctf_errs): Likewise.
499 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
501 * objdump.c (dump_ctf_archive_member): Move error-
503 (dump_ctf_errs): ... into this separate function.
504 (dump_ctf): Call it on open errors.
505 * readelf.c (dump_ctf_archive_member): Move error-
507 (dump_ctf_errs): ... into this separate function. Support
508 calls with NULL fp. Adjust for new err parameter to
510 (dump_section_as_ctf): Call it on open errors.
512 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
514 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
515 * Makefile.in: Regenerated.
517 2020-08-26 Nick Clifton <nickc@redhat.com>
520 * readelf.c (get_segment_type): Handle OpenBSD segment types.
522 2020-08-26 Alan Modra <amodra@gmail.com>
525 * objcopy.c (copy_object): Don't fwrite NULL contents.
527 2020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
530 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
532 2020-08-24 Alan Modra <amodra@gmail.com>
534 * readelf.c (dump_section_as_strings) Avoid false positive
535 "may be used uninitialised".
537 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
540 * nm.c (print_symname): Display only one '@' for undefined
542 * doc/binutils.texi: Update nm version information.
544 2020-08-21 Mark Wielaard <mark@klomp.org>
546 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
547 recognize DW_LANG_C11.
549 2020-08-19 Alan Modra <amodra@gmail.com>
552 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
554 (dump_section_as_strings): Don't use %tx to display offset.
556 2020-08-14 Alan Modra <amodra@gmail.com>
559 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
560 of debug_information. Correct test of max_loc_offsets and
562 * rddbg.c (read_debugging_info): Free dhandle on error.
564 2020-08-14 Alan Modra <amodra@gmail.com>
566 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
568 2020-08-13 Alan Modra <amodra@gmail.com>
571 * objcopy.c (copy_object): Report file name with endian error.
572 Error and return on abfd->read_only.
574 2020-08-12 Tom Tromey <tromey@adacore.com>
576 * dwarf-mode.el (Version): Now 1.6.
577 (dwarf-die-button-action): Tighten DIE reference regexp.
578 (dwarf-font-lock-keywords): Update name regexp.
580 2020-08-12 Nick Clifton <nickc@redhat.com>
583 * readelf.c (do_demangle): New option flag.
584 (print_symbol): If do_demangle is enabled, demangle the symbol.
585 (enum long_option_values): New enum to hold long option values.
586 (options): Add demangle, no-demangle, recursion-limit and
587 no-recursion-limit options. Alpha sort the table.
588 (usage): Describe the new options.
589 (parse_args): Handle the new options.
590 * NEWS: Mention the new feature.
591 * doc/binutils.texi: Document the new feature.
592 * testsuite/binutils-all/readelf.exp: Test the new feature.
593 * testsuite/binutils-all/mangled.s: New file - assembler source.
594 * testsuite/binutils-all/readelf.demangled: New file - expected
597 2020-08-12 Nick Clifton <nickc@redhat.com>
599 * po/sr.po: Updated Serbian translation.
601 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
604 * nm.c (with_symbol_versions): Removed.
605 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
606 (long_options): Update --with-symbol-versions entry.
607 (print_symbol): Remove the with_symbol_versions check.
608 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
610 * doc/binutils.texi: Remove --with-symbol-versions.
612 2020-08-05 Alan Modra <amodra@gmail.com>
615 * objdump.c (load_specific_debug_section): Revert last change.
617 2020-08-05 Alan Modra <amodra@gmail.com>
620 * objdump.c (load_specific_debug_section): Don't malloc space for
621 section contents, use bfd_malloc_and_get_section.
623 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
625 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
626 * Makefile.in, doc/Makefile.in: Regenerate.
627 * configure: Regenerate.
629 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
631 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
633 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
634 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
635 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
636 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
637 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
639 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
641 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
643 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
645 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
647 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
649 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
651 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
653 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
655 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
657 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
659 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
661 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
663 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
665 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
667 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
669 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
671 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
673 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
675 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
678 * configure: Regenerated.
680 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
683 * configure: Regenerated.
685 2020-07-27 Alan Modra <amodra@gmail.com>
687 * objdump.c (dump_section): Don't return without calling
690 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
692 * doc/binutils.texi: Replace preceeded with preceded.
694 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
696 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
697 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
699 (has_newabi): Remove variable.
700 (has_abi, abi_asflags, abi_ldflags): New associative array
702 (irixemul): New variable.
703 Replace `run_dump_test' calls where applicable throughout with
704 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
705 as appropriate. Use `noarch' for tests that require their own
706 architecture setting.
707 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
708 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
709 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
710 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
711 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
712 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
713 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
714 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
715 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
716 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
717 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
718 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
719 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
720 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
722 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
723 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
724 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
725 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
726 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
727 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
728 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
730 2020-07-24 Aaron Merey <amerey@redhat.com>
732 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
733 * Makefile.in: Rebuild.
734 * configure: Rebuild.
735 * doc/Makefile.in: Rebuild.
737 2020-07-24 Nick Clifton <nickc@redhat.com>
739 * README-how-to-make-a-release: Various small updates whilst
740 creating the 2.35 release.
742 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
744 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
747 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
749 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
750 (dump_ctf): Likewise.
752 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
754 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
755 * readelf.c (dump_ctf_archive_member): Likewise.
757 2020-07-22 Nick Clifton <nickc@redhat.com>
759 * readelf.c (parse_args): Silence potential warnings about a
760 memory resource leak when allocating space for ctf option values.
761 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
764 2020-07-21 Nick Clifton <nickc@redhat.com>
766 * po/sv.po: Updated Swedish translation.
768 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
770 * testsuite/binutils-all/arc/double_regs.s: New test.
771 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
773 2020-07-13 Nick Clifton <nickc@redhat.com>
775 * po/fr.po: Updated French translation.
777 2020-07-13 Alan Modra <amodra@gmail.com>
779 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
780 optional machine-os arg.
782 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
784 * readelf.c (decode_x86_feature_2): Handle
785 GNU_PROPERTY_X86_FEATURE_2_TMM.
787 2020-07-10 Tom de Vries <tdevries@suse.de>
789 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
790 information in the end_sequence row.
791 * testsuite/binutils-all/dw5.W: Update.
792 * testsuite/binutils-all/objdump.WL: Update.
794 2020-07-09 Alan Modra <amodra@gmail.com>
796 * dlltool.c: Remove powerpc PE support and comments.
797 * configure.ac: Remove powerpc PE dlltool config.
798 * configure: Regenerate.
800 2020-07-09 Nick Clifton <nickc@redhat.com>
802 * rclex.c: Add OWNERDRAW keyword.
803 * rcparse.y: Add OWNERDRAW token.
804 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
805 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
807 * windres.c (extended_menuitems): Likewise.
808 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
810 2020-07-09 Alan Modra <amodra@gmail.com>
812 * readelf (slurp_hppa_unwind_table): Set table_len before use
813 in relocation sanity checks.
815 2020-07-07 Alan Modra <amodra@gmail.com>
817 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
818 * testsuite/binutils-all/nm.exp: Likewise.
819 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
820 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
821 * testsuite/binutils-all/set-section-alignment.d: Likewise.
822 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
824 2020-07-07 Alan Modra <amodra@gmail.com>
826 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
827 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
829 2020-07-06 Nick Clifton <nickc@redhat.com>
831 * po/bg.po: Updated Bulgarian translation.
832 * po/pt.po: Updated Portuguese translation.
833 * po/uk.po: Updated Ukranian translation.
835 2020-07-06 Alan Modra <amodra@gmail.com>
837 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
840 2020-07-04 Nick Clifton <nickc@redhat.com>
842 * configure: Regenerate.
843 * po/binutils.pot: Regenerate.
845 2020-07-04 Nick Clifton <nickc@redhat.com>
847 Binutils 2.35 branch created.
849 2020-07-02 Nick Clifton <nickc@redhat.com>
852 * readelf.c (print_symbol): Handle truncation of symbol names.
853 (options): Add -T/--silent-truncation option.
854 (parse_args): Handle the option.
855 (print_dynamic_symbol): Correct calculation of width available to
857 * doc/binutils.texi: Document the -T option to readelf.
858 * NEWS: Mention the new feature.
860 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
862 * NEWS: Mention x86 NaCl target support removal.
863 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
864 x86 NaCl target support.
865 * testsuite/binutils-all/elfedit-1.d: Likewise.
866 * testsuite/binutils-all/i386/i386.exp: Likewise.
867 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
868 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
869 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
870 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
871 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
872 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
873 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
874 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
875 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
876 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
877 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
878 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
880 2020-06-30 Nick Clifton <nickc@redhat.com>
882 * dwarf.c (read_and_display_attr_value): Support
883 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
886 2020-06-30 Alan Modra <amodra@gmail.com>
888 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
891 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
893 * dwarf.c (display_debug_str_offsets): Rename local variable
894 index to idx. Move to top of function.
896 2020-06-29 Alan Modra <amodra@gmail.com>
898 * dwarf.c: Use C style comments.
901 2020-06-27 Alan Modra <amodra@gmail.com>
903 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
905 (release_archive): Set fields of arch to NULL after freeing.
907 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
909 * readelf.c (dump_section_as_ctf): Support .ctf archives using
910 ctf_arc_bufopen. Automatically load the .ctf member of such
911 archives as the parent of all other members, unless specifically
912 overridden via --ctf-parent. Split out dumping code into...
913 (dump_ctf_archive_member): ... here, as in objdump, and call
914 it once per archive member.
915 (dump_ctf_indent_lines): Code style fix.
917 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
919 * configure.ac [--enable-libctf]: New, default yes.
920 Set ENABLE_LIBCTF accordingly.
921 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
922 * configure: Regenerate.
923 * config.in: Regenerate.
924 * Makefile.in: Regenerate.
925 * aclocal.m4: Regenerate.
926 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
927 (option_values): Likewise.
928 (long_options): Likewise.
930 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
931 (make_ctfsect): Likewise.
932 (dump_ctf_archive_member): Likewise.
933 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
934 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
935 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
937 (process_section_contents): Likewise.
938 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
939 (dump_ctf_indent_lines): Likewise.
940 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
942 2020-06-26 Jan Beulich <jbeulich@suse.com>
944 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
945 redundant text from x86 specific part of -M section.
947 2020-06-26 Pat Bernardi <bernardi@adacore.com>
949 * readelf.c (display_m68k_gnu_attribute): New function.
950 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
952 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
955 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
956 * testsuite/binutils-all/pr26160.r: Likewise.
957 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
959 2020-06-23 Nick Clifton <nickc@redhat.com>
962 * dwarf.c (fetch_indexed_string): Detect and handle old style
963 .debug_str_offset tables.
964 (display_debug_str_offsets): Likewise. Also add support for
965 .debug_str_offsets.dwo sections.
967 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
970 * testsuite/binutils-all/pr26112.o.bz2: New file.
971 * testsuite/binutils-all/pr26112.r: Likewise.
972 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
974 2020-06-23 Alan Modra <amodra@gmail.com>
976 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
977 remote_file delete command.
979 2020-06-22 Nick Clifton <nickc@redhat.com>
982 * dwarf.c (display_debug_str_offsets): Add code to display the
983 contents of the .debug_str_offsets section.
984 (display_debug_macro): Add support for DW_MACRO_define_strx and
987 2020-06-22 Saagar Jha <saagar@saagarjha.com>
989 * od-macho.c: Dump linkedit data for new load commands.
991 2020-06-19 Alan Modra <amodra@gmail.com>
993 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
994 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
995 (run_dump_test): Use check_relro_support to decide whether to pass
996 extra ld option "-z norelro".
998 2020-06-11 Alan Modra <amodra@gmail.com>
1000 * readelf.c (process_mips_specific): Don't alloc memory for
1001 Elf_Internal_Options.
1003 2020-06-11 Alan Modra <amodra@gmail.com>
1005 * readelf.c (process_mips_specific): Assert size of internal
1006 types match size of external types, and simplify allocation of
1007 internal buffer. Catch possible integer overflow when sanity
1008 checking option size. Don't assume options are a regular array.
1009 Sanity check reginfo option against option size. Use PRI macros
1012 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
1015 * mclex.c (yylex): Reject lines that reach end-of-file without a
1016 terminating newline character.
1018 2020-06-08 Nick Clifton <nickc@redhat.com>
1021 * doc/binutils.texi (strings): Fix typo.
1023 2020-06-08 Nick Clifton <nickc@redhat.com>
1026 * dwarf.c (process_debug_info): Check that there is space in the
1027 debug_information array before filling in an entry.
1029 2020-06-06 Alan Modra <amodra@gmail.com>
1031 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
1033 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
1036 * mclex.c (yylex): Add test for an empty input stream.
1038 2020-06-04 Stephen Casner <casner@acm.org>
1040 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
1041 for test using section pseudo-ops compatible with pdp11.
1042 * testsuite/binutils-all/objcopy.exp: Select alternate source.
1044 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1046 * objdump.c (disassemble_data): Set disasm_info.endian_code to
1047 disasm_info.endian after the latter is initialized to the
1048 endianness reported by BFD.
1050 2020-06-04 Alan Modra <amodra@gmail.com>
1052 * testsuite/binutils-all/i386/i386.exp: Remove global directive
1054 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
1055 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
1057 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
1059 * windmc.h (struct mc_node): Add id_typecast field.
1060 * mcparse.y (message): Initialise the id_typecast field.
1061 * windmc.c (write_dbg): Use the id_typecast field as a parameter
1062 when calling write_dbg_define.
1063 (write_header): Likewise.
1065 2020-06-03 Alan Modra <amodra@gmail.com>
1068 * objcopy.c (copy_relocations_in_section): Free relpp on error.
1069 Don't accidentally free isection->orelocation.
1071 2020-06-02 Alan Modra <amodra@gmail.com>
1073 * testsuite/binutils-all/ar.exp (obj): Set up object file name
1074 extension. Use throughout. Don't completely exclude non-ELF
1075 alpha targets. Run long_filenames test for tic30. Exclude thin
1076 archive tests for aix, ecoff and vms.
1077 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
1078 extension. Use throughout. Don't exclude non-ELF alpha targets
1081 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
1083 * MAINTAINERS (Xtensa): Add myself as maintainer.
1085 2020-05-23 Alan Modra <amodra@gmail.com>
1087 * testsuite/binutils-all/ar.exp (many_files): New test.
1089 2020-05-21 Alan Modra <amodra@gmail.com>
1091 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
1092 * dlltool.c: Likewise.
1093 * elfcomm.c: Likewise.
1094 * rddbg.c: Likewise.
1095 * readelf.c: Likewise.
1096 * stabs.c: Likewise.
1097 * windmc.c: Likewise.
1098 * windres.c: Likewise.
1099 * wrstabs.c: Likewise.
1101 2020-05-21 Alan Modra <amodra@gmail.com>
1103 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
1106 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
1108 * dwarf.c: Updated since DECLARE_CSR is changed.
1110 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
1113 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
1114 segment doesn't match the .dynamic section and checks are
1116 (struct filedata): Add dynamic_symtab_section and
1117 dynamic_strtab_section fields.
1118 (process_section_headers): Set dynamic_symtab_section to the
1119 .dynsym section. Set dynamic_strtab_section to the .dynstr
1121 (process_dynamic_section): Warn if the .dynsym section doesn't
1122 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
1123 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
1125 2020-05-19 Alan Modra <amodra@gmail.com>
1127 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
1128 (replace_members): Use bfd_get_filename rather than accessing
1129 bfd->filename directly.
1130 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
1131 * binemul.c (do_ar_emul_append): Likewise.
1132 * coffgrok.c (coff_grok): Likewise.
1134 2020-05-18 Stafford Horne <shorne@gmail.com>
1136 * MAINTAINERS (OR1K): Add myself as maintainer.
1138 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1140 * doc/binutils.texi: Mention 'entry address' in the set-start and
1141 adjust-start options descriptions.
1143 2020-05-05 Nick Clifton <nickc@redhat.com>
1145 * dwarf.c (do_checks): New global variable.
1146 (display_formatted_table): Warn about an unexpected number of
1147 columns in the table, if checks are enabled. Do not complain
1148 about the lack of data following the number of entries in the
1149 table if the table is empty.
1150 (display_debug_lines_decoded): Only warn about an unexpected
1151 number of columns in a table if checks are enabled.
1152 * dwarf.h (do_checks): Add a prototype.
1153 * elfcomm.c (error): Remove weak attribute.
1155 * readelf.c (do_checks): Delete.
1157 (process_section_headers): Only warn about empty sections if
1160 2020-05-04 Fangrui Song <maskray@google.com>
1162 * objcopy.c (copy_object): Allow empty section.
1163 * testsuite/binutils-all/update-section.exp: Add test.
1165 2020-05-04 Nick Clifton <nickc@redhat.com>
1168 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
1169 supicious number of entries for DWARF-5 format directory and file
1170 name tables. Do not display file name table header if the table
1171 is empty. Do not allocate space for empty tables.
1173 2020-05-04 Alan Modra <amodra@gmail.com>
1175 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
1176 section. Don't assume endian of host matches nds32 target. Free
1179 2020-05-01 Alan Modra <amodra@gmail.com>
1180 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
1182 * objdump.c (disassemble_bytes): Don't scan for zeros when
1183 disassembling zeros. Translate "resuming at file offset" message.
1184 Formatting. Replace some signed variables with unsigned.
1186 2020-04-30 Alex Coplan <alex.coplan@arm.com>
1188 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
1190 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1192 2020-04-30 Nick Clifton <nickc@redhat.com>
1194 * testsuite/lib/binutils-common.exp (check_pie_support): New
1197 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1199 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
1200 range_entries for the same offset.
1202 2020-04-29 Nick Clifton <nickc@redhat.com>
1204 * readelf.c (warn): New function - like elfcomm.c version but only
1205 produces output if warnings are enabled.
1206 (struct options): Add --lint and --enable-checks.
1207 (usage): Add entry for --lint.
1208 (parse_args): Handle -L. If checks are enabled but no dumps have
1209 been selected then enable all dumps.
1210 (process_section_headers): Replace long if-then-else sequence with
1211 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
1212 SHT_PROGBITS sections.
1213 (process_file): Do not complain if the file is an archive and lint
1214 mode has been enabled.
1215 * elfcomm.c (error): Make the function weak.
1217 * NEWS: Mention the new feature.
1218 * doc/binutils.texi: Document the new feature.
1219 * dwarf.h (report_leb_status): Add file name and line number
1220 parameters. Include them in the diagnostic output.
1221 (READ_ULEB): Pass file and line number to report_leb_status.
1222 (READ_SLEB): Likewise.
1223 * dwarf.c (read_and_print_leb128): Pass file and line number to
1225 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1226 * testsuite/binutils-all/zero-sec.s: New test source file.
1227 * testsuite/binutils-all/zero-sec.r: Expected output from new
1230 2020-04-29 Nick Clifton <nickc@redhat.com>
1232 * po/sr.po: Updated Serbian translation.
1234 2020-04-26 Alan Modra <amodra@gmail.com>
1236 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1237 read before dereferencing, and gracefully return. Remove
1238 gnu_hash_error variable. Free gnu hash arrays if number of
1241 2020-04-24 Alan Modra <amodra@gmail.com>
1243 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1245 (process_dynamic_section): Call get_num_dynamic_syms once rather
1246 than in segment loop. Break out of segment loop on a successful
1247 load of dynamic symbols. Formatting.
1248 (process_object): Return error status from process_dynamic_section.
1250 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1252 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1253 * elf.c (elfcore_grok_arc_v2): New function.
1254 (elfcore_grok_note): Call the new function to handle the corresponding
1256 (elfcore_write_arc_v2): New function.
1257 (elfcore_write_register_note): Call the new function to handle the
1258 corresponding pseudo-sections.
1260 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1263 * readelf.c (is_none_reloc): Recognize
1264 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1265 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1267 2020-04-22 Nick Clifton <nickc@redhat.com>
1269 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1271 2020-04-22 Alan Modra <amodra@gmail.com>
1273 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1274 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1275 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1276 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1277 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1278 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1279 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1280 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1281 (section_headers_groups): Move to struct filedata. Update use
1284 2020-04-22 Alan Modra <amodra@gmail.com>
1286 * readelf.c (struct dump_data): New, used..
1287 (cmdline): ..here, and..
1288 (struct filedata): ..here. Adjust all uses.
1289 (request_dump_bynumber, request_dump, parse_args): Pass in a
1290 struct dump_data* rather than Filedata*. Adjust callers.
1291 (main): Don't set cmdline.file_name.
1293 2020-04-20 Alan Modra <amodra@gmail.com>
1295 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1298 2020-04-20 Alan Modra <amodra@gmail.com>
1300 * readelf.c (process_section_headers): Free dynamic symbols etc.
1303 2020-04-20 Alan Modra <amodra@gmail.com>
1305 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1306 on error without freeing.
1307 (process_dynamic_section): Don't recreate dynamic symbols from
1308 dynamic tag info when the dynamic symbols have already been
1309 read via section headers.
1311 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
1313 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1314 conditional VDUP instructions are disassembled correctly.
1315 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1317 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1318 that VDUP instructions (which are conditional in A32) can be
1319 disassembled in thumb mode.
1320 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1323 2020-04-17 Alan Modra <amodra@gmail.com>
1326 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1328 2020-04-16 Alan Modra <amodra@gmail.com>
1330 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1331 --no-addresses description.
1333 2020-04-15 Alan Modra <amodra@gmail.com>
1335 * objdump.c (no_addresses): New static var.
1336 (usage): Print help for --no-addresses.
1337 (long_options): Add --no-addresses entry.
1338 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1339 (disassemble_bytes): Don't print current line address, or reloc
1341 * doc/binutils.texi: Document objdump --no-addresses.
1343 2020-04-15 Alan Modra <amodra@gmail.com>
1346 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1347 reading buckets or chains fails.
1349 2020-04-15 Alan Modra <amodra@gmail.com>
1351 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1354 2020-04-15 Alan Modra <amodra@gmail.com>
1356 * readelf.c (get_group_flags): Translate text.
1357 (get_file_type, get_symbol_binding, get_symbol_type),
1358 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1360 2020-04-15 Alan Modra <amodra@gmail.com>
1363 * readelf.c (get_num_dynamic_syms): Typo fix.
1365 2020-04-14 Alan Modra <amodra@gmail.com>
1367 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1368 possibility of overflow when checking number of conflicts.
1370 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1373 * readelf.c (nbuckets): New.
1374 (nchains): Likewise.
1375 (buckets): Likewise.
1377 (ngnubuckets): Likewise.
1378 (gnubuckets): Likewise.
1379 (gnuchains): Likewise.
1380 (mipsxlat): Likewise.
1381 (ngnuchains): Likewise.
1382 (gnusymidx): Likewise.
1383 (VALID_SYMBOL_NAME): Likewise.
1384 (VALID_DYNAMIC_NAME): Use it.
1385 (get_dynamic_data): Moved before process_dynamic_section.
1386 (get_num_dynamic_syms): New function.
1387 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1388 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1389 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1391 (get_symbol_index_type): Don't print "bad section index" when
1392 there is no section header.
1393 (print_dynamic_symbol): Rewrite.
1394 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1397 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1399 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1400 enable on *-*-solaris*.
1402 2020-03-30 Nick Clifton <nickc@redhat.com>
1405 * objcopy.c (copy_object): When copying PE format files set the
1406 timestamp field in the pe_data structure if the preserve_dates
1408 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1409 --preserve-dates in place of the -p option, in order to make its
1410 effect more obvious.
1412 2020-03-28 Alan Modra <amodra@gmail.com>
1414 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1415 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1417 2020-03-28 Alan Modra <amodra@gmail.com>
1419 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1420 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1421 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1422 test. Pass "-p" to objcopy for the executable test.
1424 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1427 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1428 specify whether an object file or executable should be built and tested.
1429 Change test names to report whether an object file or executable is
1431 * testsuite/binutils-all/pr25662.ld: New test.
1432 * testsuite/binutils-all/pr25662.s: New test.
1434 2020-03-27 Alan Modra <amodra@gmail.com>
1436 * readelf.c (process_archive): Don't double free qualified_name.
1437 Don't break out of loop with "negative" archive_file_size, just
1438 set file offset to max.
1440 2020-03-25 Alan Modra <amodra@gmail.com>
1442 * readelf.c (process_archive): Prevent endless loop.
1444 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1447 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1448 with bfd_get_symbol_version_string.
1449 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1450 * objdump.c (objdump_print_symname): Likewise.
1452 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1455 * nm.c (SYM_NAME): Removed.
1456 (print_symname): Add a pointer to struct extended_symbol_info
1457 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1459 (print_symdef_entry): Pass NULL to print_symname.
1460 (print_symbol_info_bsd): Update call to print_symname.
1461 (print_symbol_info_sysv): Likewise.
1462 (print_symbol_info_posix): Likewise.
1464 2020-03-24 Alan Modra <amodra@gmail.com>
1466 * readelf.c (process_mips_specific): Free iconf on error path.
1468 2020-03-23 Nick Clifton <nickc@redhat.com>
1471 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1472 * write_stabs_in_sections_debugging_info: Likewise.
1473 * stab_enum_type: Likewise.
1474 * stab_modify_type: Likewise.
1475 * stab_struct_field: Likewise.
1476 * stab_end_struct_type: Likewise.
1477 * stab_start_class_type: Likewise.
1478 * stab_class_static_member: Likewise.
1479 * stab_class_baseclass: Likewise.
1480 * stab_class_start_method: Likewise.
1481 * stab_class_method_var: Likewise.
1482 * stab_class_end_method: Likewise.
1483 * stab_end_class_type: Likewise.
1484 * stab_typedef_type: Likewise.
1485 * stab_start_function: Likewise.
1486 * stab_end_block: Likewise.
1487 * stab_lineno: Likewise.
1489 2020-03-20 Nick Clifton <nickc@redhat.com>
1491 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1492 (process_section_headers): Check the return value from
1493 get_compression_header.
1494 (dump_section_as_strings): Likewise.
1495 (dump_section_as_bytes): Likewise.
1496 (load_specific_debug_section): Likewise.
1498 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1500 * ar.c (main): Update bfd_plugin_set_program_name call.
1501 * nm.c (main): Likewise.
1503 2020-03-19 Nick Clifton <nickc@redhat.com>
1506 * testsuite/binutils-all/dw4.s: New test source file.
1507 * testsuite/binutils-all/nm.exp: Run the new test.
1509 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1511 * readelf.c (process_symbol_table): Use unsigned long for si.
1513 2020-03-19 Alan Modra <amodra@gmail.com>
1515 * elfcomm.c: Don't include bfd.h or bucomm.h.
1516 (program_name): Declare.
1517 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1518 and substitute FALSE and TRUE.
1519 (setup_archive, setup_nested_archive): Likewise.
1520 * elfcomm.h: Likewise.
1522 2020-03-19 Alan Modra <amodra@gmail.com>
1524 * readelf.c (process_archive): Always return via path freeing
1527 2020-03-19 Alan Modra <amodra@gmail.com>
1529 * readelf.c (process_netbsd_elf_note): Validate descsz before
1530 accessing descdata. Formatting.
1532 2020-03-19 Alan Modra <amodra@gmail.com>
1534 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1535 * elfcomm.h (setup_archive): Update prototype.
1537 2020-03-16 Alan Modra <amodra@gmail.com>
1539 * readelf.c (get_symbols): New function.
1540 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1541 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1543 2020-03-16 Alan Modra <amodra@gmail.com>
1545 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1546 Detect shift overflows and check that terminating byte is found.
1547 Print an error on a bad uleb128.
1549 2020-03-14 Alan Modra <amodra@gmail.com>
1551 * readelf.c (process_file): Clean ba_cache.
1553 2020-03-14 Alan Modra <amodra@gmail.com>
1555 * elfcomm.h (setup_archive): Update prototype.
1556 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1557 check longnames_size.
1558 (setup_nested_archive): Get file size and pass to setup_archive.
1559 * elfedit.c (process_archive): Likewise.
1560 * readelf.c (process_archive): Pass filedata->file_size to
1563 2020-03-14 Alan Modra <amodra@gmail.com>
1565 * readelf.c (dump_section_as_strings): Free memory on error exit.
1566 (dump_section_as_bytes, process_notes_at): Likewise.
1567 (get_build_id): Free enote.
1569 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1571 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1572 NT_NETBSDCORE_LWPSTATUS notes.
1574 2020-03-13 Alan Modra <amodra@gmail.com>
1576 * elfcomm.c (get_archive_member_name): Always return malloc'd
1578 * elfedit.c (process_archive): Tidy memory on all return paths.
1579 * readelf.c (process_archive): Likewise.
1580 (process_symbol_table): Likewise.
1581 (ba_cache): New, replacing ..
1582 (get_symbol_for_build_attribute): ..static vars here. Free
1583 strtab and symtab before loading new ones. Reject symtab without
1584 valid strtab in loop, breaking out of loop on valid symtab.
1585 (process_file): Free ba_cache symtab and strtab here, resetting
1588 2020-03-12 Alan Modra <amodra@gmail.com>
1590 * readelf.c (process_section_headers): Don't just set
1591 filedata->section_headers NULL, free it first. Similarly for
1592 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1593 symtab_shndx_list. Zero associated counts too.
1594 (process_object): Free symtab_shndx_list.
1595 (process_file): Free various allocated filedata tables.
1597 2020-03-11 Nick Clifton <nickc@redhat.com>
1601 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1602 li_segment_size fields.
1603 * dwarf.c (read_debug_line_header): Record the address size and
1604 segment selector size values (if present) in the lineinfo
1606 (display_formatted_table): Warn if the format count is empty but
1607 the table itself is not empty.
1608 Display the format count and entry count at the start of the table
1610 (display_debug_lines_raw): Display the address size and segement
1611 selector size fields, if present.
1612 * testsuite/binutils-all/dw5.W: Update expected output.
1614 2020-03-11 Alan Modra <amodra@gmail.com>
1617 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1618 pad_to_set on second block of code dealing with padding.
1619 Replace "c" with "num_sec" and don't recalculate number of
1620 sections on second block. Size arrays using sizeof (element)
1621 rather than sizeof (element type).
1623 2020-03-10 Alan Modra <amodra@gmail.com>
1625 * objdump.c (disassemble_section): Don't call qsort unless
1626 sym count is at least two.
1627 (disassemble_data): Don't call memcpy with NULL src.
1629 2020-03-09 Alan Modra <amodra@gmail.com>
1632 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1633 to get_data rather than multiplying.
1634 (dump_ia64_vms_dynamic_relocs): Likewise.
1635 (process_version_sections): Correct order of size and nmemb args
1637 (process_mips_specific): Likewise.
1639 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1641 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1642 "memory checkers" in comments.
1644 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1647 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1648 * doc/Makefile.in: Re-generate.
1650 2020-03-06 Nick Clifton <nickc@redhat.com>
1652 * objcopy.c (check_new_section_flags): New function. Reject the
1653 SEC_COFF_SHARED flag if the target is not a COFF binary.
1654 (copy_object): Call check_new_section_flags.
1655 (setup_section): Likewise.
1656 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1657 flag cannot be applied to ELF binaries.
1659 2020-03-06 Alan Modra <amodra@gmail.com>
1662 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1664 2020-03-05 Alan Modra <amodra@gmail.com>
1667 * objcopy.c (filter_symbols): Don't segfault on NULL
1668 prefix_symbols_string.
1670 2020-03-04 Christian Eggers <ceggers@gmx.de>
1672 * objcopy.c (copy_object): Convert from bytes to octets for
1673 --gap-fill and --pad-to.
1675 2020-03-03 Nick Clifton <nickc@redhat.com>
1678 * prdbg.c (pr_tag_type): Remove call to abort.
1680 2020-03-02 Aaron Merey <amerey@redhat.com>
1682 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1685 2020-03-02 Nick Clifton <nickc@redhat.com>
1688 * readelf.c (dump_section_as_strings): Display new-line characters
1689 as \n and then insert a line break.
1690 * testsuite/binutils-all/pr25543.s: New test.
1691 * testsuite/binutils-all/pr25543.d: Test driver.
1692 * testsuite/binutils-all/readelf.exp: Run the new test.
1694 2020-02-27 Nick Clifton <nickc@redhat.com>
1697 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1698 get_data is unable to load the string table.
1700 2020-02-26 Alan Modra <amodra@gmail.com>
1702 * elfedit.c: Indent labels correctly.
1703 * readelf.c: Likewise.
1704 * resres.c: Likewise.
1706 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1709 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1710 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1712 2020-02-24 Nick Clifton <nickc@redhat.com>
1715 * doc/binutils.texi (objdump): Fix typo in description of
1716 objdump's -g option.
1718 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1720 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1723 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1725 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1727 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1729 * configure: Regenerate.
1731 2020-02-10 Fangrui Song <maskray@google.com>
1733 * objcopy.c (parse_flags): Handle "exclude".
1734 * doc/binutils.texi: Document the support.
1736 2020-02-10 Aaron Merey <amerey@redhat.com>
1738 * binutils/testsuite/binutils-all/debuginfod.exp:
1739 Replace set ::env with setenv.
1740 Start server before setting environment variable.
1741 Specify tmpdir as the location of the server's
1743 Check additional server metrics at start-up.
1745 2020-02-07 Nick Clifton <nickc@redhat.com>
1747 * README-how-to-make-a-release: Add note about updating the
1748 GAS/NEWS URL in the next release.
1750 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1753 * readelf.c (get_machine_flags): Add support for Z80N machine
1756 2020-02-07 Nick Clifton <nickc@redhat.com>
1758 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1759 of the truncated file name.
1761 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1763 * objdump.c (print_jump_visualisation): New function.
1764 (disassemble_bytes): Call new function.
1766 2020-02-06 Alan Modra <amodra@gmail.com>
1768 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1770 (supports_gnu_osabi): New procedure.
1771 (is_generic): New, from ld-lib.exp.
1772 (supports_gnu_unique): Use the above.
1774 2020-02-04 Alan Modra <amodra@gmail.com>
1776 * Makefile.am (CFILES): Add od-elf32_avr.c.
1777 * Makefile.in: Regenerate.
1778 * po/POTFILES.in: Regenerate.
1780 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1782 * readelf.c (dump_relocations, dump_relocations)
1783 (decode_arm_unwind_bytecode, process_dynamic_section)
1784 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1787 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1789 * coffdump.c (program_name): Drop redundant definition.
1790 * srconv.c (program_name): Likewise
1791 * sysdump.c (program_name): Likewise
1793 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1796 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1797 same file with different section pointers.
1799 2020-02-01 Nick Clifton <nickc@redhat.com>
1801 * README-how-to-make-a-release: Update with more details on the
1802 release making process.
1804 2020-01-31 Nick Clifton <nickc@redhat.com>
1806 * po/sv.po: Updated Swedish translation.
1808 2020-01-28 Nick Clifton <nickc@redhat.com>
1810 * readelf.c (get_build_id): Simplify warning message about corrupt
1811 notes encountered whilst scanning for the build-id.
1813 2020-01-27 Roland McGrath <mcgrathr@google.com>
1815 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1816 for overlapping ranges so that (A == B) == (B == A) holds.
1818 2020-01-27 Alan Modra <amodra@gmail.com>
1820 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1821 case statement with switch statement.
1823 2020-01-24 Nick Clifton <nickc@redhat.com>
1825 * readelf.c (get_build_id): Fix warning messages about corrupt
1828 2020-01-23 Nick Clifton <nickc@redhat.com>
1830 * po/fr.po: Updated French translation.
1832 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1835 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1837 2020-01-20 Nick Clifton <nickc@redhat.com>
1839 * po/pt.po: Updated Portuguese translation.
1840 * po/uk.po: Updated Ukranian translation.
1842 2020-01-18 Nick Clifton <nickc@redhat.com>
1844 * README-how-to-make-a-release: Update notes on how to cut a
1845 branch for a release.
1847 2020-01-18 Nick Clifton <nickc@redhat.com>
1849 * configure: Regenerate.
1850 * po/binutils.pot: Regenerate.
1852 2020-01-18 Nick Clifton <nickc@redhat.com>
1854 Binutils 2.34 branch created.
1856 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1858 * objdump.c (jump_info_visualize_address): Discard jumps that are
1860 (disassemble_bytes): Only compute the maximum level if jumps were
1863 2020-01-13 Nick Clifton <nickc@redhat.com>
1865 * objdump.c (disassemble_bytes): Remove C99-ism.
1866 * testsuite/binutils-all/debuginfod.exp: New tests.
1868 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1870 * objdump.c (visualize_jumps, color_output, extended_color_output)
1871 (detected_jumps): New variables.
1872 (usage): Add the new jump visualization options.
1873 (option_values): Add new option value.
1874 (long_options): Add the new option.
1875 (jump_info_new, jump_info_free): New functions.
1876 (jump_info_min_address, jump_info_max_address): Likewise.
1877 (jump_info_end_address, jump_info_is_start_address): Likewise.
1878 (jump_info_is_end_address, jump_info_size): Likewise.
1879 (jump_info_unlink, jump_info_insert): Likewise.
1880 (jump_info_add_front, jump_info_move_linked): Likewise.
1881 (jump_info_intersect, jump_info_merge): Likewise.
1882 (jump_info_sort, jump_info_visualize_address): Likewise.
1883 (disassemble_jumps): New function - used to locate jumps.
1884 (disassemble_bytes): Add ascii art generation.
1885 (disassemble_section): Add scan to locate jumps.
1886 (main): Parse the new visualization option.
1887 * doc/binutils.texi: Document the new feature.
1888 * NEWS: Mention the new feature.
1890 2020-01-13 Alan Modra <amodra@gmail.com>
1894 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1895 fde_fc col_type and col_offset.
1896 * readelf.c (apply_relocations): Move symsec check earlier.
1897 (free_debug_section): Free reloc_info.
1898 (process_notes_at): Free pnotes on error path.
1899 (process_object): Free dump_sects here..
1900 (process_archive): ..not here.
1902 2020-01-13 Alan Modra <amodra@gmail.com>
1905 * nm.c (display_rel_file): Free dyn_syms.
1907 2020-01-09 Nick Clifton <nickc@redhat.com>
1910 * objcopy.c (empty_name): New variable.
1911 (need_sym_before): Prevent an attempt to free a static variable.
1912 (filter_symbols): Avoid strcmp test by checking for pointer
1915 2020-01-09 Nick Clifton <nickc@redhat.com>
1917 * po/zh_TW.po: Updated Traditional Chinese translation.
1919 2020-01-09 Aaron Merey <amerey@redhat.com>
1921 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1922 * Makefile.in: Regenerate.
1924 * config.in: Regenerate.
1925 * configure: Regenerate.
1926 * configure.ac: Call AC_DEBUGINFOD.
1927 * doc/Makefile.in: Regenerate.
1928 * doc/binutils.texi: Add section on using binutils
1930 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1931 Query debuginfod servers for the target debug file.
1932 (load_separate_debug_info): Call
1933 debuginfod_fetch_separate_debug_info if configured with
1935 (load_separate_debug_files): Add file argument to
1936 load_separate_debug_info calls.
1937 * dwarf.h (get_build_id): Add declaration.
1938 * objdump.c (get_build_id): New function. Get build-id of file.
1939 * readelf.c (get_build_id): Likewise.
1940 * testsuite/binutils-all/debuginfod.exp: New tests.
1941 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1944 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1946 * readelf.c: Add support for new Z*) relocations and machine
1949 2020-01-01 Alan Modra <amodra@gmail.com>
1951 Update year range in copyright notice of all files.
1953 For older changes see ChangeLog-2019
1955 Copyright (C) 2020 Free Software Foundation, Inc.
1957 Copying and distribution of this file, with or without modification,
1958 are permitted in any medium without royalty provided the copyright
1959 notice and this notice are preserved.
1965 version-control: never