1 2020-06-29 Alan Modra <amodra@gmail.com>
3 * dwarf.c: Use C style comments.
6 2020-06-27 Alan Modra <amodra@gmail.com>
8 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
10 (release_archive): Set fields of arch to NULL after freeing.
12 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
14 * readelf.c (dump_section_as_ctf): Support .ctf archives using
15 ctf_arc_bufopen. Automatically load the .ctf member of such
16 archives as the parent of all other members, unless specifically
17 overridden via --ctf-parent. Split out dumping code into...
18 (dump_ctf_archive_member): ... here, as in objdump, and call
19 it once per archive member.
20 (dump_ctf_indent_lines): Code style fix.
22 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
24 * configure.ac [--enable-libctf]: New, default yes.
25 Set ENABLE_LIBCTF accordingly.
26 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
27 * configure: Regenerate.
28 * config.in: Regenerate.
29 * Makefile.in: Regenerate.
30 * aclocal.m4: Regenerate.
31 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
32 (option_values): Likewise.
33 (long_options): Likewise.
35 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
36 (make_ctfsect): Likewise.
37 (dump_ctf_archive_member): Likewise.
38 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
39 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
40 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
42 (process_section_contents): Likewise.
43 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
44 (dump_ctf_indent_lines): Likewise.
45 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
47 2020-06-26 Jan Beulich <jbeulich@suse.com>
49 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
50 redundant text from x86 specific part of -M section.
52 2020-06-26 Pat Bernardi <bernardi@adacore.com>
54 * readelf.c (display_m68k_gnu_attribute): New function.
55 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
57 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
60 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
61 * testsuite/binutils-all/pr26160.r: Likewise.
62 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
64 2020-06-23 Nick Clifton <nickc@redhat.com>
67 * dwarf.c (fetch_indexed_string): Detect and handle old style
68 .debug_str_offset tables.
69 (display_debug_str_offsets): Likewise. Also add support for
70 .debug_str_offsets.dwo sections.
72 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
75 * testsuite/binutils-all/pr26112.o.bz2: New file.
76 * testsuite/binutils-all/pr26112.r: Likewise.
77 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
79 2020-06-23 Alan Modra <amodra@gmail.com>
81 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
82 remote_file delete command.
84 2020-06-22 Nick Clifton <nickc@redhat.com>
87 * dwarf.c (display_debug_str_offsets): Add code to display the
88 contents of the .debug_str_offsets section.
89 (display_debug_macro): Add support for DW_MACRO_define_strx and
92 2020-06-22 Saagar Jha <saagar@saagarjha.com>
94 * od-macho.c: Dump linkedit data for new load commands.
96 2020-06-19 Alan Modra <amodra@gmail.com>
98 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
99 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
100 (run_dump_test): Use check_relro_support to decide whether to pass
101 extra ld option "-z norelro".
103 2020-06-11 Alan Modra <amodra@gmail.com>
105 * readelf.c (process_mips_specific): Don't alloc memory for
106 Elf_Internal_Options.
108 2020-06-11 Alan Modra <amodra@gmail.com>
110 * readelf.c (process_mips_specific): Assert size of internal
111 types match size of external types, and simplify allocation of
112 internal buffer. Catch possible integer overflow when sanity
113 checking option size. Don't assume options are a regular array.
114 Sanity check reginfo option against option size. Use PRI macros
117 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
120 * mclex.c (yylex): Reject lines that reach end-of-file without a
121 terminating newline character.
123 2020-06-08 Nick Clifton <nickc@redhat.com>
126 * doc/binutils.texi (strings): Fix typo.
128 2020-06-08 Nick Clifton <nickc@redhat.com>
131 * dwarf.c (process_debug_info): Check that there is space in the
132 debug_information array before filling in an entry.
134 2020-06-06 Alan Modra <amodra@gmail.com>
136 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
138 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
141 * mclex.c (yylex): Add test for an empty input stream.
143 2020-06-04 Stephen Casner <casner@acm.org>
145 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
146 for test using section pseudo-ops compatible with pdp11.
147 * testsuite/binutils-all/objcopy.exp: Select alternate source.
149 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
151 * objdump.c (disassemble_data): Set disasm_info.endian_code to
152 disasm_info.endian after the latter is initialized to the
153 endianness reported by BFD.
155 2020-06-04 Alan Modra <amodra@gmail.com>
157 * testsuite/binutils-all/i386/i386.exp: Remove global directive
159 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
160 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
162 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
164 * windmc.h (struct mc_node): Add id_typecast field.
165 * mcparse.y (message): Initialise the id_typecast field.
166 * windmc.c (write_dbg): Use the id_typecast field as a parameter
167 when calling write_dbg_define.
168 (write_header): Likewise.
170 2020-06-03 Alan Modra <amodra@gmail.com>
173 * objcopy.c (copy_relocations_in_section): Free relpp on error.
174 Don't accidentally free isection->orelocation.
176 2020-06-02 Alan Modra <amodra@gmail.com>
178 * testsuite/binutils-all/ar.exp (obj): Set up object file name
179 extension. Use throughout. Don't completely exclude non-ELF
180 alpha targets. Run long_filenames test for tic30. Exclude thin
181 archive tests for aix, ecoff and vms.
182 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
183 extension. Use throughout. Don't exclude non-ELF alpha targets
186 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
188 * MAINTAINERS (Xtensa): Add myself as maintainer.
190 2020-05-23 Alan Modra <amodra@gmail.com>
192 * testsuite/binutils-all/ar.exp (many_files): New test.
194 2020-05-21 Alan Modra <amodra@gmail.com>
196 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
197 * dlltool.c: Likewise.
198 * elfcomm.c: Likewise.
200 * readelf.c: Likewise.
202 * windmc.c: Likewise.
203 * windres.c: Likewise.
204 * wrstabs.c: Likewise.
206 2020-05-21 Alan Modra <amodra@gmail.com>
208 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
211 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
213 * dwarf.c: Updated since DECLARE_CSR is changed.
215 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
218 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
219 segment doesn't match the .dynamic section and checks are
221 (struct filedata): Add dynamic_symtab_section and
222 dynamic_strtab_section fields.
223 (process_section_headers): Set dynamic_symtab_section to the
224 .dynsym section. Set dynamic_strtab_section to the .dynstr
226 (process_dynamic_section): Warn if the .dynsym section doesn't
227 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
228 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
230 2020-05-19 Alan Modra <amodra@gmail.com>
232 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
233 (replace_members): Use bfd_get_filename rather than accessing
234 bfd->filename directly.
235 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
236 * binemul.c (do_ar_emul_append): Likewise.
237 * coffgrok.c (coff_grok): Likewise.
239 2020-05-18 Stafford Horne <shorne@gmail.com>
241 * MAINTAINERS (OR1K): Add myself as maintainer.
243 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
245 * doc/binutils.texi: Mention 'entry address' in the set-start and
246 adjust-start options descriptions.
248 2020-05-05 Nick Clifton <nickc@redhat.com>
250 * dwarf.c (do_checks): New global variable.
251 (display_formatted_table): Warn about an unexpected number of
252 columns in the table, if checks are enabled. Do not complain
253 about the lack of data following the number of entries in the
254 table if the table is empty.
255 (display_debug_lines_decoded): Only warn about an unexpected
256 number of columns in a table if checks are enabled.
257 * dwarf.h (do_checks): Add a prototype.
258 * elfcomm.c (error): Remove weak attribute.
260 * readelf.c (do_checks): Delete.
262 (process_section_headers): Only warn about empty sections if
265 2020-05-04 Fangrui Song <maskray@google.com>
267 * objcopy.c (copy_object): Allow empty section.
268 * testsuite/binutils-all/update-section.exp: Add test.
270 2020-05-04 Nick Clifton <nickc@redhat.com>
273 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
274 supicious number of entries for DWARF-5 format directory and file
275 name tables. Do not display file name table header if the table
276 is empty. Do not allocate space for empty tables.
278 2020-05-04 Alan Modra <amodra@gmail.com>
280 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
281 section. Don't assume endian of host matches nds32 target. Free
284 2020-05-01 Alan Modra <amodra@gmail.com>
285 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
287 * objdump.c (disassemble_bytes): Don't scan for zeros when
288 disassembling zeros. Translate "resuming at file offset" message.
289 Formatting. Replace some signed variables with unsigned.
291 2020-04-30 Alex Coplan <alex.coplan@arm.com>
293 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
295 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
297 2020-04-30 Nick Clifton <nickc@redhat.com>
299 * testsuite/lib/binutils-common.exp (check_pie_support): New
302 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
304 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
305 range_entries for the same offset.
307 2020-04-29 Nick Clifton <nickc@redhat.com>
309 * readelf.c (warn): New function - like elfcomm.c version but only
310 produces output if warnings are enabled.
311 (struct options): Add --lint and --enable-checks.
312 (usage): Add entry for --lint.
313 (parse_args): Handle -L. If checks are enabled but no dumps have
314 been selected then enable all dumps.
315 (process_section_headers): Replace long if-then-else sequence with
316 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
317 SHT_PROGBITS sections.
318 (process_file): Do not complain if the file is an archive and lint
319 mode has been enabled.
320 * elfcomm.c (error): Make the function weak.
322 * NEWS: Mention the new feature.
323 * doc/binutils.texi: Document the new feature.
324 * dwarf.h (report_leb_status): Add file name and line number
325 parameters. Include them in the diagnostic output.
326 (READ_ULEB): Pass file and line number to report_leb_status.
327 (READ_SLEB): Likewise.
328 * dwarf.c (read_and_print_leb128): Pass file and line number to
330 * testsuite/binutils-all/readelf.exp: Add test of new feature.
331 * testsuite/binutils-all/zero-sec.s: New test source file.
332 * testsuite/binutils-all/zero-sec.r: Expected output from new
335 2020-04-29 Nick Clifton <nickc@redhat.com>
337 * po/sr.po: Updated Serbian translation.
339 2020-04-26 Alan Modra <amodra@gmail.com>
341 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
342 read before dereferencing, and gracefully return. Remove
343 gnu_hash_error variable. Free gnu hash arrays if number of
346 2020-04-24 Alan Modra <amodra@gmail.com>
348 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
350 (process_dynamic_section): Call get_num_dynamic_syms once rather
351 than in segment loop. Break out of segment loop on a successful
352 load of dynamic symbols. Formatting.
353 (process_object): Return error status from process_dynamic_section.
355 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
357 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
358 * elf.c (elfcore_grok_arc_v2): New function.
359 (elfcore_grok_note): Call the new function to handle the corresponding
361 (elfcore_write_arc_v2): New function.
362 (elfcore_write_register_note): Call the new function to handle the
363 corresponding pseudo-sections.
365 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
368 * readelf.c (is_none_reloc): Recognize
369 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
370 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
372 2020-04-22 Nick Clifton <nickc@redhat.com>
374 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
376 2020-04-22 Alan Modra <amodra@gmail.com>
378 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
379 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
380 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
381 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
382 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
383 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
384 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
385 (dynamic_section, symtab_shndx_list, group_count, section_groups),
386 (section_headers_groups): Move to struct filedata. Update use
389 2020-04-22 Alan Modra <amodra@gmail.com>
391 * readelf.c (struct dump_data): New, used..
392 (cmdline): ..here, and..
393 (struct filedata): ..here. Adjust all uses.
394 (request_dump_bynumber, request_dump, parse_args): Pass in a
395 struct dump_data* rather than Filedata*. Adjust callers.
396 (main): Don't set cmdline.file_name.
398 2020-04-20 Alan Modra <amodra@gmail.com>
400 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
403 2020-04-20 Alan Modra <amodra@gmail.com>
405 * readelf.c (process_section_headers): Free dynamic symbols etc.
408 2020-04-20 Alan Modra <amodra@gmail.com>
410 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
411 on error without freeing.
412 (process_dynamic_section): Don't recreate dynamic symbols from
413 dynamic tag info when the dynamic symbols have already been
414 read via section headers.
416 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
418 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
419 conditional VDUP instructions are disassembled correctly.
420 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
422 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
423 that VDUP instructions (which are conditional in A32) can be
424 disassembled in thumb mode.
425 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
428 2020-04-17 Alan Modra <amodra@gmail.com>
431 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
433 2020-04-16 Alan Modra <amodra@gmail.com>
435 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
436 --no-addresses description.
438 2020-04-15 Alan Modra <amodra@gmail.com>
440 * objdump.c (no_addresses): New static var.
441 (usage): Print help for --no-addresses.
442 (long_options): Add --no-addresses entry.
443 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
444 (disassemble_bytes): Don't print current line address, or reloc
446 * doc/binutils.texi: Document objdump --no-addresses.
448 2020-04-15 Alan Modra <amodra@gmail.com>
451 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
452 reading buckets or chains fails.
454 2020-04-15 Alan Modra <amodra@gmail.com>
456 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
459 2020-04-15 Alan Modra <amodra@gmail.com>
461 * readelf.c (get_group_flags): Translate text.
462 (get_file_type, get_symbol_binding, get_symbol_type),
463 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
465 2020-04-15 Alan Modra <amodra@gmail.com>
468 * readelf.c (get_num_dynamic_syms): Typo fix.
470 2020-04-14 Alan Modra <amodra@gmail.com>
472 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
473 possibility of overflow when checking number of conflicts.
475 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
478 * readelf.c (nbuckets): New.
482 (ngnubuckets): Likewise.
483 (gnubuckets): Likewise.
484 (gnuchains): Likewise.
485 (mipsxlat): Likewise.
486 (ngnuchains): Likewise.
487 (gnusymidx): Likewise.
488 (VALID_SYMBOL_NAME): Likewise.
489 (VALID_DYNAMIC_NAME): Use it.
490 (get_dynamic_data): Moved before process_dynamic_section.
491 (get_num_dynamic_syms): New function.
492 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
493 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
494 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
496 (get_symbol_index_type): Don't print "bad section index" when
497 there is no section header.
498 (print_dynamic_symbol): Rewrite.
499 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
502 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
504 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
505 enable on *-*-solaris*.
507 2020-03-30 Nick Clifton <nickc@redhat.com>
510 * objcopy.c (copy_object): When copying PE format files set the
511 timestamp field in the pe_data structure if the preserve_dates
513 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
514 --preserve-dates in place of the -p option, in order to make its
517 2020-03-28 Alan Modra <amodra@gmail.com>
519 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
520 clear_xfail hppa*-*-*elf*. Revert mips xfails.
522 2020-03-28 Alan Modra <amodra@gmail.com>
524 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
525 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
526 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
527 test. Pass "-p" to objcopy for the executable test.
529 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
532 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
533 specify whether an object file or executable should be built and tested.
534 Change test names to report whether an object file or executable is
536 * testsuite/binutils-all/pr25662.ld: New test.
537 * testsuite/binutils-all/pr25662.s: New test.
539 2020-03-27 Alan Modra <amodra@gmail.com>
541 * readelf.c (process_archive): Don't double free qualified_name.
542 Don't break out of loop with "negative" archive_file_size, just
543 set file offset to max.
545 2020-03-25 Alan Modra <amodra@gmail.com>
547 * readelf.c (process_archive): Prevent endless loop.
549 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
552 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
553 with bfd_get_symbol_version_string.
554 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
555 * objdump.c (objdump_print_symname): Likewise.
557 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
560 * nm.c (SYM_NAME): Removed.
561 (print_symname): Add a pointer to struct extended_symbol_info
562 argument. Call _bfd_elf_get_symbol_version_name to get symbol
564 (print_symdef_entry): Pass NULL to print_symname.
565 (print_symbol_info_bsd): Update call to print_symname.
566 (print_symbol_info_sysv): Likewise.
567 (print_symbol_info_posix): Likewise.
569 2020-03-24 Alan Modra <amodra@gmail.com>
571 * readelf.c (process_mips_specific): Free iconf on error path.
573 2020-03-23 Nick Clifton <nickc@redhat.com>
576 * wrstabs.c (stab_pop_type): Replace assertion with error return.
577 * write_stabs_in_sections_debugging_info: Likewise.
578 * stab_enum_type: Likewise.
579 * stab_modify_type: Likewise.
580 * stab_struct_field: Likewise.
581 * stab_end_struct_type: Likewise.
582 * stab_start_class_type: Likewise.
583 * stab_class_static_member: Likewise.
584 * stab_class_baseclass: Likewise.
585 * stab_class_start_method: Likewise.
586 * stab_class_method_var: Likewise.
587 * stab_class_end_method: Likewise.
588 * stab_end_class_type: Likewise.
589 * stab_typedef_type: Likewise.
590 * stab_start_function: Likewise.
591 * stab_end_block: Likewise.
592 * stab_lineno: Likewise.
594 2020-03-20 Nick Clifton <nickc@redhat.com>
596 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
597 (process_section_headers): Check the return value from
598 get_compression_header.
599 (dump_section_as_strings): Likewise.
600 (dump_section_as_bytes): Likewise.
601 (load_specific_debug_section): Likewise.
603 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
605 * ar.c (main): Update bfd_plugin_set_program_name call.
606 * nm.c (main): Likewise.
608 2020-03-19 Nick Clifton <nickc@redhat.com>
611 * testsuite/binutils-all/dw4.s: New test source file.
612 * testsuite/binutils-all/nm.exp: Run the new test.
614 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
616 * readelf.c (process_symbol_table): Use unsigned long for si.
618 2020-03-19 Alan Modra <amodra@gmail.com>
620 * elfcomm.c: Don't include bfd.h or bucomm.h.
621 (program_name): Declare.
622 (process_archive_index_and_symbols): Replace bfd_boolean with int,
623 and substitute FALSE and TRUE.
624 (setup_archive, setup_nested_archive): Likewise.
625 * elfcomm.h: Likewise.
627 2020-03-19 Alan Modra <amodra@gmail.com>
629 * readelf.c (process_archive): Always return via path freeing
632 2020-03-19 Alan Modra <amodra@gmail.com>
634 * readelf.c (process_netbsd_elf_note): Validate descsz before
635 accessing descdata. Formatting.
637 2020-03-19 Alan Modra <amodra@gmail.com>
639 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
640 * elfcomm.h (setup_archive): Update prototype.
642 2020-03-16 Alan Modra <amodra@gmail.com>
644 * readelf.c (get_symbols): New function.
645 (process_relocs, ia64_process_unwind, hppa_process_unwind),
646 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
648 2020-03-16 Alan Modra <amodra@gmail.com>
650 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
651 Detect shift overflows and check that terminating byte is found.
652 Print an error on a bad uleb128.
654 2020-03-14 Alan Modra <amodra@gmail.com>
656 * readelf.c (process_file): Clean ba_cache.
658 2020-03-14 Alan Modra <amodra@gmail.com>
660 * elfcomm.h (setup_archive): Update prototype.
661 * elfcomm.c (setup_archive): Add file_size parameter and sanity
662 check longnames_size.
663 (setup_nested_archive): Get file size and pass to setup_archive.
664 * elfedit.c (process_archive): Likewise.
665 * readelf.c (process_archive): Pass filedata->file_size to
668 2020-03-14 Alan Modra <amodra@gmail.com>
670 * readelf.c (dump_section_as_strings): Free memory on error exit.
671 (dump_section_as_bytes, process_notes_at): Likewise.
672 (get_build_id): Free enote.
674 2020-03-13 Kamil Rytarowski <n54@gmx.com>
676 * readelf.c (get_netbsd_elfcore_note_type): Add support for
677 NT_NETBSDCORE_LWPSTATUS notes.
679 2020-03-13 Alan Modra <amodra@gmail.com>
681 * elfcomm.c (get_archive_member_name): Always return malloc'd
683 * elfedit.c (process_archive): Tidy memory on all return paths.
684 * readelf.c (process_archive): Likewise.
685 (process_symbol_table): Likewise.
686 (ba_cache): New, replacing ..
687 (get_symbol_for_build_attribute): ..static vars here. Free
688 strtab and symtab before loading new ones. Reject symtab without
689 valid strtab in loop, breaking out of loop on valid symtab.
690 (process_file): Free ba_cache symtab and strtab here, resetting
693 2020-03-12 Alan Modra <amodra@gmail.com>
695 * readelf.c (process_section_headers): Don't just set
696 filedata->section_headers NULL, free it first. Similarly for
697 dynamic_symbols, dynamic_strings, dynamic_syminfo and
698 symtab_shndx_list. Zero associated counts too.
699 (process_object): Free symtab_shndx_list.
700 (process_file): Free various allocated filedata tables.
702 2020-03-11 Nick Clifton <nickc@redhat.com>
706 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
707 li_segment_size fields.
708 * dwarf.c (read_debug_line_header): Record the address size and
709 segment selector size values (if present) in the lineinfo
711 (display_formatted_table): Warn if the format count is empty but
712 the table itself is not empty.
713 Display the format count and entry count at the start of the table
715 (display_debug_lines_raw): Display the address size and segement
716 selector size fields, if present.
717 * testsuite/binutils-all/dw5.W: Update expected output.
719 2020-03-11 Alan Modra <amodra@gmail.com>
722 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
723 pad_to_set on second block of code dealing with padding.
724 Replace "c" with "num_sec" and don't recalculate number of
725 sections on second block. Size arrays using sizeof (element)
726 rather than sizeof (element type).
728 2020-03-10 Alan Modra <amodra@gmail.com>
730 * objdump.c (disassemble_section): Don't call qsort unless
731 sym count is at least two.
732 (disassemble_data): Don't call memcpy with NULL src.
734 2020-03-09 Alan Modra <amodra@gmail.com>
737 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
738 to get_data rather than multiplying.
739 (dump_ia64_vms_dynamic_relocs): Likewise.
740 (process_version_sections): Correct order of size and nmemb args
742 (process_mips_specific): Likewise.
744 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
746 * readelf.c (get_dynamic_data): Replace "memory chekers" with
747 "memory checkers" in comments.
749 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
752 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
753 * doc/Makefile.in: Re-generate.
755 2020-03-06 Nick Clifton <nickc@redhat.com>
757 * objcopy.c (check_new_section_flags): New function. Reject the
758 SEC_COFF_SHARED flag if the target is not a COFF binary.
759 (copy_object): Call check_new_section_flags.
760 (setup_section): Likewise.
761 * doc/binutils.texi (objcopy): Add a note that the 'share' section
762 flag cannot be applied to ELF binaries.
764 2020-03-06 Alan Modra <amodra@gmail.com>
767 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
769 2020-03-05 Alan Modra <amodra@gmail.com>
772 * objcopy.c (filter_symbols): Don't segfault on NULL
773 prefix_symbols_string.
775 2020-03-04 Christian Eggers <ceggers@gmx.de>
777 * objcopy.c (copy_object): Convert from bytes to octets for
778 --gap-fill and --pad-to.
780 2020-03-03 Nick Clifton <nickc@redhat.com>
783 * prdbg.c (pr_tag_type): Remove call to abort.
785 2020-03-02 Aaron Merey <amerey@redhat.com>
787 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
790 2020-03-02 Nick Clifton <nickc@redhat.com>
793 * readelf.c (dump_section_as_strings): Display new-line characters
794 as \n and then insert a line break.
795 * testsuite/binutils-all/pr25543.s: New test.
796 * testsuite/binutils-all/pr25543.d: Test driver.
797 * testsuite/binutils-all/readelf.exp: Run the new test.
799 2020-02-27 Nick Clifton <nickc@redhat.com>
802 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
803 get_data is unable to load the string table.
805 2020-02-26 Alan Modra <amodra@gmail.com>
807 * elfedit.c: Indent labels correctly.
808 * readelf.c: Likewise.
809 * resres.c: Likewise.
811 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
814 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
815 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
817 2020-02-24 Nick Clifton <nickc@redhat.com>
820 * doc/binutils.texi (objdump): Fix typo in description of
823 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
825 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
828 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
830 * objdump.c (show_line): call bfd_demangle when using do_demangle.
832 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
834 * configure: Regenerate.
836 2020-02-10 Fangrui Song <maskray@google.com>
838 * objcopy.c (parse_flags): Handle "exclude".
839 * doc/binutils.texi: Document the support.
841 2020-02-10 Aaron Merey <amerey@redhat.com>
843 * binutils/testsuite/binutils-all/debuginfod.exp:
844 Replace set ::env with setenv.
845 Start server before setting environment variable.
846 Specify tmpdir as the location of the server's
848 Check additional server metrics at start-up.
850 2020-02-07 Nick Clifton <nickc@redhat.com>
852 * README-how-to-make-a-release: Add note about updating the
853 GAS/NEWS URL in the next release.
855 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
858 * readelf.c (get_machine_flags): Add support for Z80N machine
861 2020-02-07 Nick Clifton <nickc@redhat.com>
863 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
864 of the truncated file name.
866 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
868 * objdump.c (print_jump_visualisation): New function.
869 (disassemble_bytes): Call new function.
871 2020-02-06 Alan Modra <amodra@gmail.com>
873 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
875 (supports_gnu_osabi): New procedure.
876 (is_generic): New, from ld-lib.exp.
877 (supports_gnu_unique): Use the above.
879 2020-02-04 Alan Modra <amodra@gmail.com>
881 * Makefile.am (CFILES): Add od-elf32_avr.c.
882 * Makefile.in: Regenerate.
883 * po/POTFILES.in: Regenerate.
885 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
887 * readelf.c (dump_relocations, dump_relocations)
888 (decode_arm_unwind_bytecode, process_dynamic_section)
889 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
892 2020-02-03 Sergei Trofimovich <siarheit@google.com>
894 * coffdump.c (program_name): Drop redundant definition.
895 * srconv.c (program_name): Likewise
896 * sysdump.c (program_name): Likewise
898 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
901 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
902 same file with different section pointers.
904 2020-02-01 Nick Clifton <nickc@redhat.com>
906 * README-how-to-make-a-release: Update with more details on the
907 release making process.
909 2020-01-31 Nick Clifton <nickc@redhat.com>
911 * po/sv.po: Updated Swedish translation.
913 2020-01-28 Nick Clifton <nickc@redhat.com>
915 * readelf.c (get_build_id): Simplify warning message about corrupt
916 notes encountered whilst scanning for the build-id.
918 2020-01-27 Roland McGrath <mcgrathr@google.com>
920 * objcopy.c (compare_gnu_build_notes): Fix comparison results
921 for overlapping ranges so that (A == B) == (B == A) holds.
923 2020-01-27 Alan Modra <amodra@gmail.com>
925 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
926 case statement with switch statement.
928 2020-01-24 Nick Clifton <nickc@redhat.com>
930 * readelf.c (get_build_id): Fix warning messages about corrupt
933 2020-01-23 Nick Clifton <nickc@redhat.com>
935 * po/fr.po: Updated French translation.
937 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
940 * readelf.c (get_alpha_symbol_other): Fix error message typo.
942 2020-01-20 Nick Clifton <nickc@redhat.com>
944 * po/pt.po: Updated Portuguese translation.
945 * po/uk.po: Updated Ukranian translation.
947 2020-01-18 Nick Clifton <nickc@redhat.com>
949 * README-how-to-make-a-release: Update notes on how to cut a
950 branch for a release.
952 2020-01-18 Nick Clifton <nickc@redhat.com>
954 * configure: Regenerate.
955 * po/binutils.pot: Regenerate.
957 2020-01-18 Nick Clifton <nickc@redhat.com>
959 Binutils 2.34 branch created.
961 2020-01-17 Thomas Troeger <tstroege@gmx.de>
963 * objdump.c (jump_info_visualize_address): Discard jumps that are
965 (disassemble_bytes): Only compute the maximum level if jumps were
968 2020-01-13 Nick Clifton <nickc@redhat.com>
970 * objdump.c (disassemble_bytes): Remove C99-ism.
971 * testsuite/binutils-all/debuginfod.exp: New tests.
973 2020-01-13 Thomas Troeger <tstroege@gmx.de>
975 * objdump.c (visualize_jumps, color_output, extended_color_output)
976 (detected_jumps): New variables.
977 (usage): Add the new jump visualization options.
978 (option_values): Add new option value.
979 (long_options): Add the new option.
980 (jump_info_new, jump_info_free): New functions.
981 (jump_info_min_address, jump_info_max_address): Likewise.
982 (jump_info_end_address, jump_info_is_start_address): Likewise.
983 (jump_info_is_end_address, jump_info_size): Likewise.
984 (jump_info_unlink, jump_info_insert): Likewise.
985 (jump_info_add_front, jump_info_move_linked): Likewise.
986 (jump_info_intersect, jump_info_merge): Likewise.
987 (jump_info_sort, jump_info_visualize_address): Likewise.
988 (disassemble_jumps): New function - used to locate jumps.
989 (disassemble_bytes): Add ascii art generation.
990 (disassemble_section): Add scan to locate jumps.
991 (main): Parse the new visualization option.
992 * doc/binutils.texi: Document the new feature.
993 * NEWS: Mention the new feature.
995 2020-01-13 Alan Modra <amodra@gmail.com>
999 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1000 fde_fc col_type and col_offset.
1001 * readelf.c (apply_relocations): Move symsec check earlier.
1002 (free_debug_section): Free reloc_info.
1003 (process_notes_at): Free pnotes on error path.
1004 (process_object): Free dump_sects here..
1005 (process_archive): ..not here.
1007 2020-01-13 Alan Modra <amodra@gmail.com>
1010 * nm.c (display_rel_file): Free dyn_syms.
1012 2020-01-09 Nick Clifton <nickc@redhat.com>
1015 * objcopy.c (empty_name): New variable.
1016 (need_sym_before): Prevent an attempt to free a static variable.
1017 (filter_symbols): Avoid strcmp test by checking for pointer
1020 2020-01-09 Nick Clifton <nickc@redhat.com>
1022 * po/zh_TW.po: Updated Traditional Chinese translation.
1024 2020-01-09 Aaron Merey <amerey@redhat.com>
1026 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1027 * Makefile.in: Regenerate.
1029 * config.in: Regenerate.
1030 * configure: Regenerate.
1031 * configure.ac: Call AC_DEBUGINFOD.
1032 * doc/Makefile.in: Regenerate.
1033 * doc/binutils.texi: Add section on using binutils
1035 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1036 Query debuginfod servers for the target debug file.
1037 (load_separate_debug_info): Call
1038 debuginfod_fetch_separate_debug_info if configured with
1040 (load_separate_debug_files): Add file argument to
1041 load_separate_debug_info calls.
1042 * dwarf.h (get_build_id): Add declaration.
1043 * objdump.c (get_build_id): New function. Get build-id of file.
1044 * readelf.c (get_build_id): Likewise.
1045 * testsuite/binutils-all/debuginfod.exp: New tests.
1046 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1049 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1051 * readelf.c: Add support for new Z*) relocations and machine
1054 2020-01-01 Alan Modra <amodra@gmail.com>
1056 Update year range in copyright notice of all files.
1058 For older changes see ChangeLog-2019
1060 Copyright (C) 2020 Free Software Foundation, Inc.
1062 Copying and distribution of this file, with or without modification,
1063 are permitted in any medium without royalty provided the copyright
1064 notice and this notice are preserved.
1070 version-control: never