1 2020-07-10 Tom de Vries <tdevries@suse.de>
3 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
4 information in the end_sequence row.
5 * testsuite/binutils-all/dw5.W: Update.
6 * testsuite/binutils-all/objdump.WL: Update.
8 2020-07-09 Alan Modra <amodra@gmail.com>
10 * dlltool.c: Remove powerpc PE support and comments.
11 * configure.ac: Remove powerpc PE dlltool config.
12 * configure: Regenerate.
14 2020-07-09 Nick Clifton <nickc@redhat.com>
16 * rclex.c: Add OWNERDRAW keyword.
17 * rcparse.y: Add OWNERDRAW token.
18 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
19 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
21 * windres.c (extended_menuitems): Likewise.
22 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
24 2020-07-09 Alan Modra <amodra@gmail.com>
26 * readelf (slurp_hppa_unwind_table): Set table_len before use
27 in relocation sanity checks.
29 2020-07-07 Alan Modra <amodra@gmail.com>
31 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
32 * testsuite/binutils-all/nm.exp: Likewise.
33 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
34 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
35 * testsuite/binutils-all/set-section-alignment.d: Likewise.
36 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
38 2020-07-07 Alan Modra <amodra@gmail.com>
40 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
41 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
43 2020-07-06 Nick Clifton <nickc@redhat.com>
45 * po/bg.po: Updated Bulgarian translation.
46 * po/pt.po: Updated Portuguese translation.
47 * po/uk.po: Updated Ukranian translation.
49 2020-07-06 Alan Modra <amodra@gmail.com>
51 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
54 2020-07-04 Nick Clifton <nickc@redhat.com>
56 * configure: Regenerate.
57 * po/binutils.pot: Regenerate.
59 2020-07-04 Nick Clifton <nickc@redhat.com>
61 Binutils 2.35 branch created.
63 2020-07-02 Nick Clifton <nickc@redhat.com>
66 * readelf.c (print_symbol): Handle truncation of symbol names.
67 (options): Add -T/--silent-truncation option.
68 (parse_args): Handle the option.
69 (print_dynamic_symbol): Correct calculation of width available to
71 * doc/binutils.texi: Document the -T option to readelf.
72 * NEWS: Mention the new feature.
74 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
76 * NEWS: Mention x86 NaCl target support removal.
77 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
78 x86 NaCl target support.
79 * testsuite/binutils-all/elfedit-1.d: Likewise.
80 * testsuite/binutils-all/i386/i386.exp: Likewise.
81 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
82 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
83 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
84 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
85 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
86 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
87 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
88 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
89 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
90 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
91 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
92 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
94 2020-06-30 Nick Clifton <nickc@redhat.com>
96 * dwarf.c (read_and_display_attr_value): Support
97 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
100 2020-06-30 Alan Modra <amodra@gmail.com>
102 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
105 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
107 * dwarf.c (display_debug_str_offsets): Rename local variable
108 index to idx. Move to top of function.
110 2020-06-29 Alan Modra <amodra@gmail.com>
112 * dwarf.c: Use C style comments.
115 2020-06-27 Alan Modra <amodra@gmail.com>
117 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
119 (release_archive): Set fields of arch to NULL after freeing.
121 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
123 * readelf.c (dump_section_as_ctf): Support .ctf archives using
124 ctf_arc_bufopen. Automatically load the .ctf member of such
125 archives as the parent of all other members, unless specifically
126 overridden via --ctf-parent. Split out dumping code into...
127 (dump_ctf_archive_member): ... here, as in objdump, and call
128 it once per archive member.
129 (dump_ctf_indent_lines): Code style fix.
131 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
133 * configure.ac [--enable-libctf]: New, default yes.
134 Set ENABLE_LIBCTF accordingly.
135 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
136 * configure: Regenerate.
137 * config.in: Regenerate.
138 * Makefile.in: Regenerate.
139 * aclocal.m4: Regenerate.
140 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
141 (option_values): Likewise.
142 (long_options): Likewise.
144 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
145 (make_ctfsect): Likewise.
146 (dump_ctf_archive_member): Likewise.
147 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
148 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
149 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
151 (process_section_contents): Likewise.
152 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
153 (dump_ctf_indent_lines): Likewise.
154 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
156 2020-06-26 Jan Beulich <jbeulich@suse.com>
158 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
159 redundant text from x86 specific part of -M section.
161 2020-06-26 Pat Bernardi <bernardi@adacore.com>
163 * readelf.c (display_m68k_gnu_attribute): New function.
164 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
166 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
169 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
170 * testsuite/binutils-all/pr26160.r: Likewise.
171 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
173 2020-06-23 Nick Clifton <nickc@redhat.com>
176 * dwarf.c (fetch_indexed_string): Detect and handle old style
177 .debug_str_offset tables.
178 (display_debug_str_offsets): Likewise. Also add support for
179 .debug_str_offsets.dwo sections.
181 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
184 * testsuite/binutils-all/pr26112.o.bz2: New file.
185 * testsuite/binutils-all/pr26112.r: Likewise.
186 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
188 2020-06-23 Alan Modra <amodra@gmail.com>
190 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
191 remote_file delete command.
193 2020-06-22 Nick Clifton <nickc@redhat.com>
196 * dwarf.c (display_debug_str_offsets): Add code to display the
197 contents of the .debug_str_offsets section.
198 (display_debug_macro): Add support for DW_MACRO_define_strx and
201 2020-06-22 Saagar Jha <saagar@saagarjha.com>
203 * od-macho.c: Dump linkedit data for new load commands.
205 2020-06-19 Alan Modra <amodra@gmail.com>
207 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
208 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
209 (run_dump_test): Use check_relro_support to decide whether to pass
210 extra ld option "-z norelro".
212 2020-06-11 Alan Modra <amodra@gmail.com>
214 * readelf.c (process_mips_specific): Don't alloc memory for
215 Elf_Internal_Options.
217 2020-06-11 Alan Modra <amodra@gmail.com>
219 * readelf.c (process_mips_specific): Assert size of internal
220 types match size of external types, and simplify allocation of
221 internal buffer. Catch possible integer overflow when sanity
222 checking option size. Don't assume options are a regular array.
223 Sanity check reginfo option against option size. Use PRI macros
226 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
229 * mclex.c (yylex): Reject lines that reach end-of-file without a
230 terminating newline character.
232 2020-06-08 Nick Clifton <nickc@redhat.com>
235 * doc/binutils.texi (strings): Fix typo.
237 2020-06-08 Nick Clifton <nickc@redhat.com>
240 * dwarf.c (process_debug_info): Check that there is space in the
241 debug_information array before filling in an entry.
243 2020-06-06 Alan Modra <amodra@gmail.com>
245 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
247 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
250 * mclex.c (yylex): Add test for an empty input stream.
252 2020-06-04 Stephen Casner <casner@acm.org>
254 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
255 for test using section pseudo-ops compatible with pdp11.
256 * testsuite/binutils-all/objcopy.exp: Select alternate source.
258 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
260 * objdump.c (disassemble_data): Set disasm_info.endian_code to
261 disasm_info.endian after the latter is initialized to the
262 endianness reported by BFD.
264 2020-06-04 Alan Modra <amodra@gmail.com>
266 * testsuite/binutils-all/i386/i386.exp: Remove global directive
268 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
269 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
271 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
273 * windmc.h (struct mc_node): Add id_typecast field.
274 * mcparse.y (message): Initialise the id_typecast field.
275 * windmc.c (write_dbg): Use the id_typecast field as a parameter
276 when calling write_dbg_define.
277 (write_header): Likewise.
279 2020-06-03 Alan Modra <amodra@gmail.com>
282 * objcopy.c (copy_relocations_in_section): Free relpp on error.
283 Don't accidentally free isection->orelocation.
285 2020-06-02 Alan Modra <amodra@gmail.com>
287 * testsuite/binutils-all/ar.exp (obj): Set up object file name
288 extension. Use throughout. Don't completely exclude non-ELF
289 alpha targets. Run long_filenames test for tic30. Exclude thin
290 archive tests for aix, ecoff and vms.
291 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
292 extension. Use throughout. Don't exclude non-ELF alpha targets
295 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
297 * MAINTAINERS (Xtensa): Add myself as maintainer.
299 2020-05-23 Alan Modra <amodra@gmail.com>
301 * testsuite/binutils-all/ar.exp (many_files): New test.
303 2020-05-21 Alan Modra <amodra@gmail.com>
305 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
306 * dlltool.c: Likewise.
307 * elfcomm.c: Likewise.
309 * readelf.c: Likewise.
311 * windmc.c: Likewise.
312 * windres.c: Likewise.
313 * wrstabs.c: Likewise.
315 2020-05-21 Alan Modra <amodra@gmail.com>
317 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
320 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
322 * dwarf.c: Updated since DECLARE_CSR is changed.
324 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
327 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
328 segment doesn't match the .dynamic section and checks are
330 (struct filedata): Add dynamic_symtab_section and
331 dynamic_strtab_section fields.
332 (process_section_headers): Set dynamic_symtab_section to the
333 .dynsym section. Set dynamic_strtab_section to the .dynstr
335 (process_dynamic_section): Warn if the .dynsym section doesn't
336 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
337 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
339 2020-05-19 Alan Modra <amodra@gmail.com>
341 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
342 (replace_members): Use bfd_get_filename rather than accessing
343 bfd->filename directly.
344 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
345 * binemul.c (do_ar_emul_append): Likewise.
346 * coffgrok.c (coff_grok): Likewise.
348 2020-05-18 Stafford Horne <shorne@gmail.com>
350 * MAINTAINERS (OR1K): Add myself as maintainer.
352 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
354 * doc/binutils.texi: Mention 'entry address' in the set-start and
355 adjust-start options descriptions.
357 2020-05-05 Nick Clifton <nickc@redhat.com>
359 * dwarf.c (do_checks): New global variable.
360 (display_formatted_table): Warn about an unexpected number of
361 columns in the table, if checks are enabled. Do not complain
362 about the lack of data following the number of entries in the
363 table if the table is empty.
364 (display_debug_lines_decoded): Only warn about an unexpected
365 number of columns in a table if checks are enabled.
366 * dwarf.h (do_checks): Add a prototype.
367 * elfcomm.c (error): Remove weak attribute.
369 * readelf.c (do_checks): Delete.
371 (process_section_headers): Only warn about empty sections if
374 2020-05-04 Fangrui Song <maskray@google.com>
376 * objcopy.c (copy_object): Allow empty section.
377 * testsuite/binutils-all/update-section.exp: Add test.
379 2020-05-04 Nick Clifton <nickc@redhat.com>
382 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
383 supicious number of entries for DWARF-5 format directory and file
384 name tables. Do not display file name table header if the table
385 is empty. Do not allocate space for empty tables.
387 2020-05-04 Alan Modra <amodra@gmail.com>
389 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
390 section. Don't assume endian of host matches nds32 target. Free
393 2020-05-01 Alan Modra <amodra@gmail.com>
394 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
396 * objdump.c (disassemble_bytes): Don't scan for zeros when
397 disassembling zeros. Translate "resuming at file offset" message.
398 Formatting. Replace some signed variables with unsigned.
400 2020-04-30 Alex Coplan <alex.coplan@arm.com>
402 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
404 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
406 2020-04-30 Nick Clifton <nickc@redhat.com>
408 * testsuite/lib/binutils-common.exp (check_pie_support): New
411 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
413 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
414 range_entries for the same offset.
416 2020-04-29 Nick Clifton <nickc@redhat.com>
418 * readelf.c (warn): New function - like elfcomm.c version but only
419 produces output if warnings are enabled.
420 (struct options): Add --lint and --enable-checks.
421 (usage): Add entry for --lint.
422 (parse_args): Handle -L. If checks are enabled but no dumps have
423 been selected then enable all dumps.
424 (process_section_headers): Replace long if-then-else sequence with
425 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
426 SHT_PROGBITS sections.
427 (process_file): Do not complain if the file is an archive and lint
428 mode has been enabled.
429 * elfcomm.c (error): Make the function weak.
431 * NEWS: Mention the new feature.
432 * doc/binutils.texi: Document the new feature.
433 * dwarf.h (report_leb_status): Add file name and line number
434 parameters. Include them in the diagnostic output.
435 (READ_ULEB): Pass file and line number to report_leb_status.
436 (READ_SLEB): Likewise.
437 * dwarf.c (read_and_print_leb128): Pass file and line number to
439 * testsuite/binutils-all/readelf.exp: Add test of new feature.
440 * testsuite/binutils-all/zero-sec.s: New test source file.
441 * testsuite/binutils-all/zero-sec.r: Expected output from new
444 2020-04-29 Nick Clifton <nickc@redhat.com>
446 * po/sr.po: Updated Serbian translation.
448 2020-04-26 Alan Modra <amodra@gmail.com>
450 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
451 read before dereferencing, and gracefully return. Remove
452 gnu_hash_error variable. Free gnu hash arrays if number of
455 2020-04-24 Alan Modra <amodra@gmail.com>
457 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
459 (process_dynamic_section): Call get_num_dynamic_syms once rather
460 than in segment loop. Break out of segment loop on a successful
461 load of dynamic symbols. Formatting.
462 (process_object): Return error status from process_dynamic_section.
464 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
466 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
467 * elf.c (elfcore_grok_arc_v2): New function.
468 (elfcore_grok_note): Call the new function to handle the corresponding
470 (elfcore_write_arc_v2): New function.
471 (elfcore_write_register_note): Call the new function to handle the
472 corresponding pseudo-sections.
474 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
477 * readelf.c (is_none_reloc): Recognize
478 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
479 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
481 2020-04-22 Nick Clifton <nickc@redhat.com>
483 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
485 2020-04-22 Alan Modra <amodra@gmail.com>
487 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
488 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
489 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
490 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
491 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
492 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
493 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
494 (dynamic_section, symtab_shndx_list, group_count, section_groups),
495 (section_headers_groups): Move to struct filedata. Update use
498 2020-04-22 Alan Modra <amodra@gmail.com>
500 * readelf.c (struct dump_data): New, used..
501 (cmdline): ..here, and..
502 (struct filedata): ..here. Adjust all uses.
503 (request_dump_bynumber, request_dump, parse_args): Pass in a
504 struct dump_data* rather than Filedata*. Adjust callers.
505 (main): Don't set cmdline.file_name.
507 2020-04-20 Alan Modra <amodra@gmail.com>
509 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
512 2020-04-20 Alan Modra <amodra@gmail.com>
514 * readelf.c (process_section_headers): Free dynamic symbols etc.
517 2020-04-20 Alan Modra <amodra@gmail.com>
519 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
520 on error without freeing.
521 (process_dynamic_section): Don't recreate dynamic symbols from
522 dynamic tag info when the dynamic symbols have already been
523 read via section headers.
525 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
527 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
528 conditional VDUP instructions are disassembled correctly.
529 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
531 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
532 that VDUP instructions (which are conditional in A32) can be
533 disassembled in thumb mode.
534 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
537 2020-04-17 Alan Modra <amodra@gmail.com>
540 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
542 2020-04-16 Alan Modra <amodra@gmail.com>
544 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
545 --no-addresses description.
547 2020-04-15 Alan Modra <amodra@gmail.com>
549 * objdump.c (no_addresses): New static var.
550 (usage): Print help for --no-addresses.
551 (long_options): Add --no-addresses entry.
552 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
553 (disassemble_bytes): Don't print current line address, or reloc
555 * doc/binutils.texi: Document objdump --no-addresses.
557 2020-04-15 Alan Modra <amodra@gmail.com>
560 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
561 reading buckets or chains fails.
563 2020-04-15 Alan Modra <amodra@gmail.com>
565 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
568 2020-04-15 Alan Modra <amodra@gmail.com>
570 * readelf.c (get_group_flags): Translate text.
571 (get_file_type, get_symbol_binding, get_symbol_type),
572 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
574 2020-04-15 Alan Modra <amodra@gmail.com>
577 * readelf.c (get_num_dynamic_syms): Typo fix.
579 2020-04-14 Alan Modra <amodra@gmail.com>
581 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
582 possibility of overflow when checking number of conflicts.
584 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
587 * readelf.c (nbuckets): New.
591 (ngnubuckets): Likewise.
592 (gnubuckets): Likewise.
593 (gnuchains): Likewise.
594 (mipsxlat): Likewise.
595 (ngnuchains): Likewise.
596 (gnusymidx): Likewise.
597 (VALID_SYMBOL_NAME): Likewise.
598 (VALID_DYNAMIC_NAME): Use it.
599 (get_dynamic_data): Moved before process_dynamic_section.
600 (get_num_dynamic_syms): New function.
601 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
602 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
603 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
605 (get_symbol_index_type): Don't print "bad section index" when
606 there is no section header.
607 (print_dynamic_symbol): Rewrite.
608 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
611 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
613 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
614 enable on *-*-solaris*.
616 2020-03-30 Nick Clifton <nickc@redhat.com>
619 * objcopy.c (copy_object): When copying PE format files set the
620 timestamp field in the pe_data structure if the preserve_dates
622 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
623 --preserve-dates in place of the -p option, in order to make its
626 2020-03-28 Alan Modra <amodra@gmail.com>
628 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
629 clear_xfail hppa*-*-*elf*. Revert mips xfails.
631 2020-03-28 Alan Modra <amodra@gmail.com>
633 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
634 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
635 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
636 test. Pass "-p" to objcopy for the executable test.
638 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
641 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
642 specify whether an object file or executable should be built and tested.
643 Change test names to report whether an object file or executable is
645 * testsuite/binutils-all/pr25662.ld: New test.
646 * testsuite/binutils-all/pr25662.s: New test.
648 2020-03-27 Alan Modra <amodra@gmail.com>
650 * readelf.c (process_archive): Don't double free qualified_name.
651 Don't break out of loop with "negative" archive_file_size, just
652 set file offset to max.
654 2020-03-25 Alan Modra <amodra@gmail.com>
656 * readelf.c (process_archive): Prevent endless loop.
658 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
661 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
662 with bfd_get_symbol_version_string.
663 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
664 * objdump.c (objdump_print_symname): Likewise.
666 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
669 * nm.c (SYM_NAME): Removed.
670 (print_symname): Add a pointer to struct extended_symbol_info
671 argument. Call _bfd_elf_get_symbol_version_name to get symbol
673 (print_symdef_entry): Pass NULL to print_symname.
674 (print_symbol_info_bsd): Update call to print_symname.
675 (print_symbol_info_sysv): Likewise.
676 (print_symbol_info_posix): Likewise.
678 2020-03-24 Alan Modra <amodra@gmail.com>
680 * readelf.c (process_mips_specific): Free iconf on error path.
682 2020-03-23 Nick Clifton <nickc@redhat.com>
685 * wrstabs.c (stab_pop_type): Replace assertion with error return.
686 * write_stabs_in_sections_debugging_info: Likewise.
687 * stab_enum_type: Likewise.
688 * stab_modify_type: Likewise.
689 * stab_struct_field: Likewise.
690 * stab_end_struct_type: Likewise.
691 * stab_start_class_type: Likewise.
692 * stab_class_static_member: Likewise.
693 * stab_class_baseclass: Likewise.
694 * stab_class_start_method: Likewise.
695 * stab_class_method_var: Likewise.
696 * stab_class_end_method: Likewise.
697 * stab_end_class_type: Likewise.
698 * stab_typedef_type: Likewise.
699 * stab_start_function: Likewise.
700 * stab_end_block: Likewise.
701 * stab_lineno: Likewise.
703 2020-03-20 Nick Clifton <nickc@redhat.com>
705 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
706 (process_section_headers): Check the return value from
707 get_compression_header.
708 (dump_section_as_strings): Likewise.
709 (dump_section_as_bytes): Likewise.
710 (load_specific_debug_section): Likewise.
712 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
714 * ar.c (main): Update bfd_plugin_set_program_name call.
715 * nm.c (main): Likewise.
717 2020-03-19 Nick Clifton <nickc@redhat.com>
720 * testsuite/binutils-all/dw4.s: New test source file.
721 * testsuite/binutils-all/nm.exp: Run the new test.
723 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
725 * readelf.c (process_symbol_table): Use unsigned long for si.
727 2020-03-19 Alan Modra <amodra@gmail.com>
729 * elfcomm.c: Don't include bfd.h or bucomm.h.
730 (program_name): Declare.
731 (process_archive_index_and_symbols): Replace bfd_boolean with int,
732 and substitute FALSE and TRUE.
733 (setup_archive, setup_nested_archive): Likewise.
734 * elfcomm.h: Likewise.
736 2020-03-19 Alan Modra <amodra@gmail.com>
738 * readelf.c (process_archive): Always return via path freeing
741 2020-03-19 Alan Modra <amodra@gmail.com>
743 * readelf.c (process_netbsd_elf_note): Validate descsz before
744 accessing descdata. Formatting.
746 2020-03-19 Alan Modra <amodra@gmail.com>
748 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
749 * elfcomm.h (setup_archive): Update prototype.
751 2020-03-16 Alan Modra <amodra@gmail.com>
753 * readelf.c (get_symbols): New function.
754 (process_relocs, ia64_process_unwind, hppa_process_unwind),
755 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
757 2020-03-16 Alan Modra <amodra@gmail.com>
759 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
760 Detect shift overflows and check that terminating byte is found.
761 Print an error on a bad uleb128.
763 2020-03-14 Alan Modra <amodra@gmail.com>
765 * readelf.c (process_file): Clean ba_cache.
767 2020-03-14 Alan Modra <amodra@gmail.com>
769 * elfcomm.h (setup_archive): Update prototype.
770 * elfcomm.c (setup_archive): Add file_size parameter and sanity
771 check longnames_size.
772 (setup_nested_archive): Get file size and pass to setup_archive.
773 * elfedit.c (process_archive): Likewise.
774 * readelf.c (process_archive): Pass filedata->file_size to
777 2020-03-14 Alan Modra <amodra@gmail.com>
779 * readelf.c (dump_section_as_strings): Free memory on error exit.
780 (dump_section_as_bytes, process_notes_at): Likewise.
781 (get_build_id): Free enote.
783 2020-03-13 Kamil Rytarowski <n54@gmx.com>
785 * readelf.c (get_netbsd_elfcore_note_type): Add support for
786 NT_NETBSDCORE_LWPSTATUS notes.
788 2020-03-13 Alan Modra <amodra@gmail.com>
790 * elfcomm.c (get_archive_member_name): Always return malloc'd
792 * elfedit.c (process_archive): Tidy memory on all return paths.
793 * readelf.c (process_archive): Likewise.
794 (process_symbol_table): Likewise.
795 (ba_cache): New, replacing ..
796 (get_symbol_for_build_attribute): ..static vars here. Free
797 strtab and symtab before loading new ones. Reject symtab without
798 valid strtab in loop, breaking out of loop on valid symtab.
799 (process_file): Free ba_cache symtab and strtab here, resetting
802 2020-03-12 Alan Modra <amodra@gmail.com>
804 * readelf.c (process_section_headers): Don't just set
805 filedata->section_headers NULL, free it first. Similarly for
806 dynamic_symbols, dynamic_strings, dynamic_syminfo and
807 symtab_shndx_list. Zero associated counts too.
808 (process_object): Free symtab_shndx_list.
809 (process_file): Free various allocated filedata tables.
811 2020-03-11 Nick Clifton <nickc@redhat.com>
815 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
816 li_segment_size fields.
817 * dwarf.c (read_debug_line_header): Record the address size and
818 segment selector size values (if present) in the lineinfo
820 (display_formatted_table): Warn if the format count is empty but
821 the table itself is not empty.
822 Display the format count and entry count at the start of the table
824 (display_debug_lines_raw): Display the address size and segement
825 selector size fields, if present.
826 * testsuite/binutils-all/dw5.W: Update expected output.
828 2020-03-11 Alan Modra <amodra@gmail.com>
831 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
832 pad_to_set on second block of code dealing with padding.
833 Replace "c" with "num_sec" and don't recalculate number of
834 sections on second block. Size arrays using sizeof (element)
835 rather than sizeof (element type).
837 2020-03-10 Alan Modra <amodra@gmail.com>
839 * objdump.c (disassemble_section): Don't call qsort unless
840 sym count is at least two.
841 (disassemble_data): Don't call memcpy with NULL src.
843 2020-03-09 Alan Modra <amodra@gmail.com>
846 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
847 to get_data rather than multiplying.
848 (dump_ia64_vms_dynamic_relocs): Likewise.
849 (process_version_sections): Correct order of size and nmemb args
851 (process_mips_specific): Likewise.
853 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
855 * readelf.c (get_dynamic_data): Replace "memory chekers" with
856 "memory checkers" in comments.
858 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
861 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
862 * doc/Makefile.in: Re-generate.
864 2020-03-06 Nick Clifton <nickc@redhat.com>
866 * objcopy.c (check_new_section_flags): New function. Reject the
867 SEC_COFF_SHARED flag if the target is not a COFF binary.
868 (copy_object): Call check_new_section_flags.
869 (setup_section): Likewise.
870 * doc/binutils.texi (objcopy): Add a note that the 'share' section
871 flag cannot be applied to ELF binaries.
873 2020-03-06 Alan Modra <amodra@gmail.com>
876 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
878 2020-03-05 Alan Modra <amodra@gmail.com>
881 * objcopy.c (filter_symbols): Don't segfault on NULL
882 prefix_symbols_string.
884 2020-03-04 Christian Eggers <ceggers@gmx.de>
886 * objcopy.c (copy_object): Convert from bytes to octets for
887 --gap-fill and --pad-to.
889 2020-03-03 Nick Clifton <nickc@redhat.com>
892 * prdbg.c (pr_tag_type): Remove call to abort.
894 2020-03-02 Aaron Merey <amerey@redhat.com>
896 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
899 2020-03-02 Nick Clifton <nickc@redhat.com>
902 * readelf.c (dump_section_as_strings): Display new-line characters
903 as \n and then insert a line break.
904 * testsuite/binutils-all/pr25543.s: New test.
905 * testsuite/binutils-all/pr25543.d: Test driver.
906 * testsuite/binutils-all/readelf.exp: Run the new test.
908 2020-02-27 Nick Clifton <nickc@redhat.com>
911 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
912 get_data is unable to load the string table.
914 2020-02-26 Alan Modra <amodra@gmail.com>
916 * elfedit.c: Indent labels correctly.
917 * readelf.c: Likewise.
918 * resres.c: Likewise.
920 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
923 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
924 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
926 2020-02-24 Nick Clifton <nickc@redhat.com>
929 * doc/binutils.texi (objdump): Fix typo in description of
932 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
934 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
937 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
939 * objdump.c (show_line): call bfd_demangle when using do_demangle.
941 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
943 * configure: Regenerate.
945 2020-02-10 Fangrui Song <maskray@google.com>
947 * objcopy.c (parse_flags): Handle "exclude".
948 * doc/binutils.texi: Document the support.
950 2020-02-10 Aaron Merey <amerey@redhat.com>
952 * binutils/testsuite/binutils-all/debuginfod.exp:
953 Replace set ::env with setenv.
954 Start server before setting environment variable.
955 Specify tmpdir as the location of the server's
957 Check additional server metrics at start-up.
959 2020-02-07 Nick Clifton <nickc@redhat.com>
961 * README-how-to-make-a-release: Add note about updating the
962 GAS/NEWS URL in the next release.
964 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
967 * readelf.c (get_machine_flags): Add support for Z80N machine
970 2020-02-07 Nick Clifton <nickc@redhat.com>
972 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
973 of the truncated file name.
975 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
977 * objdump.c (print_jump_visualisation): New function.
978 (disassemble_bytes): Call new function.
980 2020-02-06 Alan Modra <amodra@gmail.com>
982 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
984 (supports_gnu_osabi): New procedure.
985 (is_generic): New, from ld-lib.exp.
986 (supports_gnu_unique): Use the above.
988 2020-02-04 Alan Modra <amodra@gmail.com>
990 * Makefile.am (CFILES): Add od-elf32_avr.c.
991 * Makefile.in: Regenerate.
992 * po/POTFILES.in: Regenerate.
994 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
996 * readelf.c (dump_relocations, dump_relocations)
997 (decode_arm_unwind_bytecode, process_dynamic_section)
998 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1001 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1003 * coffdump.c (program_name): Drop redundant definition.
1004 * srconv.c (program_name): Likewise
1005 * sysdump.c (program_name): Likewise
1007 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1010 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1011 same file with different section pointers.
1013 2020-02-01 Nick Clifton <nickc@redhat.com>
1015 * README-how-to-make-a-release: Update with more details on the
1016 release making process.
1018 2020-01-31 Nick Clifton <nickc@redhat.com>
1020 * po/sv.po: Updated Swedish translation.
1022 2020-01-28 Nick Clifton <nickc@redhat.com>
1024 * readelf.c (get_build_id): Simplify warning message about corrupt
1025 notes encountered whilst scanning for the build-id.
1027 2020-01-27 Roland McGrath <mcgrathr@google.com>
1029 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1030 for overlapping ranges so that (A == B) == (B == A) holds.
1032 2020-01-27 Alan Modra <amodra@gmail.com>
1034 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1035 case statement with switch statement.
1037 2020-01-24 Nick Clifton <nickc@redhat.com>
1039 * readelf.c (get_build_id): Fix warning messages about corrupt
1042 2020-01-23 Nick Clifton <nickc@redhat.com>
1044 * po/fr.po: Updated French translation.
1046 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1049 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1051 2020-01-20 Nick Clifton <nickc@redhat.com>
1053 * po/pt.po: Updated Portuguese translation.
1054 * po/uk.po: Updated Ukranian translation.
1056 2020-01-18 Nick Clifton <nickc@redhat.com>
1058 * README-how-to-make-a-release: Update notes on how to cut a
1059 branch for a release.
1061 2020-01-18 Nick Clifton <nickc@redhat.com>
1063 * configure: Regenerate.
1064 * po/binutils.pot: Regenerate.
1066 2020-01-18 Nick Clifton <nickc@redhat.com>
1068 Binutils 2.34 branch created.
1070 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1072 * objdump.c (jump_info_visualize_address): Discard jumps that are
1074 (disassemble_bytes): Only compute the maximum level if jumps were
1077 2020-01-13 Nick Clifton <nickc@redhat.com>
1079 * objdump.c (disassemble_bytes): Remove C99-ism.
1080 * testsuite/binutils-all/debuginfod.exp: New tests.
1082 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1084 * objdump.c (visualize_jumps, color_output, extended_color_output)
1085 (detected_jumps): New variables.
1086 (usage): Add the new jump visualization options.
1087 (option_values): Add new option value.
1088 (long_options): Add the new option.
1089 (jump_info_new, jump_info_free): New functions.
1090 (jump_info_min_address, jump_info_max_address): Likewise.
1091 (jump_info_end_address, jump_info_is_start_address): Likewise.
1092 (jump_info_is_end_address, jump_info_size): Likewise.
1093 (jump_info_unlink, jump_info_insert): Likewise.
1094 (jump_info_add_front, jump_info_move_linked): Likewise.
1095 (jump_info_intersect, jump_info_merge): Likewise.
1096 (jump_info_sort, jump_info_visualize_address): Likewise.
1097 (disassemble_jumps): New function - used to locate jumps.
1098 (disassemble_bytes): Add ascii art generation.
1099 (disassemble_section): Add scan to locate jumps.
1100 (main): Parse the new visualization option.
1101 * doc/binutils.texi: Document the new feature.
1102 * NEWS: Mention the new feature.
1104 2020-01-13 Alan Modra <amodra@gmail.com>
1108 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1109 fde_fc col_type and col_offset.
1110 * readelf.c (apply_relocations): Move symsec check earlier.
1111 (free_debug_section): Free reloc_info.
1112 (process_notes_at): Free pnotes on error path.
1113 (process_object): Free dump_sects here..
1114 (process_archive): ..not here.
1116 2020-01-13 Alan Modra <amodra@gmail.com>
1119 * nm.c (display_rel_file): Free dyn_syms.
1121 2020-01-09 Nick Clifton <nickc@redhat.com>
1124 * objcopy.c (empty_name): New variable.
1125 (need_sym_before): Prevent an attempt to free a static variable.
1126 (filter_symbols): Avoid strcmp test by checking for pointer
1129 2020-01-09 Nick Clifton <nickc@redhat.com>
1131 * po/zh_TW.po: Updated Traditional Chinese translation.
1133 2020-01-09 Aaron Merey <amerey@redhat.com>
1135 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1136 * Makefile.in: Regenerate.
1138 * config.in: Regenerate.
1139 * configure: Regenerate.
1140 * configure.ac: Call AC_DEBUGINFOD.
1141 * doc/Makefile.in: Regenerate.
1142 * doc/binutils.texi: Add section on using binutils
1144 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1145 Query debuginfod servers for the target debug file.
1146 (load_separate_debug_info): Call
1147 debuginfod_fetch_separate_debug_info if configured with
1149 (load_separate_debug_files): Add file argument to
1150 load_separate_debug_info calls.
1151 * dwarf.h (get_build_id): Add declaration.
1152 * objdump.c (get_build_id): New function. Get build-id of file.
1153 * readelf.c (get_build_id): Likewise.
1154 * testsuite/binutils-all/debuginfod.exp: New tests.
1155 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1158 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1160 * readelf.c: Add support for new Z*) relocations and machine
1163 2020-01-01 Alan Modra <amodra@gmail.com>
1165 Update year range in copyright notice of all files.
1167 For older changes see ChangeLog-2019
1169 Copyright (C) 2020 Free Software Foundation, Inc.
1171 Copying and distribution of this file, with or without modification,
1172 are permitted in any medium without royalty provided the copyright
1173 notice and this notice are preserved.
1179 version-control: never