1 2021-04-21 Nick Lott <nick.lott@gmail.com>
4 * readelf.c (sym_base): New variable.
5 (enum print_mode): Add more modes.
6 (print_vma): Add suport for new modes.
7 (options): Add sym-base.
9 (parse_args): Add support for --sym-base.
10 (print_dynamic_symbol_size): New function.
11 (print_dynamic_symbol): Use new function.
12 * doc/binutils.texi: Document the new feature.
13 * NEWS: Mention the new feature.
15 2021-04-21 Nick Clifton <nickc@redhat.com>
17 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
18 Adjust expected output to allow for named section symbols.
19 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
21 * testsuite/binutils-all/readelf.s-64: Likewise.
22 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
23 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
24 * testsuite/binutils-all/readelf.ss-unused: Likewise.
26 2021-04-21 Luo Longjun <luolongjun@huawei.com>
28 * readelf.c (print_dynamic_symbol): Print the section name for
29 section symbols without a name of their own.
31 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
33 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
34 add him to Past Maintainers.
35 Update my email address.
37 2021-04-19 Nick Clifton <nickc@redhat.com>
40 * arsup.c (ar_addmod): Enable plugin support, if available.
42 2021-04-19 Nick Clifton <nickc@redhat.com>
44 * rename.c: (get_stat_atime_ns): Add prototype.
45 (get_stat_mtime_ns): Add prototype.
47 2021-04-16 Alan Modra <amodra@gmail.com>
50 * rename.c (get_stat_atime, get_stat_mtime): Make static.
51 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
53 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
56 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
57 (get_stat_mtime_ns): Likewise.
59 2021-04-15 Alan Modra <amodra@gmail.com>
62 * configure.ac: Check for sys/time.h and utimensat. Use standard
63 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
64 members of struct stat.
65 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
66 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
67 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
68 (get_stat_atime, get_stat_mtime): Likewise.
69 (set_times): Choose first available of utimensat, utimes, utime.
70 Use above inline functions to set timespec and timeval values.
71 * configure: Regenerate.
72 * config.in: Regenerate.
73 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
74 file timestamp when --preserve-dates is used.
76 2021-04-15 Alan Modra <amodra@gmail.com>
79 * rename.c (smart_rename): When TO and FROM are equal, just set
81 * objcopy.c (strip_main, copy_main): Always call smart_rename.
83 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
86 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
87 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
88 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
91 2021-04-14 Mark Harmstone <mark@harmstone.com>
94 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
97 2021-04-14 Frederic Cambus <fred@statdns.com>
99 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
100 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
102 2021-04-14 Alan Modra <amodra@gmail.com>
105 * objdump.c (show_line): Don't limit paths to PATH_MAX.
106 * readelf.c (struct filedata): Change program_interpreter from
107 a char array to a char pointer.
108 (process_program_headers): Sanity check PT_INTERP p_filesz.
109 Malloc program_interpreter using p_filesz and read directly from
111 (process_dynamic_section): Check program_interpreter is non-NULL.
112 (free_filedata): New function, split out from..
113 (process_object): ..here.
114 (close_debug_file): Call free_filedata.
115 * sysdep.h: Don't include sys/param.h.
116 (PATH_MAX): Don't define.
117 * configure.ac: Don't check for sys/param.h.
118 * configure: Regenerate.
120 2021-04-13 Frederic Cambus <fred@statdns.com>
122 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
123 check for NT_NETBSD_PAX.
125 2021-04-12 Alan Modra <amodra@gmail.com>
127 * configure.ac (--enable-checking): Add support.
128 * config.in: Regenerate.
129 * configure: Regenerate.
131 2021-04-09 Alan Modra <amodra@gmail.com>
133 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
135 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
136 (disassemble_section, disassemble_data): Likewise.
138 2021-04-06 Alan Modra <amodra@gmail.com>
140 * objdump.c (objdump_symbol_at_address): Return asymbol*.
142 2021-04-06 Alan Modra <amodra@gmail.com>
144 * NEWS: Mention C99 requirement.
145 * README: Likewise. Modernise examples and "Reporting bugs".
147 2021-04-05 Alan Modra <amodra@gmail.com>
149 * configure.ac: Assume long long is available. Don't test for
150 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
151 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
152 strcoll, setlocale, setmode or location of time_t. Don't check
153 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
154 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
155 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
156 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
157 locale.h, string.h and stdlib.h unconditionally. Remove various
158 fallback declarations. Assume long long is available.
159 * addr2line.c: Don't test HAVE_SETLOCALE.
161 * coffdump.c: Likewise.
162 * dlltool.c: Likewise.
163 * dllwrap.c: Likewise.
164 * elfedit.c: Likewise.
166 * objcopy.c: Likewise.
167 * objdump.c: Likewise.
168 * readelf.c: Likewise.
170 * srconv.c: Likewise.
171 * strings.c: Likewise.
172 * sysdump.c: Likewise.
173 * windmc.c: Likewise.
174 * windres.c: Likewise.
175 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
176 * dwarf.c: Include limits.h unconditionally. Assume long long
178 * nm.c: Don't test HAVE_STRCOLL.
179 * readelf.c: Don't test HAVE_WCHAR_H.
180 * strings.c: Assume long long is available.
181 * syslex.l: Include string.h unconditionally.
182 * aclocal.m4: Regenerate.
183 * config.in: Regenerate.
184 * configure: Regenerate.
185 * Makefile.in: Regenerate.
186 * doc/Makefile.in: Regenerate.
188 2021-04-01 Martin Liska <mliska@suse.cz>
190 * elfcomm.h (strneq): Remove strneq and use startswith.
191 * readelf.c (ia64_process_unwind): Likewise.
192 (process_note): Likewise.
194 2021-04-01 Martin Liska <mliska@suse.cz>
196 * dllwrap.c: Use startswith function.
197 * objcopy.c (is_dwo_section): Likewise.
198 (handle_remove_section_option): Likewise.
199 (copy_main): Likewise.
200 * objdump.c (is_significant_symbol_name): Likewise.
202 2021-04-01 Martin Liska <mliska@suse.cz>
204 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
206 (display_debug_lines_decoded): Likewise.
207 (display_debug_links): Likewise.
208 * elfcomm.c (setup_archive): Likewise.
209 * elfcomm.h (const_strneq): Likewise.
210 * readelf.c (process_section_headers): Likewise.
211 (slurp_ia64_unwind_table): Likewise.
212 (slurp_hppa_unwind_table): Likewise.
213 (decode_arm_unwind): Likewise.
214 (display_debug_section): Likewise.
215 (process_note): Likewise.
217 2021-03-31 Alan Modra <amodra@gmail.com>
219 * sysdep.h (POISON_BFD_BOOLEAN): Define.
220 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
221 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
222 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
223 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
224 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
225 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
226 * windmc.c, * windmc.h, * windres.c, * winduni.c,
227 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
228 and TRUE with true throughout.
230 2021-03-31 Alan Modra <amodra@gmail.com>
232 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
235 2021-03-31 Alan Modra <amodra@gmail.com>
237 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
239 2021-03-29 Alan Modra <amodra@gmail.com>
241 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
242 * dwarf.c (read_and_display_attr_value): Likewise.
243 (display_debug_str_offsets): Likewise.
244 * objdump.c (dump_bfd): Likewise.
245 * readelf.c (dump_section_as_strings): Likewise.
246 (dump_section_as_bytes): Likewise.
248 2021-03-29 Alan Modra <amodra@gmail.com>
250 * objdump.c (process_links): Use type int.
251 * readelf.c (request_dump): Don't increment do_dump, set it.
252 * windint.h (target_is_bigendian): Use type bfd_boolean.
253 * windmc.c (target_is_bigendian): Likewise.
254 * windres.c (target_is_bigendian): Likewise.
256 2021-03-22 Martin Liska <mliska@suse.cz>
258 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
260 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
261 * objcopy.c (is_mergeable_note_section): Likewise.
262 * objdump.c (dump_dwarf_section): Likewise.
263 * prdbg.c (pr_method_type): Likewise.
264 (pr_class_baseclass): Likewise.
265 (tg_class_baseclass): Likewise.
266 * readelf.c (process_lto_symbol_tables): Likewise.
267 * stabs.c (ULLHIGH): Likewise.
268 (parse_stab_argtypes): Likewise.
269 (stab_demangle_function_name): Likewise.
271 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
273 * readelf.c (get_machine_name): Add EM_INTELGT.
275 2021-03-18 Nick Clifton <nickc@redhat.com>
278 * readelf.c (dump_section_as_strings): Mention separate filename.
279 (dump_section_as_bytes): Likewise.
280 (dump_section_as_ctf): Likewise.
281 (initialise_dumkps_byname): Only issue a warning for missing
282 sections if processing the main file.
283 (process_section_contents): Only issue a warning for unsumped
284 section numbers in the main file.
285 (initialise_dump_sects): New function. Contains code extracted
287 (process_object): ... here. Also call initialise_dump_sects for
290 2021-03-16 Nick Clifton <nickc@redhat.com>
293 * readelf.c (display_debug_section): Also retain .debug_addr
296 2021-03-16 Nick Clifton <nickc@redhat.com>
299 * readelf.c (process_section_contents): Only dump debug
300 information for separate files unless process_links is enabled.
301 (process_object): Always call process_section_contents for
304 2021-03-15 Nick Clifton <nickc@redhat.com>
307 * nm.c (FORMAT_JUST_SYMBOLS): Define.
308 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
309 (long_options): Add just-symbols.
310 (set_output_format): Add support for just-symbols.
311 (get_print_format): Likewise.
312 (do_not_print_object_filename): New function.
313 (do_not_print_archive_filename): New function.
314 (do_not_print_archive_member): New function.
315 (do_not_print_symbol_filename): New function.
316 (just_print_symbol_name): New function.
317 (main): Handle --just-symbols.
318 * NEWS: Mention the new feature.
319 * doc/binutils.texi: Document the new feature.
321 2021-03-12 Clément Chigot <clement.chigot@atos.net>
323 * od-xcoff.c: Replace RTB by TRL entry.
325 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
326 Andrew Burgess <andrew.burgess@embecosm.com>
328 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
330 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
331 Andrew Burgess <andrew.burgess@embecosm.com>
333 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
335 2021-03-05 Nick Clifton <nickc@redhat.com>
338 * dwarf.c (display_debug_macro): Handle the displaying of
339 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
340 .debug_macro.dwo sections.
342 2021-03-04 Nick Clifton <nickc@redhat.com>
345 * objdump.c (process_links): New variable.
346 (usage): Add --process-links.
347 (long_options): Likewise.
348 (dump_bfd): Stop processing once the bfd has been loaded unless
349 this is the main file or process_links has been enabled.
350 (main): Handle the process-links option.
351 * readelf.c (process_links): New variable.
352 (struct filedata): Add is_separate field.
353 (options): Add --process-links.
355 (parse_args): Likewise.
356 (process_file_header): Include the filename when dumping
357 information for separate debuginfo files.
358 (process_program_headers): Likewise.
359 (process_section_headers): Likewise.
360 (process_section_groups): Likewise.
361 (process_relocs): Likewise.
362 (process_dynamic_section): Likewise.
363 (process_version_sections): Likewise.
364 (display_lto_symtab): Likewise.
365 (process_symbol_table): Likewise.
366 (process_syminfo): Likewise.
367 (initialise_dumps_by_name): Likewise.
368 (process_section_contents): Likewise.
369 (process_notes_at): Likewise.
370 (process_notes): Likewise.
371 (open_file): Add is_separate parameter. Use to initialise the
372 is_separate field in the filedata structure.
373 (open_deug): Update call to open_file.
374 (process_object): Add processing of the contents of separate
375 debuginfo files, gated by the process_links variable.
376 (process_archive): Update call to open_file.
377 (process_file): Initialise the is_separate field in the filedata
379 * dwarf.c (load_separate_debug_info_file): Only report the
380 loading of a separate file if debug links are being dumped.
381 * objcopy.c (keep_section_symbols): New variable.
382 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
383 (strip_options): Add keep-section-symbols.
384 (copy_options): Likewise.
385 (copy_usage): Likewise.
386 (strip_usage): Likewise.
387 (copy_object): Keep section symbols if requested by command line
389 (strip_main): Handle --keep-section-symbols.
390 (copy_main): Likewise.
391 * doc/binutils.texi: Document the new options.
392 * NEWS: Mention the new features.
393 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
394 Update options passed to objdump. Use diff rather than cmp to
395 compare the dumped data.
396 * testsuite/binutils-all/objdump.WK2: Update regexp.
397 * testsuite/binutils-all/objdump.WK3: Update regexp.
398 * testsuite/binutils-all/objdump.exp: Use --process-links
399 instead of --dwarf=follow-links.
400 * testsuite/binutils-all/readelf.exp (readelf_test): Include
401 readelf's output in the log when the test fails.
402 Add the -P option to the -wKis test.
403 * testsuite/binutils-all/readelf.wKis: Update expected output.
405 2021-03-03 Alan Modra <amodra@gmail.com>
408 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
409 * NEWS: Mention feature.
411 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
414 * dwarf.c (load_separate_debug_info): Issue warning only if
415 do_debug_links is set.
416 * testsuite/binutils-all/compress.exp: Run objdump and readelf
417 with missing debug file.
419 2021-03-01 Alan Modra <amodra@gmail.com>
422 * doc/binutils.texi: Add nm --with-symbol-versions and
423 --without-symbol-versions documentation.
424 * nm.c (with_symbol_versions): New variable.
425 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
426 (long_options): Make --with-symbol-versions entry twiddle the flag.
427 Add --without-symbol-versions.
428 (print_symname): Strip version when !with_symbol_versions. Add
429 dynamic version info under control of with_symbol_versions.
430 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
432 2021-02-26 Fangrui Song <maskray@google.com>
435 * readelf.c (quiet): New option flag.
436 (enum long_option_values): New enum to hold long option value.
437 (long_options): Add --quiet.
438 (usage): Mention --quiet.
439 (display_rel_file): If quiet is enabled, suppress "no symbols".
440 (main): Handle the new option.
441 * NEWS: Mention --quiet.
442 * docs/binutils.texi: Document --quiet.
444 2021-02-26 Tom de Vries <tdevries@suse.de>
446 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
448 2021-02-26 Tom de Vries <tdevries@suse.de>
451 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
453 (read_and_display_attr_value): Likewise.
455 2021-02-25 Nick Clifton <nickc@redhat.com>
457 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
459 (read_and_display_attr_value): Handle sup forms.
460 (display_debug_sup): New function. Displays the contents of a
462 (load_debug_sup_file): New function. Loads the contents of a file
463 referenced by a .debug_sup section.
464 (check_for_and_load_links): Call load_debug_sup_file.
465 (debug_displays): Add entry for .debug_sup.
466 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
467 * readelf.c (process_section_headers): Add support for debug_sup.
468 * doc/debug.options.texi: Note that the =links option will display
469 the contents of .debug_sup sections.
470 * NEWS: Mention the new support.
472 2021-02-25 Alan Modra <amodra@gmail.com>
475 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
477 2021-02-24 Nick Clifton <nickc@redhat.com>
480 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
481 when adding together the section sizes.
483 2021-02-24 Nick Clifton <nickc@redhat.com>
485 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
487 * readelf.c (print_gnu_build_attribute_description): Likewise.
489 2021-02-24 Alan Modra <amodra@gmail.com>
490 Siddhesh Poyarekar <siddhesh@gotplt.org>
493 * bucomm.h (smart_rename): Update prototype.
494 * rename.c (smart_rename): Add fromfd and preserve_dates params.
495 Pass fromfd and target_stat to simple_copy. Call set_times
497 (simple_copy): Accept fromfd rather than from filename. Add
498 target_stat param. Rewind fromfd rather than opening. Open
499 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
500 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
501 closing output temp file, and pass tmpfd to smart_rename.
502 * arsup.c (temp_fd): Rename from real_fd.
503 (ar_save): Dup temp_fd and pass to smart_rename.
504 * objcopy.c (strip_main, copy_main): Likewise, and pass
507 2021-02-24 Alan Modra <amodra@gmail.com>
510 * rename.c: Tidy throughout.
511 (smart_rename): Always copy. Remove windows specific code.
513 2021-02-20 Alan Modra <amodra@gmail.com>
515 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
516 (run_dump_test): Fail if expecting errors from a file like we do
517 for error strings, if no error is seen.
519 2021-02-19 Alan Modra <amodra@gmail.com>
521 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
523 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
525 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
527 * arsup.c (ar_save): Likewise.
528 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
529 temporary file and adjust call to SMART_RENAME.
530 (copy_main): Likewise.
531 * rename.c [!S_ISLNK]: Remove definitions.
532 (try_preserve_permissions): Remove function.
533 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
534 rename system call only if TO does not exist.
535 * bucomm.h (smart_rename): Adjust declaration.
537 2021-02-18 Nick Clifton <nickc@redhat.com>
539 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
540 address that is higher than the end address.
542 2021-02-17 Alan Modra <amodra@gmail.com>
544 * dwarf.c: Include limits.h.
545 (CHAR_BIT): Provide backup define.
546 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
547 signed overflow checking.
548 * testsuite/binutils-all/pr26548.s,
549 * testsuite/binutils-all/pr26548.d,
550 * testsuite/binutils-all/pr26548e.d: New tests.
551 * testsuite/binutils-all/readelf.exp: Run them.
552 (readelf_test): Drop unused "xfails" parameter. Update all uses.
554 2021-02-16 Jan Beulich <jbeulich@suse.com>
556 * dwarf.c (process_debug_info): Initialize "dwo_id".
558 2021-02-15 Alan Modra <amodra@gmail.com>
560 * objdump.c (load_specific_debug_section): Don't call
561 bfd_cache_section_contents. Rearrange so that
562 bfd_get_full_section_contents is not called on path where
563 bfd_simple_get_relocated_section_contents is called.
564 Don't set section->user_data.
565 (free_debug_section): Always free section->start. Don't twiddle
567 * readelf.c (load_specific_debug_section): Don't set user_data.
568 * dwarf.h (struct dwarf_section): Remove use_data field.
569 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
571 2021-02-15 Alan Modra <amodra@gmail.com>
573 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
574 * testsuite/binutils-all/objdump.exp: Likewise.
576 2021-02-14 Alan Modra <amodra@gmail.com>
578 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
580 (slurp_dynamic_symtab): Likewise.
581 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
583 2021-02-14 Alan Modra <amodra@gmail.com>
585 * Makefile.in: Regenerate.
586 * doc/Makefile.in: Regenerate.
588 2021-02-13 Mike Frysinger <vapier@gentoo.org>
590 * aclocal.m4: Regenerate.
592 2021-02-12 Nick Clifton <nickc@redhat.com>
594 * configure.ac (follow-debug-links): Add option to enable or
595 disable the following of debug links by default. Set the
596 default for the option to be 'follow'.
597 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
598 (dwarf_select_sections_by_names): Add no-follow-links option.
599 (dwarf_select_sections_by_letter): Add 'N' option.
600 * objdump.c (usage): Add conditional text describing the
602 (slurp_symtab): Ensure that there is a NULL entry at the end
604 (slurp_dynamic_symtab): Likewise.
605 (dump_bfd): When extending the symbol table, ensure that there
606 is still a NULL entry at the end.
607 * readelf.c (usage): Add conditional text describing the
609 * doc/binutils.texi: Update documentation for objcopy and
611 * doc/debug.options.texi: Update documentation of the
613 * config.in: Regenerate.
614 * configure: Regenerate.
615 * testsuite/binutils-all/compress.exp: Add the -WN option to
616 objdump command lines that are not expecting to follow links.
617 * testsuite/binutils-all/readelf.exp: Add the
618 --debug-dump=no-follow-links option to tests that are not
619 expecting to follow debug links.
620 * NEWS: Mention the new behaviour.
622 2021-02-12 Alan Modra <amodra@gmail.com>
624 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
625 gas or ld fails to build a testcase rather than "unresolved".
626 Report "fail" when readelf returns an error status rather than
628 * testsuite/binutils-all/ar.exp: Likewise.
629 * testsuite/binutils-all/compress.exp: Likewise.
630 * testsuite/binutils-all/readelf.exp: Likewise.
632 2021-02-12 Alan Modra <amodra@gmail.com>
634 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
635 "c" with "ccc" labels.
637 2021-02-12 Tom de Vries <tdevries@suse.de>
639 * dwarf.h (debug_info): Fix typo in comment.
641 2021-02-12 Tom de Vries <tdevries@suse.de>
643 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
646 2021-02-12 Tom de Vries <tdevries@suse.de>
648 * dwarf.c (process_debug_info): Print DWO ID.
650 2021-02-11 Alan Modra <amodra@gmail.com>
655 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
656 Use bfd_malloc_and_get_section.
657 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
658 check namesz. Return NULL if descsz is too small. Ensure
659 string table is terminated.
660 (elf32_avr_get_device_info): Formatting. Add note_size param.
662 (elf32_avr_dump_mem_usage): Adjust to suit.
664 2021-02-10 Tom de Vries <tdevries@suse.de>
667 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
669 2021-02-10 Tom de Vries <tdevries@suse.de>
672 * dwarf.c (display_debug_ranges): Filter range lists according to
675 2021-02-09 Tom de Vries <tdevries@suse.de>
678 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
680 2021-02-09 Tom de Vries <tdevries@suse.de>
683 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
686 2021-02-09 Alan Modra <amodra@gmail.com>
688 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
691 2021-02-07 Alan Modra <amodra@gmail.com>
693 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
694 uninitialised on invalid input.
696 2021-02-06 Alan Modra <amodra@gmail.com>
699 * rename.c (smart_rename): Test for existence and type of output
702 2021-02-05 Nick Clifton <nickc@redhat.com>
704 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
706 2021-02-05 Eli Zaretskii <eliz@gnu.org>
709 * elfedit.c (check_file):
710 * bucomm.c (get_file_size): Fix typos in comments.
712 2021-02-05 Alan Modra <amodra@gmail.com>
715 * arsup.c (ar_save): Use stat rather than lstat.
717 2021-02-03 Alan Modra <amodra@gmail.com>
722 * ar.c: Don't include libbfd.h.
723 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
724 bfd_stat rather than fstat on iostream. Move stat and fd tests
725 outside of _WIN32 ifdef. Delete skip_stat variable.
726 * arsup.c (temp_name, real_ofd): New static variables.
727 (ar_open): Use make_tempname and bfd_fdopenw.
728 (ar_save): Adjust to suit ar_open changes. Move stat output
730 * objcopy.c: Don't include libbfd.h.
731 (copy_file): Use bfd_stat.
733 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
736 * readelf.c (process_section_headers): Add 'R' and 'D' to
738 * testsuite/binutils-all/retain1a.d: Updated.
740 2021-01-30 Nick Clifton <nickc@redhat.com>
742 * README-how-to-make-a-release: Small updates after the 2.35.2
745 2021-01-28 Eli Zaretskii <eliz@gnu.org>
748 * windres.c (quot): Use double quotes to protect strings on
751 2021-01-28 Eli Zaretskii <eliz@gnu.org>
754 * bucomm.c (get_file_size): Add code to handle /dev/null on
756 * elfedit.c (check_file): Likewise.
758 2021-01-27 Nick Clifton <nickc@redhat.com>
760 * objcopy.c (copy_main): Remove conditional control of the calls
761 to free, simplifying the code and making it easier to detect
764 2021-01-26 Frederic Cambus <fred@statdns.com>
766 * objcopy.c (copy_main): Fix a double free happening when both
767 --localize-symbols and --globalize-symbols options are invoked
770 2021-01-24 Nick Clifton <nickc@redhat.com>
772 * README-how-to-make-a-release: Minor updates after the 2.36 release.
774 2021-01-16 Alan Modra <amodra@gmail.com>
776 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
778 2021-01-15 Alan Modra <amodra@gmail.com>
781 * readelf.c (uncompress_section_contents): Always call inflateEnd.
783 2021-01-14 Alexandre Oliva <oliva@gnu.org>
785 * MAINTAINERS: Update my email address.
787 2021-01-14 Nick Clifton <nickc@redhat.com>
789 * po/sv.po: Updated Swedish translation.
791 2021-01-13 Alan Modra <amodra@gmail.com>
793 * Makefile.in: Regenerate.
794 * doc/Makefile.in: Regenerate.
796 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
799 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
801 (i386_x64_trampoline): Add SEH annotations.
802 (struct mac): Add how_seh field.
803 (make_delay_head): If how_set field is true add SEh instructions.
805 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
808 * configure.ac: Use GNU_MAKE_JOBSERVER.
809 * aclocal.m4: Regenerated.
810 * configure: Likewise.
812 2021-01-12 Nick Clifton <nickc@redhat.com>
814 * po/fr.po: Updated French translation.
816 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
819 * configure: Regenerated.
821 2021-01-11 Nick Clifton <nickc@redhat.com>
823 * po/pt.po: Updated Portuguese translation.
824 * po/sr.po: Updated Serbian translation.
825 * po/uk.po: Updated Ukranian translation.
827 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
829 * configure: Regenerated.
831 2021-01-09 Nick Clifton <nickc@redhat.com>
833 * configure: Regenerate.
834 * po/binutils.pot: Regenerate.
836 2021-01-09 Nick Clifton <nickc@redhat.com>
838 * 2.36 release branch crated.
839 * README-how-to-make-a-release: Add note about updating Makefiles
841 * BRANCHES: Add binutils-2.36-branch.
843 2021-01-09 Alan Modra <amodra@gmail.com>
845 * configure: Regenerate.
847 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
849 * configure: Regenerate.
851 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
854 * objcopy.c (copy_object): Handle section symbols for
855 non-relocatable inputs.
856 * testsuite/binutils-all/readelf.exp (readelf_test): Check
857 is_elf_unused_section_symbols.
858 * testsuite/binutils-all/readelf.s-64: Updated.
859 * testsuite/binutils-all/readelf.ss: Likewise.
860 * testsuite/binutils-all/readelf.ss-64: Likewise.
861 * testsuite/binutils-all/readelf.s-64-unused: New file.
862 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
863 * testsuite/binutils-all/readelf.ss-unused: Likewise.
864 * testsuite/lib/binutils-common.exp
865 (is_elf_unused_section_symbols): New proc.
867 2021-01-06 Reuben Thomas <rrt@sc3d.org>
869 * binutils/readelf.c: Correct grammar in comment.
871 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
873 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
874 * doc/binutils.texi: Correct grammar.
875 * readelf.c (process_version_sections): Correct spelling of auxiliary
877 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
879 2021-01-01 Alan Modra <amodra@gmail.com>
881 Update year range in copyright notice of all files.
883 For older changes see ChangeLog-2020
885 Copyright (C) 2021 Free Software Foundation, Inc.
887 Copying and distribution of this file, with or without modification,
888 are permitted in any medium without royalty provided the copyright
889 notice and this notice are preserved.
895 version-control: never