1 2021-11-09 Nick Clifton <nickc@redhat.com>
3 * nm.c: Add --unicode option to control how unicode characters are
8 * binutils.texi: Document the new feature.
9 * NEWS: Document the new feature.
10 * testsuite/binutils-all/unicode.exp: New file.
11 * testsuite/binutils-all/nm.hex.unicode
12 * testsuite/binutils-all/strings.escape.unicode
13 * testsuite/binutils-all/objdump.highlight.unicode
14 * testsuite/binutils-all/readelf.invalid.unicode
16 2021-11-03 Tom Tromey <tromey@adacore.com>
18 * dwarf.c (display_debug_loc): Use section name in warnings.
20 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
22 * objdump.c (usage): --ctf now has an optional argument.
23 (main): Adjust accordingly.
24 (dump_ctf): Default it.
25 * doc/ctf.options.texi: Adjust.
27 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
29 * objdump.c (usage): --ctf-parent now takes a name, not a section.
30 (dump_ctf): Don't open a separate section; use the parent_name in
31 ctf_dict_open instead. Use ctf_archive_next, not ctf_archive_iter,
32 so we can pass down a member count.
33 (dump_ctf_archive_member): Add the member count; don't return
34 anything. Import parents into children no matter what the
35 parent's name, while still avoiding displaying the header for the
36 common parent name of ".ctf".
37 * readelf.c (usage): Adjust similarly.
38 (dump_section_as_ctf): Likewise.
39 (dump_ctf_archive_member): Likewise. Never stop iterating over
40 archive members, even if ctf_dump of one member fails.
41 * doc/ctf.options.texi: Adjust.
43 2021-10-19 Nick Clifton <nickc@redhat.com>
45 * nm.c (filter_symbols): Test for a NULL name before checking to
46 see if the symbol is __gnu_lto_slim.
47 * objcopy.c (filter_symbols): Likewise.
49 2021-09-30 Nick Clifton <nickc@redhat.com>
51 * objcopy.c (filter_symbols): Fail if attempting to dredefine
52 symbols in an LTO object file.
54 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
56 * configure: Regenerate.
58 2021-09-20 Andrew Burgess <andrew.burgess@embecosm.com>
60 * testsuite/binutils-all/riscv/riscv.exp: New file.
61 * testsuite/binutils-all/riscv/unknown.d: New file.
62 * testsuite/binutils-all/riscv/unknown.s: New file.
64 2021-09-07 Luis Machado <luis.machado@linaro.org>
66 Revert: [AArch64] MTE corefile support
68 2021-05-21 Luis Machado <luis.machado@linaro.org>
70 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
72 2021-08-11 Nick Clifton <nickc@redhat.com>
74 * po/pt.po: Updated Portuguese translation.
76 2021-08-10 Nick Clifton <nickc@redhat.com>
78 * po/sr.po: Updated Serbian translation.
80 2021-07-16 Nick Clifton <nickc@redhat.com>
82 * po/sv.po: Updated Swedish translation.
84 2021-07-14 Clément Chigot <clement.chigot@atos.net>
86 * dwarf.h (struct dwarf_section): Add XCOFF name.
87 * dwarf.c (struct dwarf_section_display): Update.
88 * objdump.c (load_debug_section): Add XCOFF name handler.
89 (dump_dwarf_section): Likewise.
91 2021-07-12 Nick Clifton <nickc@redhat.com>
93 * po/fr.po: Updated French translation.
95 2021-07-10 Alan Modra <amodra@gmail.com>
98 * dwarf.c (display_discr_list): Remove assertions. Delete "end"
99 parameter, use initial "data" pointer as the end. Formatting.
100 Don't count down bytes as they are read.
101 (read_and_display_attr_value): Adjust display_discr_list call.
102 (read_and_print_leb128): Don't pass __FILE__ and __LINE__ to
104 * dwarf.h (report_leb_status): Don't report file and line
105 numbers. Delete file and lnum parameters,
106 (READ_ULEB, READ_SLEB): Adjust.
108 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
110 * configure.ac: Check for strnlen declaration.
111 * configure, config.in: Regenerate.
113 2021-07-05 Alan Modra <amodra@gmail.com>
116 * dwarf.c (get_type_abbrev_from_form): Add cu_end parameter.
117 Check DW_FORM_ref1 etc. arg against cu_end rather than end of
118 section. Adjust all callers.
120 2021-07-03 Nick Clifton <nickc@redhat.com>
122 * configure: Regenerate.
123 * po/opcodes.pot: Regenerate.
124 * README-how-to-make-a-release: Update.
126 2021-07-03 Nick Clifton <nickc@redhat.com>
128 * 2.37 release branch created.
130 2021-07-02 Alan Modra <amodra@gmail.com>
133 * dwarf.c (get_type_signedness): Don't run off end of buffer
134 printing DW_FORM_string attribute.
136 2021-07-01 Nick Clifton <nickc@redhat.com>
139 * testsuite/binutils-all/debuginfod.exp: Replace -wK with -wk.
141 2021-07-01 Andrei Homescu <ah@immunant.com>
143 * readelf.c (process_archive): Reset file position to the
144 beginning when calling process_object for thin archive members.
145 * testsuite/binutils-all/readelf.exp: Add test.
146 * testsuite/binutils-all/readelf.h.thin: New file.
148 2021-06-30 Tom Tromey <tom@tromey.com>
150 * dwarf.c (read_and_display_attr_value): Handle
151 DW_FORM_implicit_const.
153 2021-06-30 Richard Henderson <richard.henderson@linaro.org>
155 * dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf
156 and DW_CFA_def_cfa_offset_sf have a signed offset.
158 2021-06-19 Alan Modra <amodra@gmail.com>
160 * dwarf.c (display_debug_lines_decoded): Use memcpy rather than
161 strncpy when trimming file name length to MAX_FILENAME_LENGTH.
162 Don't make an unnecessary copy when length is good.
164 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
166 * readelf.c (print_gnu_property_note): Handle
167 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
168 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
170 2021-06-15 Nick Clifton <nickc@redhat.com>
172 * readelf.c (get_note_type): Add support for NT_GO_BUILDID.
174 2021-06-15 Alan Modra <amodra@gmail.com>
176 * readelf.c (locate_dynamic_section, is_pie): New functions.
177 (get_file_type): Replace e_type parameter with filedata. Call
178 is_pie for ET_DYN. Update all callers.
179 (process_program_headers): Use local variables dynamic_addr and
180 dynamic_size, updating filedata on exit from function. Set
181 dynamic_size of 1 to indicate no dynamic section or segment.
182 Update tests of dynamic_size throughout.
183 * testsuite/binutils-all/x86-64/pr27708.dump: Update expected output.
185 2021-06-14 Eric Botcazou <ebotcazou@adacore.com>
187 * dwarf.c (struct abbrev_attr): Change type of implicit_const.
188 (add_abbrev_attr): Likewise.
189 (process_abbrev_set): Likewise.
190 (display_debug_abbrev): Adjust to above change.
192 2021-06-12 Alan Modra <amodra@gmail.com>
194 * readelf.c (process_file_header): Don't clear section_headers.
196 2021-06-12 Alan Modra <amodra@gmail.com>
198 * readelf.c (get_section_headers): Don't test e_shoff here, leave
199 that to get_32bit_section_headers or get_64bit_section_headers.
200 (process_object): Throw away section header read to print file
203 2021-06-11 Alan Modra <amodra@gmail.com>
205 * readelf.c (struct filedata): Move archive_file_offset and
206 archive_file_size earlier.
207 (free_filedata): Clear using memset.
209 2021-06-11 Alan Modra <amodra@gmail.com>
211 * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with..
212 (get_elf_symbols): ..this new function throughout.
213 (get_32bit_section_headers): Don't free section_headers.
214 (get_64bit_section_headers): Likewise.
215 (get_section_headers): New function, use throughout in place of
216 32bit and 64bit variants.
217 (get_dynamic_section): Similarly.
218 (process_section_headers): Don't free filedata memory here.
219 (get_file_header): Don't get section headers here..
220 (process_object): ..Read them here instead. Don't exit without
221 freeing filedata memory.
223 2021-06-09 Nick Clifton <nickc@redhat.com>
225 * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list.
227 2021-06-07 Jan Beulich <jbeulich@suse.com>
229 * dwarf.c (display_debug_aranges): Add u suffix to constant.
231 2021-05-29 Alan Modra <amodra@gmail.com>
233 * objdump (usage): Add missing \n.
235 2021-05-29 Alan Modra <amodra@gmail.com>
237 * readelf.c (parse_args): Call dwarf_select_sections_all on
238 --debug-dump without optarg.
239 (usage): Associate -w and --debug-dump options closely.
240 Split up help message. Remove extraneous blank lines around
242 * objdump.c (usage): Similarly.
244 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
246 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0
248 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
250 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
252 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000'
253 machine for disassembly.
254 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise.
255 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
256 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise.
258 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
261 * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9.
263 2021-05-27 Alan Modra <amodra@gmail.com>
265 * readelf (usage): Order -w letters to match --debug-dump= and
266 move common '=' for --debug-dump out of brackets.
268 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
271 * readelf.c (decode_x86_feature_2): Support
272 GNU_PROPERTY_X86_FEATURE_2_CODE16.
274 2021-05-23 Tiezhu Yang <yangtiezhu@loongson.cn>
276 * readelf.c (get_machine_name): Change Loongson Loongarch to
279 2021-05-21 Luis Machado <luis.machado@linaro.org>
281 * readelf.c (get_note_type): Add missing NT_ARM_* entries.
283 2021-05-21 Luis Machado <luis.machado@linaro.org>
285 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
287 2021-05-19 Eli Schwartz <eschwartz@archlinux.org>
289 * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set.
291 2021-05-19 Alan Modra <amodra@gmail.com>
294 * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return
295 param with map_return, and return map for DW_FORM_ref_addr.
296 (get_type_signedness): Adjust calls to get_type_abbrev_from_form.
297 Pass returned cu map start and end to recursive call.
298 (read_and_display_attr_value): Similarly.
300 2021-05-19 Alan Modra <amodra@gmail.com>
303 * sysdump.c (getBARRAY): Sanity check size against max.
304 (getINT): Avoid UB shift left.
306 2021-05-15 Alan Modra <amodra@gmail.com>
308 * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow.
311 2021-05-15 Alan Modra <amodra@gmail.com>
313 * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in
316 2021-05-15 Alan Modra <amodra@gmail.com>
318 * dwarf.c (display_debug_names): Complain when header length is
319 too small. Avoid pointer UB. Sanity check augmentation string,
320 CU table, TU table and foreign TU table sizes.
322 2021-05-15 Alan Modra <amodra@gmail.com>
324 * dwarf.c (display_debug_frames): Delete initial_length_size.
325 Avoid pointer UB. Constrain data reads to length given in header.
326 Sanity check cie header length. Only skip up to next FDE on
327 finding augmentation data too long.
329 2021-05-15 Alan Modra <amodra@gmail.com>
331 * dwarf.c (read_cie): Add more sanity checks to ensure data
332 pointer is not bumped past end.
334 2021-05-15 Alan Modra <amodra@gmail.com>
336 * dwarf.c (display_debug_ranges): Delete initial_length_size.
337 Correct fallback size calculated on finding a reloc. Constrain
338 data reads to length given in header. Avoid pointer UB.
340 2021-05-15 Alan Modra <amodra@gmail.com>
342 * dwarf.c (display_debug_rnglists_list): Avoid pointer UB.
344 2021-05-15 Alan Modra <amodra@gmail.com>
346 * dwarf.c (display_debug_str_offsets): Constrain reads to length
349 2021-05-15 Alan Modra <amodra@gmail.com>
351 * dwarf.c (display_debug_aranges): Delete initial_length_size.
352 Use end_ranges to constrain data reads to header length. Avoid
355 2021-05-15 Alan Modra <amodra@gmail.com>
357 * dwarf.c (display_loc_list): Avoid pointer UB. Correct check
358 before reading uleb length. Warn on excess length.
360 2021-05-15 Alan Modra <amodra@gmail.com>
362 * dwarf.c (display_debug_macro): Print strings that might not
363 be zero terminated with %*s. Don't bump curr if unterminated.
365 2021-05-15 Alan Modra <amodra@gmail.com>
367 * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size.
368 Simplify length sanity check, and check for too small lengths.
369 Constrain data reads to header length. Avoid pointer UB.
371 2021-05-15 Alan Modra <amodra@gmail.com>
373 * dwarf.c (display_debug_macinfo): Print strings that might not
374 be zero terminated with %*s. Don't bump curr if unterminated.
376 2021-05-15 Alan Modra <amodra@gmail.com>
378 * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size.
379 Simplify length check. Constrain reads to length given by header.
381 2021-05-15 Alan Modra <amodra@gmail.com>
383 * dwarf.c (display_debug_lines_decoded): Don't use strnlen when
384 we have already checked for NUL termination.
386 2021-05-15 Alan Modra <amodra@gmail.com>
388 * dwarf.c (read_debug_line_header): Delete initial_length_size.
389 Avoid pointer UB. Keep within length specified by header.
392 2021-05-15 Alan Modra <amodra@gmail.com>
394 * dwarf.c (process_debug_info): Always do the first CU length
395 scan for sanity checks. Remove initial_length_size var and
396 instead calculate end_cu. Use end_cu to limit data reads.
397 Delete now dead code checking length.
399 2021-05-15 Alan Modra <amodra@gmail.com>
401 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
403 2021-05-15 Alan Modra <amodra@gmail.com>
405 * bucomm.h (_mul_overflow): Define.
406 * dwarf.c (get_encoded_value): Avoid pointer UB.
408 2021-05-13 Alan Modra <amodra@gmail.com>
411 * dwarf.c (display_debug_str_offsets): Sanity check dwarf5
414 2021-05-13 Alan Modra <amodra@gmail.com>
417 * dwarf.c (display_debug_frames): Sanity check cie_off before
418 attempting to read cie.
420 2021-05-12 Alan Modra <amodra@gmail.com>
422 * dwarf.c (process_extended_line_op): Don't bump data pointer past
423 end when strnlen doesn't find string terminator.
424 (decode_location_expression): Remove dead code.
425 (skip_attr_bytes): Remove const from end param. Ensure data
426 pointer doesn't pass end.
427 (get_type_signedness): Remove const from end param.
428 (read_and_display_attr_value): Ensure data pointer doesn't pass end.
429 (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
430 (display_debug_pubnames_worker): Likewise.
431 (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
432 than blindly incrementing data pointer.
433 (display_debug_addr, display_debug_str_offsets): Likewise. Don't
434 compare pointers, compare lengths.
436 2021-05-12 Alan Modra <amodra@gmail.com>
438 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
439 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
440 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
441 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
442 SAFE_BYTE_GET followed by increment.
443 (process_debug_info): Likewise, and test bytes remaining before
444 incrementing section_begin rather than using pointer comparison.
445 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
446 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
448 2021-05-12 Alan Modra <amodra@gmail.com>
450 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
451 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
452 SAFE_BYTE_GET_AND_INC.
453 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
454 (process_debug_info, process_cu_tu_index): Likewise.
455 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
456 (byte_get, byte_get_little_endian, byte_get_big_endian),
457 (byte_get_signed): Make size param unsigned. Remove code dealing
459 (byte_get_64): Delete.
460 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
461 (byte_get, byte_get_little_endian, byte_get_big_endian),
462 (byte_get_signed): Update prototypes.
463 (byte_get_64): Delete.
465 2021-05-12 Alan Modra <amodra@gmail.com>
468 * dwarf.c (display_debug_frames): Don't compare pointers derived
469 from user input. Test offset against bounds instead.
471 2021-05-12 Alan Modra <amodra@gmail.com>
474 * dwarf.c (display_formatted_table): Test for data >= end rather
476 (process_extended_line_op): Likewise.
477 (display_debug_lines_raw): Likewise.
478 (display_debug_lines_decoded): Likewise.
480 2021-05-12 Alan Modra <amodra@gmail.com>
483 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
484 Sanity check section size for version and padding too. Correct
485 index sanity check. Handle multiple tables in .debug_str_offsets.
487 2021-05-11 Hans-Peter Nilsson <hp@axis.com>
489 * dwarf.c (process_abbrev_set): Properly parenthesize before
490 casting to unsigned long.
492 2021-05-11 Alan Modra <amodra@gmail.com>
495 * dwarf.c (process_abbrev_set): Replace start and end parameters
496 with section, abbrev_base, abbrev_size, abbrev_offset. Update
497 all callers. Sanity check parameters correctly and emit warnings
499 (process_debug_info): ..here.
501 2021-05-10 Thomas Wolff <towo@towo.net>
506 * windres.c (quot): Revert previous delta. Do not use double
507 quotes when spaces are detected in options.
508 * doc/binutils.texi (windres): Remove suggestion that the
509 --preprocessor option can take arguments.
511 2021-05-10 Alan Modra <amodra@gmail.com>
513 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
514 END rather than adding amount to PTR.
515 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
517 2021-05-09 Alan Modra <amodra@gmail.com>
519 * objcopy.c (eq_string): Delete.
520 (create_symbol_htab): Use htab_eq_string.
522 2021-05-08 Mike Frysinger <vapier@gentoo.org>
524 * README-how-to-make-a-release: Update html & pdf entries.
526 2021-05-08 Mike Frysinger <vapier@gentoo.org>
528 * doc/Makefile.am (html-local, binutils/index.html): New targets.
529 * doc/Makefile.in: Regenerate.
531 2021-05-08 Mike Frysinger <vapier@gentoo.org>
533 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
534 * doc/Makefile.in: Regenerate.
536 2021-05-07 Nick Clifton <nickc@redhat.com>
538 * readelf.c (no_processor_specific_unwind): New function.
539 (process_unwind): Use no_processor_specific_unwind for X86
542 2021-05-07 Michael Forney <mforney@mforney.org>
544 * dwarf.c: Don't omit second operand of '?' operator.
546 2021-04-30 Nick Clifton <nickc@redhat.com>
549 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
552 2021-04-29 Nick Clifton <nickc@redhat.com>
555 * doc/binutils.texi (windres): Correct the description of the
556 default value of the --preprocessor argument.
558 2021-04-27 Nick Clifton <nickc@redhat.com>
561 * dwarf.c (parse_gnu_debuglink): Reject empty names.
562 (parse_gnu_debugaltlink): Likewise.
564 2021-04-22 Clément Chigot <clement.chigot@atos.net>
566 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
569 2021-04-21 Nick Lott <nick.lott@gmail.com>
572 * readelf.c (sym_base): New variable.
573 (enum print_mode): Add more modes.
574 (print_vma): Add suport for new modes.
575 (options): Add sym-base.
576 (usage): Add sym-base.
577 (parse_args): Add support for --sym-base.
578 (print_dynamic_symbol_size): New function.
579 (print_dynamic_symbol): Use new function.
580 * doc/binutils.texi: Document the new feature.
581 * NEWS: Mention the new feature.
583 2021-04-21 Nick Clifton <nickc@redhat.com>
585 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
586 Adjust expected output to allow for named section symbols.
587 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
589 * testsuite/binutils-all/readelf.s-64: Likewise.
590 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
591 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
592 * testsuite/binutils-all/readelf.ss-unused: Likewise.
594 2021-04-21 Luo Longjun <luolongjun@huawei.com>
596 * readelf.c (print_dynamic_symbol): Print the section name for
597 section symbols without a name of their own.
599 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
601 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
602 add him to Past Maintainers.
603 Update my email address.
605 2021-04-19 Nick Clifton <nickc@redhat.com>
608 * arsup.c (ar_addmod): Enable plugin support, if available.
610 2021-04-19 Nick Clifton <nickc@redhat.com>
612 * rename.c: (get_stat_atime_ns): Add prototype.
613 (get_stat_mtime_ns): Add prototype.
615 2021-04-16 Alan Modra <amodra@gmail.com>
618 * rename.c (get_stat_atime, get_stat_mtime): Make static.
619 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
621 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
624 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
625 (get_stat_mtime_ns): Likewise.
627 2021-04-15 Alan Modra <amodra@gmail.com>
630 * configure.ac: Check for sys/time.h and utimensat. Use standard
631 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
632 members of struct stat.
633 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
634 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
635 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
636 (get_stat_atime, get_stat_mtime): Likewise.
637 (set_times): Choose first available of utimensat, utimes, utime.
638 Use above inline functions to set timespec and timeval values.
639 * configure: Regenerate.
640 * config.in: Regenerate.
641 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
642 file timestamp when --preserve-dates is used.
644 2021-04-15 Alan Modra <amodra@gmail.com>
647 * rename.c (smart_rename): When TO and FROM are equal, just set
649 * objcopy.c (strip_main, copy_main): Always call smart_rename.
651 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
654 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
655 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
656 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
659 2021-04-14 Mark Harmstone <mark@harmstone.com>
662 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
663 end of the structure.
665 2021-04-14 Frederic Cambus <fred@statdns.com>
667 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
668 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
670 2021-04-14 Alan Modra <amodra@gmail.com>
673 * objdump.c (show_line): Don't limit paths to PATH_MAX.
674 * readelf.c (struct filedata): Change program_interpreter from
675 a char array to a char pointer.
676 (process_program_headers): Sanity check PT_INTERP p_filesz.
677 Malloc program_interpreter using p_filesz and read directly from
679 (process_dynamic_section): Check program_interpreter is non-NULL.
680 (free_filedata): New function, split out from..
681 (process_object): ..here.
682 (close_debug_file): Call free_filedata.
683 * sysdep.h: Don't include sys/param.h.
684 (PATH_MAX): Don't define.
685 * configure.ac: Don't check for sys/param.h.
686 * configure: Regenerate.
688 2021-04-13 Frederic Cambus <fred@statdns.com>
690 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
691 check for NT_NETBSD_PAX.
693 2021-04-12 Alan Modra <amodra@gmail.com>
695 * configure.ac (--enable-checking): Add support.
696 * config.in: Regenerate.
697 * configure: Regenerate.
699 2021-04-09 Alan Modra <amodra@gmail.com>
701 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
703 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
704 (disassemble_section, disassemble_data): Likewise.
706 2021-04-06 Alan Modra <amodra@gmail.com>
708 * objdump.c (objdump_symbol_at_address): Return asymbol*.
710 2021-04-06 Alan Modra <amodra@gmail.com>
712 * NEWS: Mention C99 requirement.
713 * README: Likewise. Modernise examples and "Reporting bugs".
715 2021-04-05 Alan Modra <amodra@gmail.com>
717 * configure.ac: Assume long long is available. Don't test for
718 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
719 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
720 strcoll, setlocale, setmode or location of time_t. Don't check
721 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
722 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
723 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
724 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
725 locale.h, string.h and stdlib.h unconditionally. Remove various
726 fallback declarations. Assume long long is available.
727 * addr2line.c: Don't test HAVE_SETLOCALE.
729 * coffdump.c: Likewise.
730 * dlltool.c: Likewise.
731 * dllwrap.c: Likewise.
732 * elfedit.c: Likewise.
734 * objcopy.c: Likewise.
735 * objdump.c: Likewise.
736 * readelf.c: Likewise.
738 * srconv.c: Likewise.
739 * strings.c: Likewise.
740 * sysdump.c: Likewise.
741 * windmc.c: Likewise.
742 * windres.c: Likewise.
743 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
744 * dwarf.c: Include limits.h unconditionally. Assume long long
746 * nm.c: Don't test HAVE_STRCOLL.
747 * readelf.c: Don't test HAVE_WCHAR_H.
748 * strings.c: Assume long long is available.
749 * syslex.l: Include string.h unconditionally.
750 * aclocal.m4: Regenerate.
751 * config.in: Regenerate.
752 * configure: Regenerate.
753 * Makefile.in: Regenerate.
754 * doc/Makefile.in: Regenerate.
756 2021-04-01 Martin Liska <mliska@suse.cz>
758 * elfcomm.h (strneq): Remove strneq and use startswith.
759 * readelf.c (ia64_process_unwind): Likewise.
760 (process_note): Likewise.
762 2021-04-01 Martin Liska <mliska@suse.cz>
764 * dllwrap.c: Use startswith function.
765 * objcopy.c (is_dwo_section): Likewise.
766 (handle_remove_section_option): Likewise.
767 (copy_main): Likewise.
768 * objdump.c (is_significant_symbol_name): Likewise.
770 2021-04-01 Martin Liska <mliska@suse.cz>
772 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
774 (display_debug_lines_decoded): Likewise.
775 (display_debug_links): Likewise.
776 * elfcomm.c (setup_archive): Likewise.
777 * elfcomm.h (const_strneq): Likewise.
778 * readelf.c (process_section_headers): Likewise.
779 (slurp_ia64_unwind_table): Likewise.
780 (slurp_hppa_unwind_table): Likewise.
781 (decode_arm_unwind): Likewise.
782 (display_debug_section): Likewise.
783 (process_note): Likewise.
785 2021-03-31 Alan Modra <amodra@gmail.com>
787 * sysdep.h (POISON_BFD_BOOLEAN): Define.
788 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
789 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
790 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
791 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
792 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
793 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
794 * windmc.c, * windmc.h, * windres.c, * winduni.c,
795 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
796 and TRUE with true throughout.
798 2021-03-31 Alan Modra <amodra@gmail.com>
800 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
803 2021-03-31 Alan Modra <amodra@gmail.com>
805 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
807 2021-03-29 Alan Modra <amodra@gmail.com>
809 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
810 * dwarf.c (read_and_display_attr_value): Likewise.
811 (display_debug_str_offsets): Likewise.
812 * objdump.c (dump_bfd): Likewise.
813 * readelf.c (dump_section_as_strings): Likewise.
814 (dump_section_as_bytes): Likewise.
816 2021-03-29 Alan Modra <amodra@gmail.com>
818 * objdump.c (process_links): Use type int.
819 * readelf.c (request_dump): Don't increment do_dump, set it.
820 * windint.h (target_is_bigendian): Use type bfd_boolean.
821 * windmc.c (target_is_bigendian): Likewise.
822 * windres.c (target_is_bigendian): Likewise.
824 2021-03-22 Martin Liska <mliska@suse.cz>
826 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
828 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
829 * objcopy.c (is_mergeable_note_section): Likewise.
830 * objdump.c (dump_dwarf_section): Likewise.
831 * prdbg.c (pr_method_type): Likewise.
832 (pr_class_baseclass): Likewise.
833 (tg_class_baseclass): Likewise.
834 * readelf.c (process_lto_symbol_tables): Likewise.
835 * stabs.c (ULLHIGH): Likewise.
836 (parse_stab_argtypes): Likewise.
837 (stab_demangle_function_name): Likewise.
839 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
841 * readelf.c (get_machine_name): Add EM_INTELGT.
843 2021-03-18 Nick Clifton <nickc@redhat.com>
846 * readelf.c (dump_section_as_strings): Mention separate filename.
847 (dump_section_as_bytes): Likewise.
848 (dump_section_as_ctf): Likewise.
849 (initialise_dumkps_byname): Only issue a warning for missing
850 sections if processing the main file.
851 (process_section_contents): Only issue a warning for unsumped
852 section numbers in the main file.
853 (initialise_dump_sects): New function. Contains code extracted
855 (process_object): ... here. Also call initialise_dump_sects for
858 2021-03-16 Nick Clifton <nickc@redhat.com>
861 * readelf.c (display_debug_section): Also retain .debug_addr
864 2021-03-16 Nick Clifton <nickc@redhat.com>
867 * readelf.c (process_section_contents): Only dump debug
868 information for separate files unless process_links is enabled.
869 (process_object): Always call process_section_contents for
872 2021-03-15 Nick Clifton <nickc@redhat.com>
875 * nm.c (FORMAT_JUST_SYMBOLS): Define.
876 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
877 (long_options): Add just-symbols.
878 (set_output_format): Add support for just-symbols.
879 (get_print_format): Likewise.
880 (do_not_print_object_filename): New function.
881 (do_not_print_archive_filename): New function.
882 (do_not_print_archive_member): New function.
883 (do_not_print_symbol_filename): New function.
884 (just_print_symbol_name): New function.
885 (main): Handle --just-symbols.
886 * NEWS: Mention the new feature.
887 * doc/binutils.texi: Document the new feature.
889 2021-03-12 Clément Chigot <clement.chigot@atos.net>
891 * od-xcoff.c: Replace RTB by TRL entry.
893 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
894 Andrew Burgess <andrew.burgess@embecosm.com>
896 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
898 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
899 Andrew Burgess <andrew.burgess@embecosm.com>
901 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
903 2021-03-05 Nick Clifton <nickc@redhat.com>
906 * dwarf.c (display_debug_macro): Handle the displaying of
907 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
908 .debug_macro.dwo sections.
910 2021-03-04 Nick Clifton <nickc@redhat.com>
913 * objdump.c (process_links): New variable.
914 (usage): Add --process-links.
915 (long_options): Likewise.
916 (dump_bfd): Stop processing once the bfd has been loaded unless
917 this is the main file or process_links has been enabled.
918 (main): Handle the process-links option.
919 * readelf.c (process_links): New variable.
920 (struct filedata): Add is_separate field.
921 (options): Add --process-links.
923 (parse_args): Likewise.
924 (process_file_header): Include the filename when dumping
925 information for separate debuginfo files.
926 (process_program_headers): Likewise.
927 (process_section_headers): Likewise.
928 (process_section_groups): Likewise.
929 (process_relocs): Likewise.
930 (process_dynamic_section): Likewise.
931 (process_version_sections): Likewise.
932 (display_lto_symtab): Likewise.
933 (process_symbol_table): Likewise.
934 (process_syminfo): Likewise.
935 (initialise_dumps_by_name): Likewise.
936 (process_section_contents): Likewise.
937 (process_notes_at): Likewise.
938 (process_notes): Likewise.
939 (open_file): Add is_separate parameter. Use to initialise the
940 is_separate field in the filedata structure.
941 (open_deug): Update call to open_file.
942 (process_object): Add processing of the contents of separate
943 debuginfo files, gated by the process_links variable.
944 (process_archive): Update call to open_file.
945 (process_file): Initialise the is_separate field in the filedata
947 * dwarf.c (load_separate_debug_info_file): Only report the
948 loading of a separate file if debug links are being dumped.
949 * objcopy.c (keep_section_symbols): New variable.
950 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
951 (strip_options): Add keep-section-symbols.
952 (copy_options): Likewise.
953 (copy_usage): Likewise.
954 (strip_usage): Likewise.
955 (copy_object): Keep section symbols if requested by command line
957 (strip_main): Handle --keep-section-symbols.
958 (copy_main): Likewise.
959 * doc/binutils.texi: Document the new options.
960 * NEWS: Mention the new features.
961 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
962 Update options passed to objdump. Use diff rather than cmp to
963 compare the dumped data.
964 * testsuite/binutils-all/objdump.WK2: Update regexp.
965 * testsuite/binutils-all/objdump.WK3: Update regexp.
966 * testsuite/binutils-all/objdump.exp: Use --process-links
967 instead of --dwarf=follow-links.
968 * testsuite/binutils-all/readelf.exp (readelf_test): Include
969 readelf's output in the log when the test fails.
970 Add the -P option to the -wKis test.
971 * testsuite/binutils-all/readelf.wKis: Update expected output.
973 2021-03-03 Alan Modra <amodra@gmail.com>
976 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
977 * NEWS: Mention feature.
979 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
982 * dwarf.c (load_separate_debug_info): Issue warning only if
983 do_debug_links is set.
984 * testsuite/binutils-all/compress.exp: Run objdump and readelf
985 with missing debug file.
987 2021-03-01 Alan Modra <amodra@gmail.com>
990 * doc/binutils.texi: Add nm --with-symbol-versions and
991 --without-symbol-versions documentation.
992 * nm.c (with_symbol_versions): New variable.
993 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
994 (long_options): Make --with-symbol-versions entry twiddle the flag.
995 Add --without-symbol-versions.
996 (print_symname): Strip version when !with_symbol_versions. Add
997 dynamic version info under control of with_symbol_versions.
998 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
1000 2021-02-26 Fangrui Song <maskray@google.com>
1003 * readelf.c (quiet): New option flag.
1004 (enum long_option_values): New enum to hold long option value.
1005 (long_options): Add --quiet.
1006 (usage): Mention --quiet.
1007 (display_rel_file): If quiet is enabled, suppress "no symbols".
1008 (main): Handle the new option.
1009 * NEWS: Mention --quiet.
1010 * docs/binutils.texi: Document --quiet.
1012 2021-02-26 Tom de Vries <tdevries@suse.de>
1014 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
1016 2021-02-26 Tom de Vries <tdevries@suse.de>
1019 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
1021 (read_and_display_attr_value): Likewise.
1023 2021-02-25 Nick Clifton <nickc@redhat.com>
1025 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
1027 (read_and_display_attr_value): Handle sup forms.
1028 (display_debug_sup): New function. Displays the contents of a
1030 (load_debug_sup_file): New function. Loads the contents of a file
1031 referenced by a .debug_sup section.
1032 (check_for_and_load_links): Call load_debug_sup_file.
1033 (debug_displays): Add entry for .debug_sup.
1034 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
1035 * readelf.c (process_section_headers): Add support for debug_sup.
1036 * doc/debug.options.texi: Note that the =links option will display
1037 the contents of .debug_sup sections.
1038 * NEWS: Mention the new support.
1040 2021-02-25 Alan Modra <amodra@gmail.com>
1043 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
1045 2021-02-24 Nick Clifton <nickc@redhat.com>
1048 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
1049 when adding together the section sizes.
1051 2021-02-24 Nick Clifton <nickc@redhat.com>
1053 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
1055 * readelf.c (print_gnu_build_attribute_description): Likewise.
1057 2021-02-24 Alan Modra <amodra@gmail.com>
1058 Siddhesh Poyarekar <siddhesh@gotplt.org>
1061 * bucomm.h (smart_rename): Update prototype.
1062 * rename.c (smart_rename): Add fromfd and preserve_dates params.
1063 Pass fromfd and target_stat to simple_copy. Call set_times
1064 when preserve_dates.
1065 (simple_copy): Accept fromfd rather than from filename. Add
1066 target_stat param. Rewind fromfd rather than opening. Open
1067 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
1068 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
1069 closing output temp file, and pass tmpfd to smart_rename.
1070 * arsup.c (temp_fd): Rename from real_fd.
1071 (ar_save): Dup temp_fd and pass to smart_rename.
1072 * objcopy.c (strip_main, copy_main): Likewise, and pass
1075 2021-02-24 Alan Modra <amodra@gmail.com>
1078 * rename.c: Tidy throughout.
1079 (smart_rename): Always copy. Remove windows specific code.
1081 2021-02-20 Alan Modra <amodra@gmail.com>
1083 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
1084 (run_dump_test): Fail if expecting errors from a file like we do
1085 for error strings, if no error is seen.
1087 2021-02-19 Alan Modra <amodra@gmail.com>
1089 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
1091 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
1093 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
1095 * arsup.c (ar_save): Likewise.
1096 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
1097 temporary file and adjust call to SMART_RENAME.
1098 (copy_main): Likewise.
1099 * rename.c [!S_ISLNK]: Remove definitions.
1100 (try_preserve_permissions): Remove function.
1101 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
1102 rename system call only if TO does not exist.
1103 * bucomm.h (smart_rename): Adjust declaration.
1105 2021-02-18 Nick Clifton <nickc@redhat.com>
1107 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
1108 address that is higher than the end address.
1110 2021-02-17 Alan Modra <amodra@gmail.com>
1112 * dwarf.c: Include limits.h.
1113 (CHAR_BIT): Provide backup define.
1114 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
1115 signed overflow checking.
1116 * testsuite/binutils-all/pr26548.s,
1117 * testsuite/binutils-all/pr26548.d,
1118 * testsuite/binutils-all/pr26548e.d: New tests.
1119 * testsuite/binutils-all/readelf.exp: Run them.
1120 (readelf_test): Drop unused "xfails" parameter. Update all uses.
1122 2021-02-16 Jan Beulich <jbeulich@suse.com>
1124 * dwarf.c (process_debug_info): Initialize "dwo_id".
1126 2021-02-15 Alan Modra <amodra@gmail.com>
1128 * objdump.c (load_specific_debug_section): Don't call
1129 bfd_cache_section_contents. Rearrange so that
1130 bfd_get_full_section_contents is not called on path where
1131 bfd_simple_get_relocated_section_contents is called.
1132 Don't set section->user_data.
1133 (free_debug_section): Always free section->start. Don't twiddle
1135 * readelf.c (load_specific_debug_section): Don't set user_data.
1136 * dwarf.h (struct dwarf_section): Remove use_data field.
1137 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
1139 2021-02-15 Alan Modra <amodra@gmail.com>
1141 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
1142 * testsuite/binutils-all/objdump.exp: Likewise.
1144 2021-02-14 Alan Modra <amodra@gmail.com>
1146 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
1147 to the symbol array.
1148 (slurp_dynamic_symtab): Likewise.
1149 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
1151 2021-02-14 Alan Modra <amodra@gmail.com>
1153 * Makefile.in: Regenerate.
1154 * doc/Makefile.in: Regenerate.
1156 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1158 * aclocal.m4: Regenerate.
1160 2021-02-12 Nick Clifton <nickc@redhat.com>
1162 * configure.ac (follow-debug-links): Add option to enable or
1163 disable the following of debug links by default. Set the
1164 default for the option to be 'follow'.
1165 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
1166 (dwarf_select_sections_by_names): Add no-follow-links option.
1167 (dwarf_select_sections_by_letter): Add 'N' option.
1168 * objdump.c (usage): Add conditional text describing the
1169 follow links option.
1170 (slurp_symtab): Ensure that there is a NULL entry at the end
1171 of the symbol table.
1172 (slurp_dynamic_symtab): Likewise.
1173 (dump_bfd): When extending the symbol table, ensure that there
1174 is still a NULL entry at the end.
1175 * readelf.c (usage): Add conditional text describing the
1176 follow links option.
1177 * doc/binutils.texi: Update documentation for objcopy and
1179 * doc/debug.options.texi: Update documentation of the
1180 follow-links option.
1181 * config.in: Regenerate.
1182 * configure: Regenerate.
1183 * testsuite/binutils-all/compress.exp: Add the -WN option to
1184 objdump command lines that are not expecting to follow links.
1185 * testsuite/binutils-all/readelf.exp: Add the
1186 --debug-dump=no-follow-links option to tests that are not
1187 expecting to follow debug links.
1188 * NEWS: Mention the new behaviour.
1190 2021-02-12 Alan Modra <amodra@gmail.com>
1192 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
1193 gas or ld fails to build a testcase rather than "unresolved".
1194 Report "fail" when readelf returns an error status rather than
1196 * testsuite/binutils-all/ar.exp: Likewise.
1197 * testsuite/binutils-all/compress.exp: Likewise.
1198 * testsuite/binutils-all/readelf.exp: Likewise.
1200 2021-02-12 Alan Modra <amodra@gmail.com>
1202 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
1203 "c" with "ccc" labels.
1205 2021-02-12 Tom de Vries <tdevries@suse.de>
1207 * dwarf.h (debug_info): Fix typo in comment.
1209 2021-02-12 Tom de Vries <tdevries@suse.de>
1211 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
1214 2021-02-12 Tom de Vries <tdevries@suse.de>
1216 * dwarf.c (process_debug_info): Print DWO ID.
1218 2021-02-11 Alan Modra <amodra@gmail.com>
1223 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
1224 Use bfd_malloc_and_get_section.
1225 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
1226 check namesz. Return NULL if descsz is too small. Ensure
1227 string table is terminated.
1228 (elf32_avr_get_device_info): Formatting. Add note_size param.
1230 (elf32_avr_dump_mem_usage): Adjust to suit.
1232 2021-02-10 Tom de Vries <tdevries@suse.de>
1235 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
1237 2021-02-10 Tom de Vries <tdevries@suse.de>
1240 * dwarf.c (display_debug_ranges): Filter range lists according to
1243 2021-02-09 Tom de Vries <tdevries@suse.de>
1246 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
1248 2021-02-09 Tom de Vries <tdevries@suse.de>
1251 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
1252 DW_UT_split_compile.
1254 2021-02-09 Alan Modra <amodra@gmail.com>
1256 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
1259 2021-02-07 Alan Modra <amodra@gmail.com>
1261 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
1262 uninitialised on invalid input.
1264 2021-02-06 Alan Modra <amodra@gmail.com>
1267 * rename.c (smart_rename): Test for existence and type of output
1270 2021-02-05 Nick Clifton <nickc@redhat.com>
1272 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
1274 2021-02-05 Eli Zaretskii <eliz@gnu.org>
1277 * elfedit.c (check_file):
1278 * bucomm.c (get_file_size): Fix typos in comments.
1280 2021-02-05 Alan Modra <amodra@gmail.com>
1283 * arsup.c (ar_save): Use stat rather than lstat.
1285 2021-02-03 Alan Modra <amodra@gmail.com>
1290 * ar.c: Don't include libbfd.h.
1291 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
1292 bfd_stat rather than fstat on iostream. Move stat and fd tests
1293 outside of _WIN32 ifdef. Delete skip_stat variable.
1294 * arsup.c (temp_name, real_ofd): New static variables.
1295 (ar_open): Use make_tempname and bfd_fdopenw.
1296 (ar_save): Adjust to suit ar_open changes. Move stat output
1298 * objcopy.c: Don't include libbfd.h.
1299 (copy_file): Use bfd_stat.
1301 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
1304 * readelf.c (process_section_headers): Add 'R' and 'D' to
1306 * testsuite/binutils-all/retain1a.d: Updated.
1308 2021-01-30 Nick Clifton <nickc@redhat.com>
1310 * README-how-to-make-a-release: Small updates after the 2.35.2
1313 2021-01-28 Eli Zaretskii <eliz@gnu.org>
1316 * windres.c (quot): Use double quotes to protect strings on
1319 2021-01-28 Eli Zaretskii <eliz@gnu.org>
1322 * bucomm.c (get_file_size): Add code to handle /dev/null on
1324 * elfedit.c (check_file): Likewise.
1326 2021-01-27 Nick Clifton <nickc@redhat.com>
1328 * objcopy.c (copy_main): Remove conditional control of the calls
1329 to free, simplifying the code and making it easier to detect
1332 2021-01-26 Frederic Cambus <fred@statdns.com>
1334 * objcopy.c (copy_main): Fix a double free happening when both
1335 --localize-symbols and --globalize-symbols options are invoked
1338 2021-01-24 Nick Clifton <nickc@redhat.com>
1340 * README-how-to-make-a-release: Minor updates after the 2.36 release.
1342 2021-01-16 Alan Modra <amodra@gmail.com>
1344 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
1346 2021-01-15 Alan Modra <amodra@gmail.com>
1349 * readelf.c (uncompress_section_contents): Always call inflateEnd.
1351 2021-01-14 Alexandre Oliva <oliva@gnu.org>
1353 * MAINTAINERS: Update my email address.
1355 2021-01-14 Nick Clifton <nickc@redhat.com>
1357 * po/sv.po: Updated Swedish translation.
1359 2021-01-13 Alan Modra <amodra@gmail.com>
1361 * Makefile.in: Regenerate.
1362 * doc/Makefile.in: Regenerate.
1364 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
1367 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
1369 (i386_x64_trampoline): Add SEH annotations.
1370 (struct mac): Add how_seh field.
1371 (make_delay_head): If how_set field is true add SEh instructions.
1373 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1376 * configure.ac: Use GNU_MAKE_JOBSERVER.
1377 * aclocal.m4: Regenerated.
1378 * configure: Likewise.
1380 2021-01-12 Nick Clifton <nickc@redhat.com>
1382 * po/fr.po: Updated French translation.
1384 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1387 * configure: Regenerated.
1389 2021-01-11 Nick Clifton <nickc@redhat.com>
1391 * po/pt.po: Updated Portuguese translation.
1392 * po/sr.po: Updated Serbian translation.
1393 * po/uk.po: Updated Ukranian translation.
1395 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1397 * configure: Regenerated.
1399 2021-01-09 Nick Clifton <nickc@redhat.com>
1401 * configure: Regenerate.
1402 * po/binutils.pot: Regenerate.
1404 2021-01-09 Nick Clifton <nickc@redhat.com>
1406 * 2.36 release branch crated.
1407 * README-how-to-make-a-release: Add note about updating Makefiles
1409 * BRANCHES: Add binutils-2.36-branch.
1411 2021-01-09 Alan Modra <amodra@gmail.com>
1413 * configure: Regenerate.
1415 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1417 * configure: Regenerate.
1419 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1422 * objcopy.c (copy_object): Handle section symbols for
1423 non-relocatable inputs.
1424 * testsuite/binutils-all/readelf.exp (readelf_test): Check
1425 is_elf_unused_section_symbols.
1426 * testsuite/binutils-all/readelf.s-64: Updated.
1427 * testsuite/binutils-all/readelf.ss: Likewise.
1428 * testsuite/binutils-all/readelf.ss-64: Likewise.
1429 * testsuite/binutils-all/readelf.s-64-unused: New file.
1430 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
1431 * testsuite/binutils-all/readelf.ss-unused: Likewise.
1432 * testsuite/lib/binutils-common.exp
1433 (is_elf_unused_section_symbols): New proc.
1435 2021-01-06 Reuben Thomas <rrt@sc3d.org>
1437 * binutils/readelf.c: Correct grammar in comment.
1439 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1441 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
1442 * doc/binutils.texi: Correct grammar.
1443 * readelf.c (process_version_sections): Correct spelling of auxiliary
1445 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
1447 2021-01-01 Alan Modra <amodra@gmail.com>
1449 Update year range in copyright notice of all files.
1451 For older changes see ChangeLog-2020
1453 Copyright (C) 2021 Free Software Foundation, Inc.
1455 Copying and distribution of this file, with or without modification,
1456 are permitted in any medium without royalty provided the copyright
1457 notice and this notice are preserved.
1463 version-control: never