1 2021-04-22 Clément Chigot <clement.chigot@atos.net>
3 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
6 2021-04-21 Nick Lott <nick.lott@gmail.com>
9 * readelf.c (sym_base): New variable.
10 (enum print_mode): Add more modes.
11 (print_vma): Add suport for new modes.
12 (options): Add sym-base.
13 (usage): Add sym-base.
14 (parse_args): Add support for --sym-base.
15 (print_dynamic_symbol_size): New function.
16 (print_dynamic_symbol): Use new function.
17 * doc/binutils.texi: Document the new feature.
18 * NEWS: Mention the new feature.
20 2021-04-21 Nick Clifton <nickc@redhat.com>
22 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
23 Adjust expected output to allow for named section symbols.
24 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
26 * testsuite/binutils-all/readelf.s-64: Likewise.
27 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
28 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
29 * testsuite/binutils-all/readelf.ss-unused: Likewise.
31 2021-04-21 Luo Longjun <luolongjun@huawei.com>
33 * readelf.c (print_dynamic_symbol): Print the section name for
34 section symbols without a name of their own.
36 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
38 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
39 add him to Past Maintainers.
40 Update my email address.
42 2021-04-19 Nick Clifton <nickc@redhat.com>
45 * arsup.c (ar_addmod): Enable plugin support, if available.
47 2021-04-19 Nick Clifton <nickc@redhat.com>
49 * rename.c: (get_stat_atime_ns): Add prototype.
50 (get_stat_mtime_ns): Add prototype.
52 2021-04-16 Alan Modra <amodra@gmail.com>
55 * rename.c (get_stat_atime, get_stat_mtime): Make static.
56 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
58 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
61 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
62 (get_stat_mtime_ns): Likewise.
64 2021-04-15 Alan Modra <amodra@gmail.com>
67 * configure.ac: Check for sys/time.h and utimensat. Use standard
68 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
69 members of struct stat.
70 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
71 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
72 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
73 (get_stat_atime, get_stat_mtime): Likewise.
74 (set_times): Choose first available of utimensat, utimes, utime.
75 Use above inline functions to set timespec and timeval values.
76 * configure: Regenerate.
77 * config.in: Regenerate.
78 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
79 file timestamp when --preserve-dates is used.
81 2021-04-15 Alan Modra <amodra@gmail.com>
84 * rename.c (smart_rename): When TO and FROM are equal, just set
86 * objcopy.c (strip_main, copy_main): Always call smart_rename.
88 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
91 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
92 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
93 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
96 2021-04-14 Mark Harmstone <mark@harmstone.com>
99 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
100 end of the structure.
102 2021-04-14 Frederic Cambus <fred@statdns.com>
104 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
105 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
107 2021-04-14 Alan Modra <amodra@gmail.com>
110 * objdump.c (show_line): Don't limit paths to PATH_MAX.
111 * readelf.c (struct filedata): Change program_interpreter from
112 a char array to a char pointer.
113 (process_program_headers): Sanity check PT_INTERP p_filesz.
114 Malloc program_interpreter using p_filesz and read directly from
116 (process_dynamic_section): Check program_interpreter is non-NULL.
117 (free_filedata): New function, split out from..
118 (process_object): ..here.
119 (close_debug_file): Call free_filedata.
120 * sysdep.h: Don't include sys/param.h.
121 (PATH_MAX): Don't define.
122 * configure.ac: Don't check for sys/param.h.
123 * configure: Regenerate.
125 2021-04-13 Frederic Cambus <fred@statdns.com>
127 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
128 check for NT_NETBSD_PAX.
130 2021-04-12 Alan Modra <amodra@gmail.com>
132 * configure.ac (--enable-checking): Add support.
133 * config.in: Regenerate.
134 * configure: Regenerate.
136 2021-04-09 Alan Modra <amodra@gmail.com>
138 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
140 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
141 (disassemble_section, disassemble_data): Likewise.
143 2021-04-06 Alan Modra <amodra@gmail.com>
145 * objdump.c (objdump_symbol_at_address): Return asymbol*.
147 2021-04-06 Alan Modra <amodra@gmail.com>
149 * NEWS: Mention C99 requirement.
150 * README: Likewise. Modernise examples and "Reporting bugs".
152 2021-04-05 Alan Modra <amodra@gmail.com>
154 * configure.ac: Assume long long is available. Don't test for
155 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
156 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
157 strcoll, setlocale, setmode or location of time_t. Don't check
158 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
159 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
160 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
161 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
162 locale.h, string.h and stdlib.h unconditionally. Remove various
163 fallback declarations. Assume long long is available.
164 * addr2line.c: Don't test HAVE_SETLOCALE.
166 * coffdump.c: Likewise.
167 * dlltool.c: Likewise.
168 * dllwrap.c: Likewise.
169 * elfedit.c: Likewise.
171 * objcopy.c: Likewise.
172 * objdump.c: Likewise.
173 * readelf.c: Likewise.
175 * srconv.c: Likewise.
176 * strings.c: Likewise.
177 * sysdump.c: Likewise.
178 * windmc.c: Likewise.
179 * windres.c: Likewise.
180 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
181 * dwarf.c: Include limits.h unconditionally. Assume long long
183 * nm.c: Don't test HAVE_STRCOLL.
184 * readelf.c: Don't test HAVE_WCHAR_H.
185 * strings.c: Assume long long is available.
186 * syslex.l: Include string.h unconditionally.
187 * aclocal.m4: Regenerate.
188 * config.in: Regenerate.
189 * configure: Regenerate.
190 * Makefile.in: Regenerate.
191 * doc/Makefile.in: Regenerate.
193 2021-04-01 Martin Liska <mliska@suse.cz>
195 * elfcomm.h (strneq): Remove strneq and use startswith.
196 * readelf.c (ia64_process_unwind): Likewise.
197 (process_note): Likewise.
199 2021-04-01 Martin Liska <mliska@suse.cz>
201 * dllwrap.c: Use startswith function.
202 * objcopy.c (is_dwo_section): Likewise.
203 (handle_remove_section_option): Likewise.
204 (copy_main): Likewise.
205 * objdump.c (is_significant_symbol_name): Likewise.
207 2021-04-01 Martin Liska <mliska@suse.cz>
209 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
211 (display_debug_lines_decoded): Likewise.
212 (display_debug_links): Likewise.
213 * elfcomm.c (setup_archive): Likewise.
214 * elfcomm.h (const_strneq): Likewise.
215 * readelf.c (process_section_headers): Likewise.
216 (slurp_ia64_unwind_table): Likewise.
217 (slurp_hppa_unwind_table): Likewise.
218 (decode_arm_unwind): Likewise.
219 (display_debug_section): Likewise.
220 (process_note): Likewise.
222 2021-03-31 Alan Modra <amodra@gmail.com>
224 * sysdep.h (POISON_BFD_BOOLEAN): Define.
225 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
226 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
227 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
228 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
229 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
230 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
231 * windmc.c, * windmc.h, * windres.c, * winduni.c,
232 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
233 and TRUE with true throughout.
235 2021-03-31 Alan Modra <amodra@gmail.com>
237 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
240 2021-03-31 Alan Modra <amodra@gmail.com>
242 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
244 2021-03-29 Alan Modra <amodra@gmail.com>
246 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
247 * dwarf.c (read_and_display_attr_value): Likewise.
248 (display_debug_str_offsets): Likewise.
249 * objdump.c (dump_bfd): Likewise.
250 * readelf.c (dump_section_as_strings): Likewise.
251 (dump_section_as_bytes): Likewise.
253 2021-03-29 Alan Modra <amodra@gmail.com>
255 * objdump.c (process_links): Use type int.
256 * readelf.c (request_dump): Don't increment do_dump, set it.
257 * windint.h (target_is_bigendian): Use type bfd_boolean.
258 * windmc.c (target_is_bigendian): Likewise.
259 * windres.c (target_is_bigendian): Likewise.
261 2021-03-22 Martin Liska <mliska@suse.cz>
263 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
265 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
266 * objcopy.c (is_mergeable_note_section): Likewise.
267 * objdump.c (dump_dwarf_section): Likewise.
268 * prdbg.c (pr_method_type): Likewise.
269 (pr_class_baseclass): Likewise.
270 (tg_class_baseclass): Likewise.
271 * readelf.c (process_lto_symbol_tables): Likewise.
272 * stabs.c (ULLHIGH): Likewise.
273 (parse_stab_argtypes): Likewise.
274 (stab_demangle_function_name): Likewise.
276 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
278 * readelf.c (get_machine_name): Add EM_INTELGT.
280 2021-03-18 Nick Clifton <nickc@redhat.com>
283 * readelf.c (dump_section_as_strings): Mention separate filename.
284 (dump_section_as_bytes): Likewise.
285 (dump_section_as_ctf): Likewise.
286 (initialise_dumkps_byname): Only issue a warning for missing
287 sections if processing the main file.
288 (process_section_contents): Only issue a warning for unsumped
289 section numbers in the main file.
290 (initialise_dump_sects): New function. Contains code extracted
292 (process_object): ... here. Also call initialise_dump_sects for
295 2021-03-16 Nick Clifton <nickc@redhat.com>
298 * readelf.c (display_debug_section): Also retain .debug_addr
301 2021-03-16 Nick Clifton <nickc@redhat.com>
304 * readelf.c (process_section_contents): Only dump debug
305 information for separate files unless process_links is enabled.
306 (process_object): Always call process_section_contents for
309 2021-03-15 Nick Clifton <nickc@redhat.com>
312 * nm.c (FORMAT_JUST_SYMBOLS): Define.
313 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
314 (long_options): Add just-symbols.
315 (set_output_format): Add support for just-symbols.
316 (get_print_format): Likewise.
317 (do_not_print_object_filename): New function.
318 (do_not_print_archive_filename): New function.
319 (do_not_print_archive_member): New function.
320 (do_not_print_symbol_filename): New function.
321 (just_print_symbol_name): New function.
322 (main): Handle --just-symbols.
323 * NEWS: Mention the new feature.
324 * doc/binutils.texi: Document the new feature.
326 2021-03-12 Clément Chigot <clement.chigot@atos.net>
328 * od-xcoff.c: Replace RTB by TRL entry.
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_RISCV_CSR.
335 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
336 Andrew Burgess <andrew.burgess@embecosm.com>
338 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
340 2021-03-05 Nick Clifton <nickc@redhat.com>
343 * dwarf.c (display_debug_macro): Handle the displaying of
344 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
345 .debug_macro.dwo sections.
347 2021-03-04 Nick Clifton <nickc@redhat.com>
350 * objdump.c (process_links): New variable.
351 (usage): Add --process-links.
352 (long_options): Likewise.
353 (dump_bfd): Stop processing once the bfd has been loaded unless
354 this is the main file or process_links has been enabled.
355 (main): Handle the process-links option.
356 * readelf.c (process_links): New variable.
357 (struct filedata): Add is_separate field.
358 (options): Add --process-links.
360 (parse_args): Likewise.
361 (process_file_header): Include the filename when dumping
362 information for separate debuginfo files.
363 (process_program_headers): Likewise.
364 (process_section_headers): Likewise.
365 (process_section_groups): Likewise.
366 (process_relocs): Likewise.
367 (process_dynamic_section): Likewise.
368 (process_version_sections): Likewise.
369 (display_lto_symtab): Likewise.
370 (process_symbol_table): Likewise.
371 (process_syminfo): Likewise.
372 (initialise_dumps_by_name): Likewise.
373 (process_section_contents): Likewise.
374 (process_notes_at): Likewise.
375 (process_notes): Likewise.
376 (open_file): Add is_separate parameter. Use to initialise the
377 is_separate field in the filedata structure.
378 (open_deug): Update call to open_file.
379 (process_object): Add processing of the contents of separate
380 debuginfo files, gated by the process_links variable.
381 (process_archive): Update call to open_file.
382 (process_file): Initialise the is_separate field in the filedata
384 * dwarf.c (load_separate_debug_info_file): Only report the
385 loading of a separate file if debug links are being dumped.
386 * objcopy.c (keep_section_symbols): New variable.
387 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
388 (strip_options): Add keep-section-symbols.
389 (copy_options): Likewise.
390 (copy_usage): Likewise.
391 (strip_usage): Likewise.
392 (copy_object): Keep section symbols if requested by command line
394 (strip_main): Handle --keep-section-symbols.
395 (copy_main): Likewise.
396 * doc/binutils.texi: Document the new options.
397 * NEWS: Mention the new features.
398 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
399 Update options passed to objdump. Use diff rather than cmp to
400 compare the dumped data.
401 * testsuite/binutils-all/objdump.WK2: Update regexp.
402 * testsuite/binutils-all/objdump.WK3: Update regexp.
403 * testsuite/binutils-all/objdump.exp: Use --process-links
404 instead of --dwarf=follow-links.
405 * testsuite/binutils-all/readelf.exp (readelf_test): Include
406 readelf's output in the log when the test fails.
407 Add the -P option to the -wKis test.
408 * testsuite/binutils-all/readelf.wKis: Update expected output.
410 2021-03-03 Alan Modra <amodra@gmail.com>
413 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
414 * NEWS: Mention feature.
416 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
419 * dwarf.c (load_separate_debug_info): Issue warning only if
420 do_debug_links is set.
421 * testsuite/binutils-all/compress.exp: Run objdump and readelf
422 with missing debug file.
424 2021-03-01 Alan Modra <amodra@gmail.com>
427 * doc/binutils.texi: Add nm --with-symbol-versions and
428 --without-symbol-versions documentation.
429 * nm.c (with_symbol_versions): New variable.
430 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
431 (long_options): Make --with-symbol-versions entry twiddle the flag.
432 Add --without-symbol-versions.
433 (print_symname): Strip version when !with_symbol_versions. Add
434 dynamic version info under control of with_symbol_versions.
435 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
437 2021-02-26 Fangrui Song <maskray@google.com>
440 * readelf.c (quiet): New option flag.
441 (enum long_option_values): New enum to hold long option value.
442 (long_options): Add --quiet.
443 (usage): Mention --quiet.
444 (display_rel_file): If quiet is enabled, suppress "no symbols".
445 (main): Handle the new option.
446 * NEWS: Mention --quiet.
447 * docs/binutils.texi: Document --quiet.
449 2021-02-26 Tom de Vries <tdevries@suse.de>
451 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
453 2021-02-26 Tom de Vries <tdevries@suse.de>
456 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
458 (read_and_display_attr_value): Likewise.
460 2021-02-25 Nick Clifton <nickc@redhat.com>
462 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
464 (read_and_display_attr_value): Handle sup forms.
465 (display_debug_sup): New function. Displays the contents of a
467 (load_debug_sup_file): New function. Loads the contents of a file
468 referenced by a .debug_sup section.
469 (check_for_and_load_links): Call load_debug_sup_file.
470 (debug_displays): Add entry for .debug_sup.
471 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
472 * readelf.c (process_section_headers): Add support for debug_sup.
473 * doc/debug.options.texi: Note that the =links option will display
474 the contents of .debug_sup sections.
475 * NEWS: Mention the new support.
477 2021-02-25 Alan Modra <amodra@gmail.com>
480 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
482 2021-02-24 Nick Clifton <nickc@redhat.com>
485 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
486 when adding together the section sizes.
488 2021-02-24 Nick Clifton <nickc@redhat.com>
490 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
492 * readelf.c (print_gnu_build_attribute_description): Likewise.
494 2021-02-24 Alan Modra <amodra@gmail.com>
495 Siddhesh Poyarekar <siddhesh@gotplt.org>
498 * bucomm.h (smart_rename): Update prototype.
499 * rename.c (smart_rename): Add fromfd and preserve_dates params.
500 Pass fromfd and target_stat to simple_copy. Call set_times
502 (simple_copy): Accept fromfd rather than from filename. Add
503 target_stat param. Rewind fromfd rather than opening. Open
504 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
505 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
506 closing output temp file, and pass tmpfd to smart_rename.
507 * arsup.c (temp_fd): Rename from real_fd.
508 (ar_save): Dup temp_fd and pass to smart_rename.
509 * objcopy.c (strip_main, copy_main): Likewise, and pass
512 2021-02-24 Alan Modra <amodra@gmail.com>
515 * rename.c: Tidy throughout.
516 (smart_rename): Always copy. Remove windows specific code.
518 2021-02-20 Alan Modra <amodra@gmail.com>
520 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
521 (run_dump_test): Fail if expecting errors from a file like we do
522 for error strings, if no error is seen.
524 2021-02-19 Alan Modra <amodra@gmail.com>
526 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
528 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
530 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
532 * arsup.c (ar_save): Likewise.
533 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
534 temporary file and adjust call to SMART_RENAME.
535 (copy_main): Likewise.
536 * rename.c [!S_ISLNK]: Remove definitions.
537 (try_preserve_permissions): Remove function.
538 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
539 rename system call only if TO does not exist.
540 * bucomm.h (smart_rename): Adjust declaration.
542 2021-02-18 Nick Clifton <nickc@redhat.com>
544 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
545 address that is higher than the end address.
547 2021-02-17 Alan Modra <amodra@gmail.com>
549 * dwarf.c: Include limits.h.
550 (CHAR_BIT): Provide backup define.
551 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
552 signed overflow checking.
553 * testsuite/binutils-all/pr26548.s,
554 * testsuite/binutils-all/pr26548.d,
555 * testsuite/binutils-all/pr26548e.d: New tests.
556 * testsuite/binutils-all/readelf.exp: Run them.
557 (readelf_test): Drop unused "xfails" parameter. Update all uses.
559 2021-02-16 Jan Beulich <jbeulich@suse.com>
561 * dwarf.c (process_debug_info): Initialize "dwo_id".
563 2021-02-15 Alan Modra <amodra@gmail.com>
565 * objdump.c (load_specific_debug_section): Don't call
566 bfd_cache_section_contents. Rearrange so that
567 bfd_get_full_section_contents is not called on path where
568 bfd_simple_get_relocated_section_contents is called.
569 Don't set section->user_data.
570 (free_debug_section): Always free section->start. Don't twiddle
572 * readelf.c (load_specific_debug_section): Don't set user_data.
573 * dwarf.h (struct dwarf_section): Remove use_data field.
574 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
576 2021-02-15 Alan Modra <amodra@gmail.com>
578 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
579 * testsuite/binutils-all/objdump.exp: Likewise.
581 2021-02-14 Alan Modra <amodra@gmail.com>
583 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
585 (slurp_dynamic_symtab): Likewise.
586 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
588 2021-02-14 Alan Modra <amodra@gmail.com>
590 * Makefile.in: Regenerate.
591 * doc/Makefile.in: Regenerate.
593 2021-02-13 Mike Frysinger <vapier@gentoo.org>
595 * aclocal.m4: Regenerate.
597 2021-02-12 Nick Clifton <nickc@redhat.com>
599 * configure.ac (follow-debug-links): Add option to enable or
600 disable the following of debug links by default. Set the
601 default for the option to be 'follow'.
602 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
603 (dwarf_select_sections_by_names): Add no-follow-links option.
604 (dwarf_select_sections_by_letter): Add 'N' option.
605 * objdump.c (usage): Add conditional text describing the
607 (slurp_symtab): Ensure that there is a NULL entry at the end
609 (slurp_dynamic_symtab): Likewise.
610 (dump_bfd): When extending the symbol table, ensure that there
611 is still a NULL entry at the end.
612 * readelf.c (usage): Add conditional text describing the
614 * doc/binutils.texi: Update documentation for objcopy and
616 * doc/debug.options.texi: Update documentation of the
618 * config.in: Regenerate.
619 * configure: Regenerate.
620 * testsuite/binutils-all/compress.exp: Add the -WN option to
621 objdump command lines that are not expecting to follow links.
622 * testsuite/binutils-all/readelf.exp: Add the
623 --debug-dump=no-follow-links option to tests that are not
624 expecting to follow debug links.
625 * NEWS: Mention the new behaviour.
627 2021-02-12 Alan Modra <amodra@gmail.com>
629 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
630 gas or ld fails to build a testcase rather than "unresolved".
631 Report "fail" when readelf returns an error status rather than
633 * testsuite/binutils-all/ar.exp: Likewise.
634 * testsuite/binutils-all/compress.exp: Likewise.
635 * testsuite/binutils-all/readelf.exp: Likewise.
637 2021-02-12 Alan Modra <amodra@gmail.com>
639 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
640 "c" with "ccc" labels.
642 2021-02-12 Tom de Vries <tdevries@suse.de>
644 * dwarf.h (debug_info): Fix typo in comment.
646 2021-02-12 Tom de Vries <tdevries@suse.de>
648 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
651 2021-02-12 Tom de Vries <tdevries@suse.de>
653 * dwarf.c (process_debug_info): Print DWO ID.
655 2021-02-11 Alan Modra <amodra@gmail.com>
660 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
661 Use bfd_malloc_and_get_section.
662 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
663 check namesz. Return NULL if descsz is too small. Ensure
664 string table is terminated.
665 (elf32_avr_get_device_info): Formatting. Add note_size param.
667 (elf32_avr_dump_mem_usage): Adjust to suit.
669 2021-02-10 Tom de Vries <tdevries@suse.de>
672 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
674 2021-02-10 Tom de Vries <tdevries@suse.de>
677 * dwarf.c (display_debug_ranges): Filter range lists according to
680 2021-02-09 Tom de Vries <tdevries@suse.de>
683 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
685 2021-02-09 Tom de Vries <tdevries@suse.de>
688 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
691 2021-02-09 Alan Modra <amodra@gmail.com>
693 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
696 2021-02-07 Alan Modra <amodra@gmail.com>
698 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
699 uninitialised on invalid input.
701 2021-02-06 Alan Modra <amodra@gmail.com>
704 * rename.c (smart_rename): Test for existence and type of output
707 2021-02-05 Nick Clifton <nickc@redhat.com>
709 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
711 2021-02-05 Eli Zaretskii <eliz@gnu.org>
714 * elfedit.c (check_file):
715 * bucomm.c (get_file_size): Fix typos in comments.
717 2021-02-05 Alan Modra <amodra@gmail.com>
720 * arsup.c (ar_save): Use stat rather than lstat.
722 2021-02-03 Alan Modra <amodra@gmail.com>
727 * ar.c: Don't include libbfd.h.
728 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
729 bfd_stat rather than fstat on iostream. Move stat and fd tests
730 outside of _WIN32 ifdef. Delete skip_stat variable.
731 * arsup.c (temp_name, real_ofd): New static variables.
732 (ar_open): Use make_tempname and bfd_fdopenw.
733 (ar_save): Adjust to suit ar_open changes. Move stat output
735 * objcopy.c: Don't include libbfd.h.
736 (copy_file): Use bfd_stat.
738 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
741 * readelf.c (process_section_headers): Add 'R' and 'D' to
743 * testsuite/binutils-all/retain1a.d: Updated.
745 2021-01-30 Nick Clifton <nickc@redhat.com>
747 * README-how-to-make-a-release: Small updates after the 2.35.2
750 2021-01-28 Eli Zaretskii <eliz@gnu.org>
753 * windres.c (quot): Use double quotes to protect strings on
756 2021-01-28 Eli Zaretskii <eliz@gnu.org>
759 * bucomm.c (get_file_size): Add code to handle /dev/null on
761 * elfedit.c (check_file): Likewise.
763 2021-01-27 Nick Clifton <nickc@redhat.com>
765 * objcopy.c (copy_main): Remove conditional control of the calls
766 to free, simplifying the code and making it easier to detect
769 2021-01-26 Frederic Cambus <fred@statdns.com>
771 * objcopy.c (copy_main): Fix a double free happening when both
772 --localize-symbols and --globalize-symbols options are invoked
775 2021-01-24 Nick Clifton <nickc@redhat.com>
777 * README-how-to-make-a-release: Minor updates after the 2.36 release.
779 2021-01-16 Alan Modra <amodra@gmail.com>
781 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
783 2021-01-15 Alan Modra <amodra@gmail.com>
786 * readelf.c (uncompress_section_contents): Always call inflateEnd.
788 2021-01-14 Alexandre Oliva <oliva@gnu.org>
790 * MAINTAINERS: Update my email address.
792 2021-01-14 Nick Clifton <nickc@redhat.com>
794 * po/sv.po: Updated Swedish translation.
796 2021-01-13 Alan Modra <amodra@gmail.com>
798 * Makefile.in: Regenerate.
799 * doc/Makefile.in: Regenerate.
801 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
804 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
806 (i386_x64_trampoline): Add SEH annotations.
807 (struct mac): Add how_seh field.
808 (make_delay_head): If how_set field is true add SEh instructions.
810 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
813 * configure.ac: Use GNU_MAKE_JOBSERVER.
814 * aclocal.m4: Regenerated.
815 * configure: Likewise.
817 2021-01-12 Nick Clifton <nickc@redhat.com>
819 * po/fr.po: Updated French translation.
821 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
824 * configure: Regenerated.
826 2021-01-11 Nick Clifton <nickc@redhat.com>
828 * po/pt.po: Updated Portuguese translation.
829 * po/sr.po: Updated Serbian translation.
830 * po/uk.po: Updated Ukranian translation.
832 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
834 * configure: Regenerated.
836 2021-01-09 Nick Clifton <nickc@redhat.com>
838 * configure: Regenerate.
839 * po/binutils.pot: Regenerate.
841 2021-01-09 Nick Clifton <nickc@redhat.com>
843 * 2.36 release branch crated.
844 * README-how-to-make-a-release: Add note about updating Makefiles
846 * BRANCHES: Add binutils-2.36-branch.
848 2021-01-09 Alan Modra <amodra@gmail.com>
850 * configure: Regenerate.
852 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
854 * configure: Regenerate.
856 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
859 * objcopy.c (copy_object): Handle section symbols for
860 non-relocatable inputs.
861 * testsuite/binutils-all/readelf.exp (readelf_test): Check
862 is_elf_unused_section_symbols.
863 * testsuite/binutils-all/readelf.s-64: Updated.
864 * testsuite/binutils-all/readelf.ss: Likewise.
865 * testsuite/binutils-all/readelf.ss-64: Likewise.
866 * testsuite/binutils-all/readelf.s-64-unused: New file.
867 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
868 * testsuite/binutils-all/readelf.ss-unused: Likewise.
869 * testsuite/lib/binutils-common.exp
870 (is_elf_unused_section_symbols): New proc.
872 2021-01-06 Reuben Thomas <rrt@sc3d.org>
874 * binutils/readelf.c: Correct grammar in comment.
876 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
878 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
879 * doc/binutils.texi: Correct grammar.
880 * readelf.c (process_version_sections): Correct spelling of auxiliary
882 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
884 2021-01-01 Alan Modra <amodra@gmail.com>
886 Update year range in copyright notice of all files.
888 For older changes see ChangeLog-2020
890 Copyright (C) 2021 Free Software Foundation, Inc.
892 Copying and distribution of this file, with or without modification,
893 are permitted in any medium without royalty provided the copyright
894 notice and this notice are preserved.
900 version-control: never