1 2021-05-09 Alan Modra <amodra@gmail.com>
3 * objcopy.c (eq_string): Delete.
4 (create_symbol_htab): Use htab_eq_string.
6 2021-05-08 Mike Frysinger <vapier@gentoo.org>
8 * README-how-to-make-a-release: Update html & pdf entries.
10 2021-05-08 Mike Frysinger <vapier@gentoo.org>
12 * doc/Makefile.am (html-local, binutils/index.html): New targets.
13 * doc/Makefile.in: Regenerate.
15 2021-05-08 Mike Frysinger <vapier@gentoo.org>
17 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
18 * doc/Makefile.in: Regenerate.
20 2021-05-07 Nick Clifton <nickc@redhat.com>
22 * readelf.c (no_processor_specific_unwind): New function.
23 (process_unwind): Use no_processor_specific_unwind for X86
26 2021-05-07 Michael Forney <mforney@mforney.org>
28 * dwarf.c: Don't omit second operand of '?' operator.
30 2021-04-30 Nick Clifton <nickc@redhat.com>
33 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
36 2021-04-29 Nick Clifton <nickc@redhat.com>
39 * doc/binutils.texi (windres): Correct the description of the
40 default value of the --preprocessor argument.
42 2021-04-27 Nick Clifton <nickc@redhat.com>
45 * dwarf.c (parse_gnu_debuglink): Reject empty names.
46 (parse_gnu_debugaltlink): Likewise.
48 2021-04-22 Clément Chigot <clement.chigot@atos.net>
50 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
53 2021-04-21 Nick Lott <nick.lott@gmail.com>
56 * readelf.c (sym_base): New variable.
57 (enum print_mode): Add more modes.
58 (print_vma): Add suport for new modes.
59 (options): Add sym-base.
60 (usage): Add sym-base.
61 (parse_args): Add support for --sym-base.
62 (print_dynamic_symbol_size): New function.
63 (print_dynamic_symbol): Use new function.
64 * doc/binutils.texi: Document the new feature.
65 * NEWS: Mention the new feature.
67 2021-04-21 Nick Clifton <nickc@redhat.com>
69 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
70 Adjust expected output to allow for named section symbols.
71 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
73 * testsuite/binutils-all/readelf.s-64: Likewise.
74 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
75 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
76 * testsuite/binutils-all/readelf.ss-unused: Likewise.
78 2021-04-21 Luo Longjun <luolongjun@huawei.com>
80 * readelf.c (print_dynamic_symbol): Print the section name for
81 section symbols without a name of their own.
83 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
85 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
86 add him to Past Maintainers.
87 Update my email address.
89 2021-04-19 Nick Clifton <nickc@redhat.com>
92 * arsup.c (ar_addmod): Enable plugin support, if available.
94 2021-04-19 Nick Clifton <nickc@redhat.com>
96 * rename.c: (get_stat_atime_ns): Add prototype.
97 (get_stat_mtime_ns): Add prototype.
99 2021-04-16 Alan Modra <amodra@gmail.com>
102 * rename.c (get_stat_atime, get_stat_mtime): Make static.
103 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
105 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
108 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
109 (get_stat_mtime_ns): Likewise.
111 2021-04-15 Alan Modra <amodra@gmail.com>
114 * configure.ac: Check for sys/time.h and utimensat. Use standard
115 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
116 members of struct stat.
117 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
118 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
119 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
120 (get_stat_atime, get_stat_mtime): Likewise.
121 (set_times): Choose first available of utimensat, utimes, utime.
122 Use above inline functions to set timespec and timeval values.
123 * configure: Regenerate.
124 * config.in: Regenerate.
125 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
126 file timestamp when --preserve-dates is used.
128 2021-04-15 Alan Modra <amodra@gmail.com>
131 * rename.c (smart_rename): When TO and FROM are equal, just set
133 * objcopy.c (strip_main, copy_main): Always call smart_rename.
135 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
138 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
139 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
140 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
143 2021-04-14 Mark Harmstone <mark@harmstone.com>
146 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
147 end of the structure.
149 2021-04-14 Frederic Cambus <fred@statdns.com>
151 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
152 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
154 2021-04-14 Alan Modra <amodra@gmail.com>
157 * objdump.c (show_line): Don't limit paths to PATH_MAX.
158 * readelf.c (struct filedata): Change program_interpreter from
159 a char array to a char pointer.
160 (process_program_headers): Sanity check PT_INTERP p_filesz.
161 Malloc program_interpreter using p_filesz and read directly from
163 (process_dynamic_section): Check program_interpreter is non-NULL.
164 (free_filedata): New function, split out from..
165 (process_object): ..here.
166 (close_debug_file): Call free_filedata.
167 * sysdep.h: Don't include sys/param.h.
168 (PATH_MAX): Don't define.
169 * configure.ac: Don't check for sys/param.h.
170 * configure: Regenerate.
172 2021-04-13 Frederic Cambus <fred@statdns.com>
174 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
175 check for NT_NETBSD_PAX.
177 2021-04-12 Alan Modra <amodra@gmail.com>
179 * configure.ac (--enable-checking): Add support.
180 * config.in: Regenerate.
181 * configure: Regenerate.
183 2021-04-09 Alan Modra <amodra@gmail.com>
185 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
187 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
188 (disassemble_section, disassemble_data): Likewise.
190 2021-04-06 Alan Modra <amodra@gmail.com>
192 * objdump.c (objdump_symbol_at_address): Return asymbol*.
194 2021-04-06 Alan Modra <amodra@gmail.com>
196 * NEWS: Mention C99 requirement.
197 * README: Likewise. Modernise examples and "Reporting bugs".
199 2021-04-05 Alan Modra <amodra@gmail.com>
201 * configure.ac: Assume long long is available. Don't test for
202 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
203 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
204 strcoll, setlocale, setmode or location of time_t. Don't check
205 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
206 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
207 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
208 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
209 locale.h, string.h and stdlib.h unconditionally. Remove various
210 fallback declarations. Assume long long is available.
211 * addr2line.c: Don't test HAVE_SETLOCALE.
213 * coffdump.c: Likewise.
214 * dlltool.c: Likewise.
215 * dllwrap.c: Likewise.
216 * elfedit.c: Likewise.
218 * objcopy.c: Likewise.
219 * objdump.c: Likewise.
220 * readelf.c: Likewise.
222 * srconv.c: Likewise.
223 * strings.c: Likewise.
224 * sysdump.c: Likewise.
225 * windmc.c: Likewise.
226 * windres.c: Likewise.
227 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
228 * dwarf.c: Include limits.h unconditionally. Assume long long
230 * nm.c: Don't test HAVE_STRCOLL.
231 * readelf.c: Don't test HAVE_WCHAR_H.
232 * strings.c: Assume long long is available.
233 * syslex.l: Include string.h unconditionally.
234 * aclocal.m4: Regenerate.
235 * config.in: Regenerate.
236 * configure: Regenerate.
237 * Makefile.in: Regenerate.
238 * doc/Makefile.in: Regenerate.
240 2021-04-01 Martin Liska <mliska@suse.cz>
242 * elfcomm.h (strneq): Remove strneq and use startswith.
243 * readelf.c (ia64_process_unwind): Likewise.
244 (process_note): Likewise.
246 2021-04-01 Martin Liska <mliska@suse.cz>
248 * dllwrap.c: Use startswith function.
249 * objcopy.c (is_dwo_section): Likewise.
250 (handle_remove_section_option): Likewise.
251 (copy_main): Likewise.
252 * objdump.c (is_significant_symbol_name): Likewise.
254 2021-04-01 Martin Liska <mliska@suse.cz>
256 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
258 (display_debug_lines_decoded): Likewise.
259 (display_debug_links): Likewise.
260 * elfcomm.c (setup_archive): Likewise.
261 * elfcomm.h (const_strneq): Likewise.
262 * readelf.c (process_section_headers): Likewise.
263 (slurp_ia64_unwind_table): Likewise.
264 (slurp_hppa_unwind_table): Likewise.
265 (decode_arm_unwind): Likewise.
266 (display_debug_section): Likewise.
267 (process_note): Likewise.
269 2021-03-31 Alan Modra <amodra@gmail.com>
271 * sysdep.h (POISON_BFD_BOOLEAN): Define.
272 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
273 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
274 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
275 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
276 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
277 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
278 * windmc.c, * windmc.h, * windres.c, * winduni.c,
279 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
280 and TRUE with true throughout.
282 2021-03-31 Alan Modra <amodra@gmail.com>
284 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
287 2021-03-31 Alan Modra <amodra@gmail.com>
289 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
291 2021-03-29 Alan Modra <amodra@gmail.com>
293 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
294 * dwarf.c (read_and_display_attr_value): Likewise.
295 (display_debug_str_offsets): Likewise.
296 * objdump.c (dump_bfd): Likewise.
297 * readelf.c (dump_section_as_strings): Likewise.
298 (dump_section_as_bytes): Likewise.
300 2021-03-29 Alan Modra <amodra@gmail.com>
302 * objdump.c (process_links): Use type int.
303 * readelf.c (request_dump): Don't increment do_dump, set it.
304 * windint.h (target_is_bigendian): Use type bfd_boolean.
305 * windmc.c (target_is_bigendian): Likewise.
306 * windres.c (target_is_bigendian): Likewise.
308 2021-03-22 Martin Liska <mliska@suse.cz>
310 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
312 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
313 * objcopy.c (is_mergeable_note_section): Likewise.
314 * objdump.c (dump_dwarf_section): Likewise.
315 * prdbg.c (pr_method_type): Likewise.
316 (pr_class_baseclass): Likewise.
317 (tg_class_baseclass): Likewise.
318 * readelf.c (process_lto_symbol_tables): Likewise.
319 * stabs.c (ULLHIGH): Likewise.
320 (parse_stab_argtypes): Likewise.
321 (stab_demangle_function_name): Likewise.
323 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
325 * readelf.c (get_machine_name): Add EM_INTELGT.
327 2021-03-18 Nick Clifton <nickc@redhat.com>
330 * readelf.c (dump_section_as_strings): Mention separate filename.
331 (dump_section_as_bytes): Likewise.
332 (dump_section_as_ctf): Likewise.
333 (initialise_dumkps_byname): Only issue a warning for missing
334 sections if processing the main file.
335 (process_section_contents): Only issue a warning for unsumped
336 section numbers in the main file.
337 (initialise_dump_sects): New function. Contains code extracted
339 (process_object): ... here. Also call initialise_dump_sects for
342 2021-03-16 Nick Clifton <nickc@redhat.com>
345 * readelf.c (display_debug_section): Also retain .debug_addr
348 2021-03-16 Nick Clifton <nickc@redhat.com>
351 * readelf.c (process_section_contents): Only dump debug
352 information for separate files unless process_links is enabled.
353 (process_object): Always call process_section_contents for
356 2021-03-15 Nick Clifton <nickc@redhat.com>
359 * nm.c (FORMAT_JUST_SYMBOLS): Define.
360 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
361 (long_options): Add just-symbols.
362 (set_output_format): Add support for just-symbols.
363 (get_print_format): Likewise.
364 (do_not_print_object_filename): New function.
365 (do_not_print_archive_filename): New function.
366 (do_not_print_archive_member): New function.
367 (do_not_print_symbol_filename): New function.
368 (just_print_symbol_name): New function.
369 (main): Handle --just-symbols.
370 * NEWS: Mention the new feature.
371 * doc/binutils.texi: Document the new feature.
373 2021-03-12 Clément Chigot <clement.chigot@atos.net>
375 * od-xcoff.c: Replace RTB by TRL entry.
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_RISCV_CSR.
382 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
383 Andrew Burgess <andrew.burgess@embecosm.com>
385 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
387 2021-03-05 Nick Clifton <nickc@redhat.com>
390 * dwarf.c (display_debug_macro): Handle the displaying of
391 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
392 .debug_macro.dwo sections.
394 2021-03-04 Nick Clifton <nickc@redhat.com>
397 * objdump.c (process_links): New variable.
398 (usage): Add --process-links.
399 (long_options): Likewise.
400 (dump_bfd): Stop processing once the bfd has been loaded unless
401 this is the main file or process_links has been enabled.
402 (main): Handle the process-links option.
403 * readelf.c (process_links): New variable.
404 (struct filedata): Add is_separate field.
405 (options): Add --process-links.
407 (parse_args): Likewise.
408 (process_file_header): Include the filename when dumping
409 information for separate debuginfo files.
410 (process_program_headers): Likewise.
411 (process_section_headers): Likewise.
412 (process_section_groups): Likewise.
413 (process_relocs): Likewise.
414 (process_dynamic_section): Likewise.
415 (process_version_sections): Likewise.
416 (display_lto_symtab): Likewise.
417 (process_symbol_table): Likewise.
418 (process_syminfo): Likewise.
419 (initialise_dumps_by_name): Likewise.
420 (process_section_contents): Likewise.
421 (process_notes_at): Likewise.
422 (process_notes): Likewise.
423 (open_file): Add is_separate parameter. Use to initialise the
424 is_separate field in the filedata structure.
425 (open_deug): Update call to open_file.
426 (process_object): Add processing of the contents of separate
427 debuginfo files, gated by the process_links variable.
428 (process_archive): Update call to open_file.
429 (process_file): Initialise the is_separate field in the filedata
431 * dwarf.c (load_separate_debug_info_file): Only report the
432 loading of a separate file if debug links are being dumped.
433 * objcopy.c (keep_section_symbols): New variable.
434 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
435 (strip_options): Add keep-section-symbols.
436 (copy_options): Likewise.
437 (copy_usage): Likewise.
438 (strip_usage): Likewise.
439 (copy_object): Keep section symbols if requested by command line
441 (strip_main): Handle --keep-section-symbols.
442 (copy_main): Likewise.
443 * doc/binutils.texi: Document the new options.
444 * NEWS: Mention the new features.
445 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
446 Update options passed to objdump. Use diff rather than cmp to
447 compare the dumped data.
448 * testsuite/binutils-all/objdump.WK2: Update regexp.
449 * testsuite/binutils-all/objdump.WK3: Update regexp.
450 * testsuite/binutils-all/objdump.exp: Use --process-links
451 instead of --dwarf=follow-links.
452 * testsuite/binutils-all/readelf.exp (readelf_test): Include
453 readelf's output in the log when the test fails.
454 Add the -P option to the -wKis test.
455 * testsuite/binutils-all/readelf.wKis: Update expected output.
457 2021-03-03 Alan Modra <amodra@gmail.com>
460 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
461 * NEWS: Mention feature.
463 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
466 * dwarf.c (load_separate_debug_info): Issue warning only if
467 do_debug_links is set.
468 * testsuite/binutils-all/compress.exp: Run objdump and readelf
469 with missing debug file.
471 2021-03-01 Alan Modra <amodra@gmail.com>
474 * doc/binutils.texi: Add nm --with-symbol-versions and
475 --without-symbol-versions documentation.
476 * nm.c (with_symbol_versions): New variable.
477 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
478 (long_options): Make --with-symbol-versions entry twiddle the flag.
479 Add --without-symbol-versions.
480 (print_symname): Strip version when !with_symbol_versions. Add
481 dynamic version info under control of with_symbol_versions.
482 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
484 2021-02-26 Fangrui Song <maskray@google.com>
487 * readelf.c (quiet): New option flag.
488 (enum long_option_values): New enum to hold long option value.
489 (long_options): Add --quiet.
490 (usage): Mention --quiet.
491 (display_rel_file): If quiet is enabled, suppress "no symbols".
492 (main): Handle the new option.
493 * NEWS: Mention --quiet.
494 * docs/binutils.texi: Document --quiet.
496 2021-02-26 Tom de Vries <tdevries@suse.de>
498 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
500 2021-02-26 Tom de Vries <tdevries@suse.de>
503 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
505 (read_and_display_attr_value): Likewise.
507 2021-02-25 Nick Clifton <nickc@redhat.com>
509 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
511 (read_and_display_attr_value): Handle sup forms.
512 (display_debug_sup): New function. Displays the contents of a
514 (load_debug_sup_file): New function. Loads the contents of a file
515 referenced by a .debug_sup section.
516 (check_for_and_load_links): Call load_debug_sup_file.
517 (debug_displays): Add entry for .debug_sup.
518 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
519 * readelf.c (process_section_headers): Add support for debug_sup.
520 * doc/debug.options.texi: Note that the =links option will display
521 the contents of .debug_sup sections.
522 * NEWS: Mention the new support.
524 2021-02-25 Alan Modra <amodra@gmail.com>
527 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
529 2021-02-24 Nick Clifton <nickc@redhat.com>
532 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
533 when adding together the section sizes.
535 2021-02-24 Nick Clifton <nickc@redhat.com>
537 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
539 * readelf.c (print_gnu_build_attribute_description): Likewise.
541 2021-02-24 Alan Modra <amodra@gmail.com>
542 Siddhesh Poyarekar <siddhesh@gotplt.org>
545 * bucomm.h (smart_rename): Update prototype.
546 * rename.c (smart_rename): Add fromfd and preserve_dates params.
547 Pass fromfd and target_stat to simple_copy. Call set_times
549 (simple_copy): Accept fromfd rather than from filename. Add
550 target_stat param. Rewind fromfd rather than opening. Open
551 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
552 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
553 closing output temp file, and pass tmpfd to smart_rename.
554 * arsup.c (temp_fd): Rename from real_fd.
555 (ar_save): Dup temp_fd and pass to smart_rename.
556 * objcopy.c (strip_main, copy_main): Likewise, and pass
559 2021-02-24 Alan Modra <amodra@gmail.com>
562 * rename.c: Tidy throughout.
563 (smart_rename): Always copy. Remove windows specific code.
565 2021-02-20 Alan Modra <amodra@gmail.com>
567 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
568 (run_dump_test): Fail if expecting errors from a file like we do
569 for error strings, if no error is seen.
571 2021-02-19 Alan Modra <amodra@gmail.com>
573 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
575 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
577 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
579 * arsup.c (ar_save): Likewise.
580 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
581 temporary file and adjust call to SMART_RENAME.
582 (copy_main): Likewise.
583 * rename.c [!S_ISLNK]: Remove definitions.
584 (try_preserve_permissions): Remove function.
585 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
586 rename system call only if TO does not exist.
587 * bucomm.h (smart_rename): Adjust declaration.
589 2021-02-18 Nick Clifton <nickc@redhat.com>
591 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
592 address that is higher than the end address.
594 2021-02-17 Alan Modra <amodra@gmail.com>
596 * dwarf.c: Include limits.h.
597 (CHAR_BIT): Provide backup define.
598 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
599 signed overflow checking.
600 * testsuite/binutils-all/pr26548.s,
601 * testsuite/binutils-all/pr26548.d,
602 * testsuite/binutils-all/pr26548e.d: New tests.
603 * testsuite/binutils-all/readelf.exp: Run them.
604 (readelf_test): Drop unused "xfails" parameter. Update all uses.
606 2021-02-16 Jan Beulich <jbeulich@suse.com>
608 * dwarf.c (process_debug_info): Initialize "dwo_id".
610 2021-02-15 Alan Modra <amodra@gmail.com>
612 * objdump.c (load_specific_debug_section): Don't call
613 bfd_cache_section_contents. Rearrange so that
614 bfd_get_full_section_contents is not called on path where
615 bfd_simple_get_relocated_section_contents is called.
616 Don't set section->user_data.
617 (free_debug_section): Always free section->start. Don't twiddle
619 * readelf.c (load_specific_debug_section): Don't set user_data.
620 * dwarf.h (struct dwarf_section): Remove use_data field.
621 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
623 2021-02-15 Alan Modra <amodra@gmail.com>
625 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
626 * testsuite/binutils-all/objdump.exp: Likewise.
628 2021-02-14 Alan Modra <amodra@gmail.com>
630 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
632 (slurp_dynamic_symtab): Likewise.
633 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
635 2021-02-14 Alan Modra <amodra@gmail.com>
637 * Makefile.in: Regenerate.
638 * doc/Makefile.in: Regenerate.
640 2021-02-13 Mike Frysinger <vapier@gentoo.org>
642 * aclocal.m4: Regenerate.
644 2021-02-12 Nick Clifton <nickc@redhat.com>
646 * configure.ac (follow-debug-links): Add option to enable or
647 disable the following of debug links by default. Set the
648 default for the option to be 'follow'.
649 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
650 (dwarf_select_sections_by_names): Add no-follow-links option.
651 (dwarf_select_sections_by_letter): Add 'N' option.
652 * objdump.c (usage): Add conditional text describing the
654 (slurp_symtab): Ensure that there is a NULL entry at the end
656 (slurp_dynamic_symtab): Likewise.
657 (dump_bfd): When extending the symbol table, ensure that there
658 is still a NULL entry at the end.
659 * readelf.c (usage): Add conditional text describing the
661 * doc/binutils.texi: Update documentation for objcopy and
663 * doc/debug.options.texi: Update documentation of the
665 * config.in: Regenerate.
666 * configure: Regenerate.
667 * testsuite/binutils-all/compress.exp: Add the -WN option to
668 objdump command lines that are not expecting to follow links.
669 * testsuite/binutils-all/readelf.exp: Add the
670 --debug-dump=no-follow-links option to tests that are not
671 expecting to follow debug links.
672 * NEWS: Mention the new behaviour.
674 2021-02-12 Alan Modra <amodra@gmail.com>
676 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
677 gas or ld fails to build a testcase rather than "unresolved".
678 Report "fail" when readelf returns an error status rather than
680 * testsuite/binutils-all/ar.exp: Likewise.
681 * testsuite/binutils-all/compress.exp: Likewise.
682 * testsuite/binutils-all/readelf.exp: Likewise.
684 2021-02-12 Alan Modra <amodra@gmail.com>
686 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
687 "c" with "ccc" labels.
689 2021-02-12 Tom de Vries <tdevries@suse.de>
691 * dwarf.h (debug_info): Fix typo in comment.
693 2021-02-12 Tom de Vries <tdevries@suse.de>
695 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
698 2021-02-12 Tom de Vries <tdevries@suse.de>
700 * dwarf.c (process_debug_info): Print DWO ID.
702 2021-02-11 Alan Modra <amodra@gmail.com>
707 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
708 Use bfd_malloc_and_get_section.
709 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
710 check namesz. Return NULL if descsz is too small. Ensure
711 string table is terminated.
712 (elf32_avr_get_device_info): Formatting. Add note_size param.
714 (elf32_avr_dump_mem_usage): Adjust to suit.
716 2021-02-10 Tom de Vries <tdevries@suse.de>
719 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
721 2021-02-10 Tom de Vries <tdevries@suse.de>
724 * dwarf.c (display_debug_ranges): Filter range lists according to
727 2021-02-09 Tom de Vries <tdevries@suse.de>
730 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
732 2021-02-09 Tom de Vries <tdevries@suse.de>
735 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
738 2021-02-09 Alan Modra <amodra@gmail.com>
740 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
743 2021-02-07 Alan Modra <amodra@gmail.com>
745 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
746 uninitialised on invalid input.
748 2021-02-06 Alan Modra <amodra@gmail.com>
751 * rename.c (smart_rename): Test for existence and type of output
754 2021-02-05 Nick Clifton <nickc@redhat.com>
756 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
758 2021-02-05 Eli Zaretskii <eliz@gnu.org>
761 * elfedit.c (check_file):
762 * bucomm.c (get_file_size): Fix typos in comments.
764 2021-02-05 Alan Modra <amodra@gmail.com>
767 * arsup.c (ar_save): Use stat rather than lstat.
769 2021-02-03 Alan Modra <amodra@gmail.com>
774 * ar.c: Don't include libbfd.h.
775 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
776 bfd_stat rather than fstat on iostream. Move stat and fd tests
777 outside of _WIN32 ifdef. Delete skip_stat variable.
778 * arsup.c (temp_name, real_ofd): New static variables.
779 (ar_open): Use make_tempname and bfd_fdopenw.
780 (ar_save): Adjust to suit ar_open changes. Move stat output
782 * objcopy.c: Don't include libbfd.h.
783 (copy_file): Use bfd_stat.
785 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
788 * readelf.c (process_section_headers): Add 'R' and 'D' to
790 * testsuite/binutils-all/retain1a.d: Updated.
792 2021-01-30 Nick Clifton <nickc@redhat.com>
794 * README-how-to-make-a-release: Small updates after the 2.35.2
797 2021-01-28 Eli Zaretskii <eliz@gnu.org>
800 * windres.c (quot): Use double quotes to protect strings on
803 2021-01-28 Eli Zaretskii <eliz@gnu.org>
806 * bucomm.c (get_file_size): Add code to handle /dev/null on
808 * elfedit.c (check_file): Likewise.
810 2021-01-27 Nick Clifton <nickc@redhat.com>
812 * objcopy.c (copy_main): Remove conditional control of the calls
813 to free, simplifying the code and making it easier to detect
816 2021-01-26 Frederic Cambus <fred@statdns.com>
818 * objcopy.c (copy_main): Fix a double free happening when both
819 --localize-symbols and --globalize-symbols options are invoked
822 2021-01-24 Nick Clifton <nickc@redhat.com>
824 * README-how-to-make-a-release: Minor updates after the 2.36 release.
826 2021-01-16 Alan Modra <amodra@gmail.com>
828 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
830 2021-01-15 Alan Modra <amodra@gmail.com>
833 * readelf.c (uncompress_section_contents): Always call inflateEnd.
835 2021-01-14 Alexandre Oliva <oliva@gnu.org>
837 * MAINTAINERS: Update my email address.
839 2021-01-14 Nick Clifton <nickc@redhat.com>
841 * po/sv.po: Updated Swedish translation.
843 2021-01-13 Alan Modra <amodra@gmail.com>
845 * Makefile.in: Regenerate.
846 * doc/Makefile.in: Regenerate.
848 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
851 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
853 (i386_x64_trampoline): Add SEH annotations.
854 (struct mac): Add how_seh field.
855 (make_delay_head): If how_set field is true add SEh instructions.
857 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
860 * configure.ac: Use GNU_MAKE_JOBSERVER.
861 * aclocal.m4: Regenerated.
862 * configure: Likewise.
864 2021-01-12 Nick Clifton <nickc@redhat.com>
866 * po/fr.po: Updated French translation.
868 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
871 * configure: Regenerated.
873 2021-01-11 Nick Clifton <nickc@redhat.com>
875 * po/pt.po: Updated Portuguese translation.
876 * po/sr.po: Updated Serbian translation.
877 * po/uk.po: Updated Ukranian translation.
879 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
881 * configure: Regenerated.
883 2021-01-09 Nick Clifton <nickc@redhat.com>
885 * configure: Regenerate.
886 * po/binutils.pot: Regenerate.
888 2021-01-09 Nick Clifton <nickc@redhat.com>
890 * 2.36 release branch crated.
891 * README-how-to-make-a-release: Add note about updating Makefiles
893 * BRANCHES: Add binutils-2.36-branch.
895 2021-01-09 Alan Modra <amodra@gmail.com>
897 * configure: Regenerate.
899 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
901 * configure: Regenerate.
903 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
906 * objcopy.c (copy_object): Handle section symbols for
907 non-relocatable inputs.
908 * testsuite/binutils-all/readelf.exp (readelf_test): Check
909 is_elf_unused_section_symbols.
910 * testsuite/binutils-all/readelf.s-64: Updated.
911 * testsuite/binutils-all/readelf.ss: Likewise.
912 * testsuite/binutils-all/readelf.ss-64: Likewise.
913 * testsuite/binutils-all/readelf.s-64-unused: New file.
914 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
915 * testsuite/binutils-all/readelf.ss-unused: Likewise.
916 * testsuite/lib/binutils-common.exp
917 (is_elf_unused_section_symbols): New proc.
919 2021-01-06 Reuben Thomas <rrt@sc3d.org>
921 * binutils/readelf.c: Correct grammar in comment.
923 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
925 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
926 * doc/binutils.texi: Correct grammar.
927 * readelf.c (process_version_sections): Correct spelling of auxiliary
929 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
931 2021-01-01 Alan Modra <amodra@gmail.com>
933 Update year range in copyright notice of all files.
935 For older changes see ChangeLog-2020
937 Copyright (C) 2021 Free Software Foundation, Inc.
939 Copying and distribution of this file, with or without modification,
940 are permitted in any medium without royalty provided the copyright
941 notice and this notice are preserved.
947 version-control: never