1 2020-06-08 Nick Clifton <nickc@redhat.com>
4 * dwarf.c (process_debug_info): Check that there is space in the
5 debug_information array before filling in an entry.
7 2020-06-06 Alan Modra <amodra@gmail.com>
9 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
11 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
14 * mclex.c (yylex): Add test for an empty input stream.
16 2020-06-04 Stephen Casner <casner@acm.org>
18 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
19 for test using section pseudo-ops compatible with pdp11.
20 * testsuite/binutils-all/objcopy.exp: Select alternate source.
22 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
24 * objdump.c (disassemble_data): Set disasm_info.endian_code to
25 disasm_info.endian after the latter is initialized to the
26 endianness reported by BFD.
28 2020-06-04 Alan Modra <amodra@gmail.com>
30 * testsuite/binutils-all/i386/i386.exp: Remove global directive
32 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
33 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
35 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
37 * windmc.h (struct mc_node): Add id_typecast field.
38 * mcparse.y (message): Initialise the id_typecast field.
39 * windmc.c (write_dbg): Use the id_typecast field as a parameter
40 when calling write_dbg_define.
41 (write_header): Likewise.
43 2020-06-03 Alan Modra <amodra@gmail.com>
46 * objcopy.c (copy_relocations_in_section): Free relpp on error.
47 Don't accidentally free isection->orelocation.
49 2020-06-02 Alan Modra <amodra@gmail.com>
51 * testsuite/binutils-all/ar.exp (obj): Set up object file name
52 extension. Use throughout. Don't completely exclude non-ELF
53 alpha targets. Run long_filenames test for tic30. Exclude thin
54 archive tests for aix, ecoff and vms.
55 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
56 extension. Use throughout. Don't exclude non-ELF alpha targets
59 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
61 * MAINTAINERS (Xtensa): Add myself as maintainer.
63 2020-05-23 Alan Modra <amodra@gmail.com>
65 * testsuite/binutils-all/ar.exp (many_files): New test.
67 2020-05-21 Alan Modra <amodra@gmail.com>
69 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
70 * dlltool.c: Likewise.
71 * elfcomm.c: Likewise.
73 * readelf.c: Likewise.
76 * windres.c: Likewise.
77 * wrstabs.c: Likewise.
79 2020-05-21 Alan Modra <amodra@gmail.com>
81 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
84 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
86 * dwarf.c: Updated since DECLARE_CSR is changed.
88 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
91 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
92 segment doesn't match the .dynamic section and checks are
94 (struct filedata): Add dynamic_symtab_section and
95 dynamic_strtab_section fields.
96 (process_section_headers): Set dynamic_symtab_section to the
97 .dynsym section. Set dynamic_strtab_section to the .dynstr
99 (process_dynamic_section): Warn if the .dynsym section doesn't
100 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
101 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
103 2020-05-19 Alan Modra <amodra@gmail.com>
105 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
106 (replace_members): Use bfd_get_filename rather than accessing
107 bfd->filename directly.
108 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
109 * binemul.c (do_ar_emul_append): Likewise.
110 * coffgrok.c (coff_grok): Likewise.
112 2020-05-18 Stafford Horne <shorne@gmail.com>
114 * MAINTAINERS (OR1K): Add myself as maintainer.
116 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
118 * doc/binutils.texi: Mention 'entry address' in the set-start and
119 adjust-start options descriptions.
121 2020-05-05 Nick Clifton <nickc@redhat.com>
123 * dwarf.c (do_checks): New global variable.
124 (display_formatted_table): Warn about an unexpected number of
125 columns in the table, if checks are enabled. Do not complain
126 about the lack of data following the number of entries in the
127 table if the table is empty.
128 (display_debug_lines_decoded): Only warn about an unexpected
129 number of columns in a table if checks are enabled.
130 * dwarf.h (do_checks): Add a prototype.
131 * elfcomm.c (error): Remove weak attribute.
133 * readelf.c (do_checks): Delete.
135 (process_section_headers): Only warn about empty sections if
138 2020-05-04 Fangrui Song <maskray@google.com>
140 * objcopy.c (copy_object): Allow empty section.
141 * testsuite/binutils-all/update-section.exp: Add test.
143 2020-05-04 Nick Clifton <nickc@redhat.com>
146 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
147 supicious number of entries for DWARF-5 format directory and file
148 name tables. Do not display file name table header if the table
149 is empty. Do not allocate space for empty tables.
151 2020-05-04 Alan Modra <amodra@gmail.com>
153 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
154 section. Don't assume endian of host matches nds32 target. Free
157 2020-05-01 Alan Modra <amodra@gmail.com>
158 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
160 * objdump.c (disassemble_bytes): Don't scan for zeros when
161 disassembling zeros. Translate "resuming at file offset" message.
162 Formatting. Replace some signed variables with unsigned.
164 2020-04-30 Alex Coplan <alex.coplan@arm.com>
166 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
168 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
170 2020-04-30 Nick Clifton <nickc@redhat.com>
172 * testsuite/lib/binutils-common.exp (check_pie_support): New
175 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
177 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
178 range_entries for the same offset.
180 2020-04-29 Nick Clifton <nickc@redhat.com>
182 * readelf.c (warn): New function - like elfcomm.c version but only
183 produces output if warnings are enabled.
184 (struct options): Add --lint and --enable-checks.
185 (usage): Add entry for --lint.
186 (parse_args): Handle -L. If checks are enabled but no dumps have
187 been selected then enable all dumps.
188 (process_section_headers): Replace long if-then-else sequence with
189 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
190 SHT_PROGBITS sections.
191 (process_file): Do not complain if the file is an archive and lint
192 mode has been enabled.
193 * elfcomm.c (error): Make the function weak.
195 * NEWS: Mention the new feature.
196 * doc/binutils.texi: Document the new feature.
197 * dwarf.h (report_leb_status): Add file name and line number
198 parameters. Include them in the diagnostic output.
199 (READ_ULEB): Pass file and line number to report_leb_status.
200 (READ_SLEB): Likewise.
201 * dwarf.c (read_and_print_leb128): Pass file and line number to
203 * testsuite/binutils-all/readelf.exp: Add test of new feature.
204 * testsuite/binutils-all/zero-sec.s: New test source file.
205 * testsuite/binutils-all/zero-sec.r: Expected output from new
208 2020-04-29 Nick Clifton <nickc@redhat.com>
210 * po/sr.po: Updated Serbian translation.
212 2020-04-26 Alan Modra <amodra@gmail.com>
214 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
215 read before dereferencing, and gracefully return. Remove
216 gnu_hash_error variable. Free gnu hash arrays if number of
219 2020-04-24 Alan Modra <amodra@gmail.com>
221 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
223 (process_dynamic_section): Call get_num_dynamic_syms once rather
224 than in segment loop. Break out of segment loop on a successful
225 load of dynamic symbols. Formatting.
226 (process_object): Return error status from process_dynamic_section.
228 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
230 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
231 * elf.c (elfcore_grok_arc_v2): New function.
232 (elfcore_grok_note): Call the new function to handle the corresponding
234 (elfcore_write_arc_v2): New function.
235 (elfcore_write_register_note): Call the new function to handle the
236 corresponding pseudo-sections.
238 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
241 * readelf.c (is_none_reloc): Recognize
242 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
243 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
245 2020-04-22 Nick Clifton <nickc@redhat.com>
247 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
249 2020-04-22 Alan Modra <amodra@gmail.com>
251 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
252 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
253 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
254 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
255 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
256 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
257 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
258 (dynamic_section, symtab_shndx_list, group_count, section_groups),
259 (section_headers_groups): Move to struct filedata. Update use
262 2020-04-22 Alan Modra <amodra@gmail.com>
264 * readelf.c (struct dump_data): New, used..
265 (cmdline): ..here, and..
266 (struct filedata): ..here. Adjust all uses.
267 (request_dump_bynumber, request_dump, parse_args): Pass in a
268 struct dump_data* rather than Filedata*. Adjust callers.
269 (main): Don't set cmdline.file_name.
271 2020-04-20 Alan Modra <amodra@gmail.com>
273 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
276 2020-04-20 Alan Modra <amodra@gmail.com>
278 * readelf.c (process_section_headers): Free dynamic symbols etc.
281 2020-04-20 Alan Modra <amodra@gmail.com>
283 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
284 on error without freeing.
285 (process_dynamic_section): Don't recreate dynamic symbols from
286 dynamic tag info when the dynamic symbols have already been
287 read via section headers.
289 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
291 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
292 conditional VDUP instructions are disassembled correctly.
293 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
295 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
296 that VDUP instructions (which are conditional in A32) can be
297 disassembled in thumb mode.
298 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
301 2020-04-17 Alan Modra <amodra@gmail.com>
304 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
306 2020-04-16 Alan Modra <amodra@gmail.com>
308 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
309 --no-addresses description.
311 2020-04-15 Alan Modra <amodra@gmail.com>
313 * objdump.c (no_addresses): New static var.
314 (usage): Print help for --no-addresses.
315 (long_options): Add --no-addresses entry.
316 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
317 (disassemble_bytes): Don't print current line address, or reloc
319 * doc/binutils.texi: Document objdump --no-addresses.
321 2020-04-15 Alan Modra <amodra@gmail.com>
324 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
325 reading buckets or chains fails.
327 2020-04-15 Alan Modra <amodra@gmail.com>
329 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
332 2020-04-15 Alan Modra <amodra@gmail.com>
334 * readelf.c (get_group_flags): Translate text.
335 (get_file_type, get_symbol_binding, get_symbol_type),
336 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
338 2020-04-15 Alan Modra <amodra@gmail.com>
341 * readelf.c (get_num_dynamic_syms): Typo fix.
343 2020-04-14 Alan Modra <amodra@gmail.com>
345 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
346 possibility of overflow when checking number of conflicts.
348 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
351 * readelf.c (nbuckets): New.
355 (ngnubuckets): Likewise.
356 (gnubuckets): Likewise.
357 (gnuchains): Likewise.
358 (mipsxlat): Likewise.
359 (ngnuchains): Likewise.
360 (gnusymidx): Likewise.
361 (VALID_SYMBOL_NAME): Likewise.
362 (VALID_DYNAMIC_NAME): Use it.
363 (get_dynamic_data): Moved before process_dynamic_section.
364 (get_num_dynamic_syms): New function.
365 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
366 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
367 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
369 (get_symbol_index_type): Don't print "bad section index" when
370 there is no section header.
371 (print_dynamic_symbol): Rewrite.
372 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
375 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
377 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
378 enable on *-*-solaris*.
380 2020-03-30 Nick Clifton <nickc@redhat.com>
383 * objcopy.c (copy_object): When copying PE format files set the
384 timestamp field in the pe_data structure if the preserve_dates
386 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
387 --preserve-dates in place of the -p option, in order to make its
390 2020-03-28 Alan Modra <amodra@gmail.com>
392 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
393 clear_xfail hppa*-*-*elf*. Revert mips xfails.
395 2020-03-28 Alan Modra <amodra@gmail.com>
397 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
398 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
399 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
400 test. Pass "-p" to objcopy for the executable test.
402 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
405 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
406 specify whether an object file or executable should be built and tested.
407 Change test names to report whether an object file or executable is
409 * testsuite/binutils-all/pr25662.ld: New test.
410 * testsuite/binutils-all/pr25662.s: New test.
412 2020-03-27 Alan Modra <amodra@gmail.com>
414 * readelf.c (process_archive): Don't double free qualified_name.
415 Don't break out of loop with "negative" archive_file_size, just
416 set file offset to max.
418 2020-03-25 Alan Modra <amodra@gmail.com>
420 * readelf.c (process_archive): Prevent endless loop.
422 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
425 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
426 with bfd_get_symbol_version_string.
427 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
428 * objdump.c (objdump_print_symname): Likewise.
430 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
433 * nm.c (SYM_NAME): Removed.
434 (print_symname): Add a pointer to struct extended_symbol_info
435 argument. Call _bfd_elf_get_symbol_version_name to get symbol
437 (print_symdef_entry): Pass NULL to print_symname.
438 (print_symbol_info_bsd): Update call to print_symname.
439 (print_symbol_info_sysv): Likewise.
440 (print_symbol_info_posix): Likewise.
442 2020-03-24 Alan Modra <amodra@gmail.com>
444 * readelf.c (process_mips_specific): Free iconf on error path.
446 2020-03-23 Nick Clifton <nickc@redhat.com>
449 * wrstabs.c (stab_pop_type): Replace assertion with error return.
450 * write_stabs_in_sections_debugging_info: Likewise.
451 * stab_enum_type: Likewise.
452 * stab_modify_type: Likewise.
453 * stab_struct_field: Likewise.
454 * stab_end_struct_type: Likewise.
455 * stab_start_class_type: Likewise.
456 * stab_class_static_member: Likewise.
457 * stab_class_baseclass: Likewise.
458 * stab_class_start_method: Likewise.
459 * stab_class_method_var: Likewise.
460 * stab_class_end_method: Likewise.
461 * stab_end_class_type: Likewise.
462 * stab_typedef_type: Likewise.
463 * stab_start_function: Likewise.
464 * stab_end_block: Likewise.
465 * stab_lineno: Likewise.
467 2020-03-20 Nick Clifton <nickc@redhat.com>
469 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
470 (process_section_headers): Check the return value from
471 get_compression_header.
472 (dump_section_as_strings): Likewise.
473 (dump_section_as_bytes): Likewise.
474 (load_specific_debug_section): Likewise.
476 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
478 * ar.c (main): Update bfd_plugin_set_program_name call.
479 * nm.c (main): Likewise.
481 2020-03-19 Nick Clifton <nickc@redhat.com>
484 * testsuite/binutils-all/dw4.s: New test source file.
485 * testsuite/binutils-all/nm.exp: Run the new test.
487 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
489 * readelf.c (process_symbol_table): Use unsigned long for si.
491 2020-03-19 Alan Modra <amodra@gmail.com>
493 * elfcomm.c: Don't include bfd.h or bucomm.h.
494 (program_name): Declare.
495 (process_archive_index_and_symbols): Replace bfd_boolean with int,
496 and substitute FALSE and TRUE.
497 (setup_archive, setup_nested_archive): Likewise.
498 * elfcomm.h: Likewise.
500 2020-03-19 Alan Modra <amodra@gmail.com>
502 * readelf.c (process_archive): Always return via path freeing
505 2020-03-19 Alan Modra <amodra@gmail.com>
507 * readelf.c (process_netbsd_elf_note): Validate descsz before
508 accessing descdata. Formatting.
510 2020-03-19 Alan Modra <amodra@gmail.com>
512 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
513 * elfcomm.h (setup_archive): Update prototype.
515 2020-03-16 Alan Modra <amodra@gmail.com>
517 * readelf.c (get_symbols): New function.
518 (process_relocs, ia64_process_unwind, hppa_process_unwind),
519 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
521 2020-03-16 Alan Modra <amodra@gmail.com>
523 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
524 Detect shift overflows and check that terminating byte is found.
525 Print an error on a bad uleb128.
527 2020-03-14 Alan Modra <amodra@gmail.com>
529 * readelf.c (process_file): Clean ba_cache.
531 2020-03-14 Alan Modra <amodra@gmail.com>
533 * elfcomm.h (setup_archive): Update prototype.
534 * elfcomm.c (setup_archive): Add file_size parameter and sanity
535 check longnames_size.
536 (setup_nested_archive): Get file size and pass to setup_archive.
537 * elfedit.c (process_archive): Likewise.
538 * readelf.c (process_archive): Pass filedata->file_size to
541 2020-03-14 Alan Modra <amodra@gmail.com>
543 * readelf.c (dump_section_as_strings): Free memory on error exit.
544 (dump_section_as_bytes, process_notes_at): Likewise.
545 (get_build_id): Free enote.
547 2020-03-13 Kamil Rytarowski <n54@gmx.com>
549 * readelf.c (get_netbsd_elfcore_note_type): Add support for
550 NT_NETBSDCORE_LWPSTATUS notes.
552 2020-03-13 Alan Modra <amodra@gmail.com>
554 * elfcomm.c (get_archive_member_name): Always return malloc'd
556 * elfedit.c (process_archive): Tidy memory on all return paths.
557 * readelf.c (process_archive): Likewise.
558 (process_symbol_table): Likewise.
559 (ba_cache): New, replacing ..
560 (get_symbol_for_build_attribute): ..static vars here. Free
561 strtab and symtab before loading new ones. Reject symtab without
562 valid strtab in loop, breaking out of loop on valid symtab.
563 (process_file): Free ba_cache symtab and strtab here, resetting
566 2020-03-12 Alan Modra <amodra@gmail.com>
568 * readelf.c (process_section_headers): Don't just set
569 filedata->section_headers NULL, free it first. Similarly for
570 dynamic_symbols, dynamic_strings, dynamic_syminfo and
571 symtab_shndx_list. Zero associated counts too.
572 (process_object): Free symtab_shndx_list.
573 (process_file): Free various allocated filedata tables.
575 2020-03-11 Nick Clifton <nickc@redhat.com>
579 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
580 li_segment_size fields.
581 * dwarf.c (read_debug_line_header): Record the address size and
582 segment selector size values (if present) in the lineinfo
584 (display_formatted_table): Warn if the format count is empty but
585 the table itself is not empty.
586 Display the format count and entry count at the start of the table
588 (display_debug_lines_raw): Display the address size and segement
589 selector size fields, if present.
590 * testsuite/binutils-all/dw5.W: Update expected output.
592 2020-03-11 Alan Modra <amodra@gmail.com>
595 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
596 pad_to_set on second block of code dealing with padding.
597 Replace "c" with "num_sec" and don't recalculate number of
598 sections on second block. Size arrays using sizeof (element)
599 rather than sizeof (element type).
601 2020-03-10 Alan Modra <amodra@gmail.com>
603 * objdump.c (disassemble_section): Don't call qsort unless
604 sym count is at least two.
605 (disassemble_data): Don't call memcpy with NULL src.
607 2020-03-09 Alan Modra <amodra@gmail.com>
610 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
611 to get_data rather than multiplying.
612 (dump_ia64_vms_dynamic_relocs): Likewise.
613 (process_version_sections): Correct order of size and nmemb args
615 (process_mips_specific): Likewise.
617 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
619 * readelf.c (get_dynamic_data): Replace "memory chekers" with
620 "memory checkers" in comments.
622 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
625 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
626 * doc/Makefile.in: Re-generate.
628 2020-03-06 Nick Clifton <nickc@redhat.com>
630 * objcopy.c (check_new_section_flags): New function. Reject the
631 SEC_COFF_SHARED flag if the target is not a COFF binary.
632 (copy_object): Call check_new_section_flags.
633 (setup_section): Likewise.
634 * doc/binutils.texi (objcopy): Add a note that the 'share' section
635 flag cannot be applied to ELF binaries.
637 2020-03-06 Alan Modra <amodra@gmail.com>
640 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
642 2020-03-05 Alan Modra <amodra@gmail.com>
645 * objcopy.c (filter_symbols): Don't segfault on NULL
646 prefix_symbols_string.
648 2020-03-04 Christian Eggers <ceggers@gmx.de>
650 * objcopy.c (copy_object): Convert from bytes to octets for
651 --gap-fill and --pad-to.
653 2020-03-03 Nick Clifton <nickc@redhat.com>
656 * prdbg.c (pr_tag_type): Remove call to abort.
658 2020-03-02 Aaron Merey <amerey@redhat.com>
660 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
663 2020-03-02 Nick Clifton <nickc@redhat.com>
666 * readelf.c (dump_section_as_strings): Display new-line characters
667 as \n and then insert a line break.
668 * testsuite/binutils-all/pr25543.s: New test.
669 * testsuite/binutils-all/pr25543.d: Test driver.
670 * testsuite/binutils-all/readelf.exp: Run the new test.
672 2020-02-27 Nick Clifton <nickc@redhat.com>
675 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
676 get_data is unable to load the string table.
678 2020-02-26 Alan Modra <amodra@gmail.com>
680 * elfedit.c: Indent labels correctly.
681 * readelf.c: Likewise.
682 * resres.c: Likewise.
684 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
687 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
688 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
690 2020-02-24 Nick Clifton <nickc@redhat.com>
693 * doc/binutils.texi (objdump): Fix typo in description of
696 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
698 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
701 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
703 * objdump.c (show_line): call bfd_demangle when using do_demangle.
705 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
707 * configure: Regenerate.
709 2020-02-10 Fangrui Song <maskray@google.com>
711 * objcopy.c (parse_flags): Handle "exclude".
712 * doc/binutils.texi: Document the support.
714 2020-02-10 Aaron Merey <amerey@redhat.com>
716 * binutils/testsuite/binutils-all/debuginfod.exp:
717 Replace set ::env with setenv.
718 Start server before setting environment variable.
719 Specify tmpdir as the location of the server's
721 Check additional server metrics at start-up.
723 2020-02-07 Nick Clifton <nickc@redhat.com>
725 * README-how-to-make-a-release: Add note about updating the
726 GAS/NEWS URL in the next release.
728 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
731 * readelf.c (get_machine_flags): Add support for Z80N machine
734 2020-02-07 Nick Clifton <nickc@redhat.com>
736 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
737 of the truncated file name.
739 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
741 * objdump.c (print_jump_visualisation): New function.
742 (disassemble_bytes): Call new function.
744 2020-02-06 Alan Modra <amodra@gmail.com>
746 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
748 (supports_gnu_osabi): New procedure.
749 (is_generic): New, from ld-lib.exp.
750 (supports_gnu_unique): Use the above.
752 2020-02-04 Alan Modra <amodra@gmail.com>
754 * Makefile.am (CFILES): Add od-elf32_avr.c.
755 * Makefile.in: Regenerate.
756 * po/POTFILES.in: Regenerate.
758 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
760 * readelf.c (dump_relocations, dump_relocations)
761 (decode_arm_unwind_bytecode, process_dynamic_section)
762 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
765 2020-02-03 Sergei Trofimovich <siarheit@google.com>
767 * coffdump.c (program_name): Drop redundant definition.
768 * srconv.c (program_name): Likewise
769 * sysdump.c (program_name): Likewise
771 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
774 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
775 same file with different section pointers.
777 2020-02-01 Nick Clifton <nickc@redhat.com>
779 * README-how-to-make-a-release: Update with more details on the
780 release making process.
782 2020-01-31 Nick Clifton <nickc@redhat.com>
784 * po/sv.po: Updated Swedish translation.
786 2020-01-28 Nick Clifton <nickc@redhat.com>
788 * readelf.c (get_build_id): Simplify warning message about corrupt
789 notes encountered whilst scanning for the build-id.
791 2020-01-27 Roland McGrath <mcgrathr@google.com>
793 * objcopy.c (compare_gnu_build_notes): Fix comparison results
794 for overlapping ranges so that (A == B) == (B == A) holds.
796 2020-01-27 Alan Modra <amodra@gmail.com>
798 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
799 case statement with switch statement.
801 2020-01-24 Nick Clifton <nickc@redhat.com>
803 * readelf.c (get_build_id): Fix warning messages about corrupt
806 2020-01-23 Nick Clifton <nickc@redhat.com>
808 * po/fr.po: Updated French translation.
810 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
813 * readelf.c (get_alpha_symbol_other): Fix error message typo.
815 2020-01-20 Nick Clifton <nickc@redhat.com>
817 * po/pt.po: Updated Portuguese translation.
818 * po/uk.po: Updated Ukranian translation.
820 2020-01-18 Nick Clifton <nickc@redhat.com>
822 * README-how-to-make-a-release: Update notes on how to cut a
823 branch for a release.
825 2020-01-18 Nick Clifton <nickc@redhat.com>
827 * configure: Regenerate.
828 * po/binutils.pot: Regenerate.
830 2020-01-18 Nick Clifton <nickc@redhat.com>
832 Binutils 2.34 branch created.
834 2020-01-17 Thomas Troeger <tstroege@gmx.de>
836 * objdump.c (jump_info_visualize_address): Discard jumps that are
838 (disassemble_bytes): Only compute the maximum level if jumps were
841 2020-01-13 Nick Clifton <nickc@redhat.com>
843 * objdump.c (disassemble_bytes): Remove C99-ism.
844 * testsuite/binutils-all/debuginfod.exp: New tests.
846 2020-01-13 Thomas Troeger <tstroege@gmx.de>
848 * objdump.c (visualize_jumps, color_output, extended_color_output)
849 (detected_jumps): New variables.
850 (usage): Add the new jump visualization options.
851 (option_values): Add new option value.
852 (long_options): Add the new option.
853 (jump_info_new, jump_info_free): New functions.
854 (jump_info_min_address, jump_info_max_address): Likewise.
855 (jump_info_end_address, jump_info_is_start_address): Likewise.
856 (jump_info_is_end_address, jump_info_size): Likewise.
857 (jump_info_unlink, jump_info_insert): Likewise.
858 (jump_info_add_front, jump_info_move_linked): Likewise.
859 (jump_info_intersect, jump_info_merge): Likewise.
860 (jump_info_sort, jump_info_visualize_address): Likewise.
861 (disassemble_jumps): New function - used to locate jumps.
862 (disassemble_bytes): Add ascii art generation.
863 (disassemble_section): Add scan to locate jumps.
864 (main): Parse the new visualization option.
865 * doc/binutils.texi: Document the new feature.
866 * NEWS: Mention the new feature.
868 2020-01-13 Alan Modra <amodra@gmail.com>
872 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
873 fde_fc col_type and col_offset.
874 * readelf.c (apply_relocations): Move symsec check earlier.
875 (free_debug_section): Free reloc_info.
876 (process_notes_at): Free pnotes on error path.
877 (process_object): Free dump_sects here..
878 (process_archive): ..not here.
880 2020-01-13 Alan Modra <amodra@gmail.com>
883 * nm.c (display_rel_file): Free dyn_syms.
885 2020-01-09 Nick Clifton <nickc@redhat.com>
888 * objcopy.c (empty_name): New variable.
889 (need_sym_before): Prevent an attempt to free a static variable.
890 (filter_symbols): Avoid strcmp test by checking for pointer
893 2020-01-09 Nick Clifton <nickc@redhat.com>
895 * po/zh_TW.po: Updated Traditional Chinese translation.
897 2020-01-09 Aaron Merey <amerey@redhat.com>
899 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
900 * Makefile.in: Regenerate.
902 * config.in: Regenerate.
903 * configure: Regenerate.
904 * configure.ac: Call AC_DEBUGINFOD.
905 * doc/Makefile.in: Regenerate.
906 * doc/binutils.texi: Add section on using binutils
908 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
909 Query debuginfod servers for the target debug file.
910 (load_separate_debug_info): Call
911 debuginfod_fetch_separate_debug_info if configured with
913 (load_separate_debug_files): Add file argument to
914 load_separate_debug_info calls.
915 * dwarf.h (get_build_id): Add declaration.
916 * objdump.c (get_build_id): New function. Get build-id of file.
917 * readelf.c (get_build_id): Likewise.
918 * testsuite/binutils-all/debuginfod.exp: New tests.
919 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
922 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
924 * readelf.c: Add support for new Z*) relocations and machine
927 2020-01-01 Alan Modra <amodra@gmail.com>
929 Update year range in copyright notice of all files.
931 For older changes see ChangeLog-2019
933 Copyright (C) 2020 Free Software Foundation, Inc.
935 Copying and distribution of this file, with or without modification,
936 are permitted in any medium without royalty provided the copyright
937 notice and this notice are preserved.
943 version-control: never