1 2022-01-07 Pavel Mayorov <pmayorov@cloudlinux.com>
4 * dwarf.c: Revert previous delta.
5 (debug_get_real_type): Reject indirect types that point to
7 (debug_get_type_name, debug_get_type_size, debug_write_type):
10 2022-01-06 Nick Clifton <nickc@redhat.com>
12 * debug.c (debug_write_type): Allow for malicious recursion via
15 2022-01-04 Nick Clifton <nickc@redhat.com>
18 * dwarf.c (load_build_id_debug_file): Remove spurious printf.
20 2021-12-16 Nick Clifton <nickc@redhat.com>
23 * dwarf.c (load_build_id_debug_file): New function.
24 (try_build_id_prefix): New function.
25 (check_for_and_load_links): Call load_build_id_debug_file.
26 (debug_displays): Add entry for .note.gnu.build-id.
27 * dwarf.h (enum dwarf_section_display_enum): Add
29 * testsuite/binutils-all/debuginfod.exp (test_fetch_debuglink):
30 Fix regexp for loads via debuglink section.
32 2021-12-03 Chenghua Xu <xuchenghua@loongson.cn>
34 * MAINTAINERS: Add myself and Zhensong Liu
35 as the LoongArch maintainer.
37 2021-12-02 Nick Clifton <nickc@redhat.com>
40 * dwarf.c (process_cu_tu_index): Add test for overruning section
41 whilst processing slots.
43 2021-11-30 Roland McGrath <mcgrathr@google.com>
45 * doc/local.mk: Give each man page target its missing dependency on
48 2021-11-30 Nick Clifton <nickc@redhat.com>
50 * dwarf.c (find_debug_info_for_offset): Use dwarf_vma type for
51 offsets, sizes and ranges.
52 (display_loc_list): Likewise. Also use print_dwarf_vma to print
54 (display_loclists_list): Likewise.
55 (display_loc_list_dwo): Likewise.
56 (display_debug_str): Likewise.
57 (display_debug_aranges): Likewise.
58 (display_debug_ranges_list): Likewise.
59 (display_debug_rnglists_list): Likewise.
60 (display_debug_ranges): Likewise.
62 2021-11-29 Nick Clifton <nickc@redhat.com>
65 * strings.c (usage): Update desciption of -n option.
66 * doc/binutils.texi: Likewise.
68 2021-11-24 Nick Clifton <nickc@redhat.com>
71 * sysdump.c (getCHARS): Check for an out of bounds read.
73 2021-11-16 Fangrui Song <maskray@google.com>
75 * readelf.c (enum relocation_type): New.
76 (slurp_relr_relocs): New.
77 (dump_relocations): Change is_rela to rel_type.
79 (dynamic_relocations): Add DT_RELR.
80 (process_relocs): Check SHT_RELR and DT_RELR.
81 (process_dynamic_section): Store into dynamic_info for
82 DT_RELR/DT_RELRENT/DT_RELRSZ.
84 2021-11-09 Nick Clifton <nickc@redhat.com>
86 * nm.c: Add --unicode option to control how unicode characters are
88 * objdump.c: Likewise.
89 * readelf.c: Likewise.
90 * strings.c: Likewise.
91 * binutils.texi: Document the new feature.
92 * NEWS: Document the new feature.
93 * testsuite/binutils-all/unicode.exp: New file.
94 * testsuite/binutils-all/nm.hex.unicode
95 * testsuite/binutils-all/strings.escape.unicode
96 * testsuite/binutils-all/objdump.highlight.unicode
97 * testsuite/binutils-all/readelf.invalid.unicode
99 2021-11-03 Tom Tromey <tromey@adacore.com>
101 * dwarf.c (display_debug_loc): Use section name in warnings.
103 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
105 * objdump.c (usage): --ctf now has an optional argument.
106 (main): Adjust accordingly.
107 (dump_ctf): Default it.
108 * doc/ctf.options.texi: Adjust.
110 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
112 * objdump.c (usage): --ctf-parent now takes a name, not a section.
113 (dump_ctf): Don't open a separate section; use the parent_name in
114 ctf_dict_open instead. Use ctf_archive_next, not ctf_archive_iter,
115 so we can pass down a member count.
116 (dump_ctf_archive_member): Add the member count; don't return
117 anything. Import parents into children no matter what the
118 parent's name, while still avoiding displaying the header for the
119 common parent name of ".ctf".
120 * readelf.c (usage): Adjust similarly.
121 (dump_section_as_ctf): Likewise.
122 (dump_ctf_archive_member): Likewise. Never stop iterating over
123 archive members, even if ctf_dump of one member fails.
124 * doc/ctf.options.texi: Adjust.
126 2021-10-19 Nick Clifton <nickc@redhat.com>
128 * nm.c (filter_symbols): Test for a NULL name before checking to
129 see if the symbol is __gnu_lto_slim.
130 * objcopy.c (filter_symbols): Likewise.
132 2021-09-30 Nick Clifton <nickc@redhat.com>
134 * objcopy.c (filter_symbols): Fail if attempting to dredefine
135 symbols in an LTO object file.
137 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
139 * configure: Regenerate.
141 2021-09-20 Andrew Burgess <andrew.burgess@embecosm.com>
143 * testsuite/binutils-all/riscv/riscv.exp: New file.
144 * testsuite/binutils-all/riscv/unknown.d: New file.
145 * testsuite/binutils-all/riscv/unknown.s: New file.
147 2021-09-07 Luis Machado <luis.machado@linaro.org>
149 Revert: [AArch64] MTE corefile support
151 2021-05-21 Luis Machado <luis.machado@linaro.org>
153 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
155 2021-08-11 Nick Clifton <nickc@redhat.com>
157 * po/pt.po: Updated Portuguese translation.
159 2021-08-10 Nick Clifton <nickc@redhat.com>
161 * po/sr.po: Updated Serbian translation.
163 2021-07-16 Nick Clifton <nickc@redhat.com>
165 * po/sv.po: Updated Swedish translation.
167 2021-07-14 Clément Chigot <clement.chigot@atos.net>
169 * dwarf.h (struct dwarf_section): Add XCOFF name.
170 * dwarf.c (struct dwarf_section_display): Update.
171 * objdump.c (load_debug_section): Add XCOFF name handler.
172 (dump_dwarf_section): Likewise.
174 2021-07-12 Nick Clifton <nickc@redhat.com>
176 * po/fr.po: Updated French translation.
178 2021-07-10 Alan Modra <amodra@gmail.com>
181 * dwarf.c (display_discr_list): Remove assertions. Delete "end"
182 parameter, use initial "data" pointer as the end. Formatting.
183 Don't count down bytes as they are read.
184 (read_and_display_attr_value): Adjust display_discr_list call.
185 (read_and_print_leb128): Don't pass __FILE__ and __LINE__ to
187 * dwarf.h (report_leb_status): Don't report file and line
188 numbers. Delete file and lnum parameters,
189 (READ_ULEB, READ_SLEB): Adjust.
191 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
193 * configure.ac: Check for strnlen declaration.
194 * configure, config.in: Regenerate.
196 2021-07-05 Alan Modra <amodra@gmail.com>
199 * dwarf.c (get_type_abbrev_from_form): Add cu_end parameter.
200 Check DW_FORM_ref1 etc. arg against cu_end rather than end of
201 section. Adjust all callers.
203 2021-07-03 Nick Clifton <nickc@redhat.com>
205 * configure: Regenerate.
206 * po/opcodes.pot: Regenerate.
207 * README-how-to-make-a-release: Update.
209 2021-07-03 Nick Clifton <nickc@redhat.com>
211 * 2.37 release branch created.
213 2021-07-02 Alan Modra <amodra@gmail.com>
216 * dwarf.c (get_type_signedness): Don't run off end of buffer
217 printing DW_FORM_string attribute.
219 2021-07-01 Nick Clifton <nickc@redhat.com>
222 * testsuite/binutils-all/debuginfod.exp: Replace -wK with -wk.
224 2021-07-01 Andrei Homescu <ah@immunant.com>
226 * readelf.c (process_archive): Reset file position to the
227 beginning when calling process_object for thin archive members.
228 * testsuite/binutils-all/readelf.exp: Add test.
229 * testsuite/binutils-all/readelf.h.thin: New file.
231 2021-06-30 Tom Tromey <tom@tromey.com>
233 * dwarf.c (read_and_display_attr_value): Handle
234 DW_FORM_implicit_const.
236 2021-06-30 Richard Henderson <richard.henderson@linaro.org>
238 * dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf
239 and DW_CFA_def_cfa_offset_sf have a signed offset.
241 2021-06-19 Alan Modra <amodra@gmail.com>
243 * dwarf.c (display_debug_lines_decoded): Use memcpy rather than
244 strncpy when trimming file name length to MAX_FILENAME_LENGTH.
245 Don't make an unnecessary copy when length is good.
247 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
249 * readelf.c (print_gnu_property_note): Handle
250 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
251 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
253 2021-06-15 Nick Clifton <nickc@redhat.com>
255 * readelf.c (get_note_type): Add support for NT_GO_BUILDID.
257 2021-06-15 Alan Modra <amodra@gmail.com>
259 * readelf.c (locate_dynamic_section, is_pie): New functions.
260 (get_file_type): Replace e_type parameter with filedata. Call
261 is_pie for ET_DYN. Update all callers.
262 (process_program_headers): Use local variables dynamic_addr and
263 dynamic_size, updating filedata on exit from function. Set
264 dynamic_size of 1 to indicate no dynamic section or segment.
265 Update tests of dynamic_size throughout.
266 * testsuite/binutils-all/x86-64/pr27708.dump: Update expected output.
268 2021-06-14 Eric Botcazou <ebotcazou@adacore.com>
270 * dwarf.c (struct abbrev_attr): Change type of implicit_const.
271 (add_abbrev_attr): Likewise.
272 (process_abbrev_set): Likewise.
273 (display_debug_abbrev): Adjust to above change.
275 2021-06-12 Alan Modra <amodra@gmail.com>
277 * readelf.c (process_file_header): Don't clear section_headers.
279 2021-06-12 Alan Modra <amodra@gmail.com>
281 * readelf.c (get_section_headers): Don't test e_shoff here, leave
282 that to get_32bit_section_headers or get_64bit_section_headers.
283 (process_object): Throw away section header read to print file
286 2021-06-11 Alan Modra <amodra@gmail.com>
288 * readelf.c (struct filedata): Move archive_file_offset and
289 archive_file_size earlier.
290 (free_filedata): Clear using memset.
292 2021-06-11 Alan Modra <amodra@gmail.com>
294 * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with..
295 (get_elf_symbols): ..this new function throughout.
296 (get_32bit_section_headers): Don't free section_headers.
297 (get_64bit_section_headers): Likewise.
298 (get_section_headers): New function, use throughout in place of
299 32bit and 64bit variants.
300 (get_dynamic_section): Similarly.
301 (process_section_headers): Don't free filedata memory here.
302 (get_file_header): Don't get section headers here..
303 (process_object): ..Read them here instead. Don't exit without
304 freeing filedata memory.
306 2021-06-09 Nick Clifton <nickc@redhat.com>
308 * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list.
310 2021-06-07 Jan Beulich <jbeulich@suse.com>
312 * dwarf.c (display_debug_aranges): Add u suffix to constant.
314 2021-05-29 Alan Modra <amodra@gmail.com>
316 * objdump (usage): Add missing \n.
318 2021-05-29 Alan Modra <amodra@gmail.com>
320 * readelf.c (parse_args): Call dwarf_select_sections_all on
321 --debug-dump without optarg.
322 (usage): Associate -w and --debug-dump options closely.
323 Split up help message. Remove extraneous blank lines around
325 * objdump.c (usage): Similarly.
327 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
329 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0
331 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
333 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
335 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000'
336 machine for disassembly.
337 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise.
338 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
339 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise.
341 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
344 * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9.
346 2021-05-27 Alan Modra <amodra@gmail.com>
348 * readelf (usage): Order -w letters to match --debug-dump= and
349 move common '=' for --debug-dump out of brackets.
351 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
354 * readelf.c (decode_x86_feature_2): Support
355 GNU_PROPERTY_X86_FEATURE_2_CODE16.
357 2021-05-23 Tiezhu Yang <yangtiezhu@loongson.cn>
359 * readelf.c (get_machine_name): Change Loongson Loongarch to
362 2021-05-21 Luis Machado <luis.machado@linaro.org>
364 * readelf.c (get_note_type): Add missing NT_ARM_* entries.
366 2021-05-21 Luis Machado <luis.machado@linaro.org>
368 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
370 2021-05-19 Eli Schwartz <eschwartz@archlinux.org>
372 * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set.
374 2021-05-19 Alan Modra <amodra@gmail.com>
377 * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return
378 param with map_return, and return map for DW_FORM_ref_addr.
379 (get_type_signedness): Adjust calls to get_type_abbrev_from_form.
380 Pass returned cu map start and end to recursive call.
381 (read_and_display_attr_value): Similarly.
383 2021-05-19 Alan Modra <amodra@gmail.com>
386 * sysdump.c (getBARRAY): Sanity check size against max.
387 (getINT): Avoid UB shift left.
389 2021-05-15 Alan Modra <amodra@gmail.com>
391 * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow.
394 2021-05-15 Alan Modra <amodra@gmail.com>
396 * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in
399 2021-05-15 Alan Modra <amodra@gmail.com>
401 * dwarf.c (display_debug_names): Complain when header length is
402 too small. Avoid pointer UB. Sanity check augmentation string,
403 CU table, TU table and foreign TU table sizes.
405 2021-05-15 Alan Modra <amodra@gmail.com>
407 * dwarf.c (display_debug_frames): Delete initial_length_size.
408 Avoid pointer UB. Constrain data reads to length given in header.
409 Sanity check cie header length. Only skip up to next FDE on
410 finding augmentation data too long.
412 2021-05-15 Alan Modra <amodra@gmail.com>
414 * dwarf.c (read_cie): Add more sanity checks to ensure data
415 pointer is not bumped past end.
417 2021-05-15 Alan Modra <amodra@gmail.com>
419 * dwarf.c (display_debug_ranges): Delete initial_length_size.
420 Correct fallback size calculated on finding a reloc. Constrain
421 data reads to length given in header. Avoid pointer UB.
423 2021-05-15 Alan Modra <amodra@gmail.com>
425 * dwarf.c (display_debug_rnglists_list): Avoid pointer UB.
427 2021-05-15 Alan Modra <amodra@gmail.com>
429 * dwarf.c (display_debug_str_offsets): Constrain reads to length
432 2021-05-15 Alan Modra <amodra@gmail.com>
434 * dwarf.c (display_debug_aranges): Delete initial_length_size.
435 Use end_ranges to constrain data reads to header length. Avoid
438 2021-05-15 Alan Modra <amodra@gmail.com>
440 * dwarf.c (display_loc_list): Avoid pointer UB. Correct check
441 before reading uleb length. Warn on excess length.
443 2021-05-15 Alan Modra <amodra@gmail.com>
445 * dwarf.c (display_debug_macro): Print strings that might not
446 be zero terminated with %*s. Don't bump curr if unterminated.
448 2021-05-15 Alan Modra <amodra@gmail.com>
450 * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size.
451 Simplify length sanity check, and check for too small lengths.
452 Constrain data reads to header length. Avoid pointer UB.
454 2021-05-15 Alan Modra <amodra@gmail.com>
456 * dwarf.c (display_debug_macinfo): Print strings that might not
457 be zero terminated with %*s. Don't bump curr if unterminated.
459 2021-05-15 Alan Modra <amodra@gmail.com>
461 * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size.
462 Simplify length check. Constrain reads to length given by header.
464 2021-05-15 Alan Modra <amodra@gmail.com>
466 * dwarf.c (display_debug_lines_decoded): Don't use strnlen when
467 we have already checked for NUL termination.
469 2021-05-15 Alan Modra <amodra@gmail.com>
471 * dwarf.c (read_debug_line_header): Delete initial_length_size.
472 Avoid pointer UB. Keep within length specified by header.
475 2021-05-15 Alan Modra <amodra@gmail.com>
477 * dwarf.c (process_debug_info): Always do the first CU length
478 scan for sanity checks. Remove initial_length_size var and
479 instead calculate end_cu. Use end_cu to limit data reads.
480 Delete now dead code checking length.
482 2021-05-15 Alan Modra <amodra@gmail.com>
484 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
486 2021-05-15 Alan Modra <amodra@gmail.com>
488 * bucomm.h (_mul_overflow): Define.
489 * dwarf.c (get_encoded_value): Avoid pointer UB.
491 2021-05-13 Alan Modra <amodra@gmail.com>
494 * dwarf.c (display_debug_str_offsets): Sanity check dwarf5
497 2021-05-13 Alan Modra <amodra@gmail.com>
500 * dwarf.c (display_debug_frames): Sanity check cie_off before
501 attempting to read cie.
503 2021-05-12 Alan Modra <amodra@gmail.com>
505 * dwarf.c (process_extended_line_op): Don't bump data pointer past
506 end when strnlen doesn't find string terminator.
507 (decode_location_expression): Remove dead code.
508 (skip_attr_bytes): Remove const from end param. Ensure data
509 pointer doesn't pass end.
510 (get_type_signedness): Remove const from end param.
511 (read_and_display_attr_value): Ensure data pointer doesn't pass end.
512 (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
513 (display_debug_pubnames_worker): Likewise.
514 (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
515 than blindly incrementing data pointer.
516 (display_debug_addr, display_debug_str_offsets): Likewise. Don't
517 compare pointers, compare lengths.
519 2021-05-12 Alan Modra <amodra@gmail.com>
521 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
522 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
523 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
524 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
525 SAFE_BYTE_GET followed by increment.
526 (process_debug_info): Likewise, and test bytes remaining before
527 incrementing section_begin rather than using pointer comparison.
528 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
529 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
531 2021-05-12 Alan Modra <amodra@gmail.com>
533 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
534 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
535 SAFE_BYTE_GET_AND_INC.
536 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
537 (process_debug_info, process_cu_tu_index): Likewise.
538 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
539 (byte_get, byte_get_little_endian, byte_get_big_endian),
540 (byte_get_signed): Make size param unsigned. Remove code dealing
542 (byte_get_64): Delete.
543 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
544 (byte_get, byte_get_little_endian, byte_get_big_endian),
545 (byte_get_signed): Update prototypes.
546 (byte_get_64): Delete.
548 2021-05-12 Alan Modra <amodra@gmail.com>
551 * dwarf.c (display_debug_frames): Don't compare pointers derived
552 from user input. Test offset against bounds instead.
554 2021-05-12 Alan Modra <amodra@gmail.com>
557 * dwarf.c (display_formatted_table): Test for data >= end rather
559 (process_extended_line_op): Likewise.
560 (display_debug_lines_raw): Likewise.
561 (display_debug_lines_decoded): Likewise.
563 2021-05-12 Alan Modra <amodra@gmail.com>
566 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
567 Sanity check section size for version and padding too. Correct
568 index sanity check. Handle multiple tables in .debug_str_offsets.
570 2021-05-11 Hans-Peter Nilsson <hp@axis.com>
572 * dwarf.c (process_abbrev_set): Properly parenthesize before
573 casting to unsigned long.
575 2021-05-11 Alan Modra <amodra@gmail.com>
578 * dwarf.c (process_abbrev_set): Replace start and end parameters
579 with section, abbrev_base, abbrev_size, abbrev_offset. Update
580 all callers. Sanity check parameters correctly and emit warnings
582 (process_debug_info): ..here.
584 2021-05-10 Thomas Wolff <towo@towo.net>
589 * windres.c (quot): Revert previous delta. Do not use double
590 quotes when spaces are detected in options.
591 * doc/binutils.texi (windres): Remove suggestion that the
592 --preprocessor option can take arguments.
594 2021-05-10 Alan Modra <amodra@gmail.com>
596 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
597 END rather than adding amount to PTR.
598 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
600 2021-05-09 Alan Modra <amodra@gmail.com>
602 * objcopy.c (eq_string): Delete.
603 (create_symbol_htab): Use htab_eq_string.
605 2021-05-08 Mike Frysinger <vapier@gentoo.org>
607 * README-how-to-make-a-release: Update html & pdf entries.
609 2021-05-08 Mike Frysinger <vapier@gentoo.org>
611 * doc/Makefile.am (html-local, binutils/index.html): New targets.
612 * doc/Makefile.in: Regenerate.
614 2021-05-08 Mike Frysinger <vapier@gentoo.org>
616 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
617 * doc/Makefile.in: Regenerate.
619 2021-05-07 Nick Clifton <nickc@redhat.com>
621 * readelf.c (no_processor_specific_unwind): New function.
622 (process_unwind): Use no_processor_specific_unwind for X86
625 2021-05-07 Michael Forney <mforney@mforney.org>
627 * dwarf.c: Don't omit second operand of '?' operator.
629 2021-04-30 Nick Clifton <nickc@redhat.com>
632 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
635 2021-04-29 Nick Clifton <nickc@redhat.com>
638 * doc/binutils.texi (windres): Correct the description of the
639 default value of the --preprocessor argument.
641 2021-04-27 Nick Clifton <nickc@redhat.com>
644 * dwarf.c (parse_gnu_debuglink): Reject empty names.
645 (parse_gnu_debugaltlink): Likewise.
647 2021-04-22 Clément Chigot <clement.chigot@atos.net>
649 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
652 2021-04-21 Nick Lott <nick.lott@gmail.com>
655 * readelf.c (sym_base): New variable.
656 (enum print_mode): Add more modes.
657 (print_vma): Add suport for new modes.
658 (options): Add sym-base.
659 (usage): Add sym-base.
660 (parse_args): Add support for --sym-base.
661 (print_dynamic_symbol_size): New function.
662 (print_dynamic_symbol): Use new function.
663 * doc/binutils.texi: Document the new feature.
664 * NEWS: Mention the new feature.
666 2021-04-21 Nick Clifton <nickc@redhat.com>
668 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
669 Adjust expected output to allow for named section symbols.
670 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
672 * testsuite/binutils-all/readelf.s-64: Likewise.
673 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
674 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
675 * testsuite/binutils-all/readelf.ss-unused: Likewise.
677 2021-04-21 Luo Longjun <luolongjun@huawei.com>
679 * readelf.c (print_dynamic_symbol): Print the section name for
680 section symbols without a name of their own.
682 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
684 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
685 add him to Past Maintainers.
686 Update my email address.
688 2021-04-19 Nick Clifton <nickc@redhat.com>
691 * arsup.c (ar_addmod): Enable plugin support, if available.
693 2021-04-19 Nick Clifton <nickc@redhat.com>
695 * rename.c: (get_stat_atime_ns): Add prototype.
696 (get_stat_mtime_ns): Add prototype.
698 2021-04-16 Alan Modra <amodra@gmail.com>
701 * rename.c (get_stat_atime, get_stat_mtime): Make static.
702 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
704 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
707 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
708 (get_stat_mtime_ns): Likewise.
710 2021-04-15 Alan Modra <amodra@gmail.com>
713 * configure.ac: Check for sys/time.h and utimensat. Use standard
714 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
715 members of struct stat.
716 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
717 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
718 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
719 (get_stat_atime, get_stat_mtime): Likewise.
720 (set_times): Choose first available of utimensat, utimes, utime.
721 Use above inline functions to set timespec and timeval values.
722 * configure: Regenerate.
723 * config.in: Regenerate.
724 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
725 file timestamp when --preserve-dates is used.
727 2021-04-15 Alan Modra <amodra@gmail.com>
730 * rename.c (smart_rename): When TO and FROM are equal, just set
732 * objcopy.c (strip_main, copy_main): Always call smart_rename.
734 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
737 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
738 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
739 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
742 2021-04-14 Mark Harmstone <mark@harmstone.com>
745 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
746 end of the structure.
748 2021-04-14 Frederic Cambus <fred@statdns.com>
750 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
751 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
753 2021-04-14 Alan Modra <amodra@gmail.com>
756 * objdump.c (show_line): Don't limit paths to PATH_MAX.
757 * readelf.c (struct filedata): Change program_interpreter from
758 a char array to a char pointer.
759 (process_program_headers): Sanity check PT_INTERP p_filesz.
760 Malloc program_interpreter using p_filesz and read directly from
762 (process_dynamic_section): Check program_interpreter is non-NULL.
763 (free_filedata): New function, split out from..
764 (process_object): ..here.
765 (close_debug_file): Call free_filedata.
766 * sysdep.h: Don't include sys/param.h.
767 (PATH_MAX): Don't define.
768 * configure.ac: Don't check for sys/param.h.
769 * configure: Regenerate.
771 2021-04-13 Frederic Cambus <fred@statdns.com>
773 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
774 check for NT_NETBSD_PAX.
776 2021-04-12 Alan Modra <amodra@gmail.com>
778 * configure.ac (--enable-checking): Add support.
779 * config.in: Regenerate.
780 * configure: Regenerate.
782 2021-04-09 Alan Modra <amodra@gmail.com>
784 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
786 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
787 (disassemble_section, disassemble_data): Likewise.
789 2021-04-06 Alan Modra <amodra@gmail.com>
791 * objdump.c (objdump_symbol_at_address): Return asymbol*.
793 2021-04-06 Alan Modra <amodra@gmail.com>
795 * NEWS: Mention C99 requirement.
796 * README: Likewise. Modernise examples and "Reporting bugs".
798 2021-04-05 Alan Modra <amodra@gmail.com>
800 * configure.ac: Assume long long is available. Don't test for
801 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
802 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
803 strcoll, setlocale, setmode or location of time_t. Don't check
804 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
805 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
806 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
807 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
808 locale.h, string.h and stdlib.h unconditionally. Remove various
809 fallback declarations. Assume long long is available.
810 * addr2line.c: Don't test HAVE_SETLOCALE.
812 * coffdump.c: Likewise.
813 * dlltool.c: Likewise.
814 * dllwrap.c: Likewise.
815 * elfedit.c: Likewise.
817 * objcopy.c: Likewise.
818 * objdump.c: Likewise.
819 * readelf.c: Likewise.
821 * srconv.c: Likewise.
822 * strings.c: Likewise.
823 * sysdump.c: Likewise.
824 * windmc.c: Likewise.
825 * windres.c: Likewise.
826 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
827 * dwarf.c: Include limits.h unconditionally. Assume long long
829 * nm.c: Don't test HAVE_STRCOLL.
830 * readelf.c: Don't test HAVE_WCHAR_H.
831 * strings.c: Assume long long is available.
832 * syslex.l: Include string.h unconditionally.
833 * aclocal.m4: Regenerate.
834 * config.in: Regenerate.
835 * configure: Regenerate.
836 * Makefile.in: Regenerate.
837 * doc/Makefile.in: Regenerate.
839 2021-04-01 Martin Liska <mliska@suse.cz>
841 * elfcomm.h (strneq): Remove strneq and use startswith.
842 * readelf.c (ia64_process_unwind): Likewise.
843 (process_note): Likewise.
845 2021-04-01 Martin Liska <mliska@suse.cz>
847 * dllwrap.c: Use startswith function.
848 * objcopy.c (is_dwo_section): Likewise.
849 (handle_remove_section_option): Likewise.
850 (copy_main): Likewise.
851 * objdump.c (is_significant_symbol_name): Likewise.
853 2021-04-01 Martin Liska <mliska@suse.cz>
855 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
857 (display_debug_lines_decoded): Likewise.
858 (display_debug_links): Likewise.
859 * elfcomm.c (setup_archive): Likewise.
860 * elfcomm.h (const_strneq): Likewise.
861 * readelf.c (process_section_headers): Likewise.
862 (slurp_ia64_unwind_table): Likewise.
863 (slurp_hppa_unwind_table): Likewise.
864 (decode_arm_unwind): Likewise.
865 (display_debug_section): Likewise.
866 (process_note): Likewise.
868 2021-03-31 Alan Modra <amodra@gmail.com>
870 * sysdep.h (POISON_BFD_BOOLEAN): Define.
871 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
872 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
873 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
874 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
875 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
876 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
877 * windmc.c, * windmc.h, * windres.c, * winduni.c,
878 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
879 and TRUE with true throughout.
881 2021-03-31 Alan Modra <amodra@gmail.com>
883 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
886 2021-03-31 Alan Modra <amodra@gmail.com>
888 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
890 2021-03-29 Alan Modra <amodra@gmail.com>
892 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
893 * dwarf.c (read_and_display_attr_value): Likewise.
894 (display_debug_str_offsets): Likewise.
895 * objdump.c (dump_bfd): Likewise.
896 * readelf.c (dump_section_as_strings): Likewise.
897 (dump_section_as_bytes): Likewise.
899 2021-03-29 Alan Modra <amodra@gmail.com>
901 * objdump.c (process_links): Use type int.
902 * readelf.c (request_dump): Don't increment do_dump, set it.
903 * windint.h (target_is_bigendian): Use type bfd_boolean.
904 * windmc.c (target_is_bigendian): Likewise.
905 * windres.c (target_is_bigendian): Likewise.
907 2021-03-22 Martin Liska <mliska@suse.cz>
909 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
911 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
912 * objcopy.c (is_mergeable_note_section): Likewise.
913 * objdump.c (dump_dwarf_section): Likewise.
914 * prdbg.c (pr_method_type): Likewise.
915 (pr_class_baseclass): Likewise.
916 (tg_class_baseclass): Likewise.
917 * readelf.c (process_lto_symbol_tables): Likewise.
918 * stabs.c (ULLHIGH): Likewise.
919 (parse_stab_argtypes): Likewise.
920 (stab_demangle_function_name): Likewise.
922 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
924 * readelf.c (get_machine_name): Add EM_INTELGT.
926 2021-03-18 Nick Clifton <nickc@redhat.com>
929 * readelf.c (dump_section_as_strings): Mention separate filename.
930 (dump_section_as_bytes): Likewise.
931 (dump_section_as_ctf): Likewise.
932 (initialise_dumkps_byname): Only issue a warning for missing
933 sections if processing the main file.
934 (process_section_contents): Only issue a warning for unsumped
935 section numbers in the main file.
936 (initialise_dump_sects): New function. Contains code extracted
938 (process_object): ... here. Also call initialise_dump_sects for
941 2021-03-16 Nick Clifton <nickc@redhat.com>
944 * readelf.c (display_debug_section): Also retain .debug_addr
947 2021-03-16 Nick Clifton <nickc@redhat.com>
950 * readelf.c (process_section_contents): Only dump debug
951 information for separate files unless process_links is enabled.
952 (process_object): Always call process_section_contents for
955 2021-03-15 Nick Clifton <nickc@redhat.com>
958 * nm.c (FORMAT_JUST_SYMBOLS): Define.
959 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
960 (long_options): Add just-symbols.
961 (set_output_format): Add support for just-symbols.
962 (get_print_format): Likewise.
963 (do_not_print_object_filename): New function.
964 (do_not_print_archive_filename): New function.
965 (do_not_print_archive_member): New function.
966 (do_not_print_symbol_filename): New function.
967 (just_print_symbol_name): New function.
968 (main): Handle --just-symbols.
969 * NEWS: Mention the new feature.
970 * doc/binutils.texi: Document the new feature.
972 2021-03-12 Clément Chigot <clement.chigot@atos.net>
974 * od-xcoff.c: Replace RTB by TRL entry.
976 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
977 Andrew Burgess <andrew.burgess@embecosm.com>
979 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
981 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
982 Andrew Burgess <andrew.burgess@embecosm.com>
984 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
986 2021-03-05 Nick Clifton <nickc@redhat.com>
989 * dwarf.c (display_debug_macro): Handle the displaying of
990 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
991 .debug_macro.dwo sections.
993 2021-03-04 Nick Clifton <nickc@redhat.com>
996 * objdump.c (process_links): New variable.
997 (usage): Add --process-links.
998 (long_options): Likewise.
999 (dump_bfd): Stop processing once the bfd has been loaded unless
1000 this is the main file or process_links has been enabled.
1001 (main): Handle the process-links option.
1002 * readelf.c (process_links): New variable.
1003 (struct filedata): Add is_separate field.
1004 (options): Add --process-links.
1006 (parse_args): Likewise.
1007 (process_file_header): Include the filename when dumping
1008 information for separate debuginfo files.
1009 (process_program_headers): Likewise.
1010 (process_section_headers): Likewise.
1011 (process_section_groups): Likewise.
1012 (process_relocs): Likewise.
1013 (process_dynamic_section): Likewise.
1014 (process_version_sections): Likewise.
1015 (display_lto_symtab): Likewise.
1016 (process_symbol_table): Likewise.
1017 (process_syminfo): Likewise.
1018 (initialise_dumps_by_name): Likewise.
1019 (process_section_contents): Likewise.
1020 (process_notes_at): Likewise.
1021 (process_notes): Likewise.
1022 (open_file): Add is_separate parameter. Use to initialise the
1023 is_separate field in the filedata structure.
1024 (open_deug): Update call to open_file.
1025 (process_object): Add processing of the contents of separate
1026 debuginfo files, gated by the process_links variable.
1027 (process_archive): Update call to open_file.
1028 (process_file): Initialise the is_separate field in the filedata
1030 * dwarf.c (load_separate_debug_info_file): Only report the
1031 loading of a separate file if debug links are being dumped.
1032 * objcopy.c (keep_section_symbols): New variable.
1033 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
1034 (strip_options): Add keep-section-symbols.
1035 (copy_options): Likewise.
1036 (copy_usage): Likewise.
1037 (strip_usage): Likewise.
1038 (copy_object): Keep section symbols if requested by command line
1040 (strip_main): Handle --keep-section-symbols.
1041 (copy_main): Likewise.
1042 * doc/binutils.texi: Document the new options.
1043 * NEWS: Mention the new features.
1044 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
1045 Update options passed to objdump. Use diff rather than cmp to
1046 compare the dumped data.
1047 * testsuite/binutils-all/objdump.WK2: Update regexp.
1048 * testsuite/binutils-all/objdump.WK3: Update regexp.
1049 * testsuite/binutils-all/objdump.exp: Use --process-links
1050 instead of --dwarf=follow-links.
1051 * testsuite/binutils-all/readelf.exp (readelf_test): Include
1052 readelf's output in the log when the test fails.
1053 Add the -P option to the -wKis test.
1054 * testsuite/binutils-all/readelf.wKis: Update expected output.
1056 2021-03-03 Alan Modra <amodra@gmail.com>
1059 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
1060 * NEWS: Mention feature.
1062 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
1065 * dwarf.c (load_separate_debug_info): Issue warning only if
1066 do_debug_links is set.
1067 * testsuite/binutils-all/compress.exp: Run objdump and readelf
1068 with missing debug file.
1070 2021-03-01 Alan Modra <amodra@gmail.com>
1073 * doc/binutils.texi: Add nm --with-symbol-versions and
1074 --without-symbol-versions documentation.
1075 * nm.c (with_symbol_versions): New variable.
1076 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
1077 (long_options): Make --with-symbol-versions entry twiddle the flag.
1078 Add --without-symbol-versions.
1079 (print_symname): Strip version when !with_symbol_versions. Add
1080 dynamic version info under control of with_symbol_versions.
1081 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
1083 2021-02-26 Fangrui Song <maskray@google.com>
1086 * readelf.c (quiet): New option flag.
1087 (enum long_option_values): New enum to hold long option value.
1088 (long_options): Add --quiet.
1089 (usage): Mention --quiet.
1090 (display_rel_file): If quiet is enabled, suppress "no symbols".
1091 (main): Handle the new option.
1092 * NEWS: Mention --quiet.
1093 * docs/binutils.texi: Document --quiet.
1095 2021-02-26 Tom de Vries <tdevries@suse.de>
1097 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
1099 2021-02-26 Tom de Vries <tdevries@suse.de>
1102 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
1104 (read_and_display_attr_value): Likewise.
1106 2021-02-25 Nick Clifton <nickc@redhat.com>
1108 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
1110 (read_and_display_attr_value): Handle sup forms.
1111 (display_debug_sup): New function. Displays the contents of a
1113 (load_debug_sup_file): New function. Loads the contents of a file
1114 referenced by a .debug_sup section.
1115 (check_for_and_load_links): Call load_debug_sup_file.
1116 (debug_displays): Add entry for .debug_sup.
1117 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
1118 * readelf.c (process_section_headers): Add support for debug_sup.
1119 * doc/debug.options.texi: Note that the =links option will display
1120 the contents of .debug_sup sections.
1121 * NEWS: Mention the new support.
1123 2021-02-25 Alan Modra <amodra@gmail.com>
1126 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
1128 2021-02-24 Nick Clifton <nickc@redhat.com>
1131 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
1132 when adding together the section sizes.
1134 2021-02-24 Nick Clifton <nickc@redhat.com>
1136 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
1138 * readelf.c (print_gnu_build_attribute_description): Likewise.
1140 2021-02-24 Alan Modra <amodra@gmail.com>
1141 Siddhesh Poyarekar <siddhesh@gotplt.org>
1144 * bucomm.h (smart_rename): Update prototype.
1145 * rename.c (smart_rename): Add fromfd and preserve_dates params.
1146 Pass fromfd and target_stat to simple_copy. Call set_times
1147 when preserve_dates.
1148 (simple_copy): Accept fromfd rather than from filename. Add
1149 target_stat param. Rewind fromfd rather than opening. Open
1150 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
1151 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
1152 closing output temp file, and pass tmpfd to smart_rename.
1153 * arsup.c (temp_fd): Rename from real_fd.
1154 (ar_save): Dup temp_fd and pass to smart_rename.
1155 * objcopy.c (strip_main, copy_main): Likewise, and pass
1158 2021-02-24 Alan Modra <amodra@gmail.com>
1161 * rename.c: Tidy throughout.
1162 (smart_rename): Always copy. Remove windows specific code.
1164 2021-02-20 Alan Modra <amodra@gmail.com>
1166 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
1167 (run_dump_test): Fail if expecting errors from a file like we do
1168 for error strings, if no error is seen.
1170 2021-02-19 Alan Modra <amodra@gmail.com>
1172 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
1174 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
1176 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
1178 * arsup.c (ar_save): Likewise.
1179 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
1180 temporary file and adjust call to SMART_RENAME.
1181 (copy_main): Likewise.
1182 * rename.c [!S_ISLNK]: Remove definitions.
1183 (try_preserve_permissions): Remove function.
1184 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
1185 rename system call only if TO does not exist.
1186 * bucomm.h (smart_rename): Adjust declaration.
1188 2021-02-18 Nick Clifton <nickc@redhat.com>
1190 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
1191 address that is higher than the end address.
1193 2021-02-17 Alan Modra <amodra@gmail.com>
1195 * dwarf.c: Include limits.h.
1196 (CHAR_BIT): Provide backup define.
1197 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
1198 signed overflow checking.
1199 * testsuite/binutils-all/pr26548.s,
1200 * testsuite/binutils-all/pr26548.d,
1201 * testsuite/binutils-all/pr26548e.d: New tests.
1202 * testsuite/binutils-all/readelf.exp: Run them.
1203 (readelf_test): Drop unused "xfails" parameter. Update all uses.
1205 2021-02-16 Jan Beulich <jbeulich@suse.com>
1207 * dwarf.c (process_debug_info): Initialize "dwo_id".
1209 2021-02-15 Alan Modra <amodra@gmail.com>
1211 * objdump.c (load_specific_debug_section): Don't call
1212 bfd_cache_section_contents. Rearrange so that
1213 bfd_get_full_section_contents is not called on path where
1214 bfd_simple_get_relocated_section_contents is called.
1215 Don't set section->user_data.
1216 (free_debug_section): Always free section->start. Don't twiddle
1218 * readelf.c (load_specific_debug_section): Don't set user_data.
1219 * dwarf.h (struct dwarf_section): Remove use_data field.
1220 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
1222 2021-02-15 Alan Modra <amodra@gmail.com>
1224 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
1225 * testsuite/binutils-all/objdump.exp: Likewise.
1227 2021-02-14 Alan Modra <amodra@gmail.com>
1229 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
1230 to the symbol array.
1231 (slurp_dynamic_symtab): Likewise.
1232 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
1234 2021-02-14 Alan Modra <amodra@gmail.com>
1236 * Makefile.in: Regenerate.
1237 * doc/Makefile.in: Regenerate.
1239 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1241 * aclocal.m4: Regenerate.
1243 2021-02-12 Nick Clifton <nickc@redhat.com>
1245 * configure.ac (follow-debug-links): Add option to enable or
1246 disable the following of debug links by default. Set the
1247 default for the option to be 'follow'.
1248 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
1249 (dwarf_select_sections_by_names): Add no-follow-links option.
1250 (dwarf_select_sections_by_letter): Add 'N' option.
1251 * objdump.c (usage): Add conditional text describing the
1252 follow links option.
1253 (slurp_symtab): Ensure that there is a NULL entry at the end
1254 of the symbol table.
1255 (slurp_dynamic_symtab): Likewise.
1256 (dump_bfd): When extending the symbol table, ensure that there
1257 is still a NULL entry at the end.
1258 * readelf.c (usage): Add conditional text describing the
1259 follow links option.
1260 * doc/binutils.texi: Update documentation for objcopy and
1262 * doc/debug.options.texi: Update documentation of the
1263 follow-links option.
1264 * config.in: Regenerate.
1265 * configure: Regenerate.
1266 * testsuite/binutils-all/compress.exp: Add the -WN option to
1267 objdump command lines that are not expecting to follow links.
1268 * testsuite/binutils-all/readelf.exp: Add the
1269 --debug-dump=no-follow-links option to tests that are not
1270 expecting to follow debug links.
1271 * NEWS: Mention the new behaviour.
1273 2021-02-12 Alan Modra <amodra@gmail.com>
1275 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
1276 gas or ld fails to build a testcase rather than "unresolved".
1277 Report "fail" when readelf returns an error status rather than
1279 * testsuite/binutils-all/ar.exp: Likewise.
1280 * testsuite/binutils-all/compress.exp: Likewise.
1281 * testsuite/binutils-all/readelf.exp: Likewise.
1283 2021-02-12 Alan Modra <amodra@gmail.com>
1285 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
1286 "c" with "ccc" labels.
1288 2021-02-12 Tom de Vries <tdevries@suse.de>
1290 * dwarf.h (debug_info): Fix typo in comment.
1292 2021-02-12 Tom de Vries <tdevries@suse.de>
1294 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
1297 2021-02-12 Tom de Vries <tdevries@suse.de>
1299 * dwarf.c (process_debug_info): Print DWO ID.
1301 2021-02-11 Alan Modra <amodra@gmail.com>
1306 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
1307 Use bfd_malloc_and_get_section.
1308 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
1309 check namesz. Return NULL if descsz is too small. Ensure
1310 string table is terminated.
1311 (elf32_avr_get_device_info): Formatting. Add note_size param.
1313 (elf32_avr_dump_mem_usage): Adjust to suit.
1315 2021-02-10 Tom de Vries <tdevries@suse.de>
1318 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
1320 2021-02-10 Tom de Vries <tdevries@suse.de>
1323 * dwarf.c (display_debug_ranges): Filter range lists according to
1326 2021-02-09 Tom de Vries <tdevries@suse.de>
1329 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
1331 2021-02-09 Tom de Vries <tdevries@suse.de>
1334 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
1335 DW_UT_split_compile.
1337 2021-02-09 Alan Modra <amodra@gmail.com>
1339 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
1342 2021-02-07 Alan Modra <amodra@gmail.com>
1344 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
1345 uninitialised on invalid input.
1347 2021-02-06 Alan Modra <amodra@gmail.com>
1350 * rename.c (smart_rename): Test for existence and type of output
1353 2021-02-05 Nick Clifton <nickc@redhat.com>
1355 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
1357 2021-02-05 Eli Zaretskii <eliz@gnu.org>
1360 * elfedit.c (check_file):
1361 * bucomm.c (get_file_size): Fix typos in comments.
1363 2021-02-05 Alan Modra <amodra@gmail.com>
1366 * arsup.c (ar_save): Use stat rather than lstat.
1368 2021-02-03 Alan Modra <amodra@gmail.com>
1373 * ar.c: Don't include libbfd.h.
1374 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
1375 bfd_stat rather than fstat on iostream. Move stat and fd tests
1376 outside of _WIN32 ifdef. Delete skip_stat variable.
1377 * arsup.c (temp_name, real_ofd): New static variables.
1378 (ar_open): Use make_tempname and bfd_fdopenw.
1379 (ar_save): Adjust to suit ar_open changes. Move stat output
1381 * objcopy.c: Don't include libbfd.h.
1382 (copy_file): Use bfd_stat.
1384 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
1387 * readelf.c (process_section_headers): Add 'R' and 'D' to
1389 * testsuite/binutils-all/retain1a.d: Updated.
1391 2021-01-30 Nick Clifton <nickc@redhat.com>
1393 * README-how-to-make-a-release: Small updates after the 2.35.2
1396 2021-01-28 Eli Zaretskii <eliz@gnu.org>
1399 * windres.c (quot): Use double quotes to protect strings on
1402 2021-01-28 Eli Zaretskii <eliz@gnu.org>
1405 * bucomm.c (get_file_size): Add code to handle /dev/null on
1407 * elfedit.c (check_file): Likewise.
1409 2021-01-27 Nick Clifton <nickc@redhat.com>
1411 * objcopy.c (copy_main): Remove conditional control of the calls
1412 to free, simplifying the code and making it easier to detect
1415 2021-01-26 Frederic Cambus <fred@statdns.com>
1417 * objcopy.c (copy_main): Fix a double free happening when both
1418 --localize-symbols and --globalize-symbols options are invoked
1421 2021-01-24 Nick Clifton <nickc@redhat.com>
1423 * README-how-to-make-a-release: Minor updates after the 2.36 release.
1425 2021-01-16 Alan Modra <amodra@gmail.com>
1427 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
1429 2021-01-15 Alan Modra <amodra@gmail.com>
1432 * readelf.c (uncompress_section_contents): Always call inflateEnd.
1434 2021-01-14 Alexandre Oliva <oliva@gnu.org>
1436 * MAINTAINERS: Update my email address.
1438 2021-01-14 Nick Clifton <nickc@redhat.com>
1440 * po/sv.po: Updated Swedish translation.
1442 2021-01-13 Alan Modra <amodra@gmail.com>
1444 * Makefile.in: Regenerate.
1445 * doc/Makefile.in: Regenerate.
1447 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
1450 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
1452 (i386_x64_trampoline): Add SEH annotations.
1453 (struct mac): Add how_seh field.
1454 (make_delay_head): If how_set field is true add SEh instructions.
1456 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1459 * configure.ac: Use GNU_MAKE_JOBSERVER.
1460 * aclocal.m4: Regenerated.
1461 * configure: Likewise.
1463 2021-01-12 Nick Clifton <nickc@redhat.com>
1465 * po/fr.po: Updated French translation.
1467 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1470 * configure: Regenerated.
1472 2021-01-11 Nick Clifton <nickc@redhat.com>
1474 * po/pt.po: Updated Portuguese translation.
1475 * po/sr.po: Updated Serbian translation.
1476 * po/uk.po: Updated Ukranian translation.
1478 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1480 * configure: Regenerated.
1482 2021-01-09 Nick Clifton <nickc@redhat.com>
1484 * configure: Regenerate.
1485 * po/binutils.pot: Regenerate.
1487 2021-01-09 Nick Clifton <nickc@redhat.com>
1489 * 2.36 release branch crated.
1490 * README-how-to-make-a-release: Add note about updating Makefiles
1492 * BRANCHES: Add binutils-2.36-branch.
1494 2021-01-09 Alan Modra <amodra@gmail.com>
1496 * configure: Regenerate.
1498 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1500 * configure: Regenerate.
1502 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1505 * objcopy.c (copy_object): Handle section symbols for
1506 non-relocatable inputs.
1507 * testsuite/binutils-all/readelf.exp (readelf_test): Check
1508 is_elf_unused_section_symbols.
1509 * testsuite/binutils-all/readelf.s-64: Updated.
1510 * testsuite/binutils-all/readelf.ss: Likewise.
1511 * testsuite/binutils-all/readelf.ss-64: Likewise.
1512 * testsuite/binutils-all/readelf.s-64-unused: New file.
1513 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
1514 * testsuite/binutils-all/readelf.ss-unused: Likewise.
1515 * testsuite/lib/binutils-common.exp
1516 (is_elf_unused_section_symbols): New proc.
1518 2021-01-06 Reuben Thomas <rrt@sc3d.org>
1520 * binutils/readelf.c: Correct grammar in comment.
1522 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1524 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
1525 * doc/binutils.texi: Correct grammar.
1526 * readelf.c (process_version_sections): Correct spelling of auxiliary
1528 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
1530 2021-01-01 Alan Modra <amodra@gmail.com>
1532 Update year range in copyright notice of all files.
1534 For older changes see ChangeLog-2020
1536 Copyright (C) 2021-2022 Free Software Foundation, Inc.
1538 Copying and distribution of this file, with or without modification,
1539 are permitted in any medium without royalty provided the copyright
1540 notice and this notice are preserved.
1546 version-control: never