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