X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=binutils%2FChangeLog;h=d8f370dfd65e881bf751f7162d7bf887125ce0aa;hb=f908e960c5537c116f7123b6697d74db9853d9be;hp=669cdbda78cb84852151f435681c6524908a66e8;hpb=edba4e4abaf679d3ce4d61fcbfe77b2bebfd4537;p=thirdparty%2Fbinutils-gdb.git diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 669cdbda78c..d8f370dfd65 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,504 @@ +2022-01-22 Nick Clifton + + * configure: Regenerate. + * po/binutils.pot: Regenerate. + +2022-01-22 Nick Clifton + + * 2.38 release branch created. + +2022-01-17 Nick Clifton + + * Makefile.in: Regenerate. + +2022-01-11 Fangrui Song + + PR binutils/28759 + * ar.c (long_options): Add --thin. + (usage) Add --thin. Deprecate -T without diagnostics. + * doc/binutils.texi: Add doc. + * NEWS: Mention --thin. + * binutils/testsuite/binutils-all/ar.exp: Add tests. + +2022-01-11 Martin Storsjö + + * dlltool.c (main): If a prefix has not been provided, attempt to + use a deterministic one based upon the dll name. + +2022-01-07 Pavel Mayorov + + PR 28718 + * dwarf.c: Revert previous delta. + (debug_get_real_type): Reject indirect types that point to + indirect types. + (debug_get_type_name, debug_get_type_size, debug_write_type): + Likewise. + +2022-01-06 Nick Clifton + + * debug.c (debug_write_type): Allow for malicious recursion via + indirect debug types. + +2022-01-04 Nick Clifton + + PR 28716 + * dwarf.c (load_build_id_debug_file): Remove spurious printf. + +2021-12-16 Nick Clifton + + PR 28697 + * dwarf.c (load_build_id_debug_file): New function. + (try_build_id_prefix): New function. + (check_for_and_load_links): Call load_build_id_debug_file. + (debug_displays): Add entry for .note.gnu.build-id. + * dwarf.h (enum dwarf_section_display_enum): Add + note_gnu_build_id. + * testsuite/binutils-all/debuginfod.exp (test_fetch_debuglink): + Fix regexp for loads via debuglink section. + +2021-12-03 Chenghua Xu + + * MAINTAINERS: Add myself and Zhensong Liu + as the LoongArch maintainer. + +2021-12-02 Nick Clifton + + PR 28645 + * dwarf.c (process_cu_tu_index): Add test for overruning section + whilst processing slots. + +2021-11-30 Roland McGrath + + * doc/local.mk: Give each man page target its missing dependency on + doc/$(am__dirstamp). + +2021-11-30 Nick Clifton + + * dwarf.c (find_debug_info_for_offset): Use dwarf_vma type for + offsets, sizes and ranges. + (display_loc_list): Likewise. Also use print_dwarf_vma to print + the offset. + (display_loclists_list): Likewise. + (display_loc_list_dwo): Likewise. + (display_debug_str): Likewise. + (display_debug_aranges): Likewise. + (display_debug_ranges_list): Likewise. + (display_debug_rnglists_list): Likewise. + (display_debug_ranges): Likewise. + +2021-11-29 Nick Clifton + + PR 28632 + * strings.c (usage): Update desciption of -n option. + * doc/binutils.texi: Likewise. + +2021-11-24 Nick Clifton + + PR 28564 + * sysdump.c (getCHARS): Check for an out of bounds read. + +2021-11-16 Fangrui Song + + * readelf.c (enum relocation_type): New. + (slurp_relr_relocs): New. + (dump_relocations): Change is_rela to rel_type. + Dump RELR. + (dynamic_relocations): Add DT_RELR. + (process_relocs): Check SHT_RELR and DT_RELR. + (process_dynamic_section): Store into dynamic_info for + DT_RELR/DT_RELRENT/DT_RELRSZ. + +2021-11-09 Nick Clifton + + * nm.c: Add --unicode option to control how unicode characters are + handled. + * objdump.c: Likewise. + * readelf.c: Likewise. + * strings.c: Likewise. + * binutils.texi: Document the new feature. + * NEWS: Document the new feature. + * testsuite/binutils-all/unicode.exp: New file. + * testsuite/binutils-all/nm.hex.unicode + * testsuite/binutils-all/strings.escape.unicode + * testsuite/binutils-all/objdump.highlight.unicode + * testsuite/binutils-all/readelf.invalid.unicode + +2021-11-03 Tom Tromey + + * dwarf.c (display_debug_loc): Use section name in warnings. + +2021-10-25 Nick Alcock + + * objdump.c (usage): --ctf now has an optional argument. + (main): Adjust accordingly. + (dump_ctf): Default it. + * doc/ctf.options.texi: Adjust. + +2021-10-25 Nick Alcock + + * objdump.c (usage): --ctf-parent now takes a name, not a section. + (dump_ctf): Don't open a separate section; use the parent_name in + ctf_dict_open instead. Use ctf_archive_next, not ctf_archive_iter, + so we can pass down a member count. + (dump_ctf_archive_member): Add the member count; don't return + anything. Import parents into children no matter what the + parent's name, while still avoiding displaying the header for the + common parent name of ".ctf". + * readelf.c (usage): Adjust similarly. + (dump_section_as_ctf): Likewise. + (dump_ctf_archive_member): Likewise. Never stop iterating over + archive members, even if ctf_dump of one member fails. + * doc/ctf.options.texi: Adjust. + +2021-10-19 Nick Clifton + + * nm.c (filter_symbols): Test for a NULL name before checking to + see if the symbol is __gnu_lto_slim. + * objcopy.c (filter_symbols): Likewise. + +2021-09-30 Nick Clifton + + * objcopy.c (filter_symbols): Fail if attempting to dredefine + symbols in an LTO object file. + +2021-09-27 Nick Alcock + + * configure: Regenerate. + +2021-09-20 Andrew Burgess + + * testsuite/binutils-all/riscv/riscv.exp: New file. + * testsuite/binutils-all/riscv/unknown.d: New file. + * testsuite/binutils-all/riscv/unknown.s: New file. + +2021-09-07 Luis Machado + + Revert: [AArch64] MTE corefile support + + 2021-05-21 Luis Machado + + * readelf.c (get_note_type): Handle NT_MEMTAG note types. + +2021-08-11 Nick Clifton + + * po/pt.po: Updated Portuguese translation. + +2021-08-10 Nick Clifton + + * po/sr.po: Updated Serbian translation. + +2021-07-16 Nick Clifton + + * po/sv.po: Updated Swedish translation. + +2021-07-14 Clément Chigot + + * dwarf.h (struct dwarf_section): Add XCOFF name. + * dwarf.c (struct dwarf_section_display): Update. + * objdump.c (load_debug_section): Add XCOFF name handler. + (dump_dwarf_section): Likewise. + +2021-07-12 Nick Clifton + + * po/fr.po: Updated French translation. + +2021-07-10 Alan Modra + + PR 28069 + * dwarf.c (display_discr_list): Remove assertions. Delete "end" + parameter, use initial "data" pointer as the end. Formatting. + Don't count down bytes as they are read. + (read_and_display_attr_value): Adjust display_discr_list call. + (read_and_print_leb128): Don't pass __FILE__ and __LINE__ to + report_leb_status. + * dwarf.h (report_leb_status): Don't report file and line + numbers. Delete file and lnum parameters, + (READ_ULEB, READ_SLEB): Adjust. + +2021-07-07 Rainer Orth + + * configure.ac: Check for strnlen declaration. + * configure, config.in: Regenerate. + +2021-07-05 Alan Modra + + PR 28047 + * dwarf.c (get_type_abbrev_from_form): Add cu_end parameter. + Check DW_FORM_ref1 etc. arg against cu_end rather than end of + section. Adjust all callers. + +2021-07-03 Nick Clifton + + * configure: Regenerate. + * po/opcodes.pot: Regenerate. + * README-how-to-make-a-release: Update. + +2021-07-03 Nick Clifton + + * 2.37 release branch created. + +2021-07-02 Alan Modra + + PR 28048 + * dwarf.c (get_type_signedness): Don't run off end of buffer + printing DW_FORM_string attribute. + +2021-07-01 Nick Clifton + + PR 28029 + * testsuite/binutils-all/debuginfod.exp: Replace -wK with -wk. + +2021-07-01 Andrei Homescu + + * readelf.c (process_archive): Reset file position to the + beginning when calling process_object for thin archive members. + * testsuite/binutils-all/readelf.exp: Add test. + * testsuite/binutils-all/readelf.h.thin: New file. + +2021-06-30 Tom Tromey + + * dwarf.c (read_and_display_attr_value): Handle + DW_FORM_implicit_const. + +2021-06-30 Richard Henderson + + * dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf + and DW_CFA_def_cfa_offset_sf have a signed offset. + +2021-06-19 Alan Modra + + * dwarf.c (display_debug_lines_decoded): Use memcpy rather than + strncpy when trimming file name length to MAX_FILENAME_LENGTH. + Don't make an unnecessary copy when length is good. + +2021-06-18 H.J. Lu + + * readelf.c (print_gnu_property_note): Handle + GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI, + GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI. + +2021-06-15 Nick Clifton + + * readelf.c (get_note_type): Add support for NT_GO_BUILDID. + +2021-06-15 Alan Modra + + * readelf.c (locate_dynamic_section, is_pie): New functions. + (get_file_type): Replace e_type parameter with filedata. Call + is_pie for ET_DYN. Update all callers. + (process_program_headers): Use local variables dynamic_addr and + dynamic_size, updating filedata on exit from function. Set + dynamic_size of 1 to indicate no dynamic section or segment. + Update tests of dynamic_size throughout. + * testsuite/binutils-all/x86-64/pr27708.dump: Update expected output. + +2021-06-14 Eric Botcazou + + * dwarf.c (struct abbrev_attr): Change type of implicit_const. + (add_abbrev_attr): Likewise. + (process_abbrev_set): Likewise. + (display_debug_abbrev): Adjust to above change. + +2021-06-12 Alan Modra + + * readelf.c (process_file_header): Don't clear section_headers. + +2021-06-12 Alan Modra + + * readelf.c (get_section_headers): Don't test e_shoff here, leave + that to get_32bit_section_headers or get_64bit_section_headers. + (process_object): Throw away section header read to print file + header extension. + +2021-06-11 Alan Modra + + * readelf.c (struct filedata): Move archive_file_offset and + archive_file_size earlier. + (free_filedata): Clear using memset. + +2021-06-11 Alan Modra + + * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with.. + (get_elf_symbols): ..this new function throughout. + (get_32bit_section_headers): Don't free section_headers. + (get_64bit_section_headers): Likewise. + (get_section_headers): New function, use throughout in place of + 32bit and 64bit variants. + (get_dynamic_section): Similarly. + (process_section_headers): Don't free filedata memory here. + (get_file_header): Don't get section headers here.. + (process_object): ..Read them here instead. Don't exit without + freeing filedata memory. + +2021-06-09 Nick Clifton + + * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list. + +2021-06-07 Jan Beulich + + * dwarf.c (display_debug_aranges): Add u suffix to constant. + +2021-05-29 Alan Modra + + * objdump (usage): Add missing \n. + +2021-05-29 Alan Modra + + * readelf.c (parse_args): Call dwarf_select_sections_all on + --debug-dump without optarg. + (usage): Associate -w and --debug-dump options closely. + Split up help message. Remove extraneous blank lines around + ctf help. + * objdump.c (usage): Similarly. + +2021-05-29 Maciej W. Rozycki + + * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0 + operand disassembly. + * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise. + +2021-05-29 Maciej W. Rozycki + + * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000' + machine for disassembly. + * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise. + * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise. + * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise. + +2021-05-28 H.J. Lu + + PR ld/27905 + * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9. + +2021-05-27 Alan Modra + + * readelf (usage): Order -w letters to match --debug-dump= and + move common '=' for --debug-dump out of brackets. + +2021-05-26 H.J. Lu + + PR ld/27905 + * readelf.c (decode_x86_feature_2): Support + GNU_PROPERTY_X86_FEATURE_2_CODE16. + +2021-05-23 Tiezhu Yang + + * readelf.c (get_machine_name): Change Loongson Loongarch to + LoongArch. + +2021-05-21 Luis Machado + + * readelf.c (get_note_type): Add missing NT_ARM_* entries. + +2021-05-21 Luis Machado + + * readelf.c (get_note_type): Handle NT_MEMTAG note types. + +2021-05-19 Eli Schwartz + + * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set. + +2021-05-19 Alan Modra + + PR 27884 + * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return + param with map_return, and return map for DW_FORM_ref_addr. + (get_type_signedness): Adjust calls to get_type_abbrev_from_form. + Pass returned cu map start and end to recursive call. + (read_and_display_attr_value): Similarly. + +2021-05-19 Alan Modra + + PR 27879 + * sysdump.c (getBARRAY): Sanity check size against max. + (getINT): Avoid UB shift left. + +2021-05-15 Alan Modra + + * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow. + Delete dead code. + +2021-05-15 Alan Modra + + * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in + length calculations. + +2021-05-15 Alan Modra + + * dwarf.c (display_debug_names): Complain when header length is + too small. Avoid pointer UB. Sanity check augmentation string, + CU table, TU table and foreign TU table sizes. + +2021-05-15 Alan Modra + + * dwarf.c (display_debug_frames): Delete initial_length_size. + Avoid pointer UB. Constrain data reads to length given in header. + Sanity check cie header length. Only skip up to next FDE on + finding augmentation data too long. + +2021-05-15 Alan Modra + + * dwarf.c (read_cie): Add more sanity checks to ensure data + pointer is not bumped past end. + +2021-05-15 Alan Modra + + * dwarf.c (display_debug_ranges): Delete initial_length_size. + Correct fallback size calculated on finding a reloc. Constrain + data reads to length given in header. Avoid pointer UB. + +2021-05-15 Alan Modra + + * dwarf.c (display_debug_rnglists_list): Avoid pointer UB. + +2021-05-15 Alan Modra + + * dwarf.c (display_debug_str_offsets): Constrain reads to length + given in header. + +2021-05-15 Alan Modra + + * dwarf.c (display_debug_aranges): Delete initial_length_size. + Use end_ranges to constrain data reads to header length. Avoid + pointer UB. + +2021-05-15 Alan Modra + + * dwarf.c (display_loc_list): Avoid pointer UB. Correct check + before reading uleb length. Warn on excess length. + +2021-05-15 Alan Modra + + * dwarf.c (display_debug_macro): Print strings that might not + be zero terminated with %*s. Don't bump curr if unterminated. + +2021-05-15 Alan Modra + + * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size. + Simplify length sanity check, and check for too small lengths. + Constrain data reads to header length. Avoid pointer UB. + +2021-05-15 Alan Modra + + * dwarf.c (display_debug_macinfo): Print strings that might not + be zero terminated with %*s. Don't bump curr if unterminated. + +2021-05-15 Alan Modra + + * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size. + Simplify length check. Constrain reads to length given by header. + +2021-05-15 Alan Modra + + * dwarf.c (display_debug_lines_decoded): Don't use strnlen when + we have already checked for NUL termination. + +2021-05-15 Alan Modra + + * dwarf.c (read_debug_line_header): Delete initial_length_size. + Avoid pointer UB. Keep within length specified by header. + Delete dead code. + 2021-05-15 Alan Modra * dwarf.c (process_debug_info): Always do the first CU length @@ -1059,7 +1560,7 @@ For older changes see ChangeLog-2020 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2021-2022 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright