1 2021-05-08 Mike Frysinger <vapier@gentoo.org>
3 * README-how-to-make-a-release: Update html & pdf entries.
5 2021-05-08 Mike Frysinger <vapier@gentoo.org>
7 * doc/Makefile.am (html-local, binutils/index.html): New targets.
8 * doc/Makefile.in: Regenerate.
10 2021-05-08 Mike Frysinger <vapier@gentoo.org>
12 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
13 * doc/Makefile.in: Regenerate.
15 2021-05-07 Nick Clifton <nickc@redhat.com>
17 * readelf.c (no_processor_specific_unwind): New function.
18 (process_unwind): Use no_processor_specific_unwind for X86
21 2021-05-07 Michael Forney <mforney@mforney.org>
23 * dwarf.c: Don't omit second operand of '?' operator.
25 2021-04-30 Nick Clifton <nickc@redhat.com>
28 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
31 2021-04-29 Nick Clifton <nickc@redhat.com>
34 * doc/binutils.texi (windres): Correct the description of the
35 default value of the --preprocessor argument.
37 2021-04-27 Nick Clifton <nickc@redhat.com>
40 * dwarf.c (parse_gnu_debuglink): Reject empty names.
41 (parse_gnu_debugaltlink): Likewise.
43 2021-04-22 Clément Chigot <clement.chigot@atos.net>
45 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
48 2021-04-21 Nick Lott <nick.lott@gmail.com>
51 * readelf.c (sym_base): New variable.
52 (enum print_mode): Add more modes.
53 (print_vma): Add suport for new modes.
54 (options): Add sym-base.
55 (usage): Add sym-base.
56 (parse_args): Add support for --sym-base.
57 (print_dynamic_symbol_size): New function.
58 (print_dynamic_symbol): Use new function.
59 * doc/binutils.texi: Document the new feature.
60 * NEWS: Mention the new feature.
62 2021-04-21 Nick Clifton <nickc@redhat.com>
64 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
65 Adjust expected output to allow for named section symbols.
66 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
68 * testsuite/binutils-all/readelf.s-64: Likewise.
69 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
70 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
71 * testsuite/binutils-all/readelf.ss-unused: Likewise.
73 2021-04-21 Luo Longjun <luolongjun@huawei.com>
75 * readelf.c (print_dynamic_symbol): Print the section name for
76 section symbols without a name of their own.
78 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
80 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
81 add him to Past Maintainers.
82 Update my email address.
84 2021-04-19 Nick Clifton <nickc@redhat.com>
87 * arsup.c (ar_addmod): Enable plugin support, if available.
89 2021-04-19 Nick Clifton <nickc@redhat.com>
91 * rename.c: (get_stat_atime_ns): Add prototype.
92 (get_stat_mtime_ns): Add prototype.
94 2021-04-16 Alan Modra <amodra@gmail.com>
97 * rename.c (get_stat_atime, get_stat_mtime): Make static.
98 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
100 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
103 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
104 (get_stat_mtime_ns): Likewise.
106 2021-04-15 Alan Modra <amodra@gmail.com>
109 * configure.ac: Check for sys/time.h and utimensat. Use standard
110 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
111 members of struct stat.
112 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
113 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
114 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
115 (get_stat_atime, get_stat_mtime): Likewise.
116 (set_times): Choose first available of utimensat, utimes, utime.
117 Use above inline functions to set timespec and timeval values.
118 * configure: Regenerate.
119 * config.in: Regenerate.
120 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
121 file timestamp when --preserve-dates is used.
123 2021-04-15 Alan Modra <amodra@gmail.com>
126 * rename.c (smart_rename): When TO and FROM are equal, just set
128 * objcopy.c (strip_main, copy_main): Always call smart_rename.
130 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
133 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
134 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
135 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
138 2021-04-14 Mark Harmstone <mark@harmstone.com>
141 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
142 end of the structure.
144 2021-04-14 Frederic Cambus <fred@statdns.com>
146 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
147 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
149 2021-04-14 Alan Modra <amodra@gmail.com>
152 * objdump.c (show_line): Don't limit paths to PATH_MAX.
153 * readelf.c (struct filedata): Change program_interpreter from
154 a char array to a char pointer.
155 (process_program_headers): Sanity check PT_INTERP p_filesz.
156 Malloc program_interpreter using p_filesz and read directly from
158 (process_dynamic_section): Check program_interpreter is non-NULL.
159 (free_filedata): New function, split out from..
160 (process_object): ..here.
161 (close_debug_file): Call free_filedata.
162 * sysdep.h: Don't include sys/param.h.
163 (PATH_MAX): Don't define.
164 * configure.ac: Don't check for sys/param.h.
165 * configure: Regenerate.
167 2021-04-13 Frederic Cambus <fred@statdns.com>
169 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
170 check for NT_NETBSD_PAX.
172 2021-04-12 Alan Modra <amodra@gmail.com>
174 * configure.ac (--enable-checking): Add support.
175 * config.in: Regenerate.
176 * configure: Regenerate.
178 2021-04-09 Alan Modra <amodra@gmail.com>
180 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
182 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
183 (disassemble_section, disassemble_data): Likewise.
185 2021-04-06 Alan Modra <amodra@gmail.com>
187 * objdump.c (objdump_symbol_at_address): Return asymbol*.
189 2021-04-06 Alan Modra <amodra@gmail.com>
191 * NEWS: Mention C99 requirement.
192 * README: Likewise. Modernise examples and "Reporting bugs".
194 2021-04-05 Alan Modra <amodra@gmail.com>
196 * configure.ac: Assume long long is available. Don't test for
197 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
198 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
199 strcoll, setlocale, setmode or location of time_t. Don't check
200 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
201 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
202 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
203 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
204 locale.h, string.h and stdlib.h unconditionally. Remove various
205 fallback declarations. Assume long long is available.
206 * addr2line.c: Don't test HAVE_SETLOCALE.
208 * coffdump.c: Likewise.
209 * dlltool.c: Likewise.
210 * dllwrap.c: Likewise.
211 * elfedit.c: Likewise.
213 * objcopy.c: Likewise.
214 * objdump.c: Likewise.
215 * readelf.c: Likewise.
217 * srconv.c: Likewise.
218 * strings.c: Likewise.
219 * sysdump.c: Likewise.
220 * windmc.c: Likewise.
221 * windres.c: Likewise.
222 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
223 * dwarf.c: Include limits.h unconditionally. Assume long long
225 * nm.c: Don't test HAVE_STRCOLL.
226 * readelf.c: Don't test HAVE_WCHAR_H.
227 * strings.c: Assume long long is available.
228 * syslex.l: Include string.h unconditionally.
229 * aclocal.m4: Regenerate.
230 * config.in: Regenerate.
231 * configure: Regenerate.
232 * Makefile.in: Regenerate.
233 * doc/Makefile.in: Regenerate.
235 2021-04-01 Martin Liska <mliska@suse.cz>
237 * elfcomm.h (strneq): Remove strneq and use startswith.
238 * readelf.c (ia64_process_unwind): Likewise.
239 (process_note): Likewise.
241 2021-04-01 Martin Liska <mliska@suse.cz>
243 * dllwrap.c: Use startswith function.
244 * objcopy.c (is_dwo_section): Likewise.
245 (handle_remove_section_option): Likewise.
246 (copy_main): Likewise.
247 * objdump.c (is_significant_symbol_name): Likewise.
249 2021-04-01 Martin Liska <mliska@suse.cz>
251 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
253 (display_debug_lines_decoded): Likewise.
254 (display_debug_links): Likewise.
255 * elfcomm.c (setup_archive): Likewise.
256 * elfcomm.h (const_strneq): Likewise.
257 * readelf.c (process_section_headers): Likewise.
258 (slurp_ia64_unwind_table): Likewise.
259 (slurp_hppa_unwind_table): Likewise.
260 (decode_arm_unwind): Likewise.
261 (display_debug_section): Likewise.
262 (process_note): Likewise.
264 2021-03-31 Alan Modra <amodra@gmail.com>
266 * sysdep.h (POISON_BFD_BOOLEAN): Define.
267 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
268 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
269 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
270 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
271 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
272 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
273 * windmc.c, * windmc.h, * windres.c, * winduni.c,
274 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
275 and TRUE with true throughout.
277 2021-03-31 Alan Modra <amodra@gmail.com>
279 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
282 2021-03-31 Alan Modra <amodra@gmail.com>
284 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
286 2021-03-29 Alan Modra <amodra@gmail.com>
288 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
289 * dwarf.c (read_and_display_attr_value): Likewise.
290 (display_debug_str_offsets): Likewise.
291 * objdump.c (dump_bfd): Likewise.
292 * readelf.c (dump_section_as_strings): Likewise.
293 (dump_section_as_bytes): Likewise.
295 2021-03-29 Alan Modra <amodra@gmail.com>
297 * objdump.c (process_links): Use type int.
298 * readelf.c (request_dump): Don't increment do_dump, set it.
299 * windint.h (target_is_bigendian): Use type bfd_boolean.
300 * windmc.c (target_is_bigendian): Likewise.
301 * windres.c (target_is_bigendian): Likewise.
303 2021-03-22 Martin Liska <mliska@suse.cz>
305 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
307 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
308 * objcopy.c (is_mergeable_note_section): Likewise.
309 * objdump.c (dump_dwarf_section): Likewise.
310 * prdbg.c (pr_method_type): Likewise.
311 (pr_class_baseclass): Likewise.
312 (tg_class_baseclass): Likewise.
313 * readelf.c (process_lto_symbol_tables): Likewise.
314 * stabs.c (ULLHIGH): Likewise.
315 (parse_stab_argtypes): Likewise.
316 (stab_demangle_function_name): Likewise.
318 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
320 * readelf.c (get_machine_name): Add EM_INTELGT.
322 2021-03-18 Nick Clifton <nickc@redhat.com>
325 * readelf.c (dump_section_as_strings): Mention separate filename.
326 (dump_section_as_bytes): Likewise.
327 (dump_section_as_ctf): Likewise.
328 (initialise_dumkps_byname): Only issue a warning for missing
329 sections if processing the main file.
330 (process_section_contents): Only issue a warning for unsumped
331 section numbers in the main file.
332 (initialise_dump_sects): New function. Contains code extracted
334 (process_object): ... here. Also call initialise_dump_sects for
337 2021-03-16 Nick Clifton <nickc@redhat.com>
340 * readelf.c (display_debug_section): Also retain .debug_addr
343 2021-03-16 Nick Clifton <nickc@redhat.com>
346 * readelf.c (process_section_contents): Only dump debug
347 information for separate files unless process_links is enabled.
348 (process_object): Always call process_section_contents for
351 2021-03-15 Nick Clifton <nickc@redhat.com>
354 * nm.c (FORMAT_JUST_SYMBOLS): Define.
355 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
356 (long_options): Add just-symbols.
357 (set_output_format): Add support for just-symbols.
358 (get_print_format): Likewise.
359 (do_not_print_object_filename): New function.
360 (do_not_print_archive_filename): New function.
361 (do_not_print_archive_member): New function.
362 (do_not_print_symbol_filename): New function.
363 (just_print_symbol_name): New function.
364 (main): Handle --just-symbols.
365 * NEWS: Mention the new feature.
366 * doc/binutils.texi: Document the new feature.
368 2021-03-12 Clément Chigot <clement.chigot@atos.net>
370 * od-xcoff.c: Replace RTB by TRL entry.
372 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
373 Andrew Burgess <andrew.burgess@embecosm.com>
375 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
377 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
378 Andrew Burgess <andrew.burgess@embecosm.com>
380 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
382 2021-03-05 Nick Clifton <nickc@redhat.com>
385 * dwarf.c (display_debug_macro): Handle the displaying of
386 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
387 .debug_macro.dwo sections.
389 2021-03-04 Nick Clifton <nickc@redhat.com>
392 * objdump.c (process_links): New variable.
393 (usage): Add --process-links.
394 (long_options): Likewise.
395 (dump_bfd): Stop processing once the bfd has been loaded unless
396 this is the main file or process_links has been enabled.
397 (main): Handle the process-links option.
398 * readelf.c (process_links): New variable.
399 (struct filedata): Add is_separate field.
400 (options): Add --process-links.
402 (parse_args): Likewise.
403 (process_file_header): Include the filename when dumping
404 information for separate debuginfo files.
405 (process_program_headers): Likewise.
406 (process_section_headers): Likewise.
407 (process_section_groups): Likewise.
408 (process_relocs): Likewise.
409 (process_dynamic_section): Likewise.
410 (process_version_sections): Likewise.
411 (display_lto_symtab): Likewise.
412 (process_symbol_table): Likewise.
413 (process_syminfo): Likewise.
414 (initialise_dumps_by_name): Likewise.
415 (process_section_contents): Likewise.
416 (process_notes_at): Likewise.
417 (process_notes): Likewise.
418 (open_file): Add is_separate parameter. Use to initialise the
419 is_separate field in the filedata structure.
420 (open_deug): Update call to open_file.
421 (process_object): Add processing of the contents of separate
422 debuginfo files, gated by the process_links variable.
423 (process_archive): Update call to open_file.
424 (process_file): Initialise the is_separate field in the filedata
426 * dwarf.c (load_separate_debug_info_file): Only report the
427 loading of a separate file if debug links are being dumped.
428 * objcopy.c (keep_section_symbols): New variable.
429 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
430 (strip_options): Add keep-section-symbols.
431 (copy_options): Likewise.
432 (copy_usage): Likewise.
433 (strip_usage): Likewise.
434 (copy_object): Keep section symbols if requested by command line
436 (strip_main): Handle --keep-section-symbols.
437 (copy_main): Likewise.
438 * doc/binutils.texi: Document the new options.
439 * NEWS: Mention the new features.
440 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
441 Update options passed to objdump. Use diff rather than cmp to
442 compare the dumped data.
443 * testsuite/binutils-all/objdump.WK2: Update regexp.
444 * testsuite/binutils-all/objdump.WK3: Update regexp.
445 * testsuite/binutils-all/objdump.exp: Use --process-links
446 instead of --dwarf=follow-links.
447 * testsuite/binutils-all/readelf.exp (readelf_test): Include
448 readelf's output in the log when the test fails.
449 Add the -P option to the -wKis test.
450 * testsuite/binutils-all/readelf.wKis: Update expected output.
452 2021-03-03 Alan Modra <amodra@gmail.com>
455 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
456 * NEWS: Mention feature.
458 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
461 * dwarf.c (load_separate_debug_info): Issue warning only if
462 do_debug_links is set.
463 * testsuite/binutils-all/compress.exp: Run objdump and readelf
464 with missing debug file.
466 2021-03-01 Alan Modra <amodra@gmail.com>
469 * doc/binutils.texi: Add nm --with-symbol-versions and
470 --without-symbol-versions documentation.
471 * nm.c (with_symbol_versions): New variable.
472 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
473 (long_options): Make --with-symbol-versions entry twiddle the flag.
474 Add --without-symbol-versions.
475 (print_symname): Strip version when !with_symbol_versions. Add
476 dynamic version info under control of with_symbol_versions.
477 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
479 2021-02-26 Fangrui Song <maskray@google.com>
482 * readelf.c (quiet): New option flag.
483 (enum long_option_values): New enum to hold long option value.
484 (long_options): Add --quiet.
485 (usage): Mention --quiet.
486 (display_rel_file): If quiet is enabled, suppress "no symbols".
487 (main): Handle the new option.
488 * NEWS: Mention --quiet.
489 * docs/binutils.texi: Document --quiet.
491 2021-02-26 Tom de Vries <tdevries@suse.de>
493 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
495 2021-02-26 Tom de Vries <tdevries@suse.de>
498 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
500 (read_and_display_attr_value): Likewise.
502 2021-02-25 Nick Clifton <nickc@redhat.com>
504 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
506 (read_and_display_attr_value): Handle sup forms.
507 (display_debug_sup): New function. Displays the contents of a
509 (load_debug_sup_file): New function. Loads the contents of a file
510 referenced by a .debug_sup section.
511 (check_for_and_load_links): Call load_debug_sup_file.
512 (debug_displays): Add entry for .debug_sup.
513 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
514 * readelf.c (process_section_headers): Add support for debug_sup.
515 * doc/debug.options.texi: Note that the =links option will display
516 the contents of .debug_sup sections.
517 * NEWS: Mention the new support.
519 2021-02-25 Alan Modra <amodra@gmail.com>
522 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
524 2021-02-24 Nick Clifton <nickc@redhat.com>
527 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
528 when adding together the section sizes.
530 2021-02-24 Nick Clifton <nickc@redhat.com>
532 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
534 * readelf.c (print_gnu_build_attribute_description): Likewise.
536 2021-02-24 Alan Modra <amodra@gmail.com>
537 Siddhesh Poyarekar <siddhesh@gotplt.org>
540 * bucomm.h (smart_rename): Update prototype.
541 * rename.c (smart_rename): Add fromfd and preserve_dates params.
542 Pass fromfd and target_stat to simple_copy. Call set_times
544 (simple_copy): Accept fromfd rather than from filename. Add
545 target_stat param. Rewind fromfd rather than opening. Open
546 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
547 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
548 closing output temp file, and pass tmpfd to smart_rename.
549 * arsup.c (temp_fd): Rename from real_fd.
550 (ar_save): Dup temp_fd and pass to smart_rename.
551 * objcopy.c (strip_main, copy_main): Likewise, and pass
554 2021-02-24 Alan Modra <amodra@gmail.com>
557 * rename.c: Tidy throughout.
558 (smart_rename): Always copy. Remove windows specific code.
560 2021-02-20 Alan Modra <amodra@gmail.com>
562 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
563 (run_dump_test): Fail if expecting errors from a file like we do
564 for error strings, if no error is seen.
566 2021-02-19 Alan Modra <amodra@gmail.com>
568 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
570 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
572 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
574 * arsup.c (ar_save): Likewise.
575 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
576 temporary file and adjust call to SMART_RENAME.
577 (copy_main): Likewise.
578 * rename.c [!S_ISLNK]: Remove definitions.
579 (try_preserve_permissions): Remove function.
580 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
581 rename system call only if TO does not exist.
582 * bucomm.h (smart_rename): Adjust declaration.
584 2021-02-18 Nick Clifton <nickc@redhat.com>
586 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
587 address that is higher than the end address.
589 2021-02-17 Alan Modra <amodra@gmail.com>
591 * dwarf.c: Include limits.h.
592 (CHAR_BIT): Provide backup define.
593 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
594 signed overflow checking.
595 * testsuite/binutils-all/pr26548.s,
596 * testsuite/binutils-all/pr26548.d,
597 * testsuite/binutils-all/pr26548e.d: New tests.
598 * testsuite/binutils-all/readelf.exp: Run them.
599 (readelf_test): Drop unused "xfails" parameter. Update all uses.
601 2021-02-16 Jan Beulich <jbeulich@suse.com>
603 * dwarf.c (process_debug_info): Initialize "dwo_id".
605 2021-02-15 Alan Modra <amodra@gmail.com>
607 * objdump.c (load_specific_debug_section): Don't call
608 bfd_cache_section_contents. Rearrange so that
609 bfd_get_full_section_contents is not called on path where
610 bfd_simple_get_relocated_section_contents is called.
611 Don't set section->user_data.
612 (free_debug_section): Always free section->start. Don't twiddle
614 * readelf.c (load_specific_debug_section): Don't set user_data.
615 * dwarf.h (struct dwarf_section): Remove use_data field.
616 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
618 2021-02-15 Alan Modra <amodra@gmail.com>
620 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
621 * testsuite/binutils-all/objdump.exp: Likewise.
623 2021-02-14 Alan Modra <amodra@gmail.com>
625 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
627 (slurp_dynamic_symtab): Likewise.
628 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
630 2021-02-14 Alan Modra <amodra@gmail.com>
632 * Makefile.in: Regenerate.
633 * doc/Makefile.in: Regenerate.
635 2021-02-13 Mike Frysinger <vapier@gentoo.org>
637 * aclocal.m4: Regenerate.
639 2021-02-12 Nick Clifton <nickc@redhat.com>
641 * configure.ac (follow-debug-links): Add option to enable or
642 disable the following of debug links by default. Set the
643 default for the option to be 'follow'.
644 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
645 (dwarf_select_sections_by_names): Add no-follow-links option.
646 (dwarf_select_sections_by_letter): Add 'N' option.
647 * objdump.c (usage): Add conditional text describing the
649 (slurp_symtab): Ensure that there is a NULL entry at the end
651 (slurp_dynamic_symtab): Likewise.
652 (dump_bfd): When extending the symbol table, ensure that there
653 is still a NULL entry at the end.
654 * readelf.c (usage): Add conditional text describing the
656 * doc/binutils.texi: Update documentation for objcopy and
658 * doc/debug.options.texi: Update documentation of the
660 * config.in: Regenerate.
661 * configure: Regenerate.
662 * testsuite/binutils-all/compress.exp: Add the -WN option to
663 objdump command lines that are not expecting to follow links.
664 * testsuite/binutils-all/readelf.exp: Add the
665 --debug-dump=no-follow-links option to tests that are not
666 expecting to follow debug links.
667 * NEWS: Mention the new behaviour.
669 2021-02-12 Alan Modra <amodra@gmail.com>
671 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
672 gas or ld fails to build a testcase rather than "unresolved".
673 Report "fail" when readelf returns an error status rather than
675 * testsuite/binutils-all/ar.exp: Likewise.
676 * testsuite/binutils-all/compress.exp: Likewise.
677 * testsuite/binutils-all/readelf.exp: Likewise.
679 2021-02-12 Alan Modra <amodra@gmail.com>
681 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
682 "c" with "ccc" labels.
684 2021-02-12 Tom de Vries <tdevries@suse.de>
686 * dwarf.h (debug_info): Fix typo in comment.
688 2021-02-12 Tom de Vries <tdevries@suse.de>
690 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
693 2021-02-12 Tom de Vries <tdevries@suse.de>
695 * dwarf.c (process_debug_info): Print DWO ID.
697 2021-02-11 Alan Modra <amodra@gmail.com>
702 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
703 Use bfd_malloc_and_get_section.
704 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
705 check namesz. Return NULL if descsz is too small. Ensure
706 string table is terminated.
707 (elf32_avr_get_device_info): Formatting. Add note_size param.
709 (elf32_avr_dump_mem_usage): Adjust to suit.
711 2021-02-10 Tom de Vries <tdevries@suse.de>
714 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
716 2021-02-10 Tom de Vries <tdevries@suse.de>
719 * dwarf.c (display_debug_ranges): Filter range lists according to
722 2021-02-09 Tom de Vries <tdevries@suse.de>
725 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
727 2021-02-09 Tom de Vries <tdevries@suse.de>
730 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
733 2021-02-09 Alan Modra <amodra@gmail.com>
735 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
738 2021-02-07 Alan Modra <amodra@gmail.com>
740 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
741 uninitialised on invalid input.
743 2021-02-06 Alan Modra <amodra@gmail.com>
746 * rename.c (smart_rename): Test for existence and type of output
749 2021-02-05 Nick Clifton <nickc@redhat.com>
751 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
753 2021-02-05 Eli Zaretskii <eliz@gnu.org>
756 * elfedit.c (check_file):
757 * bucomm.c (get_file_size): Fix typos in comments.
759 2021-02-05 Alan Modra <amodra@gmail.com>
762 * arsup.c (ar_save): Use stat rather than lstat.
764 2021-02-03 Alan Modra <amodra@gmail.com>
769 * ar.c: Don't include libbfd.h.
770 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
771 bfd_stat rather than fstat on iostream. Move stat and fd tests
772 outside of _WIN32 ifdef. Delete skip_stat variable.
773 * arsup.c (temp_name, real_ofd): New static variables.
774 (ar_open): Use make_tempname and bfd_fdopenw.
775 (ar_save): Adjust to suit ar_open changes. Move stat output
777 * objcopy.c: Don't include libbfd.h.
778 (copy_file): Use bfd_stat.
780 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
783 * readelf.c (process_section_headers): Add 'R' and 'D' to
785 * testsuite/binutils-all/retain1a.d: Updated.
787 2021-01-30 Nick Clifton <nickc@redhat.com>
789 * README-how-to-make-a-release: Small updates after the 2.35.2
792 2021-01-28 Eli Zaretskii <eliz@gnu.org>
795 * windres.c (quot): Use double quotes to protect strings on
798 2021-01-28 Eli Zaretskii <eliz@gnu.org>
801 * bucomm.c (get_file_size): Add code to handle /dev/null on
803 * elfedit.c (check_file): Likewise.
805 2021-01-27 Nick Clifton <nickc@redhat.com>
807 * objcopy.c (copy_main): Remove conditional control of the calls
808 to free, simplifying the code and making it easier to detect
811 2021-01-26 Frederic Cambus <fred@statdns.com>
813 * objcopy.c (copy_main): Fix a double free happening when both
814 --localize-symbols and --globalize-symbols options are invoked
817 2021-01-24 Nick Clifton <nickc@redhat.com>
819 * README-how-to-make-a-release: Minor updates after the 2.36 release.
821 2021-01-16 Alan Modra <amodra@gmail.com>
823 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
825 2021-01-15 Alan Modra <amodra@gmail.com>
828 * readelf.c (uncompress_section_contents): Always call inflateEnd.
830 2021-01-14 Alexandre Oliva <oliva@gnu.org>
832 * MAINTAINERS: Update my email address.
834 2021-01-14 Nick Clifton <nickc@redhat.com>
836 * po/sv.po: Updated Swedish translation.
838 2021-01-13 Alan Modra <amodra@gmail.com>
840 * Makefile.in: Regenerate.
841 * doc/Makefile.in: Regenerate.
843 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
846 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
848 (i386_x64_trampoline): Add SEH annotations.
849 (struct mac): Add how_seh field.
850 (make_delay_head): If how_set field is true add SEh instructions.
852 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
855 * configure.ac: Use GNU_MAKE_JOBSERVER.
856 * aclocal.m4: Regenerated.
857 * configure: Likewise.
859 2021-01-12 Nick Clifton <nickc@redhat.com>
861 * po/fr.po: Updated French translation.
863 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
866 * configure: Regenerated.
868 2021-01-11 Nick Clifton <nickc@redhat.com>
870 * po/pt.po: Updated Portuguese translation.
871 * po/sr.po: Updated Serbian translation.
872 * po/uk.po: Updated Ukranian translation.
874 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
876 * configure: Regenerated.
878 2021-01-09 Nick Clifton <nickc@redhat.com>
880 * configure: Regenerate.
881 * po/binutils.pot: Regenerate.
883 2021-01-09 Nick Clifton <nickc@redhat.com>
885 * 2.36 release branch crated.
886 * README-how-to-make-a-release: Add note about updating Makefiles
888 * BRANCHES: Add binutils-2.36-branch.
890 2021-01-09 Alan Modra <amodra@gmail.com>
892 * configure: Regenerate.
894 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
896 * configure: Regenerate.
898 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
901 * objcopy.c (copy_object): Handle section symbols for
902 non-relocatable inputs.
903 * testsuite/binutils-all/readelf.exp (readelf_test): Check
904 is_elf_unused_section_symbols.
905 * testsuite/binutils-all/readelf.s-64: Updated.
906 * testsuite/binutils-all/readelf.ss: Likewise.
907 * testsuite/binutils-all/readelf.ss-64: Likewise.
908 * testsuite/binutils-all/readelf.s-64-unused: New file.
909 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
910 * testsuite/binutils-all/readelf.ss-unused: Likewise.
911 * testsuite/lib/binutils-common.exp
912 (is_elf_unused_section_symbols): New proc.
914 2021-01-06 Reuben Thomas <rrt@sc3d.org>
916 * binutils/readelf.c: Correct grammar in comment.
918 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
920 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
921 * doc/binutils.texi: Correct grammar.
922 * readelf.c (process_version_sections): Correct spelling of auxiliary
924 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
926 2021-01-01 Alan Modra <amodra@gmail.com>
928 Update year range in copyright notice of all files.
930 For older changes see ChangeLog-2020
932 Copyright (C) 2021 Free Software Foundation, Inc.
934 Copying and distribution of this file, with or without modification,
935 are permitted in any medium without royalty provided the copyright
936 notice and this notice are preserved.
942 version-control: never