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