1 2020-07-02 Nick Clifton <nickc@redhat.com>
4 * readelf.c (print_symbol): Handle truncation of symbol names.
5 (options): Add -T/--silent-truncation option.
6 (parse_args): Handle the option.
7 (print_dynamic_symbol): Correct calculation of width available to
9 * doc/binutils.texi: Document the -T option to readelf.
10 * NEWS: Mention the new feature.
12 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
14 * NEWS: Mention x86 NaCl target support removal.
15 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
16 x86 NaCl target support.
17 * testsuite/binutils-all/elfedit-1.d: Likewise.
18 * testsuite/binutils-all/i386/i386.exp: Likewise.
19 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
20 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
21 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
22 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
23 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
24 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
25 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
26 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
27 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
28 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
29 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
30 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
32 2020-06-30 Nick Clifton <nickc@redhat.com>
34 * dwarf.c (read_and_display_attr_value): Support
35 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
38 2020-06-30 Alan Modra <amodra@gmail.com>
40 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
43 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
45 * dwarf.c (display_debug_str_offsets): Rename local variable
46 index to idx. Move to top of function.
48 2020-06-29 Alan Modra <amodra@gmail.com>
50 * dwarf.c: Use C style comments.
53 2020-06-27 Alan Modra <amodra@gmail.com>
55 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
57 (release_archive): Set fields of arch to NULL after freeing.
59 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
61 * readelf.c (dump_section_as_ctf): Support .ctf archives using
62 ctf_arc_bufopen. Automatically load the .ctf member of such
63 archives as the parent of all other members, unless specifically
64 overridden via --ctf-parent. Split out dumping code into...
65 (dump_ctf_archive_member): ... here, as in objdump, and call
66 it once per archive member.
67 (dump_ctf_indent_lines): Code style fix.
69 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
71 * configure.ac [--enable-libctf]: New, default yes.
72 Set ENABLE_LIBCTF accordingly.
73 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
74 * configure: Regenerate.
75 * config.in: Regenerate.
76 * Makefile.in: Regenerate.
77 * aclocal.m4: Regenerate.
78 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
79 (option_values): Likewise.
80 (long_options): Likewise.
82 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
83 (make_ctfsect): Likewise.
84 (dump_ctf_archive_member): Likewise.
85 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
86 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
87 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
89 (process_section_contents): Likewise.
90 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
91 (dump_ctf_indent_lines): Likewise.
92 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
94 2020-06-26 Jan Beulich <jbeulich@suse.com>
96 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
97 redundant text from x86 specific part of -M section.
99 2020-06-26 Pat Bernardi <bernardi@adacore.com>
101 * readelf.c (display_m68k_gnu_attribute): New function.
102 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
104 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
107 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
108 * testsuite/binutils-all/pr26160.r: Likewise.
109 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
111 2020-06-23 Nick Clifton <nickc@redhat.com>
114 * dwarf.c (fetch_indexed_string): Detect and handle old style
115 .debug_str_offset tables.
116 (display_debug_str_offsets): Likewise. Also add support for
117 .debug_str_offsets.dwo sections.
119 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
122 * testsuite/binutils-all/pr26112.o.bz2: New file.
123 * testsuite/binutils-all/pr26112.r: Likewise.
124 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
126 2020-06-23 Alan Modra <amodra@gmail.com>
128 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
129 remote_file delete command.
131 2020-06-22 Nick Clifton <nickc@redhat.com>
134 * dwarf.c (display_debug_str_offsets): Add code to display the
135 contents of the .debug_str_offsets section.
136 (display_debug_macro): Add support for DW_MACRO_define_strx and
139 2020-06-22 Saagar Jha <saagar@saagarjha.com>
141 * od-macho.c: Dump linkedit data for new load commands.
143 2020-06-19 Alan Modra <amodra@gmail.com>
145 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
146 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
147 (run_dump_test): Use check_relro_support to decide whether to pass
148 extra ld option "-z norelro".
150 2020-06-11 Alan Modra <amodra@gmail.com>
152 * readelf.c (process_mips_specific): Don't alloc memory for
153 Elf_Internal_Options.
155 2020-06-11 Alan Modra <amodra@gmail.com>
157 * readelf.c (process_mips_specific): Assert size of internal
158 types match size of external types, and simplify allocation of
159 internal buffer. Catch possible integer overflow when sanity
160 checking option size. Don't assume options are a regular array.
161 Sanity check reginfo option against option size. Use PRI macros
164 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
167 * mclex.c (yylex): Reject lines that reach end-of-file without a
168 terminating newline character.
170 2020-06-08 Nick Clifton <nickc@redhat.com>
173 * doc/binutils.texi (strings): Fix typo.
175 2020-06-08 Nick Clifton <nickc@redhat.com>
178 * dwarf.c (process_debug_info): Check that there is space in the
179 debug_information array before filling in an entry.
181 2020-06-06 Alan Modra <amodra@gmail.com>
183 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
185 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
188 * mclex.c (yylex): Add test for an empty input stream.
190 2020-06-04 Stephen Casner <casner@acm.org>
192 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
193 for test using section pseudo-ops compatible with pdp11.
194 * testsuite/binutils-all/objcopy.exp: Select alternate source.
196 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
198 * objdump.c (disassemble_data): Set disasm_info.endian_code to
199 disasm_info.endian after the latter is initialized to the
200 endianness reported by BFD.
202 2020-06-04 Alan Modra <amodra@gmail.com>
204 * testsuite/binutils-all/i386/i386.exp: Remove global directive
206 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
207 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
209 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
211 * windmc.h (struct mc_node): Add id_typecast field.
212 * mcparse.y (message): Initialise the id_typecast field.
213 * windmc.c (write_dbg): Use the id_typecast field as a parameter
214 when calling write_dbg_define.
215 (write_header): Likewise.
217 2020-06-03 Alan Modra <amodra@gmail.com>
220 * objcopy.c (copy_relocations_in_section): Free relpp on error.
221 Don't accidentally free isection->orelocation.
223 2020-06-02 Alan Modra <amodra@gmail.com>
225 * testsuite/binutils-all/ar.exp (obj): Set up object file name
226 extension. Use throughout. Don't completely exclude non-ELF
227 alpha targets. Run long_filenames test for tic30. Exclude thin
228 archive tests for aix, ecoff and vms.
229 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
230 extension. Use throughout. Don't exclude non-ELF alpha targets
233 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
235 * MAINTAINERS (Xtensa): Add myself as maintainer.
237 2020-05-23 Alan Modra <amodra@gmail.com>
239 * testsuite/binutils-all/ar.exp (many_files): New test.
241 2020-05-21 Alan Modra <amodra@gmail.com>
243 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
244 * dlltool.c: Likewise.
245 * elfcomm.c: Likewise.
247 * readelf.c: Likewise.
249 * windmc.c: Likewise.
250 * windres.c: Likewise.
251 * wrstabs.c: Likewise.
253 2020-05-21 Alan Modra <amodra@gmail.com>
255 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
258 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
260 * dwarf.c: Updated since DECLARE_CSR is changed.
262 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
265 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
266 segment doesn't match the .dynamic section and checks are
268 (struct filedata): Add dynamic_symtab_section and
269 dynamic_strtab_section fields.
270 (process_section_headers): Set dynamic_symtab_section to the
271 .dynsym section. Set dynamic_strtab_section to the .dynstr
273 (process_dynamic_section): Warn if the .dynsym section doesn't
274 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
275 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
277 2020-05-19 Alan Modra <amodra@gmail.com>
279 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
280 (replace_members): Use bfd_get_filename rather than accessing
281 bfd->filename directly.
282 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
283 * binemul.c (do_ar_emul_append): Likewise.
284 * coffgrok.c (coff_grok): Likewise.
286 2020-05-18 Stafford Horne <shorne@gmail.com>
288 * MAINTAINERS (OR1K): Add myself as maintainer.
290 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
292 * doc/binutils.texi: Mention 'entry address' in the set-start and
293 adjust-start options descriptions.
295 2020-05-05 Nick Clifton <nickc@redhat.com>
297 * dwarf.c (do_checks): New global variable.
298 (display_formatted_table): Warn about an unexpected number of
299 columns in the table, if checks are enabled. Do not complain
300 about the lack of data following the number of entries in the
301 table if the table is empty.
302 (display_debug_lines_decoded): Only warn about an unexpected
303 number of columns in a table if checks are enabled.
304 * dwarf.h (do_checks): Add a prototype.
305 * elfcomm.c (error): Remove weak attribute.
307 * readelf.c (do_checks): Delete.
309 (process_section_headers): Only warn about empty sections if
312 2020-05-04 Fangrui Song <maskray@google.com>
314 * objcopy.c (copy_object): Allow empty section.
315 * testsuite/binutils-all/update-section.exp: Add test.
317 2020-05-04 Nick Clifton <nickc@redhat.com>
320 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
321 supicious number of entries for DWARF-5 format directory and file
322 name tables. Do not display file name table header if the table
323 is empty. Do not allocate space for empty tables.
325 2020-05-04 Alan Modra <amodra@gmail.com>
327 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
328 section. Don't assume endian of host matches nds32 target. Free
331 2020-05-01 Alan Modra <amodra@gmail.com>
332 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
334 * objdump.c (disassemble_bytes): Don't scan for zeros when
335 disassembling zeros. Translate "resuming at file offset" message.
336 Formatting. Replace some signed variables with unsigned.
338 2020-04-30 Alex Coplan <alex.coplan@arm.com>
340 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
342 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
344 2020-04-30 Nick Clifton <nickc@redhat.com>
346 * testsuite/lib/binutils-common.exp (check_pie_support): New
349 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
351 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
352 range_entries for the same offset.
354 2020-04-29 Nick Clifton <nickc@redhat.com>
356 * readelf.c (warn): New function - like elfcomm.c version but only
357 produces output if warnings are enabled.
358 (struct options): Add --lint and --enable-checks.
359 (usage): Add entry for --lint.
360 (parse_args): Handle -L. If checks are enabled but no dumps have
361 been selected then enable all dumps.
362 (process_section_headers): Replace long if-then-else sequence with
363 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
364 SHT_PROGBITS sections.
365 (process_file): Do not complain if the file is an archive and lint
366 mode has been enabled.
367 * elfcomm.c (error): Make the function weak.
369 * NEWS: Mention the new feature.
370 * doc/binutils.texi: Document the new feature.
371 * dwarf.h (report_leb_status): Add file name and line number
372 parameters. Include them in the diagnostic output.
373 (READ_ULEB): Pass file and line number to report_leb_status.
374 (READ_SLEB): Likewise.
375 * dwarf.c (read_and_print_leb128): Pass file and line number to
377 * testsuite/binutils-all/readelf.exp: Add test of new feature.
378 * testsuite/binutils-all/zero-sec.s: New test source file.
379 * testsuite/binutils-all/zero-sec.r: Expected output from new
382 2020-04-29 Nick Clifton <nickc@redhat.com>
384 * po/sr.po: Updated Serbian translation.
386 2020-04-26 Alan Modra <amodra@gmail.com>
388 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
389 read before dereferencing, and gracefully return. Remove
390 gnu_hash_error variable. Free gnu hash arrays if number of
393 2020-04-24 Alan Modra <amodra@gmail.com>
395 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
397 (process_dynamic_section): Call get_num_dynamic_syms once rather
398 than in segment loop. Break out of segment loop on a successful
399 load of dynamic symbols. Formatting.
400 (process_object): Return error status from process_dynamic_section.
402 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
404 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
405 * elf.c (elfcore_grok_arc_v2): New function.
406 (elfcore_grok_note): Call the new function to handle the corresponding
408 (elfcore_write_arc_v2): New function.
409 (elfcore_write_register_note): Call the new function to handle the
410 corresponding pseudo-sections.
412 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
415 * readelf.c (is_none_reloc): Recognize
416 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
417 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
419 2020-04-22 Nick Clifton <nickc@redhat.com>
421 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
423 2020-04-22 Alan Modra <amodra@gmail.com>
425 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
426 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
427 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
428 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
429 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
430 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
431 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
432 (dynamic_section, symtab_shndx_list, group_count, section_groups),
433 (section_headers_groups): Move to struct filedata. Update use
436 2020-04-22 Alan Modra <amodra@gmail.com>
438 * readelf.c (struct dump_data): New, used..
439 (cmdline): ..here, and..
440 (struct filedata): ..here. Adjust all uses.
441 (request_dump_bynumber, request_dump, parse_args): Pass in a
442 struct dump_data* rather than Filedata*. Adjust callers.
443 (main): Don't set cmdline.file_name.
445 2020-04-20 Alan Modra <amodra@gmail.com>
447 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
450 2020-04-20 Alan Modra <amodra@gmail.com>
452 * readelf.c (process_section_headers): Free dynamic symbols etc.
455 2020-04-20 Alan Modra <amodra@gmail.com>
457 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
458 on error without freeing.
459 (process_dynamic_section): Don't recreate dynamic symbols from
460 dynamic tag info when the dynamic symbols have already been
461 read via section headers.
463 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
465 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
466 conditional VDUP instructions are disassembled correctly.
467 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
469 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
470 that VDUP instructions (which are conditional in A32) can be
471 disassembled in thumb mode.
472 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
475 2020-04-17 Alan Modra <amodra@gmail.com>
478 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
480 2020-04-16 Alan Modra <amodra@gmail.com>
482 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
483 --no-addresses description.
485 2020-04-15 Alan Modra <amodra@gmail.com>
487 * objdump.c (no_addresses): New static var.
488 (usage): Print help for --no-addresses.
489 (long_options): Add --no-addresses entry.
490 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
491 (disassemble_bytes): Don't print current line address, or reloc
493 * doc/binutils.texi: Document objdump --no-addresses.
495 2020-04-15 Alan Modra <amodra@gmail.com>
498 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
499 reading buckets or chains fails.
501 2020-04-15 Alan Modra <amodra@gmail.com>
503 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
506 2020-04-15 Alan Modra <amodra@gmail.com>
508 * readelf.c (get_group_flags): Translate text.
509 (get_file_type, get_symbol_binding, get_symbol_type),
510 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
512 2020-04-15 Alan Modra <amodra@gmail.com>
515 * readelf.c (get_num_dynamic_syms): Typo fix.
517 2020-04-14 Alan Modra <amodra@gmail.com>
519 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
520 possibility of overflow when checking number of conflicts.
522 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
525 * readelf.c (nbuckets): New.
529 (ngnubuckets): Likewise.
530 (gnubuckets): Likewise.
531 (gnuchains): Likewise.
532 (mipsxlat): Likewise.
533 (ngnuchains): Likewise.
534 (gnusymidx): Likewise.
535 (VALID_SYMBOL_NAME): Likewise.
536 (VALID_DYNAMIC_NAME): Use it.
537 (get_dynamic_data): Moved before process_dynamic_section.
538 (get_num_dynamic_syms): New function.
539 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
540 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
541 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
543 (get_symbol_index_type): Don't print "bad section index" when
544 there is no section header.
545 (print_dynamic_symbol): Rewrite.
546 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
549 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
551 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
552 enable on *-*-solaris*.
554 2020-03-30 Nick Clifton <nickc@redhat.com>
557 * objcopy.c (copy_object): When copying PE format files set the
558 timestamp field in the pe_data structure if the preserve_dates
560 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
561 --preserve-dates in place of the -p option, in order to make its
564 2020-03-28 Alan Modra <amodra@gmail.com>
566 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
567 clear_xfail hppa*-*-*elf*. Revert mips xfails.
569 2020-03-28 Alan Modra <amodra@gmail.com>
571 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
572 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
573 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
574 test. Pass "-p" to objcopy for the executable test.
576 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
579 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
580 specify whether an object file or executable should be built and tested.
581 Change test names to report whether an object file or executable is
583 * testsuite/binutils-all/pr25662.ld: New test.
584 * testsuite/binutils-all/pr25662.s: New test.
586 2020-03-27 Alan Modra <amodra@gmail.com>
588 * readelf.c (process_archive): Don't double free qualified_name.
589 Don't break out of loop with "negative" archive_file_size, just
590 set file offset to max.
592 2020-03-25 Alan Modra <amodra@gmail.com>
594 * readelf.c (process_archive): Prevent endless loop.
596 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
599 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
600 with bfd_get_symbol_version_string.
601 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
602 * objdump.c (objdump_print_symname): Likewise.
604 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
607 * nm.c (SYM_NAME): Removed.
608 (print_symname): Add a pointer to struct extended_symbol_info
609 argument. Call _bfd_elf_get_symbol_version_name to get symbol
611 (print_symdef_entry): Pass NULL to print_symname.
612 (print_symbol_info_bsd): Update call to print_symname.
613 (print_symbol_info_sysv): Likewise.
614 (print_symbol_info_posix): Likewise.
616 2020-03-24 Alan Modra <amodra@gmail.com>
618 * readelf.c (process_mips_specific): Free iconf on error path.
620 2020-03-23 Nick Clifton <nickc@redhat.com>
623 * wrstabs.c (stab_pop_type): Replace assertion with error return.
624 * write_stabs_in_sections_debugging_info: Likewise.
625 * stab_enum_type: Likewise.
626 * stab_modify_type: Likewise.
627 * stab_struct_field: Likewise.
628 * stab_end_struct_type: Likewise.
629 * stab_start_class_type: Likewise.
630 * stab_class_static_member: Likewise.
631 * stab_class_baseclass: Likewise.
632 * stab_class_start_method: Likewise.
633 * stab_class_method_var: Likewise.
634 * stab_class_end_method: Likewise.
635 * stab_end_class_type: Likewise.
636 * stab_typedef_type: Likewise.
637 * stab_start_function: Likewise.
638 * stab_end_block: Likewise.
639 * stab_lineno: Likewise.
641 2020-03-20 Nick Clifton <nickc@redhat.com>
643 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
644 (process_section_headers): Check the return value from
645 get_compression_header.
646 (dump_section_as_strings): Likewise.
647 (dump_section_as_bytes): Likewise.
648 (load_specific_debug_section): Likewise.
650 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
652 * ar.c (main): Update bfd_plugin_set_program_name call.
653 * nm.c (main): Likewise.
655 2020-03-19 Nick Clifton <nickc@redhat.com>
658 * testsuite/binutils-all/dw4.s: New test source file.
659 * testsuite/binutils-all/nm.exp: Run the new test.
661 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
663 * readelf.c (process_symbol_table): Use unsigned long for si.
665 2020-03-19 Alan Modra <amodra@gmail.com>
667 * elfcomm.c: Don't include bfd.h or bucomm.h.
668 (program_name): Declare.
669 (process_archive_index_and_symbols): Replace bfd_boolean with int,
670 and substitute FALSE and TRUE.
671 (setup_archive, setup_nested_archive): Likewise.
672 * elfcomm.h: Likewise.
674 2020-03-19 Alan Modra <amodra@gmail.com>
676 * readelf.c (process_archive): Always return via path freeing
679 2020-03-19 Alan Modra <amodra@gmail.com>
681 * readelf.c (process_netbsd_elf_note): Validate descsz before
682 accessing descdata. Formatting.
684 2020-03-19 Alan Modra <amodra@gmail.com>
686 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
687 * elfcomm.h (setup_archive): Update prototype.
689 2020-03-16 Alan Modra <amodra@gmail.com>
691 * readelf.c (get_symbols): New function.
692 (process_relocs, ia64_process_unwind, hppa_process_unwind),
693 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
695 2020-03-16 Alan Modra <amodra@gmail.com>
697 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
698 Detect shift overflows and check that terminating byte is found.
699 Print an error on a bad uleb128.
701 2020-03-14 Alan Modra <amodra@gmail.com>
703 * readelf.c (process_file): Clean ba_cache.
705 2020-03-14 Alan Modra <amodra@gmail.com>
707 * elfcomm.h (setup_archive): Update prototype.
708 * elfcomm.c (setup_archive): Add file_size parameter and sanity
709 check longnames_size.
710 (setup_nested_archive): Get file size and pass to setup_archive.
711 * elfedit.c (process_archive): Likewise.
712 * readelf.c (process_archive): Pass filedata->file_size to
715 2020-03-14 Alan Modra <amodra@gmail.com>
717 * readelf.c (dump_section_as_strings): Free memory on error exit.
718 (dump_section_as_bytes, process_notes_at): Likewise.
719 (get_build_id): Free enote.
721 2020-03-13 Kamil Rytarowski <n54@gmx.com>
723 * readelf.c (get_netbsd_elfcore_note_type): Add support for
724 NT_NETBSDCORE_LWPSTATUS notes.
726 2020-03-13 Alan Modra <amodra@gmail.com>
728 * elfcomm.c (get_archive_member_name): Always return malloc'd
730 * elfedit.c (process_archive): Tidy memory on all return paths.
731 * readelf.c (process_archive): Likewise.
732 (process_symbol_table): Likewise.
733 (ba_cache): New, replacing ..
734 (get_symbol_for_build_attribute): ..static vars here. Free
735 strtab and symtab before loading new ones. Reject symtab without
736 valid strtab in loop, breaking out of loop on valid symtab.
737 (process_file): Free ba_cache symtab and strtab here, resetting
740 2020-03-12 Alan Modra <amodra@gmail.com>
742 * readelf.c (process_section_headers): Don't just set
743 filedata->section_headers NULL, free it first. Similarly for
744 dynamic_symbols, dynamic_strings, dynamic_syminfo and
745 symtab_shndx_list. Zero associated counts too.
746 (process_object): Free symtab_shndx_list.
747 (process_file): Free various allocated filedata tables.
749 2020-03-11 Nick Clifton <nickc@redhat.com>
753 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
754 li_segment_size fields.
755 * dwarf.c (read_debug_line_header): Record the address size and
756 segment selector size values (if present) in the lineinfo
758 (display_formatted_table): Warn if the format count is empty but
759 the table itself is not empty.
760 Display the format count and entry count at the start of the table
762 (display_debug_lines_raw): Display the address size and segement
763 selector size fields, if present.
764 * testsuite/binutils-all/dw5.W: Update expected output.
766 2020-03-11 Alan Modra <amodra@gmail.com>
769 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
770 pad_to_set on second block of code dealing with padding.
771 Replace "c" with "num_sec" and don't recalculate number of
772 sections on second block. Size arrays using sizeof (element)
773 rather than sizeof (element type).
775 2020-03-10 Alan Modra <amodra@gmail.com>
777 * objdump.c (disassemble_section): Don't call qsort unless
778 sym count is at least two.
779 (disassemble_data): Don't call memcpy with NULL src.
781 2020-03-09 Alan Modra <amodra@gmail.com>
784 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
785 to get_data rather than multiplying.
786 (dump_ia64_vms_dynamic_relocs): Likewise.
787 (process_version_sections): Correct order of size and nmemb args
789 (process_mips_specific): Likewise.
791 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
793 * readelf.c (get_dynamic_data): Replace "memory chekers" with
794 "memory checkers" in comments.
796 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
799 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
800 * doc/Makefile.in: Re-generate.
802 2020-03-06 Nick Clifton <nickc@redhat.com>
804 * objcopy.c (check_new_section_flags): New function. Reject the
805 SEC_COFF_SHARED flag if the target is not a COFF binary.
806 (copy_object): Call check_new_section_flags.
807 (setup_section): Likewise.
808 * doc/binutils.texi (objcopy): Add a note that the 'share' section
809 flag cannot be applied to ELF binaries.
811 2020-03-06 Alan Modra <amodra@gmail.com>
814 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
816 2020-03-05 Alan Modra <amodra@gmail.com>
819 * objcopy.c (filter_symbols): Don't segfault on NULL
820 prefix_symbols_string.
822 2020-03-04 Christian Eggers <ceggers@gmx.de>
824 * objcopy.c (copy_object): Convert from bytes to octets for
825 --gap-fill and --pad-to.
827 2020-03-03 Nick Clifton <nickc@redhat.com>
830 * prdbg.c (pr_tag_type): Remove call to abort.
832 2020-03-02 Aaron Merey <amerey@redhat.com>
834 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
837 2020-03-02 Nick Clifton <nickc@redhat.com>
840 * readelf.c (dump_section_as_strings): Display new-line characters
841 as \n and then insert a line break.
842 * testsuite/binutils-all/pr25543.s: New test.
843 * testsuite/binutils-all/pr25543.d: Test driver.
844 * testsuite/binutils-all/readelf.exp: Run the new test.
846 2020-02-27 Nick Clifton <nickc@redhat.com>
849 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
850 get_data is unable to load the string table.
852 2020-02-26 Alan Modra <amodra@gmail.com>
854 * elfedit.c: Indent labels correctly.
855 * readelf.c: Likewise.
856 * resres.c: Likewise.
858 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
861 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
862 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
864 2020-02-24 Nick Clifton <nickc@redhat.com>
867 * doc/binutils.texi (objdump): Fix typo in description of
870 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
872 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
875 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
877 * objdump.c (show_line): call bfd_demangle when using do_demangle.
879 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
881 * configure: Regenerate.
883 2020-02-10 Fangrui Song <maskray@google.com>
885 * objcopy.c (parse_flags): Handle "exclude".
886 * doc/binutils.texi: Document the support.
888 2020-02-10 Aaron Merey <amerey@redhat.com>
890 * binutils/testsuite/binutils-all/debuginfod.exp:
891 Replace set ::env with setenv.
892 Start server before setting environment variable.
893 Specify tmpdir as the location of the server's
895 Check additional server metrics at start-up.
897 2020-02-07 Nick Clifton <nickc@redhat.com>
899 * README-how-to-make-a-release: Add note about updating the
900 GAS/NEWS URL in the next release.
902 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
905 * readelf.c (get_machine_flags): Add support for Z80N machine
908 2020-02-07 Nick Clifton <nickc@redhat.com>
910 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
911 of the truncated file name.
913 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
915 * objdump.c (print_jump_visualisation): New function.
916 (disassemble_bytes): Call new function.
918 2020-02-06 Alan Modra <amodra@gmail.com>
920 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
922 (supports_gnu_osabi): New procedure.
923 (is_generic): New, from ld-lib.exp.
924 (supports_gnu_unique): Use the above.
926 2020-02-04 Alan Modra <amodra@gmail.com>
928 * Makefile.am (CFILES): Add od-elf32_avr.c.
929 * Makefile.in: Regenerate.
930 * po/POTFILES.in: Regenerate.
932 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
934 * readelf.c (dump_relocations, dump_relocations)
935 (decode_arm_unwind_bytecode, process_dynamic_section)
936 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
939 2020-02-03 Sergei Trofimovich <siarheit@google.com>
941 * coffdump.c (program_name): Drop redundant definition.
942 * srconv.c (program_name): Likewise
943 * sysdump.c (program_name): Likewise
945 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
948 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
949 same file with different section pointers.
951 2020-02-01 Nick Clifton <nickc@redhat.com>
953 * README-how-to-make-a-release: Update with more details on the
954 release making process.
956 2020-01-31 Nick Clifton <nickc@redhat.com>
958 * po/sv.po: Updated Swedish translation.
960 2020-01-28 Nick Clifton <nickc@redhat.com>
962 * readelf.c (get_build_id): Simplify warning message about corrupt
963 notes encountered whilst scanning for the build-id.
965 2020-01-27 Roland McGrath <mcgrathr@google.com>
967 * objcopy.c (compare_gnu_build_notes): Fix comparison results
968 for overlapping ranges so that (A == B) == (B == A) holds.
970 2020-01-27 Alan Modra <amodra@gmail.com>
972 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
973 case statement with switch statement.
975 2020-01-24 Nick Clifton <nickc@redhat.com>
977 * readelf.c (get_build_id): Fix warning messages about corrupt
980 2020-01-23 Nick Clifton <nickc@redhat.com>
982 * po/fr.po: Updated French translation.
984 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
987 * readelf.c (get_alpha_symbol_other): Fix error message typo.
989 2020-01-20 Nick Clifton <nickc@redhat.com>
991 * po/pt.po: Updated Portuguese translation.
992 * po/uk.po: Updated Ukranian translation.
994 2020-01-18 Nick Clifton <nickc@redhat.com>
996 * README-how-to-make-a-release: Update notes on how to cut a
997 branch for a release.
999 2020-01-18 Nick Clifton <nickc@redhat.com>
1001 * configure: Regenerate.
1002 * po/binutils.pot: Regenerate.
1004 2020-01-18 Nick Clifton <nickc@redhat.com>
1006 Binutils 2.34 branch created.
1008 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1010 * objdump.c (jump_info_visualize_address): Discard jumps that are
1012 (disassemble_bytes): Only compute the maximum level if jumps were
1015 2020-01-13 Nick Clifton <nickc@redhat.com>
1017 * objdump.c (disassemble_bytes): Remove C99-ism.
1018 * testsuite/binutils-all/debuginfod.exp: New tests.
1020 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1022 * objdump.c (visualize_jumps, color_output, extended_color_output)
1023 (detected_jumps): New variables.
1024 (usage): Add the new jump visualization options.
1025 (option_values): Add new option value.
1026 (long_options): Add the new option.
1027 (jump_info_new, jump_info_free): New functions.
1028 (jump_info_min_address, jump_info_max_address): Likewise.
1029 (jump_info_end_address, jump_info_is_start_address): Likewise.
1030 (jump_info_is_end_address, jump_info_size): Likewise.
1031 (jump_info_unlink, jump_info_insert): Likewise.
1032 (jump_info_add_front, jump_info_move_linked): Likewise.
1033 (jump_info_intersect, jump_info_merge): Likewise.
1034 (jump_info_sort, jump_info_visualize_address): Likewise.
1035 (disassemble_jumps): New function - used to locate jumps.
1036 (disassemble_bytes): Add ascii art generation.
1037 (disassemble_section): Add scan to locate jumps.
1038 (main): Parse the new visualization option.
1039 * doc/binutils.texi: Document the new feature.
1040 * NEWS: Mention the new feature.
1042 2020-01-13 Alan Modra <amodra@gmail.com>
1046 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1047 fde_fc col_type and col_offset.
1048 * readelf.c (apply_relocations): Move symsec check earlier.
1049 (free_debug_section): Free reloc_info.
1050 (process_notes_at): Free pnotes on error path.
1051 (process_object): Free dump_sects here..
1052 (process_archive): ..not here.
1054 2020-01-13 Alan Modra <amodra@gmail.com>
1057 * nm.c (display_rel_file): Free dyn_syms.
1059 2020-01-09 Nick Clifton <nickc@redhat.com>
1062 * objcopy.c (empty_name): New variable.
1063 (need_sym_before): Prevent an attempt to free a static variable.
1064 (filter_symbols): Avoid strcmp test by checking for pointer
1067 2020-01-09 Nick Clifton <nickc@redhat.com>
1069 * po/zh_TW.po: Updated Traditional Chinese translation.
1071 2020-01-09 Aaron Merey <amerey@redhat.com>
1073 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1074 * Makefile.in: Regenerate.
1076 * config.in: Regenerate.
1077 * configure: Regenerate.
1078 * configure.ac: Call AC_DEBUGINFOD.
1079 * doc/Makefile.in: Regenerate.
1080 * doc/binutils.texi: Add section on using binutils
1082 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1083 Query debuginfod servers for the target debug file.
1084 (load_separate_debug_info): Call
1085 debuginfod_fetch_separate_debug_info if configured with
1087 (load_separate_debug_files): Add file argument to
1088 load_separate_debug_info calls.
1089 * dwarf.h (get_build_id): Add declaration.
1090 * objdump.c (get_build_id): New function. Get build-id of file.
1091 * readelf.c (get_build_id): Likewise.
1092 * testsuite/binutils-all/debuginfod.exp: New tests.
1093 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1096 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1098 * readelf.c: Add support for new Z*) relocations and machine
1101 2020-01-01 Alan Modra <amodra@gmail.com>
1103 Update year range in copyright notice of all files.
1105 For older changes see ChangeLog-2019
1107 Copyright (C) 2020 Free Software Foundation, Inc.
1109 Copying and distribution of this file, with or without modification,
1110 are permitted in any medium without royalty provided the copyright
1111 notice and this notice are preserved.
1117 version-control: never