1 2020-03-28 Alan Modra <amodra@gmail.com>
3 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
4 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
5 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
6 test. Pass "-p" to objcopy for the executable test.
8 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
12 specify whether an object file or executable should be built and tested.
13 Change test names to report whether an object file or executable is
15 * testsuite/binutils-all/pr25662.ld: New test.
16 * testsuite/binutils-all/pr25662.s: New test.
18 2020-03-27 Alan Modra <amodra@gmail.com>
20 * readelf.c (process_archive): Don't double free qualified_name.
21 Don't break out of loop with "negative" archive_file_size, just
22 set file offset to max.
24 2020-03-25 Alan Modra <amodra@gmail.com>
26 * readelf.c (process_archive): Prevent endless loop.
28 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
31 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
32 with bfd_get_symbol_version_string.
33 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
34 * objdump.c (objdump_print_symname): Likewise.
36 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
39 * nm.c (SYM_NAME): Removed.
40 (print_symname): Add a pointer to struct extended_symbol_info
41 argument. Call _bfd_elf_get_symbol_version_name to get symbol
43 (print_symdef_entry): Pass NULL to print_symname.
44 (print_symbol_info_bsd): Update call to print_symname.
45 (print_symbol_info_sysv): Likewise.
46 (print_symbol_info_posix): Likewise.
48 2020-03-24 Alan Modra <amodra@gmail.com>
50 * readelf.c (process_mips_specific): Free iconf on error path.
52 2020-03-23 Nick Clifton <nickc@redhat.com>
55 * wrstabs.c (stab_pop_type): Replace assertion with error return.
56 * write_stabs_in_sections_debugging_info: Likewise.
57 * stab_enum_type: Likewise.
58 * stab_modify_type: Likewise.
59 * stab_struct_field: Likewise.
60 * stab_end_struct_type: Likewise.
61 * stab_start_class_type: Likewise.
62 * stab_class_static_member: Likewise.
63 * stab_class_baseclass: Likewise.
64 * stab_class_start_method: Likewise.
65 * stab_class_method_var: Likewise.
66 * stab_class_end_method: Likewise.
67 * stab_end_class_type: Likewise.
68 * stab_typedef_type: Likewise.
69 * stab_start_function: Likewise.
70 * stab_end_block: Likewise.
71 * stab_lineno: Likewise.
73 2020-03-20 Nick Clifton <nickc@redhat.com>
75 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
76 (process_section_headers): Check the return value from
77 get_compression_header.
78 (dump_section_as_strings): Likewise.
79 (dump_section_as_bytes): Likewise.
80 (load_specific_debug_section): Likewise.
82 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
84 * ar.c (main): Update bfd_plugin_set_program_name call.
85 * nm.c (main): Likewise.
87 2020-03-19 Nick Clifton <nickc@redhat.com>
90 * testsuite/binutils-all/dw4.s: New test source file.
91 * testsuite/binutils-all/nm.exp: Run the new test.
93 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
95 * readelf.c (process_symbol_table): Use unsigned long for si.
97 2020-03-19 Alan Modra <amodra@gmail.com>
99 * elfcomm.c: Don't include bfd.h or bucomm.h.
100 (program_name): Declare.
101 (process_archive_index_and_symbols): Replace bfd_boolean with int,
102 and substitute FALSE and TRUE.
103 (setup_archive, setup_nested_archive): Likewise.
104 * elfcomm.h: Likewise.
106 2020-03-19 Alan Modra <amodra@gmail.com>
108 * readelf.c (process_archive): Always return via path freeing
111 2020-03-19 Alan Modra <amodra@gmail.com>
113 * readelf.c (process_netbsd_elf_note): Validate descsz before
114 accessing descdata. Formatting.
116 2020-03-19 Alan Modra <amodra@gmail.com>
118 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
119 * elfcomm.h (setup_archive): Update prototype.
121 2020-03-16 Alan Modra <amodra@gmail.com>
123 * readelf.c (get_symbols): New function.
124 (process_relocs, ia64_process_unwind, hppa_process_unwind),
125 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
127 2020-03-16 Alan Modra <amodra@gmail.com>
129 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
130 Detect shift overflows and check that terminating byte is found.
131 Print an error on a bad uleb128.
133 2020-03-14 Alan Modra <amodra@gmail.com>
135 * readelf.c (process_file): Clean ba_cache.
137 2020-03-14 Alan Modra <amodra@gmail.com>
139 * elfcomm.h (setup_archive): Update prototype.
140 * elfcomm.c (setup_archive): Add file_size parameter and sanity
141 check longnames_size.
142 (setup_nested_archive): Get file size and pass to setup_archive.
143 * elfedit.c (process_archive): Likewise.
144 * readelf.c (process_archive): Pass filedata->file_size to
147 2020-03-14 Alan Modra <amodra@gmail.com>
149 * readelf.c (dump_section_as_strings): Free memory on error exit.
150 (dump_section_as_bytes, process_notes_at): Likewise.
151 (get_build_id): Free enote.
153 2020-03-13 Kamil Rytarowski <n54@gmx.com>
155 * readelf.c (get_netbsd_elfcore_note_type): Add support for
156 NT_NETBSDCORE_LWPSTATUS notes.
158 2020-03-13 Alan Modra <amodra@gmail.com>
160 * elfcomm.c (get_archive_member_name): Always return malloc'd
162 * elfedit.c (process_archive): Tidy memory on all return paths.
163 * readelf.c (process_archive): Likewise.
164 (process_symbol_table): Likewise.
165 (ba_cache): New, replacing ..
166 (get_symbol_for_build_attribute): ..static vars here. Free
167 strtab and symtab before loading new ones. Reject symtab without
168 valid strtab in loop, breaking out of loop on valid symtab.
169 (process_file): Free ba_cache symtab and strtab here, resetting
172 2020-03-12 Alan Modra <amodra@gmail.com>
174 * readelf.c (process_section_headers): Don't just set
175 filedata->section_headers NULL, free it first. Similarly for
176 dynamic_symbols, dynamic_strings, dynamic_syminfo and
177 symtab_shndx_list. Zero associated counts too.
178 (process_object): Free symtab_shndx_list.
179 (process_file): Free various allocated filedata tables.
181 2020-03-11 Nick Clifton <nickc@redhat.com>
185 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
186 li_segment_size fields.
187 * dwarf.c (read_debug_line_header): Record the address size and
188 segment selector size values (if present) in the lineinfo
190 (display_formatted_table): Warn if the format count is empty but
191 the table itself is not empty.
192 Display the format count and entry count at the start of the table
194 (display_debug_lines_raw): Display the address size and segement
195 selector size fields, if present.
196 * testsuite/binutils-all/dw5.W: Update expected output.
198 2020-03-11 Alan Modra <amodra@gmail.com>
201 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
202 pad_to_set on second block of code dealing with padding.
203 Replace "c" with "num_sec" and don't recalculate number of
204 sections on second block. Size arrays using sizeof (element)
205 rather than sizeof (element type).
207 2020-03-10 Alan Modra <amodra@gmail.com>
209 * objdump.c (disassemble_section): Don't call qsort unless
210 sym count is at least two.
211 (disassemble_data): Don't call memcpy with NULL src.
213 2020-03-09 Alan Modra <amodra@gmail.com>
216 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
217 to get_data rather than multiplying.
218 (dump_ia64_vms_dynamic_relocs): Likewise.
219 (process_version_sections): Correct order of size and nmemb args
221 (process_mips_specific): Likewise.
223 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
225 * readelf.c (get_dynamic_data): Replace "memory chekers" with
226 "memory checkers" in comments.
228 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
231 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
232 * doc/Makefile.in: Re-generate.
234 2020-03-06 Nick Clifton <nickc@redhat.com>
236 * objcopy.c (check_new_section_flags): New function. Reject the
237 SEC_COFF_SHARED flag if the target is not a COFF binary.
238 (copy_object): Call check_new_section_flags.
239 (setup_section): Likewise.
240 * doc/binutils.texi (objcopy): Add a note that the 'share' section
241 flag cannot be applied to ELF binaries.
243 2020-03-06 Alan Modra <amodra@gmail.com>
246 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
248 2020-03-05 Alan Modra <amodra@gmail.com>
251 * objcopy.c (filter_symbols): Don't segfault on NULL
252 prefix_symbols_string.
254 2020-03-04 Christian Eggers <ceggers@gmx.de>
256 * objcopy.c (copy_object): Convert from bytes to octets for
257 --gap-fill and --pad-to.
259 2020-03-03 Nick Clifton <nickc@redhat.com>
262 * prdbg.c (pr_tag_type): Remove call to abort.
264 2020-03-02 Aaron Merey <amerey@redhat.com>
266 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
269 2020-03-02 Nick Clifton <nickc@redhat.com>
272 * readelf.c (dump_section_as_strings): Display new-line characters
273 as \n and then insert a line break.
274 * testsuite/binutils-all/pr25543.s: New test.
275 * testsuite/binutils-all/pr25543.d: Test driver.
276 * testsuite/binutils-all/readelf.exp: Run the new test.
278 2020-02-27 Nick Clifton <nickc@redhat.com>
281 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
282 get_data is unable to load the string table.
284 2020-02-26 Alan Modra <amodra@gmail.com>
286 * elfedit.c: Indent labels correctly.
287 * readelf.c: Likewise.
288 * resres.c: Likewise.
290 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
293 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
294 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
296 2020-02-24 Nick Clifton <nickc@redhat.com>
299 * doc/binutils.texi (objdump): Fix typo in description of
302 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
304 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
307 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
309 * objdump.c (show_line): call bfd_demangle when using do_demangle.
311 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
313 * configure: Regenerate.
315 2020-02-10 Fangrui Song <maskray@google.com>
317 * objcopy.c (parse_flags): Handle "exclude".
318 * doc/binutils.texi: Document the support.
320 2020-02-10 Aaron Merey <amerey@redhat.com>
322 * binutils/testsuite/binutils-all/debuginfod.exp:
323 Replace set ::env with setenv.
324 Start server before setting environment variable.
325 Specify tmpdir as the location of the server's
327 Check additional server metrics at start-up.
329 2020-02-07 Nick Clifton <nickc@redhat.com>
331 * README-how-to-make-a-release: Add note about updating the
332 GAS/NEWS URL in the next release.
334 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
337 * readelf.c (get_machine_flags): Add support for Z80N machine
340 2020-02-07 Nick Clifton <nickc@redhat.com>
342 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
343 of the truncated file name.
345 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
347 * objdump.c (print_jump_visualisation): New function.
348 (disassemble_bytes): Call new function.
350 2020-02-06 Alan Modra <amodra@gmail.com>
352 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
354 (supports_gnu_osabi): New procedure.
355 (is_generic): New, from ld-lib.exp.
356 (supports_gnu_unique): Use the above.
358 2020-02-04 Alan Modra <amodra@gmail.com>
360 * Makefile.am (CFILES): Add od-elf32_avr.c.
361 * Makefile.in: Regenerate.
362 * po/POTFILES.in: Regenerate.
364 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
366 * readelf.c (dump_relocations, dump_relocations)
367 (decode_arm_unwind_bytecode, process_dynamic_section)
368 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
371 2020-02-03 Sergei Trofimovich <siarheit@google.com>
373 * coffdump.c (program_name): Drop redundant definition.
374 * srconv.c (program_name): Likewise
375 * sysdump.c (program_name): Likewise
377 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
380 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
381 same file with different section pointers.
383 2020-02-01 Nick Clifton <nickc@redhat.com>
385 * README-how-to-make-a-release: Update with more details on the
386 release making process.
388 2020-01-31 Nick Clifton <nickc@redhat.com>
390 * po/sv.po: Updated Swedish translation.
392 2020-01-28 Nick Clifton <nickc@redhat.com>
394 * readelf.c (get_build_id): Simplify warning message about corrupt
395 notes encountered whilst scanning for the build-id.
397 2020-01-27 Roland McGrath <mcgrathr@google.com>
399 * objcopy.c (compare_gnu_build_notes): Fix comparison results
400 for overlapping ranges so that (A == B) == (B == A) holds.
402 2020-01-27 Alan Modra <amodra@gmail.com>
404 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
405 case statement with switch statement.
407 2020-01-24 Nick Clifton <nickc@redhat.com>
409 * readelf.c (get_build_id): Fix warning messages about corrupt
412 2020-01-23 Nick Clifton <nickc@redhat.com>
414 * po/fr.po: Updated French translation.
416 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
419 * readelf.c (get_alpha_symbol_other): Fix error message typo.
421 2020-01-20 Nick Clifton <nickc@redhat.com>
423 * po/pt.po: Updated Portuguese translation.
424 * po/uk.po: Updated Ukranian translation.
426 2020-01-18 Nick Clifton <nickc@redhat.com>
428 * README-how-to-make-a-release: Update notes on how to cut a
429 branch for a release.
431 2020-01-18 Nick Clifton <nickc@redhat.com>
433 * configure: Regenerate.
434 * po/binutils.pot: Regenerate.
436 2020-01-18 Nick Clifton <nickc@redhat.com>
438 Binutils 2.34 branch created.
440 2020-01-17 Thomas Troeger <tstroege@gmx.de>
442 * objdump.c (jump_info_visualize_address): Discard jumps that are
444 (disassemble_bytes): Only compute the maximum level if jumps were
447 2020-01-13 Nick Clifton <nickc@redhat.com>
449 * objdump.c (disassemble_bytes): Remove C99-ism.
450 * testsuite/binutils-all/debuginfod.exp: New tests.
452 2020-01-13 Thomas Troeger <tstroege@gmx.de>
454 * objdump.c (visualize_jumps, color_output, extended_color_output)
455 (detected_jumps): New variables.
456 (usage): Add the new jump visualization options.
457 (option_values): Add new option value.
458 (long_options): Add the new option.
459 (jump_info_new, jump_info_free): New functions.
460 (jump_info_min_address, jump_info_max_address): Likewise.
461 (jump_info_end_address, jump_info_is_start_address): Likewise.
462 (jump_info_is_end_address, jump_info_size): Likewise.
463 (jump_info_unlink, jump_info_insert): Likewise.
464 (jump_info_add_front, jump_info_move_linked): Likewise.
465 (jump_info_intersect, jump_info_merge): Likewise.
466 (jump_info_sort, jump_info_visualize_address): Likewise.
467 (disassemble_jumps): New function - used to locate jumps.
468 (disassemble_bytes): Add ascii art generation.
469 (disassemble_section): Add scan to locate jumps.
470 (main): Parse the new visualization option.
471 * doc/binutils.texi: Document the new feature.
472 * NEWS: Mention the new feature.
474 2020-01-13 Alan Modra <amodra@gmail.com>
478 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
479 fde_fc col_type and col_offset.
480 * readelf.c (apply_relocations): Move symsec check earlier.
481 (free_debug_section): Free reloc_info.
482 (process_notes_at): Free pnotes on error path.
483 (process_object): Free dump_sects here..
484 (process_archive): ..not here.
486 2020-01-13 Alan Modra <amodra@gmail.com>
489 * nm.c (display_rel_file): Free dyn_syms.
491 2020-01-09 Nick Clifton <nickc@redhat.com>
494 * objcopy.c (empty_name): New variable.
495 (need_sym_before): Prevent an attempt to free a static variable.
496 (filter_symbols): Avoid strcmp test by checking for pointer
499 2020-01-09 Nick Clifton <nickc@redhat.com>
501 * po/zh_TW.po: Updated Traditional Chinese translation.
503 2020-01-09 Aaron Merey <amerey@redhat.com>
505 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
506 * Makefile.in: Regenerate.
508 * config.in: Regenerate.
509 * configure: Regenerate.
510 * configure.ac: Call AC_DEBUGINFOD.
511 * doc/Makefile.in: Regenerate.
512 * doc/binutils.texi: Add section on using binutils
514 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
515 Query debuginfod servers for the target debug file.
516 (load_separate_debug_info): Call
517 debuginfod_fetch_separate_debug_info if configured with
519 (load_separate_debug_files): Add file argument to
520 load_separate_debug_info calls.
521 * dwarf.h (get_build_id): Add declaration.
522 * objdump.c (get_build_id): New function. Get build-id of file.
523 * readelf.c (get_build_id): Likewise.
524 * testsuite/binutils-all/debuginfod.exp: New tests.
525 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
528 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
530 * readelf.c: Add support for new Z*) relocations and machine
533 2020-01-01 Alan Modra <amodra@gmail.com>
535 Update year range in copyright notice of all files.
537 For older changes see ChangeLog-2019
539 Copyright (C) 2020 Free Software Foundation, Inc.
541 Copying and distribution of this file, with or without modification,
542 are permitted in any medium without royalty provided the copyright
543 notice and this notice are preserved.
549 version-control: never