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