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