]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/ChangeLog
101255de2147ad151b6579f7bab99a9593207531
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
1 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
2
3 * MAINTAINERS (Xtensa): Add myself as maintainer.
4
5 2020-05-23 Alan Modra <amodra@gmail.com>
6
7 * testsuite/binutils-all/ar.exp (many_files): New test.
8
9 2020-05-21 Alan Modra <amodra@gmail.com>
10
11 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
12 * dlltool.c: Likewise.
13 * elfcomm.c: Likewise.
14 * rddbg.c: Likewise.
15 * readelf.c: Likewise.
16 * stabs.c: Likewise.
17 * windmc.c: Likewise.
18 * windres.c: Likewise.
19 * wrstabs.c: Likewise.
20
21 2020-05-21 Alan Modra <amodra@gmail.com>
22
23 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
24 access.
25
26 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
27
28 * dwarf.c: Updated since DECLARE_CSR is changed.
29
30 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
31
32 PR binutils/25809
33 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
34 segment doesn't match the .dynamic section and checks are
35 enabled.
36 (struct filedata): Add dynamic_symtab_section and
37 dynamic_strtab_section fields.
38 (process_section_headers): Set dynamic_symtab_section to the
39 .dynsym section. Set dynamic_strtab_section to the .dynstr
40 section.
41 (process_dynamic_section): Warn if the .dynsym section doesn't
42 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
43 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
44
45 2020-05-19 Alan Modra <amodra@gmail.com>
46
47 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
48 (replace_members): Use bfd_get_filename rather than accessing
49 bfd->filename directly.
50 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
51 * binemul.c (do_ar_emul_append): Likewise.
52 * coffgrok.c (coff_grok): Likewise.
53
54 2020-05-18 Stafford Horne <shorne@gmail.com>
55
56 * MAINTAINERS (OR1K): Add myself as maintainer.
57
58 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
59
60 * doc/binutils.texi: Mention 'entry address' in the set-start and
61 adjust-start options descriptions.
62
63 2020-05-05 Nick Clifton <nickc@redhat.com>
64
65 * dwarf.c (do_checks): New global variable.
66 (display_formatted_table): Warn about an unexpected number of
67 columns in the table, if checks are enabled. Do not complain
68 about the lack of data following the number of entries in the
69 table if the table is empty.
70 (display_debug_lines_decoded): Only warn about an unexpected
71 number of columns in a table if checks are enabled.
72 * dwarf.h (do_checks): Add a prototype.
73 * elfcomm.c (error): Remove weak attribute.
74 (warn): Likewise.
75 * readelf.c (do_checks): Delete.
76 (warn): Delete.
77 (process_section_headers): Only warn about empty sections if
78 checks are enabled.
79
80 2020-05-04 Fangrui Song <maskray@google.com>
81
82 * objcopy.c (copy_object): Allow empty section.
83 * testsuite/binutils-all/update-section.exp: Add test.
84
85 2020-05-04 Nick Clifton <nickc@redhat.com>
86
87 PR 25917
88 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
89 supicious number of entries for DWARF-5 format directory and file
90 name tables. Do not display file name table header if the table
91 is empty. Do not allocate space for empty tables.
92
93 2020-05-04 Alan Modra <amodra@gmail.com>
94
95 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
96 section. Don't assume endian of host matches nds32 target. Free
97 buffer.
98
99 2020-05-01 Alan Modra <amodra@gmail.com>
100 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
101
102 * objdump.c (disassemble_bytes): Don't scan for zeros when
103 disassembling zeros. Translate "resuming at file offset" message.
104 Formatting. Replace some signed variables with unsigned.
105
106 2020-04-30 Alex Coplan <alex.coplan@arm.com>
107
108 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
109 disassembly.
110 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
111
112 2020-04-30 Nick Clifton <nickc@redhat.com>
113
114 * testsuite/lib/binutils-common.exp (check_pie_support): New
115 proc.
116
117 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
118
119 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
120 range_entries for the same offset.
121
122 2020-04-29 Nick Clifton <nickc@redhat.com>
123
124 * readelf.c (warn): New function - like elfcomm.c version but only
125 produces output if warnings are enabled.
126 (struct options): Add --lint and --enable-checks.
127 (usage): Add entry for --lint.
128 (parse_args): Handle -L. If checks are enabled but no dumps have
129 been selected then enable all dumps.
130 (process_section_headers): Replace long if-then-else sequence with
131 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
132 SHT_PROGBITS sections.
133 (process_file): Do not complain if the file is an archive and lint
134 mode has been enabled.
135 * elfcomm.c (error): Make the function weak.
136 (warn): Likewise.
137 * NEWS: Mention the new feature.
138 * doc/binutils.texi: Document the new feature.
139 * dwarf.h (report_leb_status): Add file name and line number
140 parameters. Include them in the diagnostic output.
141 (READ_ULEB): Pass file and line number to report_leb_status.
142 (READ_SLEB): Likewise.
143 * dwarf.c (read_and_print_leb128): Pass file and line number to
144 report_leb_status.
145 * testsuite/binutils-all/readelf.exp: Add test of new feature.
146 * testsuite/binutils-all/zero-sec.s: New test source file.
147 * testsuite/binutils-all/zero-sec.r: Expected output from new
148 test.
149
150 2020-04-29 Nick Clifton <nickc@redhat.com>
151
152 * po/sr.po: Updated Serbian translation.
153
154 2020-04-26 Alan Modra <amodra@gmail.com>
155
156 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
157 read before dereferencing, and gracefully return. Remove
158 gnu_hash_error variable. Free gnu hash arrays if number of
159 syms found is zero.
160
161 2020-04-24 Alan Modra <amodra@gmail.com>
162
163 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
164 non-zero.
165 (process_dynamic_section): Call get_num_dynamic_syms once rather
166 than in segment loop. Break out of segment loop on a successful
167 load of dynamic symbols. Formatting.
168 (process_object): Return error status from process_dynamic_section.
169
170 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
171
172 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
173 * elf.c (elfcore_grok_arc_v2): New function.
174 (elfcore_grok_note): Call the new function to handle the corresponding
175 note.
176 (elfcore_write_arc_v2): New function.
177 (elfcore_write_register_note): Call the new function to handle the
178 corresponding pseudo-sections.
179
180 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
181
182 PR ld/25861
183 * readelf.c (is_none_reloc): Recognize
184 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
185 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
186
187 2020-04-22 Nick Clifton <nickc@redhat.com>
188
189 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
190
191 2020-04-22 Alan Modra <amodra@gmail.com>
192
193 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
194 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
195 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
196 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
197 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
198 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
199 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
200 (dynamic_section, symtab_shndx_list, group_count, section_groups),
201 (section_headers_groups): Move to struct filedata. Update use
202 throughout file.
203
204 2020-04-22 Alan Modra <amodra@gmail.com>
205
206 * readelf.c (struct dump_data): New, used..
207 (cmdline): ..here, and..
208 (struct filedata): ..here. Adjust all uses.
209 (request_dump_bynumber, request_dump, parse_args): Pass in a
210 struct dump_data* rather than Filedata*. Adjust callers.
211 (main): Don't set cmdline.file_name.
212
213 2020-04-20 Alan Modra <amodra@gmail.com>
214
215 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
216 and nbuckets.
217
218 2020-04-20 Alan Modra <amodra@gmail.com>
219
220 * readelf.c (process_section_headers): Free dynamic symbols etc.
221 earlier.
222
223 2020-04-20 Alan Modra <amodra@gmail.com>
224
225 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
226 on error without freeing.
227 (process_dynamic_section): Don't recreate dynamic symbols from
228 dynamic tag info when the dynamic symbols have already been
229 read via section headers.
230
231 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
232
233 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
234 conditional VDUP instructions are disassembled correctly.
235 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
236 vdup-cond.d.
237 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
238 that VDUP instructions (which are conditional in A32) can be
239 disassembled in thumb mode.
240 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
241 vdup-thumb.d.
242
243 2020-04-17 Alan Modra <amodra@gmail.com>
244
245 PR 25840
246 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
247
248 2020-04-16 Alan Modra <amodra@gmail.com>
249
250 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
251 --no-addresses description.
252
253 2020-04-15 Alan Modra <amodra@gmail.com>
254
255 * objdump.c (no_addresses): New static var.
256 (usage): Print help for --no-addresses.
257 (long_options): Add --no-addresses entry.
258 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
259 (disassemble_bytes): Don't print current line address, or reloc
260 address.
261 * doc/binutils.texi: Document objdump --no-addresses.
262
263 2020-04-15 Alan Modra <amodra@gmail.com>
264
265 PR 25822
266 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
267 reading buckets or chains fails.
268
269 2020-04-15 Alan Modra <amodra@gmail.com>
270
271 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
272 etc. after freeing.
273
274 2020-04-15 Alan Modra <amodra@gmail.com>
275
276 * readelf.c (get_group_flags): Translate text.
277 (get_file_type, get_symbol_binding, get_symbol_type),
278 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
279
280 2020-04-15 Alan Modra <amodra@gmail.com>
281
282 PR 25821
283 * readelf.c (get_num_dynamic_syms): Typo fix.
284
285 2020-04-14 Alan Modra <amodra@gmail.com>
286
287 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
288 possibility of overflow when checking number of conflicts.
289
290 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
291
292 PR binutils/25707
293 * readelf.c (nbuckets): New.
294 (nchains): Likewise.
295 (buckets): Likewise.
296 (chains): Likewise.
297 (ngnubuckets): Likewise.
298 (gnubuckets): Likewise.
299 (gnuchains): Likewise.
300 (mipsxlat): Likewise.
301 (ngnuchains): Likewise.
302 (gnusymidx): Likewise.
303 (VALID_SYMBOL_NAME): Likewise.
304 (VALID_DYNAMIC_NAME): Use it.
305 (get_dynamic_data): Moved before process_dynamic_section.
306 (get_num_dynamic_syms): New function.
307 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
308 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
309 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
310 table.
311 (get_symbol_index_type): Don't print "bad section index" when
312 there is no section header.
313 (print_dynamic_symbol): Rewrite.
314 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
315 symbol table.
316
317 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
318
319 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
320 enable on *-*-solaris*.
321
322 2020-03-30 Nick Clifton <nickc@redhat.com>
323
324 PR binutils/25662
325 * objcopy.c (copy_object): When copying PE format files set the
326 timestamp field in the pe_data structure if the preserve_dates
327 flag is set.
328 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
329 --preserve-dates in place of the -p option, in order to make its
330 effect more obvious.
331
332 2020-03-28 Alan Modra <amodra@gmail.com>
333
334 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
335 clear_xfail hppa*-*-*elf*. Revert mips xfails.
336
337 2020-03-28 Alan Modra <amodra@gmail.com>
338
339 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
340 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
341 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
342 test. Pass "-p" to objcopy for the executable test.
343
344 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
345
346 PR binutils/25662
347 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
348 specify whether an object file or executable should be built and tested.
349 Change test names to report whether an object file or executable is
350 being tested.
351 * testsuite/binutils-all/pr25662.ld: New test.
352 * testsuite/binutils-all/pr25662.s: New test.
353
354 2020-03-27 Alan Modra <amodra@gmail.com>
355
356 * readelf.c (process_archive): Don't double free qualified_name.
357 Don't break out of loop with "negative" archive_file_size, just
358 set file offset to max.
359
360 2020-03-25 Alan Modra <amodra@gmail.com>
361
362 * readelf.c (process_archive): Prevent endless loop.
363
364 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
365
366 PR binutils/25708
367 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
368 with bfd_get_symbol_version_string.
369 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
370 * objdump.c (objdump_print_symname): Likewise.
371
372 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
373
374 PR binutils/25708
375 * nm.c (SYM_NAME): Removed.
376 (print_symname): Add a pointer to struct extended_symbol_info
377 argument. Call _bfd_elf_get_symbol_version_name to get symbol
378 version.
379 (print_symdef_entry): Pass NULL to print_symname.
380 (print_symbol_info_bsd): Update call to print_symname.
381 (print_symbol_info_sysv): Likewise.
382 (print_symbol_info_posix): Likewise.
383
384 2020-03-24 Alan Modra <amodra@gmail.com>
385
386 * readelf.c (process_mips_specific): Free iconf on error path.
387
388 2020-03-23 Nick Clifton <nickc@redhat.com>
389
390 PR 25714
391 * wrstabs.c (stab_pop_type): Replace assertion with error return.
392 * write_stabs_in_sections_debugging_info: Likewise.
393 * stab_enum_type: Likewise.
394 * stab_modify_type: Likewise.
395 * stab_struct_field: Likewise.
396 * stab_end_struct_type: Likewise.
397 * stab_start_class_type: Likewise.
398 * stab_class_static_member: Likewise.
399 * stab_class_baseclass: Likewise.
400 * stab_class_start_method: Likewise.
401 * stab_class_method_var: Likewise.
402 * stab_class_end_method: Likewise.
403 * stab_end_class_type: Likewise.
404 * stab_typedef_type: Likewise.
405 * stab_start_function: Likewise.
406 * stab_end_block: Likewise.
407 * stab_lineno: Likewise.
408
409 2020-03-20 Nick Clifton <nickc@redhat.com>
410
411 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
412 (process_section_headers): Check the return value from
413 get_compression_header.
414 (dump_section_as_strings): Likewise.
415 (dump_section_as_bytes): Likewise.
416 (load_specific_debug_section): Likewise.
417
418 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
419
420 * ar.c (main): Update bfd_plugin_set_program_name call.
421 * nm.c (main): Likewise.
422
423 2020-03-19 Nick Clifton <nickc@redhat.com>
424
425 PR 25676
426 * testsuite/binutils-all/dw4.s: New test source file.
427 * testsuite/binutils-all/nm.exp: Run the new test.
428
429 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
430
431 * readelf.c (process_symbol_table): Use unsigned long for si.
432
433 2020-03-19 Alan Modra <amodra@gmail.com>
434
435 * elfcomm.c: Don't include bfd.h or bucomm.h.
436 (program_name): Declare.
437 (process_archive_index_and_symbols): Replace bfd_boolean with int,
438 and substitute FALSE and TRUE.
439 (setup_archive, setup_nested_archive): Likewise.
440 * elfcomm.h: Likewise.
441
442 2020-03-19 Alan Modra <amodra@gmail.com>
443
444 * readelf.c (process_archive): Always return via path freeing
445 memory. Formatting.
446
447 2020-03-19 Alan Modra <amodra@gmail.com>
448
449 * readelf.c (process_netbsd_elf_note): Validate descsz before
450 accessing descdata. Formatting.
451
452 2020-03-19 Alan Modra <amodra@gmail.com>
453
454 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
455 * elfcomm.h (setup_archive): Update prototype.
456
457 2020-03-16 Alan Modra <amodra@gmail.com>
458
459 * readelf.c (get_symbols): New function.
460 (process_relocs, ia64_process_unwind, hppa_process_unwind),
461 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
462
463 2020-03-16 Alan Modra <amodra@gmail.com>
464
465 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
466 Detect shift overflows and check that terminating byte is found.
467 Print an error on a bad uleb128.
468
469 2020-03-14 Alan Modra <amodra@gmail.com>
470
471 * readelf.c (process_file): Clean ba_cache.
472
473 2020-03-14 Alan Modra <amodra@gmail.com>
474
475 * elfcomm.h (setup_archive): Update prototype.
476 * elfcomm.c (setup_archive): Add file_size parameter and sanity
477 check longnames_size.
478 (setup_nested_archive): Get file size and pass to setup_archive.
479 * elfedit.c (process_archive): Likewise.
480 * readelf.c (process_archive): Pass filedata->file_size to
481 setup_archive.
482
483 2020-03-14 Alan Modra <amodra@gmail.com>
484
485 * readelf.c (dump_section_as_strings): Free memory on error exit.
486 (dump_section_as_bytes, process_notes_at): Likewise.
487 (get_build_id): Free enote.
488
489 2020-03-13 Kamil Rytarowski <n54@gmx.com>
490
491 * readelf.c (get_netbsd_elfcore_note_type): Add support for
492 NT_NETBSDCORE_LWPSTATUS notes.
493
494 2020-03-13 Alan Modra <amodra@gmail.com>
495
496 * elfcomm.c (get_archive_member_name): Always return malloc'd
497 string or NULL.
498 * elfedit.c (process_archive): Tidy memory on all return paths.
499 * readelf.c (process_archive): Likewise.
500 (process_symbol_table): Likewise.
501 (ba_cache): New, replacing ..
502 (get_symbol_for_build_attribute): ..static vars here. Free
503 strtab and symtab before loading new ones. Reject symtab without
504 valid strtab in loop, breaking out of loop on valid symtab.
505 (process_file): Free ba_cache symtab and strtab here, resetting
506 ba_cache.
507
508 2020-03-12 Alan Modra <amodra@gmail.com>
509
510 * readelf.c (process_section_headers): Don't just set
511 filedata->section_headers NULL, free it first. Similarly for
512 dynamic_symbols, dynamic_strings, dynamic_syminfo and
513 symtab_shndx_list. Zero associated counts too.
514 (process_object): Free symtab_shndx_list.
515 (process_file): Free various allocated filedata tables.
516
517 2020-03-11 Nick Clifton <nickc@redhat.com>
518
519 PR 25611
520 PR 25614
521 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
522 li_segment_size fields.
523 * dwarf.c (read_debug_line_header): Record the address size and
524 segment selector size values (if present) in the lineinfo
525 structure.
526 (display_formatted_table): Warn if the format count is empty but
527 the table itself is not empty.
528 Display the format count and entry count at the start of the table
529 dump.
530 (display_debug_lines_raw): Display the address size and segement
531 selector size fields, if present.
532 * testsuite/binutils-all/dw5.W: Update expected output.
533
534 2020-03-11 Alan Modra <amodra@gmail.com>
535
536 PR 25651
537 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
538 pad_to_set on second block of code dealing with padding.
539 Replace "c" with "num_sec" and don't recalculate number of
540 sections on second block. Size arrays using sizeof (element)
541 rather than sizeof (element type).
542
543 2020-03-10 Alan Modra <amodra@gmail.com>
544
545 * objdump.c (disassemble_section): Don't call qsort unless
546 sym count is at least two.
547 (disassemble_data): Don't call memcpy with NULL src.
548
549 2020-03-09 Alan Modra <amodra@gmail.com>
550
551 PR 25645
552 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
553 to get_data rather than multiplying.
554 (dump_ia64_vms_dynamic_relocs): Likewise.
555 (process_version_sections): Correct order of size and nmemb args
556 in get_data call.
557 (process_mips_specific): Likewise.
558
559 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
560
561 * readelf.c (get_dynamic_data): Replace "memory chekers" with
562 "memory checkers" in comments.
563
564 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
565
566 PR 25491
567 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
568 * doc/Makefile.in: Re-generate.
569
570 2020-03-06 Nick Clifton <nickc@redhat.com>
571
572 * objcopy.c (check_new_section_flags): New function. Reject the
573 SEC_COFF_SHARED flag if the target is not a COFF binary.
574 (copy_object): Call check_new_section_flags.
575 (setup_section): Likewise.
576 * doc/binutils.texi (objcopy): Add a note that the 'share' section
577 flag cannot be applied to ELF binaries.
578
579 2020-03-06 Alan Modra <amodra@gmail.com>
580
581 PR 25637
582 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
583
584 2020-03-05 Alan Modra <amodra@gmail.com>
585
586 PR 25629
587 * objcopy.c (filter_symbols): Don't segfault on NULL
588 prefix_symbols_string.
589
590 2020-03-04 Christian Eggers <ceggers@gmx.de>
591
592 * objcopy.c (copy_object): Convert from bytes to octets for
593 --gap-fill and --pad-to.
594
595 2020-03-03 Nick Clifton <nickc@redhat.com>
596
597 PR 25625
598 * prdbg.c (pr_tag_type): Remove call to abort.
599
600 2020-03-02 Aaron Merey <amerey@redhat.com>
601
602 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
603 selection.
604
605 2020-03-02 Nick Clifton <nickc@redhat.com>
606
607 PR 25543
608 * readelf.c (dump_section_as_strings): Display new-line characters
609 as \n and then insert a line break.
610 * testsuite/binutils-all/pr25543.s: New test.
611 * testsuite/binutils-all/pr25543.d: Test driver.
612 * testsuite/binutils-all/readelf.exp: Run the new test.
613
614 2020-02-27 Nick Clifton <nickc@redhat.com>
615
616 PR 25526
617 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
618 get_data is unable to load the string table.
619
620 2020-02-26 Alan Modra <amodra@gmail.com>
621
622 * elfedit.c: Indent labels correctly.
623 * readelf.c: Likewise.
624 * resres.c: Likewise.
625
626 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
627
628 PR binutils/25584
629 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
630 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
631
632 2020-02-24 Nick Clifton <nickc@redhat.com>
633
634 PR 25499
635 * doc/binutils.texi (objdump): Fix typo in description of
636 objdump's -g option.
637
638 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
639
640 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
641 is changed.
642
643 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
644
645 * objdump.c (show_line): call bfd_demangle when using do_demangle.
646
647 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
648
649 * configure: Regenerate.
650
651 2020-02-10 Fangrui Song <maskray@google.com>
652
653 * objcopy.c (parse_flags): Handle "exclude".
654 * doc/binutils.texi: Document the support.
655
656 2020-02-10 Aaron Merey <amerey@redhat.com>
657
658 * binutils/testsuite/binutils-all/debuginfod.exp:
659 Replace set ::env with setenv.
660 Start server before setting environment variable.
661 Specify tmpdir as the location of the server's
662 database.
663 Check additional server metrics at start-up.
664
665 2020-02-07 Nick Clifton <nickc@redhat.com>
666
667 * README-how-to-make-a-release: Add note about updating the
668 GAS/NEWS URL in the next release.
669
670 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
671
672 PR 25469
673 * readelf.c (get_machine_flags): Add support for Z80N machine
674 number.
675
676 2020-02-07 Nick Clifton <nickc@redhat.com>
677
678 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
679 of the truncated file name.
680
681 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
682
683 * objdump.c (print_jump_visualisation): New function.
684 (disassemble_bytes): Call new function.
685
686 2020-02-06 Alan Modra <amodra@gmail.com>
687
688 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
689 TCL procedure.
690 (supports_gnu_osabi): New procedure.
691 (is_generic): New, from ld-lib.exp.
692 (supports_gnu_unique): Use the above.
693
694 2020-02-04 Alan Modra <amodra@gmail.com>
695
696 * Makefile.am (CFILES): Add od-elf32_avr.c.
697 * Makefile.in: Regenerate.
698 * po/POTFILES.in: Regenerate.
699
700 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
701
702 * readelf.c (dump_relocations, dump_relocations)
703 (decode_arm_unwind_bytecode, process_dynamic_section)
704 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
705 error message.
706
707 2020-02-03 Sergei Trofimovich <siarheit@google.com>
708
709 * coffdump.c (program_name): Drop redundant definition.
710 * srconv.c (program_name): Likewise
711 * sysdump.c (program_name): Likewise
712
713 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
714
715 PR gas/25380
716 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
717 same file with different section pointers.
718
719 2020-02-01 Nick Clifton <nickc@redhat.com>
720
721 * README-how-to-make-a-release: Update with more details on the
722 release making process.
723
724 2020-01-31 Nick Clifton <nickc@redhat.com>
725
726 * po/sv.po: Updated Swedish translation.
727
728 2020-01-28 Nick Clifton <nickc@redhat.com>
729
730 * readelf.c (get_build_id): Simplify warning message about corrupt
731 notes encountered whilst scanning for the build-id.
732
733 2020-01-27 Roland McGrath <mcgrathr@google.com>
734
735 * objcopy.c (compare_gnu_build_notes): Fix comparison results
736 for overlapping ranges so that (A == B) == (B == A) holds.
737
738 2020-01-27 Alan Modra <amodra@gmail.com>
739
740 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
741 case statement with switch statement.
742
743 2020-01-24 Nick Clifton <nickc@redhat.com>
744
745 * readelf.c (get_build_id): Fix warning messages about corrupt
746 notes.
747
748 2020-01-23 Nick Clifton <nickc@redhat.com>
749
750 * po/fr.po: Updated French translation.
751
752 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
753
754 PR 25417
755 * readelf.c (get_alpha_symbol_other): Fix error message typo.
756
757 2020-01-20 Nick Clifton <nickc@redhat.com>
758
759 * po/pt.po: Updated Portuguese translation.
760 * po/uk.po: Updated Ukranian translation.
761
762 2020-01-18 Nick Clifton <nickc@redhat.com>
763
764 * README-how-to-make-a-release: Update notes on how to cut a
765 branch for a release.
766
767 2020-01-18 Nick Clifton <nickc@redhat.com>
768
769 * configure: Regenerate.
770 * po/binutils.pot: Regenerate.
771
772 2020-01-18 Nick Clifton <nickc@redhat.com>
773
774 Binutils 2.34 branch created.
775
776 2020-01-17 Thomas Troeger <tstroege@gmx.de>
777
778 * objdump.c (jump_info_visualize_address): Discard jumps that are
779 no longer needed.
780 (disassemble_bytes): Only compute the maximum level if jumps were
781 detected.
782
783 2020-01-13 Nick Clifton <nickc@redhat.com>
784
785 * objdump.c (disassemble_bytes): Remove C99-ism.
786 * testsuite/binutils-all/debuginfod.exp: New tests.
787
788 2020-01-13 Thomas Troeger <tstroege@gmx.de>
789
790 * objdump.c (visualize_jumps, color_output, extended_color_output)
791 (detected_jumps): New variables.
792 (usage): Add the new jump visualization options.
793 (option_values): Add new option value.
794 (long_options): Add the new option.
795 (jump_info_new, jump_info_free): New functions.
796 (jump_info_min_address, jump_info_max_address): Likewise.
797 (jump_info_end_address, jump_info_is_start_address): Likewise.
798 (jump_info_is_end_address, jump_info_size): Likewise.
799 (jump_info_unlink, jump_info_insert): Likewise.
800 (jump_info_add_front, jump_info_move_linked): Likewise.
801 (jump_info_intersect, jump_info_merge): Likewise.
802 (jump_info_sort, jump_info_visualize_address): Likewise.
803 (disassemble_jumps): New function - used to locate jumps.
804 (disassemble_bytes): Add ascii art generation.
805 (disassemble_section): Add scan to locate jumps.
806 (main): Parse the new visualization option.
807 * doc/binutils.texi: Document the new feature.
808 * NEWS: Mention the new feature.
809
810 2020-01-13 Alan Modra <amodra@gmail.com>
811
812 PR 25360
813 PR 25361
814 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
815 fde_fc col_type and col_offset.
816 * readelf.c (apply_relocations): Move symsec check earlier.
817 (free_debug_section): Free reloc_info.
818 (process_notes_at): Free pnotes on error path.
819 (process_object): Free dump_sects here..
820 (process_archive): ..not here.
821
822 2020-01-13 Alan Modra <amodra@gmail.com>
823
824 PR 25362
825 * nm.c (display_rel_file): Free dyn_syms.
826
827 2020-01-09 Nick Clifton <nickc@redhat.com>
828
829 PR 25220
830 * objcopy.c (empty_name): New variable.
831 (need_sym_before): Prevent an attempt to free a static variable.
832 (filter_symbols): Avoid strcmp test by checking for pointer
833 equality.
834
835 2020-01-09 Nick Clifton <nickc@redhat.com>
836
837 * po/zh_TW.po: Updated Traditional Chinese translation.
838
839 2020-01-09 Aaron Merey <amerey@redhat.com>
840
841 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
842 * Makefile.in: Regenerate.
843 * NEWS: Update.
844 * config.in: Regenerate.
845 * configure: Regenerate.
846 * configure.ac: Call AC_DEBUGINFOD.
847 * doc/Makefile.in: Regenerate.
848 * doc/binutils.texi: Add section on using binutils
849 with debuginfod.
850 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
851 Query debuginfod servers for the target debug file.
852 (load_separate_debug_info): Call
853 debuginfod_fetch_separate_debug_info if configured with
854 debuginfod.
855 (load_separate_debug_files): Add file argument to
856 load_separate_debug_info calls.
857 * dwarf.h (get_build_id): Add declaration.
858 * objdump.c (get_build_id): New function. Get build-id of file.
859 * readelf.c (get_build_id): Likewise.
860 * testsuite/binutils-all/debuginfod.exp: New tests.
861 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
862 section.
863
864 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
865
866 * readelf.c: Add support for new Z*) relocations and machine
867 types.
868
869 2020-01-01 Alan Modra <amodra@gmail.com>
870
871 Update year range in copyright notice of all files.
872
873 For older changes see ChangeLog-2019
874 \f
875 Copyright (C) 2020 Free Software Foundation, Inc.
876
877 Copying and distribution of this file, with or without modification,
878 are permitted in any medium without royalty provided the copyright
879 notice and this notice are preserved.
880
881 Local Variables:
882 mode: change-log
883 left-margin: 8
884 fill-column: 74
885 version-control: never
886 End: