]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/ChangeLog
Fix compile time warning building with gcc 11.
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
1 2020-10-28 Nick Clifton <nickc@redhat.com>
2
3 PR 26795
4 * elfedit.c (process_archive): Remove spurious call to free().
5
6 2020-10-27 Nick Clifton <nickc@redhat.com>
7
8 * dwarf.c (struct abbrev_list): New structure. Used to collect
9 lists of abbreviation sets.
10 (struct abbrev_map): New structure. Used to map CU offsets to
11 abbreviation offsets.
12 (record_abbrev_list): New function. A new entry to an
13 abbreviation list.
14 (free_all_abbrevs): Update to free abbreviation lists.
15 (new_abbrev_list): New function. Start a new abbreviation
16 list.
17 (find_abbrev_list_by_abbrev_offset): New function.
18 (find_abbrev_map_by_offset): New function.
19 (add_abbrev): Add abbrev_list parameter.
20 (add_abbrev_attr): Likewise.
21 (process_abbrev_section): Rename to process_abbrev_set and add
22 list parameter.
23 (get_type_abbrev_from_form): New function. Attempts to decode the
24 forms used by DW_AT_type attributes.
25 (get_type_signedness): Display type names if operating in wide
26 mode. Use get_type_abbrev_from_form.
27 (read_and_display_attr_value): Use get_type_abbrev_from_form.
28 (process_debug_info): Pre-parse the CU headers to collate all the
29 abbrevs before starting the main scan.
30 (process_debug_abbrev): Do not free any loaded abbrevs.
31 (free_debug_memory): Free the abbrev maps.
32
33 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
34
35 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
36 error message on error.
37
38 2020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
39
40 * windmc.c (write_header_define): Fix printf format.
41 (write_header): Likewise.
42
43 2020-10-21 Nick Clifton <nickc@redhat.com>
44
45 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
46 when processing the DW_FORM_ref_addr form.
47 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
48 Handle DW_FORM_indirect.
49 (get_type_signedness): Allow a limited amount of recursion.
50 Do not attempt to decode types that use the DW_FORM_ref_addr form.
51 (read_and_display_attr_value): Do not attempt to decode types
52 that use the DW_FORM_ref_addr form.
53
54 2020-10-20 Alan Modra <amodra@gmail.com>
55
56 * readelf.c: Delete whitespace at end of line throughout.
57 (SECTION_NAME, SECTION_NAME_VALID): New.
58 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
59 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
60 (process_section_headers, process_section_groups): Likewise.
61 (shdr_to_ctf_sect): Likewise.
62 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
63 (ia64_process_unwind, hppa_process_unwind): Likewise.
64 (display_debug_section, initialise_dumps_byname): Likewise.
65 (process_lto_symbol_tables): Likewise. Check trailing period of
66 lto symbol table names.
67 (display_lto_symtab): Use sizeof instead of strlen.
68
69 2020-10-20 Nelson Chu <nelson.chu@sifive.com>
70
71 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
72
73 2020-10-19 Nick Clifton <nickc@redhat.com>
74
75 * readelf.c (do_lto_syms): New local.
76 (long_option_values): Add OPTION_LTO_SYMS.
77 (options): Add --lto-syms.
78 (usage): Mention the new option.
79 (parse_args): Parse the new option.
80 (get_lto_kind): New function.
81 (get_lto_visibility): New function.
82 (get_lto_sym_type): New function.
83 (display_lto_symtab): New function - displays the contents of an
84 LTo symbol table section.
85 (process_lto_symbol_tables): New functions. Calls
86 dipslay_lto_symtab on any LTO symbol table section.
87 (process_object_file): Call process_lto_symbol_tables.
88 * doc/binutils.texi: Document the new option.
89 * NEWS: Mention the new feature.
90
91 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
92
93 PR gas/26703
94 * readelf.c (decode_x86_compat_2_isa): New function.
95 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
96 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
97 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
98 and X86_COMPAT_2_ISA_1_NEEDED.
99 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
100 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
101 values.
102 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
103 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
104 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
105 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
106 * testsuite/binutils-all/i386/empty.d: Updated.
107 * testsuite/binutils-all/i386/ibt.d: Likewise.
108 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
109 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
110 * testsuite/binutils-all/i386/shstk.d: Likewise.
111 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
112 * testsuite/binutils-all/x86-64/empty.d: Likewise.
113 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
114 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
115 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
116 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
117 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
118 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
119 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
120 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
121 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
122 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
123 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
124 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
125 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
126 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
127
128 2020-10-06 Nick Clifton <nickc@redhat.com>
129
130 * objcopy.c (copy_object): Compare input and output sections by
131 pointer rather than name.
132
133 2020-10-05 Nick Clifton <nickc@redhat.com>
134
135 PR 26698
136 * windmc.c (mc_unify_path): Fix typo checking character at end of
137 pathname.
138
139 2020-10-05 Samanta Navarro <ferivoz@riseup.net>
140
141 * doc/binutils.texi: Fix spelling mistakes.
142
143 2020-09-29 Mark Wielaard <mark@klomp.org>
144
145 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
146 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
147
148 2020-09-25 Alan Modra <amodra@gmail.com>
149
150 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
151 more field sizes.
152 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
153 allowed reloc_size. Don't read_leb128 outside of section.
154
155 2020-09-23 Mark Wielaard <mark@klomp.org>
156
157 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
158 * testsuite/binutils-all/dw5.W: Adjust expected output.
159 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
160
161 2020-09-23 Mark Wielaard <mark@klomp.org>
162
163 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
164 for dwarf_version 5 just as version 3 and 4 (only 2 is
165 different).
166 (process_debug_info): Allow DW_UT_partial.
167
168 2020-09-24 Nick Clifton <nickc@redhat.com>
169
170 PR 26662
171 * doc/binutils.texi (nm): Document that 'c' is used for small
172 common symbols.
173
174 2020-09-21 Ludovic Courtès <ludo@gnu.org>
175
176 * doc/binutils.texi (objcopy, strip): Say that
177 '--strip-unneeded' implies '--strip-debug'.
178
179 2020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
180
181 * verilog.c (verilog_write_address): Properly handle 64-bit
182 addresses to avoid truncation of the high part.
183
184 2020-09-16 Alan Modra <amodra@gmail.com>
185
186 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
187 * objcopy.c (is_hidden_symbol): Likewise.
188
189 2020-09-15 Nick Clifton <nickc@redhat.com>
190
191 * README-how-to-make-a-release (https): Add a reminder to create a
192 new Bugzilla tag for the point release, once it has been published.
193
194 2020-09-11 H.J. Lu <hongjiu.lu@intel.com>
195
196 * readelf.c (get_note_type): Support NT_X86_CET.
197
198 2020-09-11 Nick Clifton <nickc@redhat.com>
199
200 PR 26595
201 * dwarf.c (load_separate_debug_info): Return NULL rather than
202 FALSE in error situations.
203 (load_separate_debug_file): Move code to load debug links to ...
204 (check_for_and_load_links): ... here. New function. Load
205 separate debug information pointed to by debuglink and
206 debugaltlink sections. Recursively scan newly loaded debug
207 information for more links and load them too.
208
209 2020-09-09 Alan Modra <amodra@gmail.com>
210
211 PR 26578
212 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
213 (load_separate_debug_files): Use a stack var for build_id_data.
214
215 2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
216
217 PR ld/26587
218 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
219 to ld on PE targets for PR 25662 test.
220
221 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
222 Kuan-Lin Chen <kuanlinchentw@gmail.com>
223
224 * readelf.c (target_specific_reloc_handling): Handle
225 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
226
227 2020-09-02 Alan Modra <amodra@gmail.com>
228
229 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
230
231 2020-08-30 Alan Modra <amodra@gmail.com>
232
233 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
234 long for "bytes".
235
236 2020-08-28 Nick Clifton <nickc@redhat.com>
237
238 PR 26548
239 * dwarf.c (read_leb128): When checking for overflow of a signed
240 read, use a signed shift.
241
242 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
243
244 * readelf.c (get_csky_section_type_name): New.
245 (get_section_type_name): Add handler for CSKY.
246 (display_csky_attribute): New.
247 (process_arch_specific): Add handler for CSKY.
248 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
249 section.
250
251 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
252
253 * readelf.c (get_msp430x_section_type_name): Rename to ...
254 (get_msp430_section_type_name): ... this.
255 (get_section_type_name): Use get_msp430_section_type_name.
256 (display_msp430x_attribute): Rename to ...
257 (display_msp430_attribute): ... this.
258 (process_arch_specific): Use display_msp430_attribute.
259
260 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
261
262 PR 26356
263 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
264 "-j $PRIVATE$" to command on hppa*-*-hpux*.
265 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
266 dollar-sign quotes before quoting. Do this prior to generating log
267 output.
268
269 2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
270
271 PR 26088
272 * mclex.c (skip_until_eol): If eol was found, increment line
273 number.
274
275 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
276
277 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
278 * readelf.c (dump_ctf_errs): Likewise.
279
280 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
281
282 * objdump.c (dump_ctf_archive_member): Move error-
283 reporting...
284 (dump_ctf_errs): ... into this separate function.
285 (dump_ctf): Call it on open errors.
286 * readelf.c (dump_ctf_archive_member): Move error-
287 reporting...
288 (dump_ctf_errs): ... into this separate function. Support
289 calls with NULL fp. Adjust for new err parameter to
290 ctf_errwarning_next.
291 (dump_section_as_ctf): Call it on open errors.
292
293 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
294
295 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
296 * Makefile.in: Regenerated.
297
298 2020-08-26 Nick Clifton <nickc@redhat.com>
299
300 PR 26405
301 * readelf.c (get_segment_type): Handle OpenBSD segment types.
302
303 2020-08-26 Alan Modra <amodra@gmail.com>
304
305 PR 26412
306 * objcopy.c (copy_object): Don't fwrite NULL contents.
307
308 2020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
309
310 PR 26340
311 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
312
313 2020-08-24 Alan Modra <amodra@gmail.com>
314
315 * readelf.c (dump_section_as_strings) Avoid false positive
316 "may be used uninitialised".
317
318 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
319
320 PR ld/26382
321 * nm.c (print_symname): Display only one '@' for undefined
322 versioned symbols.
323 * doc/binutils.texi: Update nm version information.
324
325 2020-08-21 Mark Wielaard <mark@klomp.org>
326
327 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
328 recognize DW_LANG_C11.
329
330 2020-08-19 Alan Modra <amodra@gmail.com>
331
332 PR 26349
333 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
334 and info fields.
335 (dump_section_as_strings): Don't use %tx to display offset.
336
337 2020-08-14 Alan Modra <amodra@gmail.com>
338
339 PR 26388
340 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
341 of debug_information. Correct test of max_loc_offsets and
342 max_range_lists.
343 * rddbg.c (read_debugging_info): Free dhandle on error.
344
345 2020-08-14 Alan Modra <amodra@gmail.com>
346
347 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
348
349 2020-08-13 Alan Modra <amodra@gmail.com>
350
351 PR 26348
352 * objcopy.c (copy_object): Report file name with endian error.
353 Error and return on abfd->read_only.
354
355 2020-08-12 Tom Tromey <tromey@adacore.com>
356
357 * dwarf-mode.el (Version): Now 1.6.
358 (dwarf-die-button-action): Tighten DIE reference regexp.
359 (dwarf-font-lock-keywords): Update name regexp.
360
361 2020-08-12 Nick Clifton <nickc@redhat.com>
362
363 PR binutils/26331
364 * readelf.c (do_demangle): New option flag.
365 (print_symbol): If do_demangle is enabled, demangle the symbol.
366 (enum long_option_values): New enum to hold long option values.
367 (options): Add demangle, no-demangle, recursion-limit and
368 no-recursion-limit options. Alpha sort the table.
369 (usage): Describe the new options.
370 (parse_args): Handle the new options.
371 * NEWS: Mention the new feature.
372 * doc/binutils.texi: Document the new feature.
373 * testsuite/binutils-all/readelf.exp: Test the new feature.
374 * testsuite/binutils-all/mangled.s: New file - assembler source.
375 * testsuite/binutils-all/readelf.demangled: New file - expected
376 output from readelf.
377
378 2020-08-12 Nick Clifton <nickc@redhat.com>
379
380 * po/sr.po: Updated Serbian translation.
381
382 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
383
384 PR binutils/26302
385 * nm.c (with_symbol_versions): Removed.
386 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
387 (long_options): Update --with-symbol-versions entry.
388 (print_symbol): Remove the with_symbol_versions check.
389 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
390 compatibility.
391 * doc/binutils.texi: Remove --with-symbol-versions.
392
393 2020-08-05 Alan Modra <amodra@gmail.com>
394
395 PR 26337
396 * objdump.c (load_specific_debug_section): Revert last change.
397
398 2020-08-05 Alan Modra <amodra@gmail.com>
399
400 PR 26337
401 * objdump.c (load_specific_debug_section): Don't malloc space for
402 section contents, use bfd_malloc_and_get_section.
403
404 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
405
406 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
407 * Makefile.in, doc/Makefile.in: Regenerate.
408 * configure: Regenerate.
409
410 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
411
412 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
413 to assembler.
414 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
415 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
416 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
417 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
418 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
419
420 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
421
422 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
423 New test.
424 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
425 New test.
426 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
427 New test.
428 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
429 New test.
430 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
431 New test.
432 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
433 New test.
434 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
435 New test.
436 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
437 New test.
438 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
439 New test.
440 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
441
442 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
443
444 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
445 test.
446 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
447 test.
448 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
449 test.
450 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
451 test.
452 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
453 test.
454 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
455
456 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
457
458 PR binutils/26301
459 * configure: Regenerated.
460
461 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
462
463 PR binutils/26301
464 * configure: Regenerated.
465
466 2020-07-27 Alan Modra <amodra@gmail.com>
467
468 * objdump.c (dump_section): Don't return without calling
469 process_section_p.
470
471 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
472
473 * doc/binutils.texi: Replace preceeded with preceded.
474
475 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
476
477 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
478 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
479 procedures.
480 (has_newabi): Remove variable.
481 (has_abi, abi_asflags, abi_ldflags): New associative array
482 variables.
483 (irixemul): New variable.
484 Replace `run_dump_test' calls where applicable throughout with
485 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
486 as appropriate. Use `noarch' for tests that require their own
487 architecture setting.
488 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
489 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
490 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
491 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
492 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
493 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
494 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
495 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
496 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
497 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
498 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
499 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
500 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
501 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
502 GAS flags.
503 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
504 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
505 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
506 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
507 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
508 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
509 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
510
511 2020-07-24 Aaron Merey <amerey@redhat.com>
512
513 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
514 * Makefile.in: Rebuild.
515 * configure: Rebuild.
516 * doc/Makefile.in: Rebuild.
517
518 2020-07-24 Nick Clifton <nickc@redhat.com>
519
520 * README-how-to-make-a-release: Various small updates whilst
521 creating the 2.35 release.
522
523 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
524
525 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
526 option.
527
528 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
529
530 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
531 (dump_ctf): Likewise.
532
533 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
534
535 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
536 * readelf.c (dump_ctf_archive_member): Likewise.
537
538 2020-07-22 Nick Clifton <nickc@redhat.com>
539
540 * readelf.c (parse_args): Silence potential warnings about a
541 memory resource leak when allocating space for ctf option values.
542 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
543 variable.
544
545 2020-07-21 Nick Clifton <nickc@redhat.com>
546
547 * po/sv.po: Updated Swedish translation.
548
549 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
550
551 * testsuite/binutils-all/arc/double_regs.s: New test.
552 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
553
554 2020-07-13 Nick Clifton <nickc@redhat.com>
555
556 * po/fr.po: Updated French translation.
557
558 2020-07-13 Alan Modra <amodra@gmail.com>
559
560 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
561 optional machine-os arg.
562
563 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
564
565 * readelf.c (decode_x86_feature_2): Handle
566 GNU_PROPERTY_X86_FEATURE_2_TMM.
567
568 2020-07-10 Tom de Vries <tdevries@suse.de>
569
570 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
571 information in the end_sequence row.
572 * testsuite/binutils-all/dw5.W: Update.
573 * testsuite/binutils-all/objdump.WL: Update.
574
575 2020-07-09 Alan Modra <amodra@gmail.com>
576
577 * dlltool.c: Remove powerpc PE support and comments.
578 * configure.ac: Remove powerpc PE dlltool config.
579 * configure: Regenerate.
580
581 2020-07-09 Nick Clifton <nickc@redhat.com>
582
583 * rclex.c: Add OWNERDRAW keyword.
584 * rcparse.y: Add OWNERDRAW token.
585 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
586 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
587 BITMAP flags.
588 * windres.c (extended_menuitems): Likewise.
589 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
590
591 2020-07-09 Alan Modra <amodra@gmail.com>
592
593 * readelf (slurp_hppa_unwind_table): Set table_len before use
594 in relocation sanity checks.
595
596 2020-07-07 Alan Modra <amodra@gmail.com>
597
598 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
599 * testsuite/binutils-all/nm.exp: Likewise.
600 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
601 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
602 * testsuite/binutils-all/set-section-alignment.d: Likewise.
603 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
604
605 2020-07-07 Alan Modra <amodra@gmail.com>
606
607 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
608 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
609
610 2020-07-06 Nick Clifton <nickc@redhat.com>
611
612 * po/bg.po: Updated Bulgarian translation.
613 * po/pt.po: Updated Portuguese translation.
614 * po/uk.po: Updated Ukranian translation.
615
616 2020-07-06 Alan Modra <amodra@gmail.com>
617
618 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
619 find string length.
620
621 2020-07-04 Nick Clifton <nickc@redhat.com>
622
623 * configure: Regenerate.
624 * po/binutils.pot: Regenerate.
625
626 2020-07-04 Nick Clifton <nickc@redhat.com>
627
628 Binutils 2.35 branch created.
629
630 2020-07-02 Nick Clifton <nickc@redhat.com>
631
632 PR 26028
633 * readelf.c (print_symbol): Handle truncation of symbol names.
634 (options): Add -T/--silent-truncation option.
635 (parse_args): Handle the option.
636 (print_dynamic_symbol): Correct calculation of width available to
637 display symbol name.
638 * doc/binutils.texi: Document the -T option to readelf.
639 * NEWS: Mention the new feature.
640
641 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
642
643 * NEWS: Mention x86 NaCl target support removal.
644 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
645 x86 NaCl target support.
646 * testsuite/binutils-all/elfedit-1.d: Likewise.
647 * testsuite/binutils-all/i386/i386.exp: Likewise.
648 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
649 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
650 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
651 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
652 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
653 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
654 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
655 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
656 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
657 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
658 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
659 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
660
661 2020-06-30 Nick Clifton <nickc@redhat.com>
662
663 * dwarf.c (read_and_display_attr_value): Support
664 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
665 DW_AT_comp_dir.
666
667 2020-06-30 Alan Modra <amodra@gmail.com>
668
669 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
670 xfail for nds32.
671
672 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
673
674 * dwarf.c (display_debug_str_offsets): Rename local variable
675 index to idx. Move to top of function.
676
677 2020-06-29 Alan Modra <amodra@gmail.com>
678
679 * dwarf.c: Use C style comments.
680 * resrc.c: Likewise.
681
682 2020-06-27 Alan Modra <amodra@gmail.com>
683
684 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
685 after freeing.
686 (release_archive): Set fields of arch to NULL after freeing.
687
688 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
689
690 * readelf.c (dump_section_as_ctf): Support .ctf archives using
691 ctf_arc_bufopen. Automatically load the .ctf member of such
692 archives as the parent of all other members, unless specifically
693 overridden via --ctf-parent. Split out dumping code into...
694 (dump_ctf_archive_member): ... here, as in objdump, and call
695 it once per archive member.
696 (dump_ctf_indent_lines): Code style fix.
697
698 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
699
700 * configure.ac [--enable-libctf]: New, default yes.
701 Set ENABLE_LIBCTF accordingly.
702 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
703 * configure: Regenerate.
704 * config.in: Regenerate.
705 * Makefile.in: Regenerate.
706 * aclocal.m4: Regenerate.
707 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
708 (option_values): Likewise.
709 (long_options): Likewise.
710 (main): Likewise.
711 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
712 (make_ctfsect): Likewise.
713 (dump_ctf_archive_member): Likewise.
714 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
715 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
716 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
717 (usage): Likewise.
718 (process_section_contents): Likewise.
719 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
720 (dump_ctf_indent_lines): Likewise.
721 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
722
723 2020-06-26 Jan Beulich <jbeulich@suse.com>
724
725 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
726 redundant text from x86 specific part of -M section.
727
728 2020-06-26 Pat Bernardi <bernardi@adacore.com>
729
730 * readelf.c (display_m68k_gnu_attribute): New function.
731 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
732
733 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
734
735 PR binutils/26160
736 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
737 * testsuite/binutils-all/pr26160.r: Likewise.
738 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
739
740 2020-06-23 Nick Clifton <nickc@redhat.com>
741
742 PR 26160
743 * dwarf.c (fetch_indexed_string): Detect and handle old style
744 .debug_str_offset tables.
745 (display_debug_str_offsets): Likewise. Also add support for
746 .debug_str_offsets.dwo sections.
747
748 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
749
750 PR binutils/26112
751 * testsuite/binutils-all/pr26112.o.bz2: New file.
752 * testsuite/binutils-all/pr26112.r: Likewise.
753 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
754
755 2020-06-23 Alan Modra <amodra@gmail.com>
756
757 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
758 remote_file delete command.
759
760 2020-06-22 Nick Clifton <nickc@redhat.com>
761
762 PR 26112
763 * dwarf.c (display_debug_str_offsets): Add code to display the
764 contents of the .debug_str_offsets section.
765 (display_debug_macro): Add support for DW_MACRO_define_strx and
766 DW_MACRO_undef_strx.
767
768 2020-06-22 Saagar Jha <saagar@saagarjha.com>
769
770 * od-macho.c: Dump linkedit data for new load commands.
771
772 2020-06-19 Alan Modra <amodra@gmail.com>
773
774 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
775 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
776 (run_dump_test): Use check_relro_support to decide whether to pass
777 extra ld option "-z norelro".
778
779 2020-06-11 Alan Modra <amodra@gmail.com>
780
781 * readelf.c (process_mips_specific): Don't alloc memory for
782 Elf_Internal_Options.
783
784 2020-06-11 Alan Modra <amodra@gmail.com>
785
786 * readelf.c (process_mips_specific): Assert size of internal
787 types match size of external types, and simplify allocation of
788 internal buffer. Catch possible integer overflow when sanity
789 checking option size. Don't assume options are a regular array.
790 Sanity check reginfo option against option size. Use PRI macros
791 when printing.
792
793 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
794
795 PR 26082
796 * mclex.c (yylex): Reject lines that reach end-of-file without a
797 terminating newline character.
798
799 2020-06-08 Nick Clifton <nickc@redhat.com>
800
801 PR 26093
802 * doc/binutils.texi (strings): Fix typo.
803
804 2020-06-08 Nick Clifton <nickc@redhat.com>
805
806 PR 26086
807 * dwarf.c (process_debug_info): Check that there is space in the
808 debug_information array before filling in an entry.
809
810 2020-06-06 Alan Modra <amodra@gmail.com>
811
812 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
813
814 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
815
816 PR 26082
817 * mclex.c (yylex): Add test for an empty input stream.
818
819 2020-06-04 Stephen Casner <casner@acm.org>
820
821 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
822 for test using section pseudo-ops compatible with pdp11.
823 * testsuite/binutils-all/objcopy.exp: Select alternate source.
824
825 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
826
827 * objdump.c (disassemble_data): Set disasm_info.endian_code to
828 disasm_info.endian after the latter is initialized to the
829 endianness reported by BFD.
830
831 2020-06-04 Alan Modra <amodra@gmail.com>
832
833 * testsuite/binutils-all/i386/i386.exp: Remove global directive
834 outside proc body.
835 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
836 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
837
838 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
839
840 * windmc.h (struct mc_node): Add id_typecast field.
841 * mcparse.y (message): Initialise the id_typecast field.
842 * windmc.c (write_dbg): Use the id_typecast field as a parameter
843 when calling write_dbg_define.
844 (write_header): Likewise.
845
846 2020-06-03 Alan Modra <amodra@gmail.com>
847
848 PR 26069
849 * objcopy.c (copy_relocations_in_section): Free relpp on error.
850 Don't accidentally free isection->orelocation.
851
852 2020-06-02 Alan Modra <amodra@gmail.com>
853
854 * testsuite/binutils-all/ar.exp (obj): Set up object file name
855 extension. Use throughout. Don't completely exclude non-ELF
856 alpha targets. Run long_filenames test for tic30. Exclude thin
857 archive tests for aix, ecoff and vms.
858 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
859 extension. Use throughout. Don't exclude non-ELF alpha targets
860 from "bintest.a".
861
862 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
863
864 * MAINTAINERS (Xtensa): Add myself as maintainer.
865
866 2020-05-23 Alan Modra <amodra@gmail.com>
867
868 * testsuite/binutils-all/ar.exp (many_files): New test.
869
870 2020-05-21 Alan Modra <amodra@gmail.com>
871
872 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
873 * dlltool.c: Likewise.
874 * elfcomm.c: Likewise.
875 * rddbg.c: Likewise.
876 * readelf.c: Likewise.
877 * stabs.c: Likewise.
878 * windmc.c: Likewise.
879 * windres.c: Likewise.
880 * wrstabs.c: Likewise.
881
882 2020-05-21 Alan Modra <amodra@gmail.com>
883
884 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
885 access.
886
887 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
888
889 * dwarf.c: Updated since DECLARE_CSR is changed.
890
891 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
892
893 PR binutils/25809
894 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
895 segment doesn't match the .dynamic section and checks are
896 enabled.
897 (struct filedata): Add dynamic_symtab_section and
898 dynamic_strtab_section fields.
899 (process_section_headers): Set dynamic_symtab_section to the
900 .dynsym section. Set dynamic_strtab_section to the .dynstr
901 section.
902 (process_dynamic_section): Warn if the .dynsym section doesn't
903 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
904 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
905
906 2020-05-19 Alan Modra <amodra@gmail.com>
907
908 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
909 (replace_members): Use bfd_get_filename rather than accessing
910 bfd->filename directly.
911 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
912 * binemul.c (do_ar_emul_append): Likewise.
913 * coffgrok.c (coff_grok): Likewise.
914
915 2020-05-18 Stafford Horne <shorne@gmail.com>
916
917 * MAINTAINERS (OR1K): Add myself as maintainer.
918
919 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
920
921 * doc/binutils.texi: Mention 'entry address' in the set-start and
922 adjust-start options descriptions.
923
924 2020-05-05 Nick Clifton <nickc@redhat.com>
925
926 * dwarf.c (do_checks): New global variable.
927 (display_formatted_table): Warn about an unexpected number of
928 columns in the table, if checks are enabled. Do not complain
929 about the lack of data following the number of entries in the
930 table if the table is empty.
931 (display_debug_lines_decoded): Only warn about an unexpected
932 number of columns in a table if checks are enabled.
933 * dwarf.h (do_checks): Add a prototype.
934 * elfcomm.c (error): Remove weak attribute.
935 (warn): Likewise.
936 * readelf.c (do_checks): Delete.
937 (warn): Delete.
938 (process_section_headers): Only warn about empty sections if
939 checks are enabled.
940
941 2020-05-04 Fangrui Song <maskray@google.com>
942
943 * objcopy.c (copy_object): Allow empty section.
944 * testsuite/binutils-all/update-section.exp: Add test.
945
946 2020-05-04 Nick Clifton <nickc@redhat.com>
947
948 PR 25917
949 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
950 supicious number of entries for DWARF-5 format directory and file
951 name tables. Do not display file name table header if the table
952 is empty. Do not allocate space for empty tables.
953
954 2020-05-04 Alan Modra <amodra@gmail.com>
955
956 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
957 section. Don't assume endian of host matches nds32 target. Free
958 buffer.
959
960 2020-05-01 Alan Modra <amodra@gmail.com>
961 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
962
963 * objdump.c (disassemble_bytes): Don't scan for zeros when
964 disassembling zeros. Translate "resuming at file offset" message.
965 Formatting. Replace some signed variables with unsigned.
966
967 2020-04-30 Alex Coplan <alex.coplan@arm.com>
968
969 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
970 disassembly.
971 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
972
973 2020-04-30 Nick Clifton <nickc@redhat.com>
974
975 * testsuite/lib/binutils-common.exp (check_pie_support): New
976 proc.
977
978 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
979
980 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
981 range_entries for the same offset.
982
983 2020-04-29 Nick Clifton <nickc@redhat.com>
984
985 * readelf.c (warn): New function - like elfcomm.c version but only
986 produces output if warnings are enabled.
987 (struct options): Add --lint and --enable-checks.
988 (usage): Add entry for --lint.
989 (parse_args): Handle -L. If checks are enabled but no dumps have
990 been selected then enable all dumps.
991 (process_section_headers): Replace long if-then-else sequence with
992 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
993 SHT_PROGBITS sections.
994 (process_file): Do not complain if the file is an archive and lint
995 mode has been enabled.
996 * elfcomm.c (error): Make the function weak.
997 (warn): Likewise.
998 * NEWS: Mention the new feature.
999 * doc/binutils.texi: Document the new feature.
1000 * dwarf.h (report_leb_status): Add file name and line number
1001 parameters. Include them in the diagnostic output.
1002 (READ_ULEB): Pass file and line number to report_leb_status.
1003 (READ_SLEB): Likewise.
1004 * dwarf.c (read_and_print_leb128): Pass file and line number to
1005 report_leb_status.
1006 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1007 * testsuite/binutils-all/zero-sec.s: New test source file.
1008 * testsuite/binutils-all/zero-sec.r: Expected output from new
1009 test.
1010
1011 2020-04-29 Nick Clifton <nickc@redhat.com>
1012
1013 * po/sr.po: Updated Serbian translation.
1014
1015 2020-04-26 Alan Modra <amodra@gmail.com>
1016
1017 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1018 read before dereferencing, and gracefully return. Remove
1019 gnu_hash_error variable. Free gnu hash arrays if number of
1020 syms found is zero.
1021
1022 2020-04-24 Alan Modra <amodra@gmail.com>
1023
1024 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1025 non-zero.
1026 (process_dynamic_section): Call get_num_dynamic_syms once rather
1027 than in segment loop. Break out of segment loop on a successful
1028 load of dynamic symbols. Formatting.
1029 (process_object): Return error status from process_dynamic_section.
1030
1031 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1032
1033 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1034 * elf.c (elfcore_grok_arc_v2): New function.
1035 (elfcore_grok_note): Call the new function to handle the corresponding
1036 note.
1037 (elfcore_write_arc_v2): New function.
1038 (elfcore_write_register_note): Call the new function to handle the
1039 corresponding pseudo-sections.
1040
1041 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1042
1043 PR ld/25861
1044 * readelf.c (is_none_reloc): Recognize
1045 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1046 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1047
1048 2020-04-22 Nick Clifton <nickc@redhat.com>
1049
1050 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1051
1052 2020-04-22 Alan Modra <amodra@gmail.com>
1053
1054 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1055 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1056 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1057 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1058 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1059 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1060 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1061 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1062 (section_headers_groups): Move to struct filedata. Update use
1063 throughout file.
1064
1065 2020-04-22 Alan Modra <amodra@gmail.com>
1066
1067 * readelf.c (struct dump_data): New, used..
1068 (cmdline): ..here, and..
1069 (struct filedata): ..here. Adjust all uses.
1070 (request_dump_bynumber, request_dump, parse_args): Pass in a
1071 struct dump_data* rather than Filedata*. Adjust callers.
1072 (main): Don't set cmdline.file_name.
1073
1074 2020-04-20 Alan Modra <amodra@gmail.com>
1075
1076 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1077 and nbuckets.
1078
1079 2020-04-20 Alan Modra <amodra@gmail.com>
1080
1081 * readelf.c (process_section_headers): Free dynamic symbols etc.
1082 earlier.
1083
1084 2020-04-20 Alan Modra <amodra@gmail.com>
1085
1086 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1087 on error without freeing.
1088 (process_dynamic_section): Don't recreate dynamic symbols from
1089 dynamic tag info when the dynamic symbols have already been
1090 read via section headers.
1091
1092 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
1093
1094 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1095 conditional VDUP instructions are disassembled correctly.
1096 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1097 vdup-cond.d.
1098 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1099 that VDUP instructions (which are conditional in A32) can be
1100 disassembled in thumb mode.
1101 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1102 vdup-thumb.d.
1103
1104 2020-04-17 Alan Modra <amodra@gmail.com>
1105
1106 PR 25840
1107 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1108
1109 2020-04-16 Alan Modra <amodra@gmail.com>
1110
1111 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1112 --no-addresses description.
1113
1114 2020-04-15 Alan Modra <amodra@gmail.com>
1115
1116 * objdump.c (no_addresses): New static var.
1117 (usage): Print help for --no-addresses.
1118 (long_options): Add --no-addresses entry.
1119 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1120 (disassemble_bytes): Don't print current line address, or reloc
1121 address.
1122 * doc/binutils.texi: Document objdump --no-addresses.
1123
1124 2020-04-15 Alan Modra <amodra@gmail.com>
1125
1126 PR 25822
1127 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1128 reading buckets or chains fails.
1129
1130 2020-04-15 Alan Modra <amodra@gmail.com>
1131
1132 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1133 etc. after freeing.
1134
1135 2020-04-15 Alan Modra <amodra@gmail.com>
1136
1137 * readelf.c (get_group_flags): Translate text.
1138 (get_file_type, get_symbol_binding, get_symbol_type),
1139 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1140
1141 2020-04-15 Alan Modra <amodra@gmail.com>
1142
1143 PR 25821
1144 * readelf.c (get_num_dynamic_syms): Typo fix.
1145
1146 2020-04-14 Alan Modra <amodra@gmail.com>
1147
1148 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1149 possibility of overflow when checking number of conflicts.
1150
1151 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1152
1153 PR binutils/25707
1154 * readelf.c (nbuckets): New.
1155 (nchains): Likewise.
1156 (buckets): Likewise.
1157 (chains): Likewise.
1158 (ngnubuckets): Likewise.
1159 (gnubuckets): Likewise.
1160 (gnuchains): Likewise.
1161 (mipsxlat): Likewise.
1162 (ngnuchains): Likewise.
1163 (gnusymidx): Likewise.
1164 (VALID_SYMBOL_NAME): Likewise.
1165 (VALID_DYNAMIC_NAME): Use it.
1166 (get_dynamic_data): Moved before process_dynamic_section.
1167 (get_num_dynamic_syms): New function.
1168 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1169 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1170 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1171 table.
1172 (get_symbol_index_type): Don't print "bad section index" when
1173 there is no section header.
1174 (print_dynamic_symbol): Rewrite.
1175 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1176 symbol table.
1177
1178 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1179
1180 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1181 enable on *-*-solaris*.
1182
1183 2020-03-30 Nick Clifton <nickc@redhat.com>
1184
1185 PR binutils/25662
1186 * objcopy.c (copy_object): When copying PE format files set the
1187 timestamp field in the pe_data structure if the preserve_dates
1188 flag is set.
1189 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1190 --preserve-dates in place of the -p option, in order to make its
1191 effect more obvious.
1192
1193 2020-03-28 Alan Modra <amodra@gmail.com>
1194
1195 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1196 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1197
1198 2020-03-28 Alan Modra <amodra@gmail.com>
1199
1200 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1201 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1202 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1203 test. Pass "-p" to objcopy for the executable test.
1204
1205 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1206
1207 PR binutils/25662
1208 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1209 specify whether an object file or executable should be built and tested.
1210 Change test names to report whether an object file or executable is
1211 being tested.
1212 * testsuite/binutils-all/pr25662.ld: New test.
1213 * testsuite/binutils-all/pr25662.s: New test.
1214
1215 2020-03-27 Alan Modra <amodra@gmail.com>
1216
1217 * readelf.c (process_archive): Don't double free qualified_name.
1218 Don't break out of loop with "negative" archive_file_size, just
1219 set file offset to max.
1220
1221 2020-03-25 Alan Modra <amodra@gmail.com>
1222
1223 * readelf.c (process_archive): Prevent endless loop.
1224
1225 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1226
1227 PR binutils/25708
1228 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1229 with bfd_get_symbol_version_string.
1230 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1231 * objdump.c (objdump_print_symname): Likewise.
1232
1233 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1234
1235 PR binutils/25708
1236 * nm.c (SYM_NAME): Removed.
1237 (print_symname): Add a pointer to struct extended_symbol_info
1238 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1239 version.
1240 (print_symdef_entry): Pass NULL to print_symname.
1241 (print_symbol_info_bsd): Update call to print_symname.
1242 (print_symbol_info_sysv): Likewise.
1243 (print_symbol_info_posix): Likewise.
1244
1245 2020-03-24 Alan Modra <amodra@gmail.com>
1246
1247 * readelf.c (process_mips_specific): Free iconf on error path.
1248
1249 2020-03-23 Nick Clifton <nickc@redhat.com>
1250
1251 PR 25714
1252 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1253 * write_stabs_in_sections_debugging_info: Likewise.
1254 * stab_enum_type: Likewise.
1255 * stab_modify_type: Likewise.
1256 * stab_struct_field: Likewise.
1257 * stab_end_struct_type: Likewise.
1258 * stab_start_class_type: Likewise.
1259 * stab_class_static_member: Likewise.
1260 * stab_class_baseclass: Likewise.
1261 * stab_class_start_method: Likewise.
1262 * stab_class_method_var: Likewise.
1263 * stab_class_end_method: Likewise.
1264 * stab_end_class_type: Likewise.
1265 * stab_typedef_type: Likewise.
1266 * stab_start_function: Likewise.
1267 * stab_end_block: Likewise.
1268 * stab_lineno: Likewise.
1269
1270 2020-03-20 Nick Clifton <nickc@redhat.com>
1271
1272 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1273 (process_section_headers): Check the return value from
1274 get_compression_header.
1275 (dump_section_as_strings): Likewise.
1276 (dump_section_as_bytes): Likewise.
1277 (load_specific_debug_section): Likewise.
1278
1279 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1280
1281 * ar.c (main): Update bfd_plugin_set_program_name call.
1282 * nm.c (main): Likewise.
1283
1284 2020-03-19 Nick Clifton <nickc@redhat.com>
1285
1286 PR 25676
1287 * testsuite/binutils-all/dw4.s: New test source file.
1288 * testsuite/binutils-all/nm.exp: Run the new test.
1289
1290 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1291
1292 * readelf.c (process_symbol_table): Use unsigned long for si.
1293
1294 2020-03-19 Alan Modra <amodra@gmail.com>
1295
1296 * elfcomm.c: Don't include bfd.h or bucomm.h.
1297 (program_name): Declare.
1298 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1299 and substitute FALSE and TRUE.
1300 (setup_archive, setup_nested_archive): Likewise.
1301 * elfcomm.h: Likewise.
1302
1303 2020-03-19 Alan Modra <amodra@gmail.com>
1304
1305 * readelf.c (process_archive): Always return via path freeing
1306 memory. Formatting.
1307
1308 2020-03-19 Alan Modra <amodra@gmail.com>
1309
1310 * readelf.c (process_netbsd_elf_note): Validate descsz before
1311 accessing descdata. Formatting.
1312
1313 2020-03-19 Alan Modra <amodra@gmail.com>
1314
1315 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1316 * elfcomm.h (setup_archive): Update prototype.
1317
1318 2020-03-16 Alan Modra <amodra@gmail.com>
1319
1320 * readelf.c (get_symbols): New function.
1321 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1322 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1323
1324 2020-03-16 Alan Modra <amodra@gmail.com>
1325
1326 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1327 Detect shift overflows and check that terminating byte is found.
1328 Print an error on a bad uleb128.
1329
1330 2020-03-14 Alan Modra <amodra@gmail.com>
1331
1332 * readelf.c (process_file): Clean ba_cache.
1333
1334 2020-03-14 Alan Modra <amodra@gmail.com>
1335
1336 * elfcomm.h (setup_archive): Update prototype.
1337 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1338 check longnames_size.
1339 (setup_nested_archive): Get file size and pass to setup_archive.
1340 * elfedit.c (process_archive): Likewise.
1341 * readelf.c (process_archive): Pass filedata->file_size to
1342 setup_archive.
1343
1344 2020-03-14 Alan Modra <amodra@gmail.com>
1345
1346 * readelf.c (dump_section_as_strings): Free memory on error exit.
1347 (dump_section_as_bytes, process_notes_at): Likewise.
1348 (get_build_id): Free enote.
1349
1350 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1351
1352 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1353 NT_NETBSDCORE_LWPSTATUS notes.
1354
1355 2020-03-13 Alan Modra <amodra@gmail.com>
1356
1357 * elfcomm.c (get_archive_member_name): Always return malloc'd
1358 string or NULL.
1359 * elfedit.c (process_archive): Tidy memory on all return paths.
1360 * readelf.c (process_archive): Likewise.
1361 (process_symbol_table): Likewise.
1362 (ba_cache): New, replacing ..
1363 (get_symbol_for_build_attribute): ..static vars here. Free
1364 strtab and symtab before loading new ones. Reject symtab without
1365 valid strtab in loop, breaking out of loop on valid symtab.
1366 (process_file): Free ba_cache symtab and strtab here, resetting
1367 ba_cache.
1368
1369 2020-03-12 Alan Modra <amodra@gmail.com>
1370
1371 * readelf.c (process_section_headers): Don't just set
1372 filedata->section_headers NULL, free it first. Similarly for
1373 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1374 symtab_shndx_list. Zero associated counts too.
1375 (process_object): Free symtab_shndx_list.
1376 (process_file): Free various allocated filedata tables.
1377
1378 2020-03-11 Nick Clifton <nickc@redhat.com>
1379
1380 PR 25611
1381 PR 25614
1382 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1383 li_segment_size fields.
1384 * dwarf.c (read_debug_line_header): Record the address size and
1385 segment selector size values (if present) in the lineinfo
1386 structure.
1387 (display_formatted_table): Warn if the format count is empty but
1388 the table itself is not empty.
1389 Display the format count and entry count at the start of the table
1390 dump.
1391 (display_debug_lines_raw): Display the address size and segement
1392 selector size fields, if present.
1393 * testsuite/binutils-all/dw5.W: Update expected output.
1394
1395 2020-03-11 Alan Modra <amodra@gmail.com>
1396
1397 PR 25651
1398 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1399 pad_to_set on second block of code dealing with padding.
1400 Replace "c" with "num_sec" and don't recalculate number of
1401 sections on second block. Size arrays using sizeof (element)
1402 rather than sizeof (element type).
1403
1404 2020-03-10 Alan Modra <amodra@gmail.com>
1405
1406 * objdump.c (disassemble_section): Don't call qsort unless
1407 sym count is at least two.
1408 (disassemble_data): Don't call memcpy with NULL src.
1409
1410 2020-03-09 Alan Modra <amodra@gmail.com>
1411
1412 PR 25645
1413 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1414 to get_data rather than multiplying.
1415 (dump_ia64_vms_dynamic_relocs): Likewise.
1416 (process_version_sections): Correct order of size and nmemb args
1417 in get_data call.
1418 (process_mips_specific): Likewise.
1419
1420 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1421
1422 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1423 "memory checkers" in comments.
1424
1425 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1426
1427 PR 25491
1428 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1429 * doc/Makefile.in: Re-generate.
1430
1431 2020-03-06 Nick Clifton <nickc@redhat.com>
1432
1433 * objcopy.c (check_new_section_flags): New function. Reject the
1434 SEC_COFF_SHARED flag if the target is not a COFF binary.
1435 (copy_object): Call check_new_section_flags.
1436 (setup_section): Likewise.
1437 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1438 flag cannot be applied to ELF binaries.
1439
1440 2020-03-06 Alan Modra <amodra@gmail.com>
1441
1442 PR 25637
1443 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1444
1445 2020-03-05 Alan Modra <amodra@gmail.com>
1446
1447 PR 25629
1448 * objcopy.c (filter_symbols): Don't segfault on NULL
1449 prefix_symbols_string.
1450
1451 2020-03-04 Christian Eggers <ceggers@gmx.de>
1452
1453 * objcopy.c (copy_object): Convert from bytes to octets for
1454 --gap-fill and --pad-to.
1455
1456 2020-03-03 Nick Clifton <nickc@redhat.com>
1457
1458 PR 25625
1459 * prdbg.c (pr_tag_type): Remove call to abort.
1460
1461 2020-03-02 Aaron Merey <amerey@redhat.com>
1462
1463 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1464 selection.
1465
1466 2020-03-02 Nick Clifton <nickc@redhat.com>
1467
1468 PR 25543
1469 * readelf.c (dump_section_as_strings): Display new-line characters
1470 as \n and then insert a line break.
1471 * testsuite/binutils-all/pr25543.s: New test.
1472 * testsuite/binutils-all/pr25543.d: Test driver.
1473 * testsuite/binutils-all/readelf.exp: Run the new test.
1474
1475 2020-02-27 Nick Clifton <nickc@redhat.com>
1476
1477 PR 25526
1478 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1479 get_data is unable to load the string table.
1480
1481 2020-02-26 Alan Modra <amodra@gmail.com>
1482
1483 * elfedit.c: Indent labels correctly.
1484 * readelf.c: Likewise.
1485 * resres.c: Likewise.
1486
1487 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1488
1489 PR binutils/25584
1490 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1491 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1492
1493 2020-02-24 Nick Clifton <nickc@redhat.com>
1494
1495 PR 25499
1496 * doc/binutils.texi (objdump): Fix typo in description of
1497 objdump's -g option.
1498
1499 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1500
1501 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1502 is changed.
1503
1504 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1505
1506 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1507
1508 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * configure: Regenerate.
1511
1512 2020-02-10 Fangrui Song <maskray@google.com>
1513
1514 * objcopy.c (parse_flags): Handle "exclude".
1515 * doc/binutils.texi: Document the support.
1516
1517 2020-02-10 Aaron Merey <amerey@redhat.com>
1518
1519 * binutils/testsuite/binutils-all/debuginfod.exp:
1520 Replace set ::env with setenv.
1521 Start server before setting environment variable.
1522 Specify tmpdir as the location of the server's
1523 database.
1524 Check additional server metrics at start-up.
1525
1526 2020-02-07 Nick Clifton <nickc@redhat.com>
1527
1528 * README-how-to-make-a-release: Add note about updating the
1529 GAS/NEWS URL in the next release.
1530
1531 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1532
1533 PR 25469
1534 * readelf.c (get_machine_flags): Add support for Z80N machine
1535 number.
1536
1537 2020-02-07 Nick Clifton <nickc@redhat.com>
1538
1539 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1540 of the truncated file name.
1541
1542 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1543
1544 * objdump.c (print_jump_visualisation): New function.
1545 (disassemble_bytes): Call new function.
1546
1547 2020-02-06 Alan Modra <amodra@gmail.com>
1548
1549 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1550 TCL procedure.
1551 (supports_gnu_osabi): New procedure.
1552 (is_generic): New, from ld-lib.exp.
1553 (supports_gnu_unique): Use the above.
1554
1555 2020-02-04 Alan Modra <amodra@gmail.com>
1556
1557 * Makefile.am (CFILES): Add od-elf32_avr.c.
1558 * Makefile.in: Regenerate.
1559 * po/POTFILES.in: Regenerate.
1560
1561 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1562
1563 * readelf.c (dump_relocations, dump_relocations)
1564 (decode_arm_unwind_bytecode, process_dynamic_section)
1565 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1566 error message.
1567
1568 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1569
1570 * coffdump.c (program_name): Drop redundant definition.
1571 * srconv.c (program_name): Likewise
1572 * sysdump.c (program_name): Likewise
1573
1574 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1575
1576 PR gas/25380
1577 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1578 same file with different section pointers.
1579
1580 2020-02-01 Nick Clifton <nickc@redhat.com>
1581
1582 * README-how-to-make-a-release: Update with more details on the
1583 release making process.
1584
1585 2020-01-31 Nick Clifton <nickc@redhat.com>
1586
1587 * po/sv.po: Updated Swedish translation.
1588
1589 2020-01-28 Nick Clifton <nickc@redhat.com>
1590
1591 * readelf.c (get_build_id): Simplify warning message about corrupt
1592 notes encountered whilst scanning for the build-id.
1593
1594 2020-01-27 Roland McGrath <mcgrathr@google.com>
1595
1596 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1597 for overlapping ranges so that (A == B) == (B == A) holds.
1598
1599 2020-01-27 Alan Modra <amodra@gmail.com>
1600
1601 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1602 case statement with switch statement.
1603
1604 2020-01-24 Nick Clifton <nickc@redhat.com>
1605
1606 * readelf.c (get_build_id): Fix warning messages about corrupt
1607 notes.
1608
1609 2020-01-23 Nick Clifton <nickc@redhat.com>
1610
1611 * po/fr.po: Updated French translation.
1612
1613 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1614
1615 PR 25417
1616 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1617
1618 2020-01-20 Nick Clifton <nickc@redhat.com>
1619
1620 * po/pt.po: Updated Portuguese translation.
1621 * po/uk.po: Updated Ukranian translation.
1622
1623 2020-01-18 Nick Clifton <nickc@redhat.com>
1624
1625 * README-how-to-make-a-release: Update notes on how to cut a
1626 branch for a release.
1627
1628 2020-01-18 Nick Clifton <nickc@redhat.com>
1629
1630 * configure: Regenerate.
1631 * po/binutils.pot: Regenerate.
1632
1633 2020-01-18 Nick Clifton <nickc@redhat.com>
1634
1635 Binutils 2.34 branch created.
1636
1637 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1638
1639 * objdump.c (jump_info_visualize_address): Discard jumps that are
1640 no longer needed.
1641 (disassemble_bytes): Only compute the maximum level if jumps were
1642 detected.
1643
1644 2020-01-13 Nick Clifton <nickc@redhat.com>
1645
1646 * objdump.c (disassemble_bytes): Remove C99-ism.
1647 * testsuite/binutils-all/debuginfod.exp: New tests.
1648
1649 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1650
1651 * objdump.c (visualize_jumps, color_output, extended_color_output)
1652 (detected_jumps): New variables.
1653 (usage): Add the new jump visualization options.
1654 (option_values): Add new option value.
1655 (long_options): Add the new option.
1656 (jump_info_new, jump_info_free): New functions.
1657 (jump_info_min_address, jump_info_max_address): Likewise.
1658 (jump_info_end_address, jump_info_is_start_address): Likewise.
1659 (jump_info_is_end_address, jump_info_size): Likewise.
1660 (jump_info_unlink, jump_info_insert): Likewise.
1661 (jump_info_add_front, jump_info_move_linked): Likewise.
1662 (jump_info_intersect, jump_info_merge): Likewise.
1663 (jump_info_sort, jump_info_visualize_address): Likewise.
1664 (disassemble_jumps): New function - used to locate jumps.
1665 (disassemble_bytes): Add ascii art generation.
1666 (disassemble_section): Add scan to locate jumps.
1667 (main): Parse the new visualization option.
1668 * doc/binutils.texi: Document the new feature.
1669 * NEWS: Mention the new feature.
1670
1671 2020-01-13 Alan Modra <amodra@gmail.com>
1672
1673 PR 25360
1674 PR 25361
1675 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1676 fde_fc col_type and col_offset.
1677 * readelf.c (apply_relocations): Move symsec check earlier.
1678 (free_debug_section): Free reloc_info.
1679 (process_notes_at): Free pnotes on error path.
1680 (process_object): Free dump_sects here..
1681 (process_archive): ..not here.
1682
1683 2020-01-13 Alan Modra <amodra@gmail.com>
1684
1685 PR 25362
1686 * nm.c (display_rel_file): Free dyn_syms.
1687
1688 2020-01-09 Nick Clifton <nickc@redhat.com>
1689
1690 PR 25220
1691 * objcopy.c (empty_name): New variable.
1692 (need_sym_before): Prevent an attempt to free a static variable.
1693 (filter_symbols): Avoid strcmp test by checking for pointer
1694 equality.
1695
1696 2020-01-09 Nick Clifton <nickc@redhat.com>
1697
1698 * po/zh_TW.po: Updated Traditional Chinese translation.
1699
1700 2020-01-09 Aaron Merey <amerey@redhat.com>
1701
1702 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1703 * Makefile.in: Regenerate.
1704 * NEWS: Update.
1705 * config.in: Regenerate.
1706 * configure: Regenerate.
1707 * configure.ac: Call AC_DEBUGINFOD.
1708 * doc/Makefile.in: Regenerate.
1709 * doc/binutils.texi: Add section on using binutils
1710 with debuginfod.
1711 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1712 Query debuginfod servers for the target debug file.
1713 (load_separate_debug_info): Call
1714 debuginfod_fetch_separate_debug_info if configured with
1715 debuginfod.
1716 (load_separate_debug_files): Add file argument to
1717 load_separate_debug_info calls.
1718 * dwarf.h (get_build_id): Add declaration.
1719 * objdump.c (get_build_id): New function. Get build-id of file.
1720 * readelf.c (get_build_id): Likewise.
1721 * testsuite/binutils-all/debuginfod.exp: New tests.
1722 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1723 section.
1724
1725 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1726
1727 * readelf.c: Add support for new Z*) relocations and machine
1728 types.
1729
1730 2020-01-01 Alan Modra <amodra@gmail.com>
1731
1732 Update year range in copyright notice of all files.
1733
1734 For older changes see ChangeLog-2019
1735 \f
1736 Copyright (C) 2020 Free Software Foundation, Inc.
1737
1738 Copying and distribution of this file, with or without modification,
1739 are permitted in any medium without royalty provided the copyright
1740 notice and this notice are preserved.
1741
1742 Local Variables:
1743 mode: change-log
1744 left-margin: 8
1745 fill-column: 74
1746 version-control: never
1747 End: