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