1 2021-05-12 Alan Modra <amodra@gmail.com>
3 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
4 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
5 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
6 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
7 SAFE_BYTE_GET followed by increment.
8 (process_debug_info): Likewise, and test bytes remaining before
9 incrementing section_begin rather than using pointer comparison.
10 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
11 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
13 2021-05-12 Alan Modra <amodra@gmail.com>
15 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
16 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
17 SAFE_BYTE_GET_AND_INC.
18 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
19 (process_debug_info, process_cu_tu_index): Likewise.
20 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
21 (byte_get, byte_get_little_endian, byte_get_big_endian),
22 (byte_get_signed): Make size param unsigned. Remove code dealing
24 (byte_get_64): Delete.
25 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
26 (byte_get, byte_get_little_endian, byte_get_big_endian),
27 (byte_get_signed): Update prototypes.
28 (byte_get_64): Delete.
30 2021-05-12 Alan Modra <amodra@gmail.com>
33 * dwarf.c (display_debug_frames): Don't compare pointers derived
34 from user input. Test offset against bounds instead.
36 2021-05-12 Alan Modra <amodra@gmail.com>
39 * dwarf.c (display_formatted_table): Test for data >= end rather
41 (process_extended_line_op): Likewise.
42 (display_debug_lines_raw): Likewise.
43 (display_debug_lines_decoded): Likewise.
45 2021-05-12 Alan Modra <amodra@gmail.com>
48 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
49 Sanity check section size for version and padding too. Correct
50 index sanity check. Handle multiple tables in .debug_str_offsets.
52 2021-05-11 Hans-Peter Nilsson <hp@axis.com>
54 * dwarf.c (process_abbrev_set): Properly parenthesize before
55 casting to unsigned long.
57 2021-05-11 Alan Modra <amodra@gmail.com>
60 * dwarf.c (process_abbrev_set): Replace start and end parameters
61 with section, abbrev_base, abbrev_size, abbrev_offset. Update
62 all callers. Sanity check parameters correctly and emit warnings
64 (process_debug_info): ..here.
66 2021-05-10 Thomas Wolff <towo@towo.net>
71 * windres.c (quot): Revert previous delta. Do not use double
72 quotes when spaces are detected in options.
73 * doc/binutils.texi (windres): Remove suggestion that the
74 --preprocessor option can take arguments.
76 2021-05-10 Alan Modra <amodra@gmail.com>
78 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
79 END rather than adding amount to PTR.
80 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
82 2021-05-09 Alan Modra <amodra@gmail.com>
84 * objcopy.c (eq_string): Delete.
85 (create_symbol_htab): Use htab_eq_string.
87 2021-05-08 Mike Frysinger <vapier@gentoo.org>
89 * README-how-to-make-a-release: Update html & pdf entries.
91 2021-05-08 Mike Frysinger <vapier@gentoo.org>
93 * doc/Makefile.am (html-local, binutils/index.html): New targets.
94 * doc/Makefile.in: Regenerate.
96 2021-05-08 Mike Frysinger <vapier@gentoo.org>
98 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
99 * doc/Makefile.in: Regenerate.
101 2021-05-07 Nick Clifton <nickc@redhat.com>
103 * readelf.c (no_processor_specific_unwind): New function.
104 (process_unwind): Use no_processor_specific_unwind for X86
107 2021-05-07 Michael Forney <mforney@mforney.org>
109 * dwarf.c: Don't omit second operand of '?' operator.
111 2021-04-30 Nick Clifton <nickc@redhat.com>
114 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
117 2021-04-29 Nick Clifton <nickc@redhat.com>
120 * doc/binutils.texi (windres): Correct the description of the
121 default value of the --preprocessor argument.
123 2021-04-27 Nick Clifton <nickc@redhat.com>
126 * dwarf.c (parse_gnu_debuglink): Reject empty names.
127 (parse_gnu_debugaltlink): Likewise.
129 2021-04-22 Clément Chigot <clement.chigot@atos.net>
131 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
134 2021-04-21 Nick Lott <nick.lott@gmail.com>
137 * readelf.c (sym_base): New variable.
138 (enum print_mode): Add more modes.
139 (print_vma): Add suport for new modes.
140 (options): Add sym-base.
141 (usage): Add sym-base.
142 (parse_args): Add support for --sym-base.
143 (print_dynamic_symbol_size): New function.
144 (print_dynamic_symbol): Use new function.
145 * doc/binutils.texi: Document the new feature.
146 * NEWS: Mention the new feature.
148 2021-04-21 Nick Clifton <nickc@redhat.com>
150 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
151 Adjust expected output to allow for named section symbols.
152 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
154 * testsuite/binutils-all/readelf.s-64: Likewise.
155 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
156 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
157 * testsuite/binutils-all/readelf.ss-unused: Likewise.
159 2021-04-21 Luo Longjun <luolongjun@huawei.com>
161 * readelf.c (print_dynamic_symbol): Print the section name for
162 section symbols without a name of their own.
164 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
166 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
167 add him to Past Maintainers.
168 Update my email address.
170 2021-04-19 Nick Clifton <nickc@redhat.com>
173 * arsup.c (ar_addmod): Enable plugin support, if available.
175 2021-04-19 Nick Clifton <nickc@redhat.com>
177 * rename.c: (get_stat_atime_ns): Add prototype.
178 (get_stat_mtime_ns): Add prototype.
180 2021-04-16 Alan Modra <amodra@gmail.com>
183 * rename.c (get_stat_atime, get_stat_mtime): Make static.
184 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
186 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
189 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
190 (get_stat_mtime_ns): Likewise.
192 2021-04-15 Alan Modra <amodra@gmail.com>
195 * configure.ac: Check for sys/time.h and utimensat. Use standard
196 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
197 members of struct stat.
198 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
199 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
200 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
201 (get_stat_atime, get_stat_mtime): Likewise.
202 (set_times): Choose first available of utimensat, utimes, utime.
203 Use above inline functions to set timespec and timeval values.
204 * configure: Regenerate.
205 * config.in: Regenerate.
206 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
207 file timestamp when --preserve-dates is used.
209 2021-04-15 Alan Modra <amodra@gmail.com>
212 * rename.c (smart_rename): When TO and FROM are equal, just set
214 * objcopy.c (strip_main, copy_main): Always call smart_rename.
216 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
219 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
220 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
221 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
224 2021-04-14 Mark Harmstone <mark@harmstone.com>
227 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
228 end of the structure.
230 2021-04-14 Frederic Cambus <fred@statdns.com>
232 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
233 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
235 2021-04-14 Alan Modra <amodra@gmail.com>
238 * objdump.c (show_line): Don't limit paths to PATH_MAX.
239 * readelf.c (struct filedata): Change program_interpreter from
240 a char array to a char pointer.
241 (process_program_headers): Sanity check PT_INTERP p_filesz.
242 Malloc program_interpreter using p_filesz and read directly from
244 (process_dynamic_section): Check program_interpreter is non-NULL.
245 (free_filedata): New function, split out from..
246 (process_object): ..here.
247 (close_debug_file): Call free_filedata.
248 * sysdep.h: Don't include sys/param.h.
249 (PATH_MAX): Don't define.
250 * configure.ac: Don't check for sys/param.h.
251 * configure: Regenerate.
253 2021-04-13 Frederic Cambus <fred@statdns.com>
255 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
256 check for NT_NETBSD_PAX.
258 2021-04-12 Alan Modra <amodra@gmail.com>
260 * configure.ac (--enable-checking): Add support.
261 * config.in: Regenerate.
262 * configure: Regenerate.
264 2021-04-09 Alan Modra <amodra@gmail.com>
266 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
268 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
269 (disassemble_section, disassemble_data): Likewise.
271 2021-04-06 Alan Modra <amodra@gmail.com>
273 * objdump.c (objdump_symbol_at_address): Return asymbol*.
275 2021-04-06 Alan Modra <amodra@gmail.com>
277 * NEWS: Mention C99 requirement.
278 * README: Likewise. Modernise examples and "Reporting bugs".
280 2021-04-05 Alan Modra <amodra@gmail.com>
282 * configure.ac: Assume long long is available. Don't test for
283 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
284 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
285 strcoll, setlocale, setmode or location of time_t. Don't check
286 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
287 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
288 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
289 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
290 locale.h, string.h and stdlib.h unconditionally. Remove various
291 fallback declarations. Assume long long is available.
292 * addr2line.c: Don't test HAVE_SETLOCALE.
294 * coffdump.c: Likewise.
295 * dlltool.c: Likewise.
296 * dllwrap.c: Likewise.
297 * elfedit.c: Likewise.
299 * objcopy.c: Likewise.
300 * objdump.c: Likewise.
301 * readelf.c: Likewise.
303 * srconv.c: Likewise.
304 * strings.c: Likewise.
305 * sysdump.c: Likewise.
306 * windmc.c: Likewise.
307 * windres.c: Likewise.
308 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
309 * dwarf.c: Include limits.h unconditionally. Assume long long
311 * nm.c: Don't test HAVE_STRCOLL.
312 * readelf.c: Don't test HAVE_WCHAR_H.
313 * strings.c: Assume long long is available.
314 * syslex.l: Include string.h unconditionally.
315 * aclocal.m4: Regenerate.
316 * config.in: Regenerate.
317 * configure: Regenerate.
318 * Makefile.in: Regenerate.
319 * doc/Makefile.in: Regenerate.
321 2021-04-01 Martin Liska <mliska@suse.cz>
323 * elfcomm.h (strneq): Remove strneq and use startswith.
324 * readelf.c (ia64_process_unwind): Likewise.
325 (process_note): Likewise.
327 2021-04-01 Martin Liska <mliska@suse.cz>
329 * dllwrap.c: Use startswith function.
330 * objcopy.c (is_dwo_section): Likewise.
331 (handle_remove_section_option): Likewise.
332 (copy_main): Likewise.
333 * objdump.c (is_significant_symbol_name): Likewise.
335 2021-04-01 Martin Liska <mliska@suse.cz>
337 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
339 (display_debug_lines_decoded): Likewise.
340 (display_debug_links): Likewise.
341 * elfcomm.c (setup_archive): Likewise.
342 * elfcomm.h (const_strneq): Likewise.
343 * readelf.c (process_section_headers): Likewise.
344 (slurp_ia64_unwind_table): Likewise.
345 (slurp_hppa_unwind_table): Likewise.
346 (decode_arm_unwind): Likewise.
347 (display_debug_section): Likewise.
348 (process_note): Likewise.
350 2021-03-31 Alan Modra <amodra@gmail.com>
352 * sysdep.h (POISON_BFD_BOOLEAN): Define.
353 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
354 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
355 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
356 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
357 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
358 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
359 * windmc.c, * windmc.h, * windres.c, * winduni.c,
360 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
361 and TRUE with true throughout.
363 2021-03-31 Alan Modra <amodra@gmail.com>
365 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
368 2021-03-31 Alan Modra <amodra@gmail.com>
370 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
372 2021-03-29 Alan Modra <amodra@gmail.com>
374 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
375 * dwarf.c (read_and_display_attr_value): Likewise.
376 (display_debug_str_offsets): Likewise.
377 * objdump.c (dump_bfd): Likewise.
378 * readelf.c (dump_section_as_strings): Likewise.
379 (dump_section_as_bytes): Likewise.
381 2021-03-29 Alan Modra <amodra@gmail.com>
383 * objdump.c (process_links): Use type int.
384 * readelf.c (request_dump): Don't increment do_dump, set it.
385 * windint.h (target_is_bigendian): Use type bfd_boolean.
386 * windmc.c (target_is_bigendian): Likewise.
387 * windres.c (target_is_bigendian): Likewise.
389 2021-03-22 Martin Liska <mliska@suse.cz>
391 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
393 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
394 * objcopy.c (is_mergeable_note_section): Likewise.
395 * objdump.c (dump_dwarf_section): Likewise.
396 * prdbg.c (pr_method_type): Likewise.
397 (pr_class_baseclass): Likewise.
398 (tg_class_baseclass): Likewise.
399 * readelf.c (process_lto_symbol_tables): Likewise.
400 * stabs.c (ULLHIGH): Likewise.
401 (parse_stab_argtypes): Likewise.
402 (stab_demangle_function_name): Likewise.
404 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
406 * readelf.c (get_machine_name): Add EM_INTELGT.
408 2021-03-18 Nick Clifton <nickc@redhat.com>
411 * readelf.c (dump_section_as_strings): Mention separate filename.
412 (dump_section_as_bytes): Likewise.
413 (dump_section_as_ctf): Likewise.
414 (initialise_dumkps_byname): Only issue a warning for missing
415 sections if processing the main file.
416 (process_section_contents): Only issue a warning for unsumped
417 section numbers in the main file.
418 (initialise_dump_sects): New function. Contains code extracted
420 (process_object): ... here. Also call initialise_dump_sects for
423 2021-03-16 Nick Clifton <nickc@redhat.com>
426 * readelf.c (display_debug_section): Also retain .debug_addr
429 2021-03-16 Nick Clifton <nickc@redhat.com>
432 * readelf.c (process_section_contents): Only dump debug
433 information for separate files unless process_links is enabled.
434 (process_object): Always call process_section_contents for
437 2021-03-15 Nick Clifton <nickc@redhat.com>
440 * nm.c (FORMAT_JUST_SYMBOLS): Define.
441 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
442 (long_options): Add just-symbols.
443 (set_output_format): Add support for just-symbols.
444 (get_print_format): Likewise.
445 (do_not_print_object_filename): New function.
446 (do_not_print_archive_filename): New function.
447 (do_not_print_archive_member): New function.
448 (do_not_print_symbol_filename): New function.
449 (just_print_symbol_name): New function.
450 (main): Handle --just-symbols.
451 * NEWS: Mention the new feature.
452 * doc/binutils.texi: Document the new feature.
454 2021-03-12 Clément Chigot <clement.chigot@atos.net>
456 * od-xcoff.c: Replace RTB by TRL entry.
458 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
459 Andrew Burgess <andrew.burgess@embecosm.com>
461 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
463 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
464 Andrew Burgess <andrew.burgess@embecosm.com>
466 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
468 2021-03-05 Nick Clifton <nickc@redhat.com>
471 * dwarf.c (display_debug_macro): Handle the displaying of
472 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
473 .debug_macro.dwo sections.
475 2021-03-04 Nick Clifton <nickc@redhat.com>
478 * objdump.c (process_links): New variable.
479 (usage): Add --process-links.
480 (long_options): Likewise.
481 (dump_bfd): Stop processing once the bfd has been loaded unless
482 this is the main file or process_links has been enabled.
483 (main): Handle the process-links option.
484 * readelf.c (process_links): New variable.
485 (struct filedata): Add is_separate field.
486 (options): Add --process-links.
488 (parse_args): Likewise.
489 (process_file_header): Include the filename when dumping
490 information for separate debuginfo files.
491 (process_program_headers): Likewise.
492 (process_section_headers): Likewise.
493 (process_section_groups): Likewise.
494 (process_relocs): Likewise.
495 (process_dynamic_section): Likewise.
496 (process_version_sections): Likewise.
497 (display_lto_symtab): Likewise.
498 (process_symbol_table): Likewise.
499 (process_syminfo): Likewise.
500 (initialise_dumps_by_name): Likewise.
501 (process_section_contents): Likewise.
502 (process_notes_at): Likewise.
503 (process_notes): Likewise.
504 (open_file): Add is_separate parameter. Use to initialise the
505 is_separate field in the filedata structure.
506 (open_deug): Update call to open_file.
507 (process_object): Add processing of the contents of separate
508 debuginfo files, gated by the process_links variable.
509 (process_archive): Update call to open_file.
510 (process_file): Initialise the is_separate field in the filedata
512 * dwarf.c (load_separate_debug_info_file): Only report the
513 loading of a separate file if debug links are being dumped.
514 * objcopy.c (keep_section_symbols): New variable.
515 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
516 (strip_options): Add keep-section-symbols.
517 (copy_options): Likewise.
518 (copy_usage): Likewise.
519 (strip_usage): Likewise.
520 (copy_object): Keep section symbols if requested by command line
522 (strip_main): Handle --keep-section-symbols.
523 (copy_main): Likewise.
524 * doc/binutils.texi: Document the new options.
525 * NEWS: Mention the new features.
526 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
527 Update options passed to objdump. Use diff rather than cmp to
528 compare the dumped data.
529 * testsuite/binutils-all/objdump.WK2: Update regexp.
530 * testsuite/binutils-all/objdump.WK3: Update regexp.
531 * testsuite/binutils-all/objdump.exp: Use --process-links
532 instead of --dwarf=follow-links.
533 * testsuite/binutils-all/readelf.exp (readelf_test): Include
534 readelf's output in the log when the test fails.
535 Add the -P option to the -wKis test.
536 * testsuite/binutils-all/readelf.wKis: Update expected output.
538 2021-03-03 Alan Modra <amodra@gmail.com>
541 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
542 * NEWS: Mention feature.
544 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
547 * dwarf.c (load_separate_debug_info): Issue warning only if
548 do_debug_links is set.
549 * testsuite/binutils-all/compress.exp: Run objdump and readelf
550 with missing debug file.
552 2021-03-01 Alan Modra <amodra@gmail.com>
555 * doc/binutils.texi: Add nm --with-symbol-versions and
556 --without-symbol-versions documentation.
557 * nm.c (with_symbol_versions): New variable.
558 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
559 (long_options): Make --with-symbol-versions entry twiddle the flag.
560 Add --without-symbol-versions.
561 (print_symname): Strip version when !with_symbol_versions. Add
562 dynamic version info under control of with_symbol_versions.
563 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
565 2021-02-26 Fangrui Song <maskray@google.com>
568 * readelf.c (quiet): New option flag.
569 (enum long_option_values): New enum to hold long option value.
570 (long_options): Add --quiet.
571 (usage): Mention --quiet.
572 (display_rel_file): If quiet is enabled, suppress "no symbols".
573 (main): Handle the new option.
574 * NEWS: Mention --quiet.
575 * docs/binutils.texi: Document --quiet.
577 2021-02-26 Tom de Vries <tdevries@suse.de>
579 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
581 2021-02-26 Tom de Vries <tdevries@suse.de>
584 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
586 (read_and_display_attr_value): Likewise.
588 2021-02-25 Nick Clifton <nickc@redhat.com>
590 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
592 (read_and_display_attr_value): Handle sup forms.
593 (display_debug_sup): New function. Displays the contents of a
595 (load_debug_sup_file): New function. Loads the contents of a file
596 referenced by a .debug_sup section.
597 (check_for_and_load_links): Call load_debug_sup_file.
598 (debug_displays): Add entry for .debug_sup.
599 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
600 * readelf.c (process_section_headers): Add support for debug_sup.
601 * doc/debug.options.texi: Note that the =links option will display
602 the contents of .debug_sup sections.
603 * NEWS: Mention the new support.
605 2021-02-25 Alan Modra <amodra@gmail.com>
608 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
610 2021-02-24 Nick Clifton <nickc@redhat.com>
613 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
614 when adding together the section sizes.
616 2021-02-24 Nick Clifton <nickc@redhat.com>
618 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
620 * readelf.c (print_gnu_build_attribute_description): Likewise.
622 2021-02-24 Alan Modra <amodra@gmail.com>
623 Siddhesh Poyarekar <siddhesh@gotplt.org>
626 * bucomm.h (smart_rename): Update prototype.
627 * rename.c (smart_rename): Add fromfd and preserve_dates params.
628 Pass fromfd and target_stat to simple_copy. Call set_times
630 (simple_copy): Accept fromfd rather than from filename. Add
631 target_stat param. Rewind fromfd rather than opening. Open
632 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
633 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
634 closing output temp file, and pass tmpfd to smart_rename.
635 * arsup.c (temp_fd): Rename from real_fd.
636 (ar_save): Dup temp_fd and pass to smart_rename.
637 * objcopy.c (strip_main, copy_main): Likewise, and pass
640 2021-02-24 Alan Modra <amodra@gmail.com>
643 * rename.c: Tidy throughout.
644 (smart_rename): Always copy. Remove windows specific code.
646 2021-02-20 Alan Modra <amodra@gmail.com>
648 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
649 (run_dump_test): Fail if expecting errors from a file like we do
650 for error strings, if no error is seen.
652 2021-02-19 Alan Modra <amodra@gmail.com>
654 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
656 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
658 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
660 * arsup.c (ar_save): Likewise.
661 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
662 temporary file and adjust call to SMART_RENAME.
663 (copy_main): Likewise.
664 * rename.c [!S_ISLNK]: Remove definitions.
665 (try_preserve_permissions): Remove function.
666 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
667 rename system call only if TO does not exist.
668 * bucomm.h (smart_rename): Adjust declaration.
670 2021-02-18 Nick Clifton <nickc@redhat.com>
672 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
673 address that is higher than the end address.
675 2021-02-17 Alan Modra <amodra@gmail.com>
677 * dwarf.c: Include limits.h.
678 (CHAR_BIT): Provide backup define.
679 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
680 signed overflow checking.
681 * testsuite/binutils-all/pr26548.s,
682 * testsuite/binutils-all/pr26548.d,
683 * testsuite/binutils-all/pr26548e.d: New tests.
684 * testsuite/binutils-all/readelf.exp: Run them.
685 (readelf_test): Drop unused "xfails" parameter. Update all uses.
687 2021-02-16 Jan Beulich <jbeulich@suse.com>
689 * dwarf.c (process_debug_info): Initialize "dwo_id".
691 2021-02-15 Alan Modra <amodra@gmail.com>
693 * objdump.c (load_specific_debug_section): Don't call
694 bfd_cache_section_contents. Rearrange so that
695 bfd_get_full_section_contents is not called on path where
696 bfd_simple_get_relocated_section_contents is called.
697 Don't set section->user_data.
698 (free_debug_section): Always free section->start. Don't twiddle
700 * readelf.c (load_specific_debug_section): Don't set user_data.
701 * dwarf.h (struct dwarf_section): Remove use_data field.
702 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
704 2021-02-15 Alan Modra <amodra@gmail.com>
706 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
707 * testsuite/binutils-all/objdump.exp: Likewise.
709 2021-02-14 Alan Modra <amodra@gmail.com>
711 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
713 (slurp_dynamic_symtab): Likewise.
714 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
716 2021-02-14 Alan Modra <amodra@gmail.com>
718 * Makefile.in: Regenerate.
719 * doc/Makefile.in: Regenerate.
721 2021-02-13 Mike Frysinger <vapier@gentoo.org>
723 * aclocal.m4: Regenerate.
725 2021-02-12 Nick Clifton <nickc@redhat.com>
727 * configure.ac (follow-debug-links): Add option to enable or
728 disable the following of debug links by default. Set the
729 default for the option to be 'follow'.
730 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
731 (dwarf_select_sections_by_names): Add no-follow-links option.
732 (dwarf_select_sections_by_letter): Add 'N' option.
733 * objdump.c (usage): Add conditional text describing the
735 (slurp_symtab): Ensure that there is a NULL entry at the end
737 (slurp_dynamic_symtab): Likewise.
738 (dump_bfd): When extending the symbol table, ensure that there
739 is still a NULL entry at the end.
740 * readelf.c (usage): Add conditional text describing the
742 * doc/binutils.texi: Update documentation for objcopy and
744 * doc/debug.options.texi: Update documentation of the
746 * config.in: Regenerate.
747 * configure: Regenerate.
748 * testsuite/binutils-all/compress.exp: Add the -WN option to
749 objdump command lines that are not expecting to follow links.
750 * testsuite/binutils-all/readelf.exp: Add the
751 --debug-dump=no-follow-links option to tests that are not
752 expecting to follow debug links.
753 * NEWS: Mention the new behaviour.
755 2021-02-12 Alan Modra <amodra@gmail.com>
757 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
758 gas or ld fails to build a testcase rather than "unresolved".
759 Report "fail" when readelf returns an error status rather than
761 * testsuite/binutils-all/ar.exp: Likewise.
762 * testsuite/binutils-all/compress.exp: Likewise.
763 * testsuite/binutils-all/readelf.exp: Likewise.
765 2021-02-12 Alan Modra <amodra@gmail.com>
767 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
768 "c" with "ccc" labels.
770 2021-02-12 Tom de Vries <tdevries@suse.de>
772 * dwarf.h (debug_info): Fix typo in comment.
774 2021-02-12 Tom de Vries <tdevries@suse.de>
776 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
779 2021-02-12 Tom de Vries <tdevries@suse.de>
781 * dwarf.c (process_debug_info): Print DWO ID.
783 2021-02-11 Alan Modra <amodra@gmail.com>
788 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
789 Use bfd_malloc_and_get_section.
790 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
791 check namesz. Return NULL if descsz is too small. Ensure
792 string table is terminated.
793 (elf32_avr_get_device_info): Formatting. Add note_size param.
795 (elf32_avr_dump_mem_usage): Adjust to suit.
797 2021-02-10 Tom de Vries <tdevries@suse.de>
800 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
802 2021-02-10 Tom de Vries <tdevries@suse.de>
805 * dwarf.c (display_debug_ranges): Filter range lists according to
808 2021-02-09 Tom de Vries <tdevries@suse.de>
811 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
813 2021-02-09 Tom de Vries <tdevries@suse.de>
816 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
819 2021-02-09 Alan Modra <amodra@gmail.com>
821 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
824 2021-02-07 Alan Modra <amodra@gmail.com>
826 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
827 uninitialised on invalid input.
829 2021-02-06 Alan Modra <amodra@gmail.com>
832 * rename.c (smart_rename): Test for existence and type of output
835 2021-02-05 Nick Clifton <nickc@redhat.com>
837 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
839 2021-02-05 Eli Zaretskii <eliz@gnu.org>
842 * elfedit.c (check_file):
843 * bucomm.c (get_file_size): Fix typos in comments.
845 2021-02-05 Alan Modra <amodra@gmail.com>
848 * arsup.c (ar_save): Use stat rather than lstat.
850 2021-02-03 Alan Modra <amodra@gmail.com>
855 * ar.c: Don't include libbfd.h.
856 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
857 bfd_stat rather than fstat on iostream. Move stat and fd tests
858 outside of _WIN32 ifdef. Delete skip_stat variable.
859 * arsup.c (temp_name, real_ofd): New static variables.
860 (ar_open): Use make_tempname and bfd_fdopenw.
861 (ar_save): Adjust to suit ar_open changes. Move stat output
863 * objcopy.c: Don't include libbfd.h.
864 (copy_file): Use bfd_stat.
866 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
869 * readelf.c (process_section_headers): Add 'R' and 'D' to
871 * testsuite/binutils-all/retain1a.d: Updated.
873 2021-01-30 Nick Clifton <nickc@redhat.com>
875 * README-how-to-make-a-release: Small updates after the 2.35.2
878 2021-01-28 Eli Zaretskii <eliz@gnu.org>
881 * windres.c (quot): Use double quotes to protect strings on
884 2021-01-28 Eli Zaretskii <eliz@gnu.org>
887 * bucomm.c (get_file_size): Add code to handle /dev/null on
889 * elfedit.c (check_file): Likewise.
891 2021-01-27 Nick Clifton <nickc@redhat.com>
893 * objcopy.c (copy_main): Remove conditional control of the calls
894 to free, simplifying the code and making it easier to detect
897 2021-01-26 Frederic Cambus <fred@statdns.com>
899 * objcopy.c (copy_main): Fix a double free happening when both
900 --localize-symbols and --globalize-symbols options are invoked
903 2021-01-24 Nick Clifton <nickc@redhat.com>
905 * README-how-to-make-a-release: Minor updates after the 2.36 release.
907 2021-01-16 Alan Modra <amodra@gmail.com>
909 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
911 2021-01-15 Alan Modra <amodra@gmail.com>
914 * readelf.c (uncompress_section_contents): Always call inflateEnd.
916 2021-01-14 Alexandre Oliva <oliva@gnu.org>
918 * MAINTAINERS: Update my email address.
920 2021-01-14 Nick Clifton <nickc@redhat.com>
922 * po/sv.po: Updated Swedish translation.
924 2021-01-13 Alan Modra <amodra@gmail.com>
926 * Makefile.in: Regenerate.
927 * doc/Makefile.in: Regenerate.
929 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
932 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
934 (i386_x64_trampoline): Add SEH annotations.
935 (struct mac): Add how_seh field.
936 (make_delay_head): If how_set field is true add SEh instructions.
938 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
941 * configure.ac: Use GNU_MAKE_JOBSERVER.
942 * aclocal.m4: Regenerated.
943 * configure: Likewise.
945 2021-01-12 Nick Clifton <nickc@redhat.com>
947 * po/fr.po: Updated French translation.
949 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
952 * configure: Regenerated.
954 2021-01-11 Nick Clifton <nickc@redhat.com>
956 * po/pt.po: Updated Portuguese translation.
957 * po/sr.po: Updated Serbian translation.
958 * po/uk.po: Updated Ukranian translation.
960 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
962 * configure: Regenerated.
964 2021-01-09 Nick Clifton <nickc@redhat.com>
966 * configure: Regenerate.
967 * po/binutils.pot: Regenerate.
969 2021-01-09 Nick Clifton <nickc@redhat.com>
971 * 2.36 release branch crated.
972 * README-how-to-make-a-release: Add note about updating Makefiles
974 * BRANCHES: Add binutils-2.36-branch.
976 2021-01-09 Alan Modra <amodra@gmail.com>
978 * configure: Regenerate.
980 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
982 * configure: Regenerate.
984 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
987 * objcopy.c (copy_object): Handle section symbols for
988 non-relocatable inputs.
989 * testsuite/binutils-all/readelf.exp (readelf_test): Check
990 is_elf_unused_section_symbols.
991 * testsuite/binutils-all/readelf.s-64: Updated.
992 * testsuite/binutils-all/readelf.ss: Likewise.
993 * testsuite/binutils-all/readelf.ss-64: Likewise.
994 * testsuite/binutils-all/readelf.s-64-unused: New file.
995 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
996 * testsuite/binutils-all/readelf.ss-unused: Likewise.
997 * testsuite/lib/binutils-common.exp
998 (is_elf_unused_section_symbols): New proc.
1000 2021-01-06 Reuben Thomas <rrt@sc3d.org>
1002 * binutils/readelf.c: Correct grammar in comment.
1004 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1006 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
1007 * doc/binutils.texi: Correct grammar.
1008 * readelf.c (process_version_sections): Correct spelling of auxiliary
1010 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
1012 2021-01-01 Alan Modra <amodra@gmail.com>
1014 Update year range in copyright notice of all files.
1016 For older changes see ChangeLog-2020
1018 Copyright (C) 2021 Free Software Foundation, Inc.
1020 Copying and distribution of this file, with or without modification,
1021 are permitted in any medium without royalty provided the copyright
1022 notice and this notice are preserved.
1028 version-control: never