1 2020-04-15 Alan Modra <amodra@gmail.com>
4 * readelf.c (get_num_dynamic_syms): Typo fix.
6 2020-04-14 Alan Modra <amodra@gmail.com>
8 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
9 possibility of overflow when checking number of conflicts.
11 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
14 * readelf.c (nbuckets): New.
18 (ngnubuckets): Likewise.
19 (gnubuckets): Likewise.
20 (gnuchains): Likewise.
22 (ngnuchains): Likewise.
23 (gnusymidx): Likewise.
24 (VALID_SYMBOL_NAME): Likewise.
25 (VALID_DYNAMIC_NAME): Use it.
26 (get_dynamic_data): Moved before process_dynamic_section.
27 (get_num_dynamic_syms): New function.
28 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
29 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
30 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
32 (get_symbol_index_type): Don't print "bad section index" when
33 there is no section header.
34 (print_dynamic_symbol): Rewrite.
35 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
38 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
41 enable on *-*-solaris*.
43 2020-03-30 Nick Clifton <nickc@redhat.com>
46 * objcopy.c (copy_object): When copying PE format files set the
47 timestamp field in the pe_data structure if the preserve_dates
49 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
50 --preserve-dates in place of the -p option, in order to make its
53 2020-03-28 Alan Modra <amodra@gmail.com>
55 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
56 clear_xfail hppa*-*-*elf*. Revert mips xfails.
58 2020-03-28 Alan Modra <amodra@gmail.com>
60 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
61 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
62 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
63 test. Pass "-p" to objcopy for the executable test.
65 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
68 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
69 specify whether an object file or executable should be built and tested.
70 Change test names to report whether an object file or executable is
72 * testsuite/binutils-all/pr25662.ld: New test.
73 * testsuite/binutils-all/pr25662.s: New test.
75 2020-03-27 Alan Modra <amodra@gmail.com>
77 * readelf.c (process_archive): Don't double free qualified_name.
78 Don't break out of loop with "negative" archive_file_size, just
79 set file offset to max.
81 2020-03-25 Alan Modra <amodra@gmail.com>
83 * readelf.c (process_archive): Prevent endless loop.
85 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
88 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
89 with bfd_get_symbol_version_string.
90 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
91 * objdump.c (objdump_print_symname): Likewise.
93 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
96 * nm.c (SYM_NAME): Removed.
97 (print_symname): Add a pointer to struct extended_symbol_info
98 argument. Call _bfd_elf_get_symbol_version_name to get symbol
100 (print_symdef_entry): Pass NULL to print_symname.
101 (print_symbol_info_bsd): Update call to print_symname.
102 (print_symbol_info_sysv): Likewise.
103 (print_symbol_info_posix): Likewise.
105 2020-03-24 Alan Modra <amodra@gmail.com>
107 * readelf.c (process_mips_specific): Free iconf on error path.
109 2020-03-23 Nick Clifton <nickc@redhat.com>
112 * wrstabs.c (stab_pop_type): Replace assertion with error return.
113 * write_stabs_in_sections_debugging_info: Likewise.
114 * stab_enum_type: Likewise.
115 * stab_modify_type: Likewise.
116 * stab_struct_field: Likewise.
117 * stab_end_struct_type: Likewise.
118 * stab_start_class_type: Likewise.
119 * stab_class_static_member: Likewise.
120 * stab_class_baseclass: Likewise.
121 * stab_class_start_method: Likewise.
122 * stab_class_method_var: Likewise.
123 * stab_class_end_method: Likewise.
124 * stab_end_class_type: Likewise.
125 * stab_typedef_type: Likewise.
126 * stab_start_function: Likewise.
127 * stab_end_block: Likewise.
128 * stab_lineno: Likewise.
130 2020-03-20 Nick Clifton <nickc@redhat.com>
132 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
133 (process_section_headers): Check the return value from
134 get_compression_header.
135 (dump_section_as_strings): Likewise.
136 (dump_section_as_bytes): Likewise.
137 (load_specific_debug_section): Likewise.
139 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
141 * ar.c (main): Update bfd_plugin_set_program_name call.
142 * nm.c (main): Likewise.
144 2020-03-19 Nick Clifton <nickc@redhat.com>
147 * testsuite/binutils-all/dw4.s: New test source file.
148 * testsuite/binutils-all/nm.exp: Run the new test.
150 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
152 * readelf.c (process_symbol_table): Use unsigned long for si.
154 2020-03-19 Alan Modra <amodra@gmail.com>
156 * elfcomm.c: Don't include bfd.h or bucomm.h.
157 (program_name): Declare.
158 (process_archive_index_and_symbols): Replace bfd_boolean with int,
159 and substitute FALSE and TRUE.
160 (setup_archive, setup_nested_archive): Likewise.
161 * elfcomm.h: Likewise.
163 2020-03-19 Alan Modra <amodra@gmail.com>
165 * readelf.c (process_archive): Always return via path freeing
168 2020-03-19 Alan Modra <amodra@gmail.com>
170 * readelf.c (process_netbsd_elf_note): Validate descsz before
171 accessing descdata. Formatting.
173 2020-03-19 Alan Modra <amodra@gmail.com>
175 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
176 * elfcomm.h (setup_archive): Update prototype.
178 2020-03-16 Alan Modra <amodra@gmail.com>
180 * readelf.c (get_symbols): New function.
181 (process_relocs, ia64_process_unwind, hppa_process_unwind),
182 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
184 2020-03-16 Alan Modra <amodra@gmail.com>
186 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
187 Detect shift overflows and check that terminating byte is found.
188 Print an error on a bad uleb128.
190 2020-03-14 Alan Modra <amodra@gmail.com>
192 * readelf.c (process_file): Clean ba_cache.
194 2020-03-14 Alan Modra <amodra@gmail.com>
196 * elfcomm.h (setup_archive): Update prototype.
197 * elfcomm.c (setup_archive): Add file_size parameter and sanity
198 check longnames_size.
199 (setup_nested_archive): Get file size and pass to setup_archive.
200 * elfedit.c (process_archive): Likewise.
201 * readelf.c (process_archive): Pass filedata->file_size to
204 2020-03-14 Alan Modra <amodra@gmail.com>
206 * readelf.c (dump_section_as_strings): Free memory on error exit.
207 (dump_section_as_bytes, process_notes_at): Likewise.
208 (get_build_id): Free enote.
210 2020-03-13 Kamil Rytarowski <n54@gmx.com>
212 * readelf.c (get_netbsd_elfcore_note_type): Add support for
213 NT_NETBSDCORE_LWPSTATUS notes.
215 2020-03-13 Alan Modra <amodra@gmail.com>
217 * elfcomm.c (get_archive_member_name): Always return malloc'd
219 * elfedit.c (process_archive): Tidy memory on all return paths.
220 * readelf.c (process_archive): Likewise.
221 (process_symbol_table): Likewise.
222 (ba_cache): New, replacing ..
223 (get_symbol_for_build_attribute): ..static vars here. Free
224 strtab and symtab before loading new ones. Reject symtab without
225 valid strtab in loop, breaking out of loop on valid symtab.
226 (process_file): Free ba_cache symtab and strtab here, resetting
229 2020-03-12 Alan Modra <amodra@gmail.com>
231 * readelf.c (process_section_headers): Don't just set
232 filedata->section_headers NULL, free it first. Similarly for
233 dynamic_symbols, dynamic_strings, dynamic_syminfo and
234 symtab_shndx_list. Zero associated counts too.
235 (process_object): Free symtab_shndx_list.
236 (process_file): Free various allocated filedata tables.
238 2020-03-11 Nick Clifton <nickc@redhat.com>
242 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
243 li_segment_size fields.
244 * dwarf.c (read_debug_line_header): Record the address size and
245 segment selector size values (if present) in the lineinfo
247 (display_formatted_table): Warn if the format count is empty but
248 the table itself is not empty.
249 Display the format count and entry count at the start of the table
251 (display_debug_lines_raw): Display the address size and segement
252 selector size fields, if present.
253 * testsuite/binutils-all/dw5.W: Update expected output.
255 2020-03-11 Alan Modra <amodra@gmail.com>
258 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
259 pad_to_set on second block of code dealing with padding.
260 Replace "c" with "num_sec" and don't recalculate number of
261 sections on second block. Size arrays using sizeof (element)
262 rather than sizeof (element type).
264 2020-03-10 Alan Modra <amodra@gmail.com>
266 * objdump.c (disassemble_section): Don't call qsort unless
267 sym count is at least two.
268 (disassemble_data): Don't call memcpy with NULL src.
270 2020-03-09 Alan Modra <amodra@gmail.com>
273 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
274 to get_data rather than multiplying.
275 (dump_ia64_vms_dynamic_relocs): Likewise.
276 (process_version_sections): Correct order of size and nmemb args
278 (process_mips_specific): Likewise.
280 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
282 * readelf.c (get_dynamic_data): Replace "memory chekers" with
283 "memory checkers" in comments.
285 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
288 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
289 * doc/Makefile.in: Re-generate.
291 2020-03-06 Nick Clifton <nickc@redhat.com>
293 * objcopy.c (check_new_section_flags): New function. Reject the
294 SEC_COFF_SHARED flag if the target is not a COFF binary.
295 (copy_object): Call check_new_section_flags.
296 (setup_section): Likewise.
297 * doc/binutils.texi (objcopy): Add a note that the 'share' section
298 flag cannot be applied to ELF binaries.
300 2020-03-06 Alan Modra <amodra@gmail.com>
303 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
305 2020-03-05 Alan Modra <amodra@gmail.com>
308 * objcopy.c (filter_symbols): Don't segfault on NULL
309 prefix_symbols_string.
311 2020-03-04 Christian Eggers <ceggers@gmx.de>
313 * objcopy.c (copy_object): Convert from bytes to octets for
314 --gap-fill and --pad-to.
316 2020-03-03 Nick Clifton <nickc@redhat.com>
319 * prdbg.c (pr_tag_type): Remove call to abort.
321 2020-03-02 Aaron Merey <amerey@redhat.com>
323 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
326 2020-03-02 Nick Clifton <nickc@redhat.com>
329 * readelf.c (dump_section_as_strings): Display new-line characters
330 as \n and then insert a line break.
331 * testsuite/binutils-all/pr25543.s: New test.
332 * testsuite/binutils-all/pr25543.d: Test driver.
333 * testsuite/binutils-all/readelf.exp: Run the new test.
335 2020-02-27 Nick Clifton <nickc@redhat.com>
338 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
339 get_data is unable to load the string table.
341 2020-02-26 Alan Modra <amodra@gmail.com>
343 * elfedit.c: Indent labels correctly.
344 * readelf.c: Likewise.
345 * resres.c: Likewise.
347 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
350 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
351 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
353 2020-02-24 Nick Clifton <nickc@redhat.com>
356 * doc/binutils.texi (objdump): Fix typo in description of
359 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
361 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
364 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
366 * objdump.c (show_line): call bfd_demangle when using do_demangle.
368 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
370 * configure: Regenerate.
372 2020-02-10 Fangrui Song <maskray@google.com>
374 * objcopy.c (parse_flags): Handle "exclude".
375 * doc/binutils.texi: Document the support.
377 2020-02-10 Aaron Merey <amerey@redhat.com>
379 * binutils/testsuite/binutils-all/debuginfod.exp:
380 Replace set ::env with setenv.
381 Start server before setting environment variable.
382 Specify tmpdir as the location of the server's
384 Check additional server metrics at start-up.
386 2020-02-07 Nick Clifton <nickc@redhat.com>
388 * README-how-to-make-a-release: Add note about updating the
389 GAS/NEWS URL in the next release.
391 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
394 * readelf.c (get_machine_flags): Add support for Z80N machine
397 2020-02-07 Nick Clifton <nickc@redhat.com>
399 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
400 of the truncated file name.
402 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
404 * objdump.c (print_jump_visualisation): New function.
405 (disassemble_bytes): Call new function.
407 2020-02-06 Alan Modra <amodra@gmail.com>
409 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
411 (supports_gnu_osabi): New procedure.
412 (is_generic): New, from ld-lib.exp.
413 (supports_gnu_unique): Use the above.
415 2020-02-04 Alan Modra <amodra@gmail.com>
417 * Makefile.am (CFILES): Add od-elf32_avr.c.
418 * Makefile.in: Regenerate.
419 * po/POTFILES.in: Regenerate.
421 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
423 * readelf.c (dump_relocations, dump_relocations)
424 (decode_arm_unwind_bytecode, process_dynamic_section)
425 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
428 2020-02-03 Sergei Trofimovich <siarheit@google.com>
430 * coffdump.c (program_name): Drop redundant definition.
431 * srconv.c (program_name): Likewise
432 * sysdump.c (program_name): Likewise
434 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
437 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
438 same file with different section pointers.
440 2020-02-01 Nick Clifton <nickc@redhat.com>
442 * README-how-to-make-a-release: Update with more details on the
443 release making process.
445 2020-01-31 Nick Clifton <nickc@redhat.com>
447 * po/sv.po: Updated Swedish translation.
449 2020-01-28 Nick Clifton <nickc@redhat.com>
451 * readelf.c (get_build_id): Simplify warning message about corrupt
452 notes encountered whilst scanning for the build-id.
454 2020-01-27 Roland McGrath <mcgrathr@google.com>
456 * objcopy.c (compare_gnu_build_notes): Fix comparison results
457 for overlapping ranges so that (A == B) == (B == A) holds.
459 2020-01-27 Alan Modra <amodra@gmail.com>
461 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
462 case statement with switch statement.
464 2020-01-24 Nick Clifton <nickc@redhat.com>
466 * readelf.c (get_build_id): Fix warning messages about corrupt
469 2020-01-23 Nick Clifton <nickc@redhat.com>
471 * po/fr.po: Updated French translation.
473 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
476 * readelf.c (get_alpha_symbol_other): Fix error message typo.
478 2020-01-20 Nick Clifton <nickc@redhat.com>
480 * po/pt.po: Updated Portuguese translation.
481 * po/uk.po: Updated Ukranian translation.
483 2020-01-18 Nick Clifton <nickc@redhat.com>
485 * README-how-to-make-a-release: Update notes on how to cut a
486 branch for a release.
488 2020-01-18 Nick Clifton <nickc@redhat.com>
490 * configure: Regenerate.
491 * po/binutils.pot: Regenerate.
493 2020-01-18 Nick Clifton <nickc@redhat.com>
495 Binutils 2.34 branch created.
497 2020-01-17 Thomas Troeger <tstroege@gmx.de>
499 * objdump.c (jump_info_visualize_address): Discard jumps that are
501 (disassemble_bytes): Only compute the maximum level if jumps were
504 2020-01-13 Nick Clifton <nickc@redhat.com>
506 * objdump.c (disassemble_bytes): Remove C99-ism.
507 * testsuite/binutils-all/debuginfod.exp: New tests.
509 2020-01-13 Thomas Troeger <tstroege@gmx.de>
511 * objdump.c (visualize_jumps, color_output, extended_color_output)
512 (detected_jumps): New variables.
513 (usage): Add the new jump visualization options.
514 (option_values): Add new option value.
515 (long_options): Add the new option.
516 (jump_info_new, jump_info_free): New functions.
517 (jump_info_min_address, jump_info_max_address): Likewise.
518 (jump_info_end_address, jump_info_is_start_address): Likewise.
519 (jump_info_is_end_address, jump_info_size): Likewise.
520 (jump_info_unlink, jump_info_insert): Likewise.
521 (jump_info_add_front, jump_info_move_linked): Likewise.
522 (jump_info_intersect, jump_info_merge): Likewise.
523 (jump_info_sort, jump_info_visualize_address): Likewise.
524 (disassemble_jumps): New function - used to locate jumps.
525 (disassemble_bytes): Add ascii art generation.
526 (disassemble_section): Add scan to locate jumps.
527 (main): Parse the new visualization option.
528 * doc/binutils.texi: Document the new feature.
529 * NEWS: Mention the new feature.
531 2020-01-13 Alan Modra <amodra@gmail.com>
535 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
536 fde_fc col_type and col_offset.
537 * readelf.c (apply_relocations): Move symsec check earlier.
538 (free_debug_section): Free reloc_info.
539 (process_notes_at): Free pnotes on error path.
540 (process_object): Free dump_sects here..
541 (process_archive): ..not here.
543 2020-01-13 Alan Modra <amodra@gmail.com>
546 * nm.c (display_rel_file): Free dyn_syms.
548 2020-01-09 Nick Clifton <nickc@redhat.com>
551 * objcopy.c (empty_name): New variable.
552 (need_sym_before): Prevent an attempt to free a static variable.
553 (filter_symbols): Avoid strcmp test by checking for pointer
556 2020-01-09 Nick Clifton <nickc@redhat.com>
558 * po/zh_TW.po: Updated Traditional Chinese translation.
560 2020-01-09 Aaron Merey <amerey@redhat.com>
562 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
563 * Makefile.in: Regenerate.
565 * config.in: Regenerate.
566 * configure: Regenerate.
567 * configure.ac: Call AC_DEBUGINFOD.
568 * doc/Makefile.in: Regenerate.
569 * doc/binutils.texi: Add section on using binutils
571 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
572 Query debuginfod servers for the target debug file.
573 (load_separate_debug_info): Call
574 debuginfod_fetch_separate_debug_info if configured with
576 (load_separate_debug_files): Add file argument to
577 load_separate_debug_info calls.
578 * dwarf.h (get_build_id): Add declaration.
579 * objdump.c (get_build_id): New function. Get build-id of file.
580 * readelf.c (get_build_id): Likewise.
581 * testsuite/binutils-all/debuginfod.exp: New tests.
582 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
585 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
587 * readelf.c: Add support for new Z*) relocations and machine
590 2020-01-01 Alan Modra <amodra@gmail.com>
592 Update year range in copyright notice of all files.
594 For older changes see ChangeLog-2019
596 Copyright (C) 2020 Free Software Foundation, Inc.
598 Copying and distribution of this file, with or without modification,
599 are permitted in any medium without royalty provided the copyright
600 notice and this notice are preserved.
606 version-control: never