1 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3 * readelf.c (dump_section_as_ctf): Support .ctf archives using
4 ctf_arc_bufopen. Automatically load the .ctf member of such
5 archives as the parent of all other members, unless specifically
6 overridden via --ctf-parent. Split out dumping code into...
7 (dump_ctf_archive_member): ... here, as in objdump, and call
8 it once per archive member.
9 (dump_ctf_indent_lines): Code style fix.
11 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
13 * configure.ac [--enable-libctf]: New, default yes.
14 Set ENABLE_LIBCTF accordingly.
15 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
16 * configure: Regenerate.
17 * config.in: Regenerate.
18 * Makefile.in: Regenerate.
19 * aclocal.m4: Regenerate.
20 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
21 (option_values): Likewise.
22 (long_options): Likewise.
24 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
25 (make_ctfsect): Likewise.
26 (dump_ctf_archive_member): Likewise.
27 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
28 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
29 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
31 (process_section_contents): Likewise.
32 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
33 (dump_ctf_indent_lines): Likewise.
34 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
36 2020-06-26 Jan Beulich <jbeulich@suse.com>
38 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
39 redundant text from x86 specific part of -M section.
41 2020-06-26 Pat Bernardi <bernardi@adacore.com>
43 * readelf.c (display_m68k_gnu_attribute): New function.
44 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
46 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
49 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
50 * testsuite/binutils-all/pr26160.r: Likewise.
51 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
53 2020-06-23 Nick Clifton <nickc@redhat.com>
56 * dwarf.c (fetch_indexed_string): Detect and handle old style
57 .debug_str_offset tables.
58 (display_debug_str_offsets): Likewise. Also add support for
59 .debug_str_offsets.dwo sections.
61 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
64 * testsuite/binutils-all/pr26112.o.bz2: New file.
65 * testsuite/binutils-all/pr26112.r: Likewise.
66 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
68 2020-06-23 Alan Modra <amodra@gmail.com>
70 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
71 remote_file delete command.
73 2020-06-22 Nick Clifton <nickc@redhat.com>
76 * dwarf.c (display_debug_str_offsets): Add code to display the
77 contents of the .debug_str_offsets section.
78 (display_debug_macro): Add support for DW_MACRO_define_strx and
81 2020-06-22 Saagar Jha <saagar@saagarjha.com>
83 * od-macho.c: Dump linkedit data for new load commands.
85 2020-06-19 Alan Modra <amodra@gmail.com>
87 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
88 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
89 (run_dump_test): Use check_relro_support to decide whether to pass
90 extra ld option "-z norelro".
92 2020-06-11 Alan Modra <amodra@gmail.com>
94 * readelf.c (process_mips_specific): Don't alloc memory for
97 2020-06-11 Alan Modra <amodra@gmail.com>
99 * readelf.c (process_mips_specific): Assert size of internal
100 types match size of external types, and simplify allocation of
101 internal buffer. Catch possible integer overflow when sanity
102 checking option size. Don't assume options are a regular array.
103 Sanity check reginfo option against option size. Use PRI macros
106 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
109 * mclex.c (yylex): Reject lines that reach end-of-file without a
110 terminating newline character.
112 2020-06-08 Nick Clifton <nickc@redhat.com>
115 * doc/binutils.texi (strings): Fix typo.
117 2020-06-08 Nick Clifton <nickc@redhat.com>
120 * dwarf.c (process_debug_info): Check that there is space in the
121 debug_information array before filling in an entry.
123 2020-06-06 Alan Modra <amodra@gmail.com>
125 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
127 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
130 * mclex.c (yylex): Add test for an empty input stream.
132 2020-06-04 Stephen Casner <casner@acm.org>
134 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
135 for test using section pseudo-ops compatible with pdp11.
136 * testsuite/binutils-all/objcopy.exp: Select alternate source.
138 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
140 * objdump.c (disassemble_data): Set disasm_info.endian_code to
141 disasm_info.endian after the latter is initialized to the
142 endianness reported by BFD.
144 2020-06-04 Alan Modra <amodra@gmail.com>
146 * testsuite/binutils-all/i386/i386.exp: Remove global directive
148 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
149 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
151 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
153 * windmc.h (struct mc_node): Add id_typecast field.
154 * mcparse.y (message): Initialise the id_typecast field.
155 * windmc.c (write_dbg): Use the id_typecast field as a parameter
156 when calling write_dbg_define.
157 (write_header): Likewise.
159 2020-06-03 Alan Modra <amodra@gmail.com>
162 * objcopy.c (copy_relocations_in_section): Free relpp on error.
163 Don't accidentally free isection->orelocation.
165 2020-06-02 Alan Modra <amodra@gmail.com>
167 * testsuite/binutils-all/ar.exp (obj): Set up object file name
168 extension. Use throughout. Don't completely exclude non-ELF
169 alpha targets. Run long_filenames test for tic30. Exclude thin
170 archive tests for aix, ecoff and vms.
171 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
172 extension. Use throughout. Don't exclude non-ELF alpha targets
175 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
177 * MAINTAINERS (Xtensa): Add myself as maintainer.
179 2020-05-23 Alan Modra <amodra@gmail.com>
181 * testsuite/binutils-all/ar.exp (many_files): New test.
183 2020-05-21 Alan Modra <amodra@gmail.com>
185 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
186 * dlltool.c: Likewise.
187 * elfcomm.c: Likewise.
189 * readelf.c: Likewise.
191 * windmc.c: Likewise.
192 * windres.c: Likewise.
193 * wrstabs.c: Likewise.
195 2020-05-21 Alan Modra <amodra@gmail.com>
197 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
200 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
202 * dwarf.c: Updated since DECLARE_CSR is changed.
204 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
207 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
208 segment doesn't match the .dynamic section and checks are
210 (struct filedata): Add dynamic_symtab_section and
211 dynamic_strtab_section fields.
212 (process_section_headers): Set dynamic_symtab_section to the
213 .dynsym section. Set dynamic_strtab_section to the .dynstr
215 (process_dynamic_section): Warn if the .dynsym section doesn't
216 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
217 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
219 2020-05-19 Alan Modra <amodra@gmail.com>
221 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
222 (replace_members): Use bfd_get_filename rather than accessing
223 bfd->filename directly.
224 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
225 * binemul.c (do_ar_emul_append): Likewise.
226 * coffgrok.c (coff_grok): Likewise.
228 2020-05-18 Stafford Horne <shorne@gmail.com>
230 * MAINTAINERS (OR1K): Add myself as maintainer.
232 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
234 * doc/binutils.texi: Mention 'entry address' in the set-start and
235 adjust-start options descriptions.
237 2020-05-05 Nick Clifton <nickc@redhat.com>
239 * dwarf.c (do_checks): New global variable.
240 (display_formatted_table): Warn about an unexpected number of
241 columns in the table, if checks are enabled. Do not complain
242 about the lack of data following the number of entries in the
243 table if the table is empty.
244 (display_debug_lines_decoded): Only warn about an unexpected
245 number of columns in a table if checks are enabled.
246 * dwarf.h (do_checks): Add a prototype.
247 * elfcomm.c (error): Remove weak attribute.
249 * readelf.c (do_checks): Delete.
251 (process_section_headers): Only warn about empty sections if
254 2020-05-04 Fangrui Song <maskray@google.com>
256 * objcopy.c (copy_object): Allow empty section.
257 * testsuite/binutils-all/update-section.exp: Add test.
259 2020-05-04 Nick Clifton <nickc@redhat.com>
262 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
263 supicious number of entries for DWARF-5 format directory and file
264 name tables. Do not display file name table header if the table
265 is empty. Do not allocate space for empty tables.
267 2020-05-04 Alan Modra <amodra@gmail.com>
269 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
270 section. Don't assume endian of host matches nds32 target. Free
273 2020-05-01 Alan Modra <amodra@gmail.com>
274 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
276 * objdump.c (disassemble_bytes): Don't scan for zeros when
277 disassembling zeros. Translate "resuming at file offset" message.
278 Formatting. Replace some signed variables with unsigned.
280 2020-04-30 Alex Coplan <alex.coplan@arm.com>
282 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
284 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
286 2020-04-30 Nick Clifton <nickc@redhat.com>
288 * testsuite/lib/binutils-common.exp (check_pie_support): New
291 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
293 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
294 range_entries for the same offset.
296 2020-04-29 Nick Clifton <nickc@redhat.com>
298 * readelf.c (warn): New function - like elfcomm.c version but only
299 produces output if warnings are enabled.
300 (struct options): Add --lint and --enable-checks.
301 (usage): Add entry for --lint.
302 (parse_args): Handle -L. If checks are enabled but no dumps have
303 been selected then enable all dumps.
304 (process_section_headers): Replace long if-then-else sequence with
305 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
306 SHT_PROGBITS sections.
307 (process_file): Do not complain if the file is an archive and lint
308 mode has been enabled.
309 * elfcomm.c (error): Make the function weak.
311 * NEWS: Mention the new feature.
312 * doc/binutils.texi: Document the new feature.
313 * dwarf.h (report_leb_status): Add file name and line number
314 parameters. Include them in the diagnostic output.
315 (READ_ULEB): Pass file and line number to report_leb_status.
316 (READ_SLEB): Likewise.
317 * dwarf.c (read_and_print_leb128): Pass file and line number to
319 * testsuite/binutils-all/readelf.exp: Add test of new feature.
320 * testsuite/binutils-all/zero-sec.s: New test source file.
321 * testsuite/binutils-all/zero-sec.r: Expected output from new
324 2020-04-29 Nick Clifton <nickc@redhat.com>
326 * po/sr.po: Updated Serbian translation.
328 2020-04-26 Alan Modra <amodra@gmail.com>
330 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
331 read before dereferencing, and gracefully return. Remove
332 gnu_hash_error variable. Free gnu hash arrays if number of
335 2020-04-24 Alan Modra <amodra@gmail.com>
337 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
339 (process_dynamic_section): Call get_num_dynamic_syms once rather
340 than in segment loop. Break out of segment loop on a successful
341 load of dynamic symbols. Formatting.
342 (process_object): Return error status from process_dynamic_section.
344 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
346 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
347 * elf.c (elfcore_grok_arc_v2): New function.
348 (elfcore_grok_note): Call the new function to handle the corresponding
350 (elfcore_write_arc_v2): New function.
351 (elfcore_write_register_note): Call the new function to handle the
352 corresponding pseudo-sections.
354 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
357 * readelf.c (is_none_reloc): Recognize
358 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
359 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
361 2020-04-22 Nick Clifton <nickc@redhat.com>
363 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
365 2020-04-22 Alan Modra <amodra@gmail.com>
367 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
368 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
369 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
370 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
371 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
372 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
373 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
374 (dynamic_section, symtab_shndx_list, group_count, section_groups),
375 (section_headers_groups): Move to struct filedata. Update use
378 2020-04-22 Alan Modra <amodra@gmail.com>
380 * readelf.c (struct dump_data): New, used..
381 (cmdline): ..here, and..
382 (struct filedata): ..here. Adjust all uses.
383 (request_dump_bynumber, request_dump, parse_args): Pass in a
384 struct dump_data* rather than Filedata*. Adjust callers.
385 (main): Don't set cmdline.file_name.
387 2020-04-20 Alan Modra <amodra@gmail.com>
389 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
392 2020-04-20 Alan Modra <amodra@gmail.com>
394 * readelf.c (process_section_headers): Free dynamic symbols etc.
397 2020-04-20 Alan Modra <amodra@gmail.com>
399 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
400 on error without freeing.
401 (process_dynamic_section): Don't recreate dynamic symbols from
402 dynamic tag info when the dynamic symbols have already been
403 read via section headers.
405 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
407 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
408 conditional VDUP instructions are disassembled correctly.
409 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
411 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
412 that VDUP instructions (which are conditional in A32) can be
413 disassembled in thumb mode.
414 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
417 2020-04-17 Alan Modra <amodra@gmail.com>
420 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
422 2020-04-16 Alan Modra <amodra@gmail.com>
424 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
425 --no-addresses description.
427 2020-04-15 Alan Modra <amodra@gmail.com>
429 * objdump.c (no_addresses): New static var.
430 (usage): Print help for --no-addresses.
431 (long_options): Add --no-addresses entry.
432 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
433 (disassemble_bytes): Don't print current line address, or reloc
435 * doc/binutils.texi: Document objdump --no-addresses.
437 2020-04-15 Alan Modra <amodra@gmail.com>
440 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
441 reading buckets or chains fails.
443 2020-04-15 Alan Modra <amodra@gmail.com>
445 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
448 2020-04-15 Alan Modra <amodra@gmail.com>
450 * readelf.c (get_group_flags): Translate text.
451 (get_file_type, get_symbol_binding, get_symbol_type),
452 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
454 2020-04-15 Alan Modra <amodra@gmail.com>
457 * readelf.c (get_num_dynamic_syms): Typo fix.
459 2020-04-14 Alan Modra <amodra@gmail.com>
461 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
462 possibility of overflow when checking number of conflicts.
464 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
467 * readelf.c (nbuckets): New.
471 (ngnubuckets): Likewise.
472 (gnubuckets): Likewise.
473 (gnuchains): Likewise.
474 (mipsxlat): Likewise.
475 (ngnuchains): Likewise.
476 (gnusymidx): Likewise.
477 (VALID_SYMBOL_NAME): Likewise.
478 (VALID_DYNAMIC_NAME): Use it.
479 (get_dynamic_data): Moved before process_dynamic_section.
480 (get_num_dynamic_syms): New function.
481 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
482 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
483 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
485 (get_symbol_index_type): Don't print "bad section index" when
486 there is no section header.
487 (print_dynamic_symbol): Rewrite.
488 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
491 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
493 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
494 enable on *-*-solaris*.
496 2020-03-30 Nick Clifton <nickc@redhat.com>
499 * objcopy.c (copy_object): When copying PE format files set the
500 timestamp field in the pe_data structure if the preserve_dates
502 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
503 --preserve-dates in place of the -p option, in order to make its
506 2020-03-28 Alan Modra <amodra@gmail.com>
508 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
509 clear_xfail hppa*-*-*elf*. Revert mips xfails.
511 2020-03-28 Alan Modra <amodra@gmail.com>
513 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
514 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
515 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
516 test. Pass "-p" to objcopy for the executable test.
518 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
521 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
522 specify whether an object file or executable should be built and tested.
523 Change test names to report whether an object file or executable is
525 * testsuite/binutils-all/pr25662.ld: New test.
526 * testsuite/binutils-all/pr25662.s: New test.
528 2020-03-27 Alan Modra <amodra@gmail.com>
530 * readelf.c (process_archive): Don't double free qualified_name.
531 Don't break out of loop with "negative" archive_file_size, just
532 set file offset to max.
534 2020-03-25 Alan Modra <amodra@gmail.com>
536 * readelf.c (process_archive): Prevent endless loop.
538 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
541 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
542 with bfd_get_symbol_version_string.
543 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
544 * objdump.c (objdump_print_symname): Likewise.
546 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
549 * nm.c (SYM_NAME): Removed.
550 (print_symname): Add a pointer to struct extended_symbol_info
551 argument. Call _bfd_elf_get_symbol_version_name to get symbol
553 (print_symdef_entry): Pass NULL to print_symname.
554 (print_symbol_info_bsd): Update call to print_symname.
555 (print_symbol_info_sysv): Likewise.
556 (print_symbol_info_posix): Likewise.
558 2020-03-24 Alan Modra <amodra@gmail.com>
560 * readelf.c (process_mips_specific): Free iconf on error path.
562 2020-03-23 Nick Clifton <nickc@redhat.com>
565 * wrstabs.c (stab_pop_type): Replace assertion with error return.
566 * write_stabs_in_sections_debugging_info: Likewise.
567 * stab_enum_type: Likewise.
568 * stab_modify_type: Likewise.
569 * stab_struct_field: Likewise.
570 * stab_end_struct_type: Likewise.
571 * stab_start_class_type: Likewise.
572 * stab_class_static_member: Likewise.
573 * stab_class_baseclass: Likewise.
574 * stab_class_start_method: Likewise.
575 * stab_class_method_var: Likewise.
576 * stab_class_end_method: Likewise.
577 * stab_end_class_type: Likewise.
578 * stab_typedef_type: Likewise.
579 * stab_start_function: Likewise.
580 * stab_end_block: Likewise.
581 * stab_lineno: Likewise.
583 2020-03-20 Nick Clifton <nickc@redhat.com>
585 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
586 (process_section_headers): Check the return value from
587 get_compression_header.
588 (dump_section_as_strings): Likewise.
589 (dump_section_as_bytes): Likewise.
590 (load_specific_debug_section): Likewise.
592 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
594 * ar.c (main): Update bfd_plugin_set_program_name call.
595 * nm.c (main): Likewise.
597 2020-03-19 Nick Clifton <nickc@redhat.com>
600 * testsuite/binutils-all/dw4.s: New test source file.
601 * testsuite/binutils-all/nm.exp: Run the new test.
603 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
605 * readelf.c (process_symbol_table): Use unsigned long for si.
607 2020-03-19 Alan Modra <amodra@gmail.com>
609 * elfcomm.c: Don't include bfd.h or bucomm.h.
610 (program_name): Declare.
611 (process_archive_index_and_symbols): Replace bfd_boolean with int,
612 and substitute FALSE and TRUE.
613 (setup_archive, setup_nested_archive): Likewise.
614 * elfcomm.h: Likewise.
616 2020-03-19 Alan Modra <amodra@gmail.com>
618 * readelf.c (process_archive): Always return via path freeing
621 2020-03-19 Alan Modra <amodra@gmail.com>
623 * readelf.c (process_netbsd_elf_note): Validate descsz before
624 accessing descdata. Formatting.
626 2020-03-19 Alan Modra <amodra@gmail.com>
628 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
629 * elfcomm.h (setup_archive): Update prototype.
631 2020-03-16 Alan Modra <amodra@gmail.com>
633 * readelf.c (get_symbols): New function.
634 (process_relocs, ia64_process_unwind, hppa_process_unwind),
635 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
637 2020-03-16 Alan Modra <amodra@gmail.com>
639 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
640 Detect shift overflows and check that terminating byte is found.
641 Print an error on a bad uleb128.
643 2020-03-14 Alan Modra <amodra@gmail.com>
645 * readelf.c (process_file): Clean ba_cache.
647 2020-03-14 Alan Modra <amodra@gmail.com>
649 * elfcomm.h (setup_archive): Update prototype.
650 * elfcomm.c (setup_archive): Add file_size parameter and sanity
651 check longnames_size.
652 (setup_nested_archive): Get file size and pass to setup_archive.
653 * elfedit.c (process_archive): Likewise.
654 * readelf.c (process_archive): Pass filedata->file_size to
657 2020-03-14 Alan Modra <amodra@gmail.com>
659 * readelf.c (dump_section_as_strings): Free memory on error exit.
660 (dump_section_as_bytes, process_notes_at): Likewise.
661 (get_build_id): Free enote.
663 2020-03-13 Kamil Rytarowski <n54@gmx.com>
665 * readelf.c (get_netbsd_elfcore_note_type): Add support for
666 NT_NETBSDCORE_LWPSTATUS notes.
668 2020-03-13 Alan Modra <amodra@gmail.com>
670 * elfcomm.c (get_archive_member_name): Always return malloc'd
672 * elfedit.c (process_archive): Tidy memory on all return paths.
673 * readelf.c (process_archive): Likewise.
674 (process_symbol_table): Likewise.
675 (ba_cache): New, replacing ..
676 (get_symbol_for_build_attribute): ..static vars here. Free
677 strtab and symtab before loading new ones. Reject symtab without
678 valid strtab in loop, breaking out of loop on valid symtab.
679 (process_file): Free ba_cache symtab and strtab here, resetting
682 2020-03-12 Alan Modra <amodra@gmail.com>
684 * readelf.c (process_section_headers): Don't just set
685 filedata->section_headers NULL, free it first. Similarly for
686 dynamic_symbols, dynamic_strings, dynamic_syminfo and
687 symtab_shndx_list. Zero associated counts too.
688 (process_object): Free symtab_shndx_list.
689 (process_file): Free various allocated filedata tables.
691 2020-03-11 Nick Clifton <nickc@redhat.com>
695 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
696 li_segment_size fields.
697 * dwarf.c (read_debug_line_header): Record the address size and
698 segment selector size values (if present) in the lineinfo
700 (display_formatted_table): Warn if the format count is empty but
701 the table itself is not empty.
702 Display the format count and entry count at the start of the table
704 (display_debug_lines_raw): Display the address size and segement
705 selector size fields, if present.
706 * testsuite/binutils-all/dw5.W: Update expected output.
708 2020-03-11 Alan Modra <amodra@gmail.com>
711 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
712 pad_to_set on second block of code dealing with padding.
713 Replace "c" with "num_sec" and don't recalculate number of
714 sections on second block. Size arrays using sizeof (element)
715 rather than sizeof (element type).
717 2020-03-10 Alan Modra <amodra@gmail.com>
719 * objdump.c (disassemble_section): Don't call qsort unless
720 sym count is at least two.
721 (disassemble_data): Don't call memcpy with NULL src.
723 2020-03-09 Alan Modra <amodra@gmail.com>
726 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
727 to get_data rather than multiplying.
728 (dump_ia64_vms_dynamic_relocs): Likewise.
729 (process_version_sections): Correct order of size and nmemb args
731 (process_mips_specific): Likewise.
733 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
735 * readelf.c (get_dynamic_data): Replace "memory chekers" with
736 "memory checkers" in comments.
738 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
741 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
742 * doc/Makefile.in: Re-generate.
744 2020-03-06 Nick Clifton <nickc@redhat.com>
746 * objcopy.c (check_new_section_flags): New function. Reject the
747 SEC_COFF_SHARED flag if the target is not a COFF binary.
748 (copy_object): Call check_new_section_flags.
749 (setup_section): Likewise.
750 * doc/binutils.texi (objcopy): Add a note that the 'share' section
751 flag cannot be applied to ELF binaries.
753 2020-03-06 Alan Modra <amodra@gmail.com>
756 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
758 2020-03-05 Alan Modra <amodra@gmail.com>
761 * objcopy.c (filter_symbols): Don't segfault on NULL
762 prefix_symbols_string.
764 2020-03-04 Christian Eggers <ceggers@gmx.de>
766 * objcopy.c (copy_object): Convert from bytes to octets for
767 --gap-fill and --pad-to.
769 2020-03-03 Nick Clifton <nickc@redhat.com>
772 * prdbg.c (pr_tag_type): Remove call to abort.
774 2020-03-02 Aaron Merey <amerey@redhat.com>
776 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
779 2020-03-02 Nick Clifton <nickc@redhat.com>
782 * readelf.c (dump_section_as_strings): Display new-line characters
783 as \n and then insert a line break.
784 * testsuite/binutils-all/pr25543.s: New test.
785 * testsuite/binutils-all/pr25543.d: Test driver.
786 * testsuite/binutils-all/readelf.exp: Run the new test.
788 2020-02-27 Nick Clifton <nickc@redhat.com>
791 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
792 get_data is unable to load the string table.
794 2020-02-26 Alan Modra <amodra@gmail.com>
796 * elfedit.c: Indent labels correctly.
797 * readelf.c: Likewise.
798 * resres.c: Likewise.
800 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
803 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
804 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
806 2020-02-24 Nick Clifton <nickc@redhat.com>
809 * doc/binutils.texi (objdump): Fix typo in description of
812 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
814 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
817 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
819 * objdump.c (show_line): call bfd_demangle when using do_demangle.
821 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
823 * configure: Regenerate.
825 2020-02-10 Fangrui Song <maskray@google.com>
827 * objcopy.c (parse_flags): Handle "exclude".
828 * doc/binutils.texi: Document the support.
830 2020-02-10 Aaron Merey <amerey@redhat.com>
832 * binutils/testsuite/binutils-all/debuginfod.exp:
833 Replace set ::env with setenv.
834 Start server before setting environment variable.
835 Specify tmpdir as the location of the server's
837 Check additional server metrics at start-up.
839 2020-02-07 Nick Clifton <nickc@redhat.com>
841 * README-how-to-make-a-release: Add note about updating the
842 GAS/NEWS URL in the next release.
844 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
847 * readelf.c (get_machine_flags): Add support for Z80N machine
850 2020-02-07 Nick Clifton <nickc@redhat.com>
852 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
853 of the truncated file name.
855 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
857 * objdump.c (print_jump_visualisation): New function.
858 (disassemble_bytes): Call new function.
860 2020-02-06 Alan Modra <amodra@gmail.com>
862 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
864 (supports_gnu_osabi): New procedure.
865 (is_generic): New, from ld-lib.exp.
866 (supports_gnu_unique): Use the above.
868 2020-02-04 Alan Modra <amodra@gmail.com>
870 * Makefile.am (CFILES): Add od-elf32_avr.c.
871 * Makefile.in: Regenerate.
872 * po/POTFILES.in: Regenerate.
874 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
876 * readelf.c (dump_relocations, dump_relocations)
877 (decode_arm_unwind_bytecode, process_dynamic_section)
878 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
881 2020-02-03 Sergei Trofimovich <siarheit@google.com>
883 * coffdump.c (program_name): Drop redundant definition.
884 * srconv.c (program_name): Likewise
885 * sysdump.c (program_name): Likewise
887 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
890 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
891 same file with different section pointers.
893 2020-02-01 Nick Clifton <nickc@redhat.com>
895 * README-how-to-make-a-release: Update with more details on the
896 release making process.
898 2020-01-31 Nick Clifton <nickc@redhat.com>
900 * po/sv.po: Updated Swedish translation.
902 2020-01-28 Nick Clifton <nickc@redhat.com>
904 * readelf.c (get_build_id): Simplify warning message about corrupt
905 notes encountered whilst scanning for the build-id.
907 2020-01-27 Roland McGrath <mcgrathr@google.com>
909 * objcopy.c (compare_gnu_build_notes): Fix comparison results
910 for overlapping ranges so that (A == B) == (B == A) holds.
912 2020-01-27 Alan Modra <amodra@gmail.com>
914 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
915 case statement with switch statement.
917 2020-01-24 Nick Clifton <nickc@redhat.com>
919 * readelf.c (get_build_id): Fix warning messages about corrupt
922 2020-01-23 Nick Clifton <nickc@redhat.com>
924 * po/fr.po: Updated French translation.
926 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
929 * readelf.c (get_alpha_symbol_other): Fix error message typo.
931 2020-01-20 Nick Clifton <nickc@redhat.com>
933 * po/pt.po: Updated Portuguese translation.
934 * po/uk.po: Updated Ukranian translation.
936 2020-01-18 Nick Clifton <nickc@redhat.com>
938 * README-how-to-make-a-release: Update notes on how to cut a
939 branch for a release.
941 2020-01-18 Nick Clifton <nickc@redhat.com>
943 * configure: Regenerate.
944 * po/binutils.pot: Regenerate.
946 2020-01-18 Nick Clifton <nickc@redhat.com>
948 Binutils 2.34 branch created.
950 2020-01-17 Thomas Troeger <tstroege@gmx.de>
952 * objdump.c (jump_info_visualize_address): Discard jumps that are
954 (disassemble_bytes): Only compute the maximum level if jumps were
957 2020-01-13 Nick Clifton <nickc@redhat.com>
959 * objdump.c (disassemble_bytes): Remove C99-ism.
960 * testsuite/binutils-all/debuginfod.exp: New tests.
962 2020-01-13 Thomas Troeger <tstroege@gmx.de>
964 * objdump.c (visualize_jumps, color_output, extended_color_output)
965 (detected_jumps): New variables.
966 (usage): Add the new jump visualization options.
967 (option_values): Add new option value.
968 (long_options): Add the new option.
969 (jump_info_new, jump_info_free): New functions.
970 (jump_info_min_address, jump_info_max_address): Likewise.
971 (jump_info_end_address, jump_info_is_start_address): Likewise.
972 (jump_info_is_end_address, jump_info_size): Likewise.
973 (jump_info_unlink, jump_info_insert): Likewise.
974 (jump_info_add_front, jump_info_move_linked): Likewise.
975 (jump_info_intersect, jump_info_merge): Likewise.
976 (jump_info_sort, jump_info_visualize_address): Likewise.
977 (disassemble_jumps): New function - used to locate jumps.
978 (disassemble_bytes): Add ascii art generation.
979 (disassemble_section): Add scan to locate jumps.
980 (main): Parse the new visualization option.
981 * doc/binutils.texi: Document the new feature.
982 * NEWS: Mention the new feature.
984 2020-01-13 Alan Modra <amodra@gmail.com>
988 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
989 fde_fc col_type and col_offset.
990 * readelf.c (apply_relocations): Move symsec check earlier.
991 (free_debug_section): Free reloc_info.
992 (process_notes_at): Free pnotes on error path.
993 (process_object): Free dump_sects here..
994 (process_archive): ..not here.
996 2020-01-13 Alan Modra <amodra@gmail.com>
999 * nm.c (display_rel_file): Free dyn_syms.
1001 2020-01-09 Nick Clifton <nickc@redhat.com>
1004 * objcopy.c (empty_name): New variable.
1005 (need_sym_before): Prevent an attempt to free a static variable.
1006 (filter_symbols): Avoid strcmp test by checking for pointer
1009 2020-01-09 Nick Clifton <nickc@redhat.com>
1011 * po/zh_TW.po: Updated Traditional Chinese translation.
1013 2020-01-09 Aaron Merey <amerey@redhat.com>
1015 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1016 * Makefile.in: Regenerate.
1018 * config.in: Regenerate.
1019 * configure: Regenerate.
1020 * configure.ac: Call AC_DEBUGINFOD.
1021 * doc/Makefile.in: Regenerate.
1022 * doc/binutils.texi: Add section on using binutils
1024 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1025 Query debuginfod servers for the target debug file.
1026 (load_separate_debug_info): Call
1027 debuginfod_fetch_separate_debug_info if configured with
1029 (load_separate_debug_files): Add file argument to
1030 load_separate_debug_info calls.
1031 * dwarf.h (get_build_id): Add declaration.
1032 * objdump.c (get_build_id): New function. Get build-id of file.
1033 * readelf.c (get_build_id): Likewise.
1034 * testsuite/binutils-all/debuginfod.exp: New tests.
1035 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1038 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1040 * readelf.c: Add support for new Z*) relocations and machine
1043 2020-01-01 Alan Modra <amodra@gmail.com>
1045 Update year range in copyright notice of all files.
1047 For older changes see ChangeLog-2019
1049 Copyright (C) 2020 Free Software Foundation, Inc.
1051 Copying and distribution of this file, with or without modification,
1052 are permitted in any medium without royalty provided the copyright
1053 notice and this notice are preserved.
1059 version-control: never