1 2021-05-07 Michael Forney <mforney@mforney.org>
3 * dwarf.c: Don't omit second operand of '?' operator.
5 2021-04-30 Nick Clifton <nickc@redhat.com>
8 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
11 2021-04-29 Nick Clifton <nickc@redhat.com>
14 * doc/binutils.texi (windres): Correct the description of the
15 default value of the --preprocessor argument.
17 2021-04-27 Nick Clifton <nickc@redhat.com>
20 * dwarf.c (parse_gnu_debuglink): Reject empty names.
21 (parse_gnu_debugaltlink): Likewise.
23 2021-04-22 Clément Chigot <clement.chigot@atos.net>
25 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
28 2021-04-21 Nick Lott <nick.lott@gmail.com>
31 * readelf.c (sym_base): New variable.
32 (enum print_mode): Add more modes.
33 (print_vma): Add suport for new modes.
34 (options): Add sym-base.
35 (usage): Add sym-base.
36 (parse_args): Add support for --sym-base.
37 (print_dynamic_symbol_size): New function.
38 (print_dynamic_symbol): Use new function.
39 * doc/binutils.texi: Document the new feature.
40 * NEWS: Mention the new feature.
42 2021-04-21 Nick Clifton <nickc@redhat.com>
44 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
45 Adjust expected output to allow for named section symbols.
46 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
48 * testsuite/binutils-all/readelf.s-64: Likewise.
49 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
50 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
51 * testsuite/binutils-all/readelf.ss-unused: Likewise.
53 2021-04-21 Luo Longjun <luolongjun@huawei.com>
55 * readelf.c (print_dynamic_symbol): Print the section name for
56 section symbols without a name of their own.
58 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
60 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
61 add him to Past Maintainers.
62 Update my email address.
64 2021-04-19 Nick Clifton <nickc@redhat.com>
67 * arsup.c (ar_addmod): Enable plugin support, if available.
69 2021-04-19 Nick Clifton <nickc@redhat.com>
71 * rename.c: (get_stat_atime_ns): Add prototype.
72 (get_stat_mtime_ns): Add prototype.
74 2021-04-16 Alan Modra <amodra@gmail.com>
77 * rename.c (get_stat_atime, get_stat_mtime): Make static.
78 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
80 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
83 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
84 (get_stat_mtime_ns): Likewise.
86 2021-04-15 Alan Modra <amodra@gmail.com>
89 * configure.ac: Check for sys/time.h and utimensat. Use standard
90 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
91 members of struct stat.
92 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
93 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
94 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
95 (get_stat_atime, get_stat_mtime): Likewise.
96 (set_times): Choose first available of utimensat, utimes, utime.
97 Use above inline functions to set timespec and timeval values.
98 * configure: Regenerate.
99 * config.in: Regenerate.
100 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
101 file timestamp when --preserve-dates is used.
103 2021-04-15 Alan Modra <amodra@gmail.com>
106 * rename.c (smart_rename): When TO and FROM are equal, just set
108 * objcopy.c (strip_main, copy_main): Always call smart_rename.
110 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
113 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
114 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
115 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
118 2021-04-14 Mark Harmstone <mark@harmstone.com>
121 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
122 end of the structure.
124 2021-04-14 Frederic Cambus <fred@statdns.com>
126 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
127 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
129 2021-04-14 Alan Modra <amodra@gmail.com>
132 * objdump.c (show_line): Don't limit paths to PATH_MAX.
133 * readelf.c (struct filedata): Change program_interpreter from
134 a char array to a char pointer.
135 (process_program_headers): Sanity check PT_INTERP p_filesz.
136 Malloc program_interpreter using p_filesz and read directly from
138 (process_dynamic_section): Check program_interpreter is non-NULL.
139 (free_filedata): New function, split out from..
140 (process_object): ..here.
141 (close_debug_file): Call free_filedata.
142 * sysdep.h: Don't include sys/param.h.
143 (PATH_MAX): Don't define.
144 * configure.ac: Don't check for sys/param.h.
145 * configure: Regenerate.
147 2021-04-13 Frederic Cambus <fred@statdns.com>
149 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
150 check for NT_NETBSD_PAX.
152 2021-04-12 Alan Modra <amodra@gmail.com>
154 * configure.ac (--enable-checking): Add support.
155 * config.in: Regenerate.
156 * configure: Regenerate.
158 2021-04-09 Alan Modra <amodra@gmail.com>
160 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
162 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
163 (disassemble_section, disassemble_data): Likewise.
165 2021-04-06 Alan Modra <amodra@gmail.com>
167 * objdump.c (objdump_symbol_at_address): Return asymbol*.
169 2021-04-06 Alan Modra <amodra@gmail.com>
171 * NEWS: Mention C99 requirement.
172 * README: Likewise. Modernise examples and "Reporting bugs".
174 2021-04-05 Alan Modra <amodra@gmail.com>
176 * configure.ac: Assume long long is available. Don't test for
177 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
178 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
179 strcoll, setlocale, setmode or location of time_t. Don't check
180 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
181 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
182 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
183 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
184 locale.h, string.h and stdlib.h unconditionally. Remove various
185 fallback declarations. Assume long long is available.
186 * addr2line.c: Don't test HAVE_SETLOCALE.
188 * coffdump.c: Likewise.
189 * dlltool.c: Likewise.
190 * dllwrap.c: Likewise.
191 * elfedit.c: Likewise.
193 * objcopy.c: Likewise.
194 * objdump.c: Likewise.
195 * readelf.c: Likewise.
197 * srconv.c: Likewise.
198 * strings.c: Likewise.
199 * sysdump.c: Likewise.
200 * windmc.c: Likewise.
201 * windres.c: Likewise.
202 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
203 * dwarf.c: Include limits.h unconditionally. Assume long long
205 * nm.c: Don't test HAVE_STRCOLL.
206 * readelf.c: Don't test HAVE_WCHAR_H.
207 * strings.c: Assume long long is available.
208 * syslex.l: Include string.h unconditionally.
209 * aclocal.m4: Regenerate.
210 * config.in: Regenerate.
211 * configure: Regenerate.
212 * Makefile.in: Regenerate.
213 * doc/Makefile.in: Regenerate.
215 2021-04-01 Martin Liska <mliska@suse.cz>
217 * elfcomm.h (strneq): Remove strneq and use startswith.
218 * readelf.c (ia64_process_unwind): Likewise.
219 (process_note): Likewise.
221 2021-04-01 Martin Liska <mliska@suse.cz>
223 * dllwrap.c: Use startswith function.
224 * objcopy.c (is_dwo_section): Likewise.
225 (handle_remove_section_option): Likewise.
226 (copy_main): Likewise.
227 * objdump.c (is_significant_symbol_name): Likewise.
229 2021-04-01 Martin Liska <mliska@suse.cz>
231 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
233 (display_debug_lines_decoded): Likewise.
234 (display_debug_links): Likewise.
235 * elfcomm.c (setup_archive): Likewise.
236 * elfcomm.h (const_strneq): Likewise.
237 * readelf.c (process_section_headers): Likewise.
238 (slurp_ia64_unwind_table): Likewise.
239 (slurp_hppa_unwind_table): Likewise.
240 (decode_arm_unwind): Likewise.
241 (display_debug_section): Likewise.
242 (process_note): Likewise.
244 2021-03-31 Alan Modra <amodra@gmail.com>
246 * sysdep.h (POISON_BFD_BOOLEAN): Define.
247 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
248 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
249 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
250 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
251 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
252 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
253 * windmc.c, * windmc.h, * windres.c, * winduni.c,
254 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
255 and TRUE with true throughout.
257 2021-03-31 Alan Modra <amodra@gmail.com>
259 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
262 2021-03-31 Alan Modra <amodra@gmail.com>
264 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
266 2021-03-29 Alan Modra <amodra@gmail.com>
268 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
269 * dwarf.c (read_and_display_attr_value): Likewise.
270 (display_debug_str_offsets): Likewise.
271 * objdump.c (dump_bfd): Likewise.
272 * readelf.c (dump_section_as_strings): Likewise.
273 (dump_section_as_bytes): Likewise.
275 2021-03-29 Alan Modra <amodra@gmail.com>
277 * objdump.c (process_links): Use type int.
278 * readelf.c (request_dump): Don't increment do_dump, set it.
279 * windint.h (target_is_bigendian): Use type bfd_boolean.
280 * windmc.c (target_is_bigendian): Likewise.
281 * windres.c (target_is_bigendian): Likewise.
283 2021-03-22 Martin Liska <mliska@suse.cz>
285 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
287 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
288 * objcopy.c (is_mergeable_note_section): Likewise.
289 * objdump.c (dump_dwarf_section): Likewise.
290 * prdbg.c (pr_method_type): Likewise.
291 (pr_class_baseclass): Likewise.
292 (tg_class_baseclass): Likewise.
293 * readelf.c (process_lto_symbol_tables): Likewise.
294 * stabs.c (ULLHIGH): Likewise.
295 (parse_stab_argtypes): Likewise.
296 (stab_demangle_function_name): Likewise.
298 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
300 * readelf.c (get_machine_name): Add EM_INTELGT.
302 2021-03-18 Nick Clifton <nickc@redhat.com>
305 * readelf.c (dump_section_as_strings): Mention separate filename.
306 (dump_section_as_bytes): Likewise.
307 (dump_section_as_ctf): Likewise.
308 (initialise_dumkps_byname): Only issue a warning for missing
309 sections if processing the main file.
310 (process_section_contents): Only issue a warning for unsumped
311 section numbers in the main file.
312 (initialise_dump_sects): New function. Contains code extracted
314 (process_object): ... here. Also call initialise_dump_sects for
317 2021-03-16 Nick Clifton <nickc@redhat.com>
320 * readelf.c (display_debug_section): Also retain .debug_addr
323 2021-03-16 Nick Clifton <nickc@redhat.com>
326 * readelf.c (process_section_contents): Only dump debug
327 information for separate files unless process_links is enabled.
328 (process_object): Always call process_section_contents for
331 2021-03-15 Nick Clifton <nickc@redhat.com>
334 * nm.c (FORMAT_JUST_SYMBOLS): Define.
335 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
336 (long_options): Add just-symbols.
337 (set_output_format): Add support for just-symbols.
338 (get_print_format): Likewise.
339 (do_not_print_object_filename): New function.
340 (do_not_print_archive_filename): New function.
341 (do_not_print_archive_member): New function.
342 (do_not_print_symbol_filename): New function.
343 (just_print_symbol_name): New function.
344 (main): Handle --just-symbols.
345 * NEWS: Mention the new feature.
346 * doc/binutils.texi: Document the new feature.
348 2021-03-12 Clément Chigot <clement.chigot@atos.net>
350 * od-xcoff.c: Replace RTB by TRL entry.
352 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
353 Andrew Burgess <andrew.burgess@embecosm.com>
355 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
357 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
358 Andrew Burgess <andrew.burgess@embecosm.com>
360 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
362 2021-03-05 Nick Clifton <nickc@redhat.com>
365 * dwarf.c (display_debug_macro): Handle the displaying of
366 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
367 .debug_macro.dwo sections.
369 2021-03-04 Nick Clifton <nickc@redhat.com>
372 * objdump.c (process_links): New variable.
373 (usage): Add --process-links.
374 (long_options): Likewise.
375 (dump_bfd): Stop processing once the bfd has been loaded unless
376 this is the main file or process_links has been enabled.
377 (main): Handle the process-links option.
378 * readelf.c (process_links): New variable.
379 (struct filedata): Add is_separate field.
380 (options): Add --process-links.
382 (parse_args): Likewise.
383 (process_file_header): Include the filename when dumping
384 information for separate debuginfo files.
385 (process_program_headers): Likewise.
386 (process_section_headers): Likewise.
387 (process_section_groups): Likewise.
388 (process_relocs): Likewise.
389 (process_dynamic_section): Likewise.
390 (process_version_sections): Likewise.
391 (display_lto_symtab): Likewise.
392 (process_symbol_table): Likewise.
393 (process_syminfo): Likewise.
394 (initialise_dumps_by_name): Likewise.
395 (process_section_contents): Likewise.
396 (process_notes_at): Likewise.
397 (process_notes): Likewise.
398 (open_file): Add is_separate parameter. Use to initialise the
399 is_separate field in the filedata structure.
400 (open_deug): Update call to open_file.
401 (process_object): Add processing of the contents of separate
402 debuginfo files, gated by the process_links variable.
403 (process_archive): Update call to open_file.
404 (process_file): Initialise the is_separate field in the filedata
406 * dwarf.c (load_separate_debug_info_file): Only report the
407 loading of a separate file if debug links are being dumped.
408 * objcopy.c (keep_section_symbols): New variable.
409 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
410 (strip_options): Add keep-section-symbols.
411 (copy_options): Likewise.
412 (copy_usage): Likewise.
413 (strip_usage): Likewise.
414 (copy_object): Keep section symbols if requested by command line
416 (strip_main): Handle --keep-section-symbols.
417 (copy_main): Likewise.
418 * doc/binutils.texi: Document the new options.
419 * NEWS: Mention the new features.
420 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
421 Update options passed to objdump. Use diff rather than cmp to
422 compare the dumped data.
423 * testsuite/binutils-all/objdump.WK2: Update regexp.
424 * testsuite/binutils-all/objdump.WK3: Update regexp.
425 * testsuite/binutils-all/objdump.exp: Use --process-links
426 instead of --dwarf=follow-links.
427 * testsuite/binutils-all/readelf.exp (readelf_test): Include
428 readelf's output in the log when the test fails.
429 Add the -P option to the -wKis test.
430 * testsuite/binutils-all/readelf.wKis: Update expected output.
432 2021-03-03 Alan Modra <amodra@gmail.com>
435 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
436 * NEWS: Mention feature.
438 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
441 * dwarf.c (load_separate_debug_info): Issue warning only if
442 do_debug_links is set.
443 * testsuite/binutils-all/compress.exp: Run objdump and readelf
444 with missing debug file.
446 2021-03-01 Alan Modra <amodra@gmail.com>
449 * doc/binutils.texi: Add nm --with-symbol-versions and
450 --without-symbol-versions documentation.
451 * nm.c (with_symbol_versions): New variable.
452 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
453 (long_options): Make --with-symbol-versions entry twiddle the flag.
454 Add --without-symbol-versions.
455 (print_symname): Strip version when !with_symbol_versions. Add
456 dynamic version info under control of with_symbol_versions.
457 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
459 2021-02-26 Fangrui Song <maskray@google.com>
462 * readelf.c (quiet): New option flag.
463 (enum long_option_values): New enum to hold long option value.
464 (long_options): Add --quiet.
465 (usage): Mention --quiet.
466 (display_rel_file): If quiet is enabled, suppress "no symbols".
467 (main): Handle the new option.
468 * NEWS: Mention --quiet.
469 * docs/binutils.texi: Document --quiet.
471 2021-02-26 Tom de Vries <tdevries@suse.de>
473 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
475 2021-02-26 Tom de Vries <tdevries@suse.de>
478 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
480 (read_and_display_attr_value): Likewise.
482 2021-02-25 Nick Clifton <nickc@redhat.com>
484 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
486 (read_and_display_attr_value): Handle sup forms.
487 (display_debug_sup): New function. Displays the contents of a
489 (load_debug_sup_file): New function. Loads the contents of a file
490 referenced by a .debug_sup section.
491 (check_for_and_load_links): Call load_debug_sup_file.
492 (debug_displays): Add entry for .debug_sup.
493 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
494 * readelf.c (process_section_headers): Add support for debug_sup.
495 * doc/debug.options.texi: Note that the =links option will display
496 the contents of .debug_sup sections.
497 * NEWS: Mention the new support.
499 2021-02-25 Alan Modra <amodra@gmail.com>
502 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
504 2021-02-24 Nick Clifton <nickc@redhat.com>
507 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
508 when adding together the section sizes.
510 2021-02-24 Nick Clifton <nickc@redhat.com>
512 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
514 * readelf.c (print_gnu_build_attribute_description): Likewise.
516 2021-02-24 Alan Modra <amodra@gmail.com>
517 Siddhesh Poyarekar <siddhesh@gotplt.org>
520 * bucomm.h (smart_rename): Update prototype.
521 * rename.c (smart_rename): Add fromfd and preserve_dates params.
522 Pass fromfd and target_stat to simple_copy. Call set_times
524 (simple_copy): Accept fromfd rather than from filename. Add
525 target_stat param. Rewind fromfd rather than opening. Open
526 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
527 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
528 closing output temp file, and pass tmpfd to smart_rename.
529 * arsup.c (temp_fd): Rename from real_fd.
530 (ar_save): Dup temp_fd and pass to smart_rename.
531 * objcopy.c (strip_main, copy_main): Likewise, and pass
534 2021-02-24 Alan Modra <amodra@gmail.com>
537 * rename.c: Tidy throughout.
538 (smart_rename): Always copy. Remove windows specific code.
540 2021-02-20 Alan Modra <amodra@gmail.com>
542 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
543 (run_dump_test): Fail if expecting errors from a file like we do
544 for error strings, if no error is seen.
546 2021-02-19 Alan Modra <amodra@gmail.com>
548 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
550 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
552 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
554 * arsup.c (ar_save): Likewise.
555 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
556 temporary file and adjust call to SMART_RENAME.
557 (copy_main): Likewise.
558 * rename.c [!S_ISLNK]: Remove definitions.
559 (try_preserve_permissions): Remove function.
560 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
561 rename system call only if TO does not exist.
562 * bucomm.h (smart_rename): Adjust declaration.
564 2021-02-18 Nick Clifton <nickc@redhat.com>
566 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
567 address that is higher than the end address.
569 2021-02-17 Alan Modra <amodra@gmail.com>
571 * dwarf.c: Include limits.h.
572 (CHAR_BIT): Provide backup define.
573 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
574 signed overflow checking.
575 * testsuite/binutils-all/pr26548.s,
576 * testsuite/binutils-all/pr26548.d,
577 * testsuite/binutils-all/pr26548e.d: New tests.
578 * testsuite/binutils-all/readelf.exp: Run them.
579 (readelf_test): Drop unused "xfails" parameter. Update all uses.
581 2021-02-16 Jan Beulich <jbeulich@suse.com>
583 * dwarf.c (process_debug_info): Initialize "dwo_id".
585 2021-02-15 Alan Modra <amodra@gmail.com>
587 * objdump.c (load_specific_debug_section): Don't call
588 bfd_cache_section_contents. Rearrange so that
589 bfd_get_full_section_contents is not called on path where
590 bfd_simple_get_relocated_section_contents is called.
591 Don't set section->user_data.
592 (free_debug_section): Always free section->start. Don't twiddle
594 * readelf.c (load_specific_debug_section): Don't set user_data.
595 * dwarf.h (struct dwarf_section): Remove use_data field.
596 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
598 2021-02-15 Alan Modra <amodra@gmail.com>
600 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
601 * testsuite/binutils-all/objdump.exp: Likewise.
603 2021-02-14 Alan Modra <amodra@gmail.com>
605 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
607 (slurp_dynamic_symtab): Likewise.
608 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
610 2021-02-14 Alan Modra <amodra@gmail.com>
612 * Makefile.in: Regenerate.
613 * doc/Makefile.in: Regenerate.
615 2021-02-13 Mike Frysinger <vapier@gentoo.org>
617 * aclocal.m4: Regenerate.
619 2021-02-12 Nick Clifton <nickc@redhat.com>
621 * configure.ac (follow-debug-links): Add option to enable or
622 disable the following of debug links by default. Set the
623 default for the option to be 'follow'.
624 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
625 (dwarf_select_sections_by_names): Add no-follow-links option.
626 (dwarf_select_sections_by_letter): Add 'N' option.
627 * objdump.c (usage): Add conditional text describing the
629 (slurp_symtab): Ensure that there is a NULL entry at the end
631 (slurp_dynamic_symtab): Likewise.
632 (dump_bfd): When extending the symbol table, ensure that there
633 is still a NULL entry at the end.
634 * readelf.c (usage): Add conditional text describing the
636 * doc/binutils.texi: Update documentation for objcopy and
638 * doc/debug.options.texi: Update documentation of the
640 * config.in: Regenerate.
641 * configure: Regenerate.
642 * testsuite/binutils-all/compress.exp: Add the -WN option to
643 objdump command lines that are not expecting to follow links.
644 * testsuite/binutils-all/readelf.exp: Add the
645 --debug-dump=no-follow-links option to tests that are not
646 expecting to follow debug links.
647 * NEWS: Mention the new behaviour.
649 2021-02-12 Alan Modra <amodra@gmail.com>
651 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
652 gas or ld fails to build a testcase rather than "unresolved".
653 Report "fail" when readelf returns an error status rather than
655 * testsuite/binutils-all/ar.exp: Likewise.
656 * testsuite/binutils-all/compress.exp: Likewise.
657 * testsuite/binutils-all/readelf.exp: Likewise.
659 2021-02-12 Alan Modra <amodra@gmail.com>
661 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
662 "c" with "ccc" labels.
664 2021-02-12 Tom de Vries <tdevries@suse.de>
666 * dwarf.h (debug_info): Fix typo in comment.
668 2021-02-12 Tom de Vries <tdevries@suse.de>
670 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
673 2021-02-12 Tom de Vries <tdevries@suse.de>
675 * dwarf.c (process_debug_info): Print DWO ID.
677 2021-02-11 Alan Modra <amodra@gmail.com>
682 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
683 Use bfd_malloc_and_get_section.
684 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
685 check namesz. Return NULL if descsz is too small. Ensure
686 string table is terminated.
687 (elf32_avr_get_device_info): Formatting. Add note_size param.
689 (elf32_avr_dump_mem_usage): Adjust to suit.
691 2021-02-10 Tom de Vries <tdevries@suse.de>
694 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
696 2021-02-10 Tom de Vries <tdevries@suse.de>
699 * dwarf.c (display_debug_ranges): Filter range lists according to
702 2021-02-09 Tom de Vries <tdevries@suse.de>
705 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
707 2021-02-09 Tom de Vries <tdevries@suse.de>
710 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
713 2021-02-09 Alan Modra <amodra@gmail.com>
715 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
718 2021-02-07 Alan Modra <amodra@gmail.com>
720 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
721 uninitialised on invalid input.
723 2021-02-06 Alan Modra <amodra@gmail.com>
726 * rename.c (smart_rename): Test for existence and type of output
729 2021-02-05 Nick Clifton <nickc@redhat.com>
731 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
733 2021-02-05 Eli Zaretskii <eliz@gnu.org>
736 * elfedit.c (check_file):
737 * bucomm.c (get_file_size): Fix typos in comments.
739 2021-02-05 Alan Modra <amodra@gmail.com>
742 * arsup.c (ar_save): Use stat rather than lstat.
744 2021-02-03 Alan Modra <amodra@gmail.com>
749 * ar.c: Don't include libbfd.h.
750 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
751 bfd_stat rather than fstat on iostream. Move stat and fd tests
752 outside of _WIN32 ifdef. Delete skip_stat variable.
753 * arsup.c (temp_name, real_ofd): New static variables.
754 (ar_open): Use make_tempname and bfd_fdopenw.
755 (ar_save): Adjust to suit ar_open changes. Move stat output
757 * objcopy.c: Don't include libbfd.h.
758 (copy_file): Use bfd_stat.
760 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
763 * readelf.c (process_section_headers): Add 'R' and 'D' to
765 * testsuite/binutils-all/retain1a.d: Updated.
767 2021-01-30 Nick Clifton <nickc@redhat.com>
769 * README-how-to-make-a-release: Small updates after the 2.35.2
772 2021-01-28 Eli Zaretskii <eliz@gnu.org>
775 * windres.c (quot): Use double quotes to protect strings on
778 2021-01-28 Eli Zaretskii <eliz@gnu.org>
781 * bucomm.c (get_file_size): Add code to handle /dev/null on
783 * elfedit.c (check_file): Likewise.
785 2021-01-27 Nick Clifton <nickc@redhat.com>
787 * objcopy.c (copy_main): Remove conditional control of the calls
788 to free, simplifying the code and making it easier to detect
791 2021-01-26 Frederic Cambus <fred@statdns.com>
793 * objcopy.c (copy_main): Fix a double free happening when both
794 --localize-symbols and --globalize-symbols options are invoked
797 2021-01-24 Nick Clifton <nickc@redhat.com>
799 * README-how-to-make-a-release: Minor updates after the 2.36 release.
801 2021-01-16 Alan Modra <amodra@gmail.com>
803 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
805 2021-01-15 Alan Modra <amodra@gmail.com>
808 * readelf.c (uncompress_section_contents): Always call inflateEnd.
810 2021-01-14 Alexandre Oliva <oliva@gnu.org>
812 * MAINTAINERS: Update my email address.
814 2021-01-14 Nick Clifton <nickc@redhat.com>
816 * po/sv.po: Updated Swedish translation.
818 2021-01-13 Alan Modra <amodra@gmail.com>
820 * Makefile.in: Regenerate.
821 * doc/Makefile.in: Regenerate.
823 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
826 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
828 (i386_x64_trampoline): Add SEH annotations.
829 (struct mac): Add how_seh field.
830 (make_delay_head): If how_set field is true add SEh instructions.
832 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
835 * configure.ac: Use GNU_MAKE_JOBSERVER.
836 * aclocal.m4: Regenerated.
837 * configure: Likewise.
839 2021-01-12 Nick Clifton <nickc@redhat.com>
841 * po/fr.po: Updated French translation.
843 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
846 * configure: Regenerated.
848 2021-01-11 Nick Clifton <nickc@redhat.com>
850 * po/pt.po: Updated Portuguese translation.
851 * po/sr.po: Updated Serbian translation.
852 * po/uk.po: Updated Ukranian translation.
854 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
856 * configure: Regenerated.
858 2021-01-09 Nick Clifton <nickc@redhat.com>
860 * configure: Regenerate.
861 * po/binutils.pot: Regenerate.
863 2021-01-09 Nick Clifton <nickc@redhat.com>
865 * 2.36 release branch crated.
866 * README-how-to-make-a-release: Add note about updating Makefiles
868 * BRANCHES: Add binutils-2.36-branch.
870 2021-01-09 Alan Modra <amodra@gmail.com>
872 * configure: Regenerate.
874 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
876 * configure: Regenerate.
878 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
881 * objcopy.c (copy_object): Handle section symbols for
882 non-relocatable inputs.
883 * testsuite/binutils-all/readelf.exp (readelf_test): Check
884 is_elf_unused_section_symbols.
885 * testsuite/binutils-all/readelf.s-64: Updated.
886 * testsuite/binutils-all/readelf.ss: Likewise.
887 * testsuite/binutils-all/readelf.ss-64: Likewise.
888 * testsuite/binutils-all/readelf.s-64-unused: New file.
889 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
890 * testsuite/binutils-all/readelf.ss-unused: Likewise.
891 * testsuite/lib/binutils-common.exp
892 (is_elf_unused_section_symbols): New proc.
894 2021-01-06 Reuben Thomas <rrt@sc3d.org>
896 * binutils/readelf.c: Correct grammar in comment.
898 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
900 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
901 * doc/binutils.texi: Correct grammar.
902 * readelf.c (process_version_sections): Correct spelling of auxiliary
904 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
906 2021-01-01 Alan Modra <amodra@gmail.com>
908 Update year range in copyright notice of all files.
910 For older changes see ChangeLog-2020
912 Copyright (C) 2021 Free Software Foundation, Inc.
914 Copying and distribution of this file, with or without modification,
915 are permitted in any medium without royalty provided the copyright
916 notice and this notice are preserved.
922 version-control: never