cross/avr-binutils: Update to 2.42 Add pkgsrc patch for binutils testsuite. Changelog ========= 2024-01-15 Nick Clifton <nickc@redhat.com> * 2.42 branch point. 2023-12-04 Tom Tromey <tom@tromey.com> * dwarf.c (display_debug_names): Handle empty .debug_names hash table. Name entries start at 1. 2023-11-15 Arsen ArsenoviÄ\u2021 <arsen@aarsen.me> * aclocal.m4: Regenerate. * configure: Regenerate. * po/Make-in ($(srcdir)/$(PACKAGE).pot): Output to a .pot temporary file, to suppress xgettext checking charset names. 2023-11-14 Nick Clifton <nickc@redhat.com> PR 31062 * objdump.c (decompressed_dumps): New local variable. (usage): Mention the -z/--decompress option. (long_options): Add --decompress. (dump_section_header): Add "COMPRESSED" to the Flags field of any compressed section. (dump_section): Warn users when dumping a compressed section. (display_any_bfd): Decompress the section if decompressed_dumps is true. (main): Handle the -z/--decompress option. * NEWS: Mention the new feature. * doc/binutils.texi: Document the new feature. * testsuite/binutils-all/objdump.s: Update expected output. * testsuite/binutils-all/objdump.exp: Add test of -Z -s. * testsuite/binutils-all/objdump.Zs: New file. * readelf.c (maybe_expand_or_relocate_section): New function. Contains common code found in dump functions. Adds a note message if a compressed section is not being decompressed. (dump_section_as_strings): Use new function. (dump_section_as_bytes): Likewise. 2023-11-10 Simon Marchi <simon.marchi@efficios.com> * readelf.c (decode_AMDGPU_machine_flags): Handle gfx1100, gfx1101, gfx1102. 2023-11-10 Vsevolod Alekseyev <sevaa@sprynet.com> PR 30880 * dwarf.c (read_and_display_attr_value): Fix loclist handling. (display_loclists_list): Likewise. 2023-10-24 Tom de Vries <tdevries@suse.de> * dwarf.c (display_gdb_index): Handle unknown name of main. 2023-10-10 Tom de Vries <tdevries@suse.de> * dwarf.c (display_lang): New function, factored out of ... (read_and_display_attr_value): ... here. (display_gdb_index): Handle v9 .gdb_index. 2023-10-05 A. Wilcox <awilfox@adelielinux.org>w PR 30916 * testsuite/binutils-all/addr2line.exp: Do not use PowerPC specific options when working with a MUSL target. 2023-10-02 Vsevolod Alekseyev <sevaa@sprynet.com> PR 29267 * dwarf.c (fetch_indexed_value): Delete. (fetch_indexed_offset): Correct base address calculation. (read_and_display_attr_value): Replace uses of fetch_indexed_value with fetch_indexed_offset. 2023-09-28 Frederic Cambus <fred@statdns.com> * readelf.c (get_segment_type): Handle PT_OPENBSD_NOBTCFI segment type. 2023-09-26 Nick Clifton <nickc@redhat.com> * testsuite/binutils-all/ar.exp: Remove assumption of the setting of umask when creating test archive files. 2023-09-25 Vsevolod Alekseyev <sevaa@sprynet.com> PR 30792 * dwarf.h (struct debug_info): Remove range_versions field. * dwarf.c (fetch_indexed_offset): New function. (read_and_display_attr_value): Use it for DW_FORM_rnglistx. Remove code to initialise range_versions. (skip_attribute): New function. (read_bases): Read and reccord all range and address bases in a CU. (process_debug_info): Call read_bases. (display_debug_rnglists): Rename to display_debug_rnglists_unit_header and only display the range list header information. (display_debug_ranges): Adjust. 2023-09-05 Nick Clifton <nickc@redhat.com> PR 30684 * readelf.c (extra_sym_info): New variable. (section_name_valid): Also check for filedata being NULL. (section_name_print): Delete. (section_index_real): New function. Returns true if the given section index references a real section. (print_symbol): Rename to print_sumbol_name. (printable_section_name): Use a rotating array of static buffers for the return string. (printable_section_name_from_index): Merge code from dump_relocations and get_symbol_index_type into here. (long_option_values): Add OPTION_NO_EXTRA_SYM_INFO. (options): Add "extra-sym-info" and "no-extra-sym-info". (usage): Mention new options. (parse_args): Parse new options. (get_symbol_index_type): Delete. (print_dynamic_symbol_size): Rename to print_symbol_size. (print_dynamic_symbol): Rename to print_symbol. (print_symbol_table_heading): New function. (process_symbol_table): Use new function. * doc/binutils.texi: Document the new option. * NEWS: Mention the new feature. 2023-08-23 Nick Clifton <nickc@redhat.com> PR 30781 * dwarf.h (debug_info): Add range_versions field. * dwarf.c (read_and_display_attr_value): When recording a range arribute also ecord the dwarf version number. (is_range_list_for_this_section): New function. (display_debug_ranges): Only show debug ranges whose version is suitable for the secction being displayed. 2023-07-30 Jose E. Marchesi <jose.marchesi@oracle.com> * readelf.c (get_machine_flags): Recognize and pretty print BPF machine flags. 2023-07-24 Johannes Schauer Marin Rodrigues <josch@debian.org> * doc/binutils.texi (objcopy): Document change in behaviour of objcopy's --preserve-dates command line option. 2023-07-09 Fangrui Song <maskray@google.com> PR 30592 * NEWS: Mention the new feature for objcopy. * doc/binutils.texi: Mention "large". * objcopy.c (parse_flags): Parse "large". (check_new_section_flags): Error if "large" is used with a non-x86-64 ELF target. * testsuite/binutils-all/x86-64/large-sections.d: New. * testsuite/binutils-all/x86-64/large-sections.s: New. * testsuite/binutils-all/x86-64/large-sections-i386.d: New. * testsuite/binutils-all/x86-64/large-sections-2.d: New. * testsuite/binutils-all/x86-64/large-sections-2-x32.d: New. 2023-07-03 Nick Clifton <nickc@redhat.com> * README-how-to-make-a-release: Change some version numbers. * configure: Regenerate. * po/binutils.pot: Regenerate. 2023-07-03 Nick Clifton <nickc@redhat.com> 2.41 Branch Point. 2023-06-30 Nick Clifton <nickc@redhat.com> PR 30598 * strings.c (set_string_min): New function. (main): Use it. (print_unicode_stream): Calculate buffer size using a size_t. 2023-06-30 Nick Clifton <nickc@redhat.com> PR 30595 * strings.c (main): Check for an excessively large minimum string length. 2023-06-21 Nick Clifton <nickc@redhat.com> * testsuite/lib/binutils-common.exp (prune_warnings_extra): Prune warnings about -z execstack creating an executable stack. 2023-05-30 Nick Clifton <nickc@redhat.com> * od-pe.c (targ_info): New array. (get_target_specific_info): New function (decode_machine_number): Retire. Use get_target_specific_info instead. (is_pe_object_magic): Likewise. (dump_pe_file_header): Display more information. Rework layout to be similar to that from 'objdump -p'. Add code to handle larger than normnal AOUT headers. 2023-05-30 Nick Clifton <nickc@redhat.com> * od-pe.c (decode_machine_number): Add ARMMAGIC value of 0xa00. (is_pe_object_magic): Likewise. 2023-05-26 Nick Clifton <nickc@redhat.com> * od-pe.c: New file: Dumps fields in PE format headers. * configure.ac (od_vectors): Add objdump_private_desc_pe for PE format targets. (od_files): Add od-pe for PE format targets. * configure: Regenerate. * Makefile.am (CFILES): Add od-pe.c (EXTRA_objdump_SOURCE): Likewise. * Makefile.in: Generate. * NEWS: Mention the new feature. * doc/binutils.texi: Document the new support. * objdump.c (wide_output): Change from local to global. * objdump.h (wide_output): Prototype. (objdump_private_desc_pe): Prototype. * testsuite/binutils-all/objdump.exp: Add a test of the new feature. 2023-05-09 Enze Li <enze.li@gmx.com> * README: Correct a typo. 2023-05-02 Nick Clifton <nickc@redhat.com> * MAINTAINERS: Remove Dimity Diky as MSP430 maintainer. 2023-04-20 Nick Clifton <nickc@redhat.com> * SECURITY.txt: New file. 2023-04-19 Nick Clifton <nickc@redhat.com> PR 30355 * dwarf.c (read_and_display_attr_value): Correctly handle DW_loclistx attributes that index a version 5 .debug_loclists section. 2023-04-17 Nick Clifton <nickc@redhat.com> PR 30142 * rescoff.c (write_coff_file): Add the SEC_READONLY flag to the .rsrc section. 2023-04-11 Nick Clifton <nickc@redhat.com> PR 30327 * dwarf.c (read_and_display_attr_value): Warn if the number of views is greater than the number of locations. PR 30313 * dwarf.c (display_debug_lines_decoded): Check for an overlarge number of files or directories. PR 30312 * dwarf.c (prealloc_cu_tu_list): Always allocate at least one entry. PR 30311 * readelf.c (uncompress_section_contents): Check for a suspiciously large uncompressed size. 2023-03-30 Nick Clifton <nickc@redhat.com> PR 30284 * dwarf.c (read_and_display_attr_value): Detect and ignore negative base values. 2023-03-23 Frederic Cambus <fred@statdns.com> * readelf.c (get_segment_type): Handle PT_OPENBSD_MUTABLE segment type. 2023-03-14 Nick Clifton <nickc@redhat.com> PR 30227 * dwarf.c (process_cu_tu_index): Prevent excessive memory allocation when nused is large and ncols is zero. 2023-02-09 Tom Tromey <tromey@adacore.com> * dwarf-mode.el: Bump version to 1.8. (dwarf-insert-substructure): Tighten regexp. (dwarf-refresh-all): New defun. (dwarf-mode-map): Bind "A" to dwarf-refresh-all. (dwarf-mode): Remove old FIXME. 2023-02-07 Nick Clifton <nickc@redhat.com> PR 30080 * doc/binutils.texi (nm): Update description of the 'n' symbol type. 2023-01-31 Nick Clifton <nickc@redhat.com> * po/sv.po: Updated Swedish translation. 2023-01-23 Nick Clifton <nickc@redhat.com> * po/sv.po: Updated Swedish translation. 2023-01-18 Nick Clifton <nickc@redhat.com> PR 29993 * objcopy.c (merge_gnu_build_notes): Remember the last non-deleted note in order to speed up the scan for matching notes. 2023-01-16 Nick Clifton <nickc@redhat.com> * po/sv.po: Updated Swedish translation. 2023-01-09 Nick Clifton <nickc@redhat.com> * po/bg.po: Updated Bulgarian translation. * po/ro.po: Updated Romainian translation. 2023-01-05 Nick Clifton <nickc@redhat.com> * MAINTAINERS: Remove Stephen Casner as the PDP11 maintainer. 2023-01-03 Nick Clifton <nickc@redhat.com> * po/fr.po: Updated French translation. * po/uk.po: Updated Ukrainian translation. 2023-01-03 Luis Machado <luis.machado@arm.com> * readelf.c (get_note_type): Add support for NT_ARM_SSVE and NT_ARM_ZA note types. 2022-12-31 Nick Clifton <nickc@redhat.com> * 2.40 branch created. 2022-12-31 Nick Clifton <nickc@redhat.com> * po/ro.po: Updated Romanian translation. 2022-12-21 Nick Clifton <nickc@redhat.com> PR 29924 * objdump.c (load_specific_debug_section): Check for excessively large sections. 2022-12-19 Tom Tromey <tromey@adacore.com> * dwarf-mode.el (dwarf-do-refresh): Avoid compiler warning. 2022-12-19 Nick Clifton <nickc@redhat.com> PR 29914 * dwarf.c (fetch_indexed_value): Fail if the section is not big enough to contain a header size field. (display_debug_addr): Fail if the computed address size is too big or too small. 2022-12-16 Nick Clifton <nickc@redhat.com> PR 29908 * dwarf.c (display_debug_addr): Check for corrupt header lengths. 2022-12-01 Nick Clifton <nickc@redhat.com> PR 25202 * objcopy.c (copy_object): Set VerilogDataEndianness to the endianness of the input file. (copy_main): Verifiy the value set by the --verilog-data-width option. * testsuite/binutils-all/objcopy.exp: Add tests of the new behaviour. * testsuite/binutils-all/verilog-I4.hex: New file. 2022-11-21 Nick Clifton <nickc@redhat.com> PR 29764 * doc/binutils.texi (objdump): Note that the -m option supports the <architecture>:<machine> syntax. 2022-11-04 Nick Clifton <nickc@redhat.com> * README-how-to-make-a-release: Add instructions for uploading the gprofng documentation. 2022-10-31 Nick Clifton <nickc@redhat.com> PR 29457 * configure.ac: Add --enable-colored-disassembly. * objdump.c: Add --disassembler-color=terminal. * doc/binutils.texi (objdump): Document the new option. * NEWS: Mention new feature. * config.in: Regenerate in. * configure: Regenerate. 2022-10-19 Nick Clifton <nickc@redhat.com> * MAINTAINERS: Add section on patches, copyright and DCO. 2022-10-12 Nick Clifton <nickc@redhat.com> PR 29665 * objcopy.c (copy_object): Use the input filename when reporting that a .gnu_debuglink section already exists. 2022-10-03 Nick Clifton <nickc@redhat.com> * readelf.c (get_32bit_section_headers): Return false if the e_shoff field is zero. (get_64bit_section_headers): Likewise. 2022-09-28 Nick Clifton <nickc@redhat.com> PR 29628 * size.c (usage): Add -f. * doc/binutils.texi (size): Add -f. 2022-09-20 Nick Clifton <nickc@redhat.com> * objcopy.c (copy_object): Do not issue a warning message when encountering empty .gnu.build.attribute sections. 2022-09-14 Rupesh Potharla <Rupesh.Potharla@amd.com> * testsuite/binutils-all/readelf.exp (readelf_wi_test): Extend regexps to allow for output genreated by the Clang compiler. 2022-09-12 Aaron Merey <amerey@redhat.com> * objcopy.c (might_need_separate_debug_info): Add with_source_code to the options that cause this function to return true. (main.c): Add with_source_code to the options that enable dump_any_debugging. 2022-09-09 Nick Clifton <nickc@redhat.com> PR 29532 * objcopy.c (setup_section): Leave group sections intact when creating separate debuginfo files. 2022-09-08 Nick Clifton <nickc@redhat.com> PR 29523 * dwarf.c (display_debug_lines_decoded): Correctly handle DWARF-5 directory and filename tables. 2022-09-02 Aaron Merey <amerey@redhat.com> PR 29075 * objdump.c (find_separate_debug): New function. Finds the bfd corresponding to the separate debuginfod of a given bfd. (find_alt_debug): New function. Finds the bfd corresponding to the .gnu_debugaltlink of a given bfd. (slurp_file): Add bfd parameter. If a source file cannot be found attempt to download it from debuginfod, if enabled. (try_print_file_open): Add bfd parameter and pass it to slurp_file. (show_line): If debuginfod is enabled, call bfd_find_nearest_line_with_alt instead of bfd_find_nearest_line. 2022-09-01 Nick Clifton <nickc@redhat.com> PR 29534 * dllwrap.c: Replace uses of choose_temp_base() with make_temp_file(). * dlltool.c: Likewise. * resrc.c: Likewise. 2022-08-23 Nick Clifton <nickc@redhat.com> PR 29489 * dlltool.c (deterministic): New variable. (gen_lib_file): If deterministic is true set the BFD_DETERMINISTIC_OUTPUT flag. (usage): Mention --deterministic-libraries and --non-deterministic-libraries. (long_options): Add new options. (main): Parse new options. * doc/binutils.texi: Document the new options. * NEWS: Mention the new feature. 2022-08-22 Nick Clifton <nickc@redhat.com> * readelf.c (check_magic_number): New function. Checks the magic bytes at the start of a file. If they are not the ELF format magic values, then attempts to generate a helpful error message. (process_file_header): Call check_magic_number. 2022-08-09 Nick Clifton <nickc@redhat.com> PR 29457 * objdump.c (disassembler_color): Change type to an enum. (disassembler_extended_color): Remove. (usage): Update. (objdump_color_for_assembler_style): Update. (main): Update initialisation of disassembler_color. If not initialised via a command line option, set based upon terminal output. * doc/binutils.texi: Update description of disassmbler-color option. * testsuite/binutils-all/arc/objdump.exp: Add --disassembler-color=off option when disassembling. * testsuite/binutils-all/arm/objdump.exp: Likewise. 2022-08-08 Nick Clifton <nickc@redhat.com> * README-how-to-make-a-release: Add a link to the NEWS files in the release announcement email. 2022-07-08 Nick Clifton <nickc@redhat.com> * 2.39 branch created. 2022-07-01 Nick Clifton <nickc@redhat.com> * dwarf.c (display_debug_rnglists): Add newline at end of listing. 2022-06-30 Nick Clifton <nickc@redhat.com> * dwarf.c (dwarf_select_sections_by_name): If the entry's value is zero then clear the corresponding variable. (dwarf_select_sections_by_letters): Likewise. * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE debuginfod tests to fail. 2022-06-28 Nick Clifton <nickc@redhat.com> PR 29267 * dwarf.c (display_debug_rnglists): New function, broken out of.. (display_debug_ranges): ... here. (read_and_display_attr_value): Correct calculation of index displayed for DW_FORM_loclistx and DW_FORM_rnglistx. * testsuite/binutils-all/x86-64/pr26808.dump: Update expected output. 2022-06-27 Nick Clifton <nickc@redhat.com> PR 29289 * dwarf.c (display_debug_names): Replace assert with a warning message. 2022-06-27 Nick Clifton <nickc@redhat.com> PR 29290 * dwarf.c (read_and_display_attr_value): Check that debug_info_p is set before dereferencing it. 2022-06-27 Nick Clifton <nickc@redhat.com> * dwarf.c (fetch_indexed_string): Do not use length of first table in string section as the length of every table in the section. * testsuite/binutils-all/pr26112.r: Update expected output. 2022-06-22 Kumar N, Bhuvanendra <Kavitha.Natarajan@amd.com> * dwarf.c (fetch_indexed_string): Added new parameter str_offsets_base to calculate the string offset. (read_and_display_attr_value): Read DW_AT_str_offsets_base attribute. (process_debug_info): While allocating memory and initializing debug_information, do it for do_debug_info also, if its true. (load_separate_debug_files): Load .debug_str_offsets if exists. * dwarf.h (struct debug_info): Add str_offsets_base field. 2022-06-22 Marcus Nilsson <brainbomb@gmail.com> * readelf.c: (slurp_relr_relocs) Use malloc instead of xmalloc when allocating space for relocations. 2022-06-21 Kumar N, Bhuvanendra <Kavitha.Natarajan@amd.com> * dwarf.h (struct debug_info): Add rnglists_base field. * dwarf.c (read_and_display_attr_value): Read attribute DW_AT_rnglists_base. (display_debug_rnglists_list): While handling DW_RLE_base_addressx, DW_RLE_startx_endx, DW_RLE_startx_length items, pass the proper parameter value to fetch_indexed_addr(), i.e. fetch the proper entry in .debug_addr section. (display_debug_ranges): Add rnglists_base to the .debug_rnglists base address. (load_separate_debug_files): Load .debug_addr section, if exists. 2022-05-20 Nick Clifton <nickc@redhat.com> * dwarf.c (dwarf_select_sections_by_names): Return zero if no sections were selected. (dwarf_select_sections_by_letters): Likewise. * dwarf.h: (dwarf_select_sections_by_names): Update prototype. (dwarf_select_sections_by_letters): Update prototype. * objdump.c (might_need_separate_debug_info): New function. (dump_bfd): Call new function before attempting to load separate debug info files. (main): Do not enable dwarf section dumping for -WK or -WN. * readelf.c (parse_args): Do not enable dwarf section dumping for -wK or -wN. (might_need_separate_debug_info): New function. (process_object): Call new function before attempting to load separate debug info files. * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE debuginfod tests to pass. * testsuite/binutils-all/objdump.Wk: Add extra regexps. * testsuite/binutils-all/readelf.k: Add extra regexps. 2022-05-19 Nick Clifton <nickc@redhat.com> * dlltool.c (run): Initialise errmsg_fmt. * dllwrap.c (run): Likewise. * resrc.c (run_cmd): Likewise. * mclex.c (mc_add_keyword): Initialise usz. * srconv.c (wd_hd): Initialise hd.spare2. * windmc.c (mc_add_node_lang): Initialise s. (mc_generate_bin_item): Initialise cvt_txt. (main): Initialise u. 2022-05-18 Nick Clifton <nickc@redhat.com> PR 29135 * nm.c (non_weak): New variable. (filter_symbols): When non-weak is true, ignore weak symbols. (long_options): Add --no-weak. (usage): Mention --no-weak. (main): Handle -W/--no-weak. * doc/binutils.texi: Document new feature. * NEWS: Mention the new feature. * testsuite/binutils-all/nm.exp: Add test of new feature. * testsuite/binutils-all/no-weak.s: New test source file. 2022-04-25 Nick Clifton <nickc@redhat.com> PR 29072 * testsuite/lib/binutils-common.exp (prune_warnings_extra): Filter out notes about the executable stacjk behaviour beign deprecated. 2022-04-12 Nick Clifton <nickc@redhat.com> PR 28992 * objcopy.c (is_strip_section_1): Do not delete debuglink sections when stripping debug information. 2022-04-06 Nick Clifton <nickc@redhat.com> PR 28981 * dwarf.c (fetch_indexed_value): Rename to fecth_indexed_addr and return the address, rather than a string. (fetch_indexed_value): New function - returns a value indexed by a DW_FORM_loclistx or DW_FORM_rnglistx form. (read_and_display_attr_value): Add support for DW_FORM_loclistx and DW_FORM_rnglistx. (process_debug_info): Load the loclists and rnglists sections. (display_loclists_list): Add support for DW_LLE_base_addressx, DW_LLE_startx_endx, DW_LLE_startx_length and DW_LLE_default_location. (display_offset_entry_loclists): New function. Displays a .debug_loclists section that contains offset entry tables. (display_debug_loc): Call the new function. (display_debug_rnglists_list): Add support for DW_RLE_base_addressx, DW_RLE_startx_endx and DW_RLE_startx_length. (display_debug_ranges): Display the contents of the section's header. * dwarf.h (struct debug_info): Add loclists_base field. * testsuite/binutils-all/dw5.W: Update expected output. * testsuite/binutils-all/x86-64/pr26808.dump: Likewise. 2022-04-01 John Baldwin <jhb@FreeBSD.org> * readelf.c (get_freebsd_elfcore_note_type): Handle NT_FREEBSD_X86_SEGBASES. 2022-03-31 Nick Clifton <nickc@redhat.com> * arlex.l: Accept the plus character as part of a filename. 2022-03-16 Fangrui Song <maskray@google.com> PR binutils/28926 * objcopy.c (filter_symbols): Apply weaken to STB_GNU_UNIQUE symbols * NEWS: Mention feature. * testsuite/binutils-all/objcopy.exp (objcopy_test_symbol_manipulation): New test. * testsuite/binutils-all/weaken-gnu-unique.s: New. 2022-03-16 Martin Storsjö <martin@martin.st> PR 28885 * dlltool.c (main): use imp_name rather than dll_name when generating a temporary file name. 2022-03-16 Simon Marchi <simon.marchi@efficios.com> * readelf.c (dump_relocations): Handle EM_AMDGPU. 2022-03-16 Simon Marchi <simon.marchi@efficios.com> * Makefile.am (readelf_CFLAGS): New. (readelf_LDADD): Add MSGPACK_LIBS. * Makefile.in: Re-generate. * config.in: Re-generate. * configure: Re-generate. * configure.ac: Add --with-msgpack flag and check for msgpack using pkg-config. * readelf.c: Include msgpack.h if HAVE_MSGPACK. (print_note_contents_hex): New. (print_indents): New. (dump_msgpack_obj): New. (dump_msgpack): New. (print_amdgpu_note): New. (process_note): Handle NT_AMDGPU_METADATA note contents. Use print_note_contents_hex. 2022-03-16 Simon Marchi <simon.marchi@efficios.com> * readelf.c (get_amdgpu_elf_note_type): New. (process_note): Handle "AMDGPU" notes. 2022-03-16 Simon Marchi <simon.marchi@efficios.com> * readelf.c: Include elf/amdgcn.h. (decode_AMDGPU_machine_flags): New. (get_machine_flags): Handle flags for EM_AMDGPU machine type. 2022-03-16 Simon Marchi <simon.marchi@efficios.com> * readelf.c (get_osabi_name): Handle EM_AMDGPU OS ABIs. 2022-03-16 Nick Clifton <nickc@redhat.com> * po/sr.po: Updated Serbian translation. 2022-03-15 Tom Tromey <tromey@adacore.com> * dwarf-mode.el: Now 1.7. (dwarf--sentinel): Switch to the process buffer. 2022-03-11 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> * MAINTAINERS: Add gprofng maintainer. * README-how-to-make-a-release: Add gprofng. 2022-03-10 Nick Clifton <nickc@redhat.com> * dwarf.c (use_debuginfod): New variable. Set to 1. (load_separate_debug_info): Only call debuginfod_fetch_separate_debug_info is use_debuginfod is true. (dwarf_select_sections_by_names): Add do-not-use-debuginfod and use-debuginfod options. (dwarf_select_sections_by_letters): Add D and E options. * dwarf.h (use_debuginfod): New extern. * objdump.c (usage): Mention the new options. * readelf.c (usage): Likewise. * doc/binutils.texi: Document the new options. * doc/debug-options.texi: Describe the new options. * NEWS: Mention the new feature. * testsuite/binutils-all/debuginfod.exp: Add tests of the new options. 2021-03-06 Maciej W. Rozycki <macro@orcam.me.uk> * testsuite/binutils-all/mips/mips1-branch-alias.d: New test. * testsuite/binutils-all/mips/mips1-branch-noalias.d: New test. * testsuite/binutils-all/mips/mips2-branch-alias.d: New test. * testsuite/binutils-all/mips/mips2-branch-noalias.d: New test. * testsuite/binutils-all/mips/mips32r6-branch-alias.d: New test. * testsuite/binutils-all/mips/mips32r6-branch-noalias.d: New test. * testsuite/binutils-all/mips/micromips-branch-alias.d: New test. * testsuite/binutils-all/mips/micromips-branch-noalias.d: New test. * testsuite/binutils-all/mips/mips-branch-alias.s: New test source. * testsuite/binutils-all/mips/micromips-branch-alias.s: New test source. * testsuite/binutils-all/mips/mips.exp: Run the new tests. 2022-03-04 Simon Marchi <simon.marchi@polymtl.ca> * readelf.c (process_dynamic_section): Fix indentation.diff -r1.36 -r1.37 pkgsrc/cross/avr-binutils/Makefile
(micha)
@@ -1,75 +1,58 @@ | @@ -1,75 +1,58 @@ | |||
1 | # $NetBSD: Makefile,v 1.36 2022/06/28 11:31:14 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.37 2024/04/26 11:48:09 micha Exp $ | |
2 | 2 | |||
3 | DISTNAME= binutils-2.38 | 3 | DISTNAME= binutils-2.42 | |
4 | PKGNAME= ${DISTNAME:S/^/avr-/} | 4 | PKGNAME= ${DISTNAME:S/^/avr-/} | |
5 | PKGREVISION= 1 | |||
6 | CATEGORIES= cross | 5 | CATEGORIES= cross | |
7 | MASTER_SITES= ${MASTER_SITE_GNU:=binutils/} | 6 | MASTER_SITES= ${MASTER_SITE_GNU:=binutils/} | |
8 | EXTRACT_SUFX= .tar.bz2 | 7 | EXTRACT_SUFX= .tar.lz | |
9 | 8 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | COMMENT= GNU binutils for Atmel AVR 8-bit RISC microcontrollers | 10 | COMMENT= GNU binutils for Atmel AVR 8-bit RISC microcontrollers | |
12 | LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3 | 11 | LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3 | |
13 | 12 | |||
14 | USE_LANGUAGES= c c++ | 13 | USE_LANGUAGES= c c++ | |
15 | # No need to use makeinfo - this package doesn't install the documentation. | 14 | # No need to use makeinfo - this package doesn't install the documentation. | |
16 | USE_TOOLS+= gmake | 15 | USE_TOOLS+= gmake perl | |
17 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
18 | GNU_CONFIGURE= yes | 17 | GNU_CONFIGURE= yes | |
19 | USE_PKGLOCALEDIR= yes | 18 | USE_PKGLOCALEDIR= yes | |
20 | USE_GNU_CONFIGURE_HOST= no | 19 | USE_GNU_CONFIGURE_HOST= no | |
21 | 20 | |||
22 | CONFIGURE_ARGS+= --enable-deterministic-archives | 21 | CONFIGURE_ARGS+= --enable-deterministic-archives | |
23 | CONFIGURE_ARGS+= --disable-lto | 22 | CONFIGURE_ARGS+= --disable-lto | |
24 | CONFIGURE_ARGS+= --disable-nls | 23 | CONFIGURE_ARGS+= --disable-nls | |
25 | CONFIGURE_ARGS+= --disable-werror | 24 | CONFIGURE_ARGS+= --disable-werror | |
26 | CONFIGURE_ARGS+= --target=avr | 25 | CONFIGURE_ARGS+= --target=avr | |
27 | CONFIGURE_ARGS+= --with-system-zlib | 26 | CONFIGURE_ARGS+= --with-system-zlib | |
28 | 27 | |||
29 | AUTO_MKDIRS= yes | 28 | AUTO_MKDIRS= yes | |
30 | 29 | |||
31 | TEST_DEPENDS= dejagnu>=1.6.2:../../devel/dejagnu | 30 | TEST_DEPENDS= dejagnu>=1.6.2:../../devel/dejagnu | |
32 | TEST_TARGET= check | 31 | TEST_TARGET= check | |
33 | 32 | |||
34 | # Prevent the need to run texi2pod.pl and pod2mane | |||
35 | # hence the need for perl as build dependency. | |||
36 | post-configure: | |||
37 | set -e; \ | |||
38 | cd ${WRKSRC}; \ | |||
39 | for f in ld/ldver.texi ld/ld.1 gas/doc/gasver.texi \ | |||
40 | gas/doc/as.1; do \ | |||
41 | ${TOUCH} $${f}; \ | |||
42 | done | |||
43 | ||||
44 | # emulator/simulavr wants libbfd.so or libbfd.a and bfd.h | |||
45 | # --with-bfd=path location of AVR-binutils version of libbfd install | |||
46 | # where include/bfd.h and lib/libbfd.a are found (from binutils) | |||
47 | post-build: | |||
48 | set -e; \ | |||
49 | (cd ${WRKSRC}/bfd; ${GMAKE} all libbfd.a); | |||
50 | ||||
51 | post-install: | 33 | post-install: | |
34 | ${RM} -f ${DESTDIR}${PREFIX}/avr/lib/ldscripts/stamp | |||
52 | # emulators/simulvar needs library files | 35 | # emulators/simulvar needs library files | |
53 | (cd ${WRKSRC}/bfd; \ | 36 | (cd ${WRKSRC}/bfd; \ | |
54 | ${GMAKE} install-exec install-data; \ | 37 | ${GMAKE} install-exec install-data; \ | |
55 | ${LIBTOOL} --mode install ${INSTALL_DATA} libbfd.la \ | 38 | ${LIBTOOL} --mode install ${INSTALL_DATA} libbfd.la \ | |
56 | ${DESTDIR}${PREFIX}/avr/lib; \ | 39 | ${DESTDIR}${PREFIX}/avr/lib; \ | |
57 | ${INSTALL_DATA} bfd.h ${DESTDIR}${PREFIX}/avr/include; \ | 40 | ${INSTALL_DATA} bfd.h ${DESTDIR}${PREFIX}/avr/include; \ | |
58 | ) | 41 | ) | |
59 | # emulators/simulavr wants libiberty | 42 | # emulators/simulavr wants libiberty | |
60 | (cd ${WRKSRC}/libiberty ; \ | 43 | (cd ${WRKSRC}/libiberty ; \ | |
61 | ${INSTALL_DATA} libiberty.* ${DESTDIR}${PREFIX}/avr/lib/libiberty \ | 44 | ${INSTALL_DATA} libiberty.* ${DESTDIR}${PREFIX}/avr/lib/libiberty \ | |
62 | ) | 45 | ) | |
63 | # emulators/simulavr wants following header files | 46 | # emulators/simulavr wants following header files | |
64 | (cd ${WRKSRC}/include; \ | 47 | (cd ${WRKSRC}/include; \ | |
65 | for f in ansidecl.h symcat.h diagnostics.h ; do \ | 48 | for f in ansidecl.h symcat.h diagnostics.h ; do \ | |
66 | ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/avr/include; \ | 49 | ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/avr/include; \ | |
67 | done; \ | 50 | done; \ | |
68 | ) | 51 | ) | |
69 | # Plugins may collide with other binutils flavours | 52 | # Plugins may collide with other binutils flavours | |
70 | ${MV} ${DESTDIR}${PREFIX}/lib/bfd-plugins \ | 53 | ${MV} ${DESTDIR}${PREFIX}/lib/bfd-plugins \ | |
71 | ${DESTDIR}${PREFIX}/avr/lib/ | 54 | ${DESTDIR}${PREFIX}/avr/lib/ | |
72 | 55 | |||
73 | BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.3 | 56 | BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.3 | |
74 | .include "../../devel/zlib/buildlink3.mk" | 57 | .include "../../devel/zlib/buildlink3.mk" | |
75 | .include "../../mk/bsd.pkg.mk" | 58 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.13 2021/09/22 05:59:26 mef Exp $ | 1 | @comment $NetBSD: PLIST,v 1.14 2024/04/26 11:48:09 micha Exp $ | |
2 | avr/bin/ar | 2 | avr/bin/ar | |
3 | avr/bin/as | 3 | avr/bin/as | |
4 | avr/bin/ld | 4 | avr/bin/ld | |
5 | avr/bin/ld.bfd | 5 | avr/bin/ld.bfd | |
6 | avr/bin/nm | 6 | avr/bin/nm | |
7 | avr/bin/objcopy | 7 | avr/bin/objcopy | |
8 | avr/bin/objdump | 8 | avr/bin/objdump | |
9 | avr/bin/ranlib | 9 | avr/bin/ranlib | |
10 | avr/bin/readelf | 10 | avr/bin/readelf | |
11 | avr/bin/strip | 11 | avr/bin/strip | |
12 | avr/include/ansidecl.h | 12 | avr/include/ansidecl.h | |
13 | avr/include/bfd.h | 13 | avr/include/bfd.h | |
14 | avr/include/diagnostics.h | 14 | avr/include/diagnostics.h | |
@@ -82,38 +82,50 @@ avr/lib/ldscripts/avrtiny.xr | @@ -82,38 +82,50 @@ avr/lib/ldscripts/avrtiny.xr | |||
82 | avr/lib/ldscripts/avrtiny.xu | 82 | avr/lib/ldscripts/avrtiny.xu | |
83 | avr/lib/ldscripts/avrxmega1.x | 83 | avr/lib/ldscripts/avrxmega1.x | |
84 | avr/lib/ldscripts/avrxmega1.xbn | 84 | avr/lib/ldscripts/avrxmega1.xbn | |
85 | avr/lib/ldscripts/avrxmega1.xe | 85 | avr/lib/ldscripts/avrxmega1.xe | |
86 | avr/lib/ldscripts/avrxmega1.xn | 86 | avr/lib/ldscripts/avrxmega1.xn | |
87 | avr/lib/ldscripts/avrxmega1.xr | 87 | avr/lib/ldscripts/avrxmega1.xr | |
88 | avr/lib/ldscripts/avrxmega1.xu | 88 | avr/lib/ldscripts/avrxmega1.xu | |
89 | avr/lib/ldscripts/avrxmega2.x | 89 | avr/lib/ldscripts/avrxmega2.x | |
90 | avr/lib/ldscripts/avrxmega2.xbn | 90 | avr/lib/ldscripts/avrxmega2.xbn | |
91 | avr/lib/ldscripts/avrxmega2.xe | 91 | avr/lib/ldscripts/avrxmega2.xe | |
92 | avr/lib/ldscripts/avrxmega2.xn | 92 | avr/lib/ldscripts/avrxmega2.xn | |
93 | avr/lib/ldscripts/avrxmega2.xr | 93 | avr/lib/ldscripts/avrxmega2.xr | |
94 | avr/lib/ldscripts/avrxmega2.xu | 94 | avr/lib/ldscripts/avrxmega2.xu | |
95 | avr/lib/ldscripts/avrxmega2_flmap.x | |||
96 | avr/lib/ldscripts/avrxmega2_flmap.xbn | |||
97 | avr/lib/ldscripts/avrxmega2_flmap.xe | |||
98 | avr/lib/ldscripts/avrxmega2_flmap.xn | |||
99 | avr/lib/ldscripts/avrxmega2_flmap.xr | |||
100 | avr/lib/ldscripts/avrxmega2_flmap.xu | |||
95 | avr/lib/ldscripts/avrxmega3.x | 101 | avr/lib/ldscripts/avrxmega3.x | |
96 | avr/lib/ldscripts/avrxmega3.xbn | 102 | avr/lib/ldscripts/avrxmega3.xbn | |
97 | avr/lib/ldscripts/avrxmega3.xe | 103 | avr/lib/ldscripts/avrxmega3.xe | |
98 | avr/lib/ldscripts/avrxmega3.xn | 104 | avr/lib/ldscripts/avrxmega3.xn | |
99 | avr/lib/ldscripts/avrxmega3.xr | 105 | avr/lib/ldscripts/avrxmega3.xr | |
100 | avr/lib/ldscripts/avrxmega3.xu | 106 | avr/lib/ldscripts/avrxmega3.xu | |
101 | avr/lib/ldscripts/avrxmega4.x | 107 | avr/lib/ldscripts/avrxmega4.x | |
102 | avr/lib/ldscripts/avrxmega4.xbn | 108 | avr/lib/ldscripts/avrxmega4.xbn | |
103 | avr/lib/ldscripts/avrxmega4.xe | 109 | avr/lib/ldscripts/avrxmega4.xe | |
104 | avr/lib/ldscripts/avrxmega4.xn | 110 | avr/lib/ldscripts/avrxmega4.xn | |
105 | avr/lib/ldscripts/avrxmega4.xr | 111 | avr/lib/ldscripts/avrxmega4.xr | |
106 | avr/lib/ldscripts/avrxmega4.xu | 112 | avr/lib/ldscripts/avrxmega4.xu | |
113 | avr/lib/ldscripts/avrxmega4_flmap.x | |||
114 | avr/lib/ldscripts/avrxmega4_flmap.xbn | |||
115 | avr/lib/ldscripts/avrxmega4_flmap.xe | |||
116 | avr/lib/ldscripts/avrxmega4_flmap.xn | |||
117 | avr/lib/ldscripts/avrxmega4_flmap.xr | |||
118 | avr/lib/ldscripts/avrxmega4_flmap.xu | |||
107 | avr/lib/ldscripts/avrxmega5.x | 119 | avr/lib/ldscripts/avrxmega5.x | |
108 | avr/lib/ldscripts/avrxmega5.xbn | 120 | avr/lib/ldscripts/avrxmega5.xbn | |
109 | avr/lib/ldscripts/avrxmega5.xe | 121 | avr/lib/ldscripts/avrxmega5.xe | |
110 | avr/lib/ldscripts/avrxmega5.xn | 122 | avr/lib/ldscripts/avrxmega5.xn | |
111 | avr/lib/ldscripts/avrxmega5.xr | 123 | avr/lib/ldscripts/avrxmega5.xr | |
112 | avr/lib/ldscripts/avrxmega5.xu | 124 | avr/lib/ldscripts/avrxmega5.xu | |
113 | avr/lib/ldscripts/avrxmega6.x | 125 | avr/lib/ldscripts/avrxmega6.x | |
114 | avr/lib/ldscripts/avrxmega6.xbn | 126 | avr/lib/ldscripts/avrxmega6.xbn | |
115 | avr/lib/ldscripts/avrxmega6.xe | 127 | avr/lib/ldscripts/avrxmega6.xe | |
116 | avr/lib/ldscripts/avrxmega6.xn | 128 | avr/lib/ldscripts/avrxmega6.xn | |
117 | avr/lib/ldscripts/avrxmega6.xr | 129 | avr/lib/ldscripts/avrxmega6.xr | |
118 | avr/lib/ldscripts/avrxmega6.xu | 130 | avr/lib/ldscripts/avrxmega6.xu | |
119 | avr/lib/ldscripts/avrxmega7.x | 131 | avr/lib/ldscripts/avrxmega7.x |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.6 2022/06/28 11:31:14 wiz Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.7 2024/04/26 11:48:09 micha Exp $ | |
2 | 2 | |||
3 | BUILDLINK_TREE+= avr-binutils | 3 | BUILDLINK_TREE+= avr-binutils | |
4 | 4 | |||
5 | .if !defined(AVR_BINUTILS_BUILDLINK3_MK) | 5 | .if !defined(AVR_BINUTILS_BUILDLINK3_MK) | |
6 | AVR_BINUTILS_BUILDLINK3_MK:= | 6 | AVR_BINUTILS_BUILDLINK3_MK:= | |
7 | 7 | |||
8 | BUILDLINK_API_DEPENDS.avr-binutils+= avr-binutils>=2.37 | 8 | BUILDLINK_API_DEPENDS.avr-binutils+= avr-binutils>=2.37 | |
9 | BUILDLINK_ABI_DEPENDS.avr-binutils?= avr-binutils>=2.38nb1 | 9 | BUILDLINK_ABI_DEPENDS.avr-binutils?= avr-binutils>=2.42 | |
10 | BUILDLINK_PKGSRCDIR.avr-binutils?= ../../cross/avr-binutils | 10 | BUILDLINK_PKGSRCDIR.avr-binutils?= ../../cross/avr-binutils | |
11 | 11 | |||
12 | .endif # AVR_BINUTILS_BUILDLINK3_MK | 12 | .endif # AVR_BINUTILS_BUILDLINK3_MK | |
13 | 13 | |||
14 | BUILDLINK_TREE+= -avr-binutils | 14 | BUILDLINK_TREE+= -avr-binutils |
@@ -1,11 +1,13 @@ | @@ -1,11 +1,13 @@ | |||
1 | $NetBSD: distinfo,v 1.17 2022/05/23 11:56:34 micha Exp $ | 1 | $NetBSD: distinfo,v 1.18 2024/04/26 11:48:09 micha Exp $ | |
2 | 2 | |||
3 | BLAKE2s (binutils-2.38.tar.bz2) = 80609a31f2040a8418a2004cb9de8b3d409e954c7c1d17afef8e9237227d00ee | 3 | BLAKE2s (binutils-2.42.tar.lz) = 9d915e5ce9348ae0cd4ad6eb2f4c999e78e596571555f3006f361543edda9e92 | |
4 | SHA512 (binutils-2.38.tar.bz2) = 7690b4158bd6587a85c6b98903980b9ac6f16b47f7fd1e60986b0a70388bedcfdc05d75597aa49c81fec1609ce24bed6c26583f76fd2471a9d63394fd9798afc | 4 | SHA512 (binutils-2.42.tar.lz) = 1013012d7dbec2b74a820b942a481e0e0b1953bcc919a2dbeffb919eb92ec551789f1726bb107fb87cd15f6c1a8b09bdcf2e9934dc3da97d037ed2e1554a8bea | |
5 | Size (binutils-2.38.tar.bz2) = 34866647 bytes | 5 | Size (binutils-2.42.tar.lz) = 27112996 bytes | |
6 | SHA1 (patch-bfd_Makefile.in) = f8855061f6ee3b365b9482bd55412d551e4e1206 | 6 | SHA1 (patch-bfd_Makefile.in) = 9b0d2f502fc8e7f29e3a0f363bf339cd97b1e802 | |
7 | SHA1 (patch-binutils_Makefile.in) = e264bf986cd75f2c45e07ee3bd40a81c13760e7b | 7 | SHA1 (patch-binutils_Makefile.in) = e264bf986cd75f2c45e07ee3bd40a81c13760e7b | |
8 | SHA1 (patch-binutils_testsuite_binutils-all_ar.exp) = 36f312a21cc2e659f91cf32eb176e94cd9347158 | |||
8 | SHA1 (patch-gas_Makefile.in) = c11e7ae5913f62bb0aa50b728dbae88172f154c3 | 9 | SHA1 (patch-gas_Makefile.in) = c11e7ae5913f62bb0aa50b728dbae88172f154c3 | |
9 | SHA1 (patch-gprof_Makefile.in) = d0fa34064b1fdde3bacff1d223e7490d4747a0b9 | 10 | SHA1 (patch-gprof_Makefile.in) = 0a81ec9fcf32a45e96f0bb8291eead3ec376ebe4 | |
10 | SHA1 (patch-ld_Makefile.in) = 609f81b79b9d0de857d32c1e17eaccf6073aba3f | 11 | SHA1 (patch-ld_Makefile.in) = d5242bf42821c11f97120593fe6dde5f75e72cec | |
11 | SHA1 (patch-libctf_Makefile.in) = 8858241ac2db31b74883b2490212b72ac1420a99 | 12 | SHA1 (patch-libctf_Makefile.in) = 8858241ac2db31b74883b2490212b72ac1420a99 | |
13 | SHA1 (patch-libsframe_Makefile.in) = 8de7f6cbc590e3183489d16da88341732cddee68 |
@@ -1,14 +1,25 @@ | @@ -1,14 +1,25 @@ | |||
1 | $NetBSD: patch-bfd_Makefile.in,v 1.2 2022/05/23 11:56:35 micha Exp $ | 1 | $NetBSD: patch-bfd_Makefile.in,v 1.3 2024/04/26 11:48:10 micha Exp $ | |
2 | 2 | |||
3 | Avoid installing info and po (NLS) files. | 3 | Avoid installing po (NLS) files. | |
4 | Avoid installing info files (which duplicates with other CPU). | |||
4 | 5 | |||
5 | --- bfd/Makefile.in.orig 2021-07-18 16:36:53.000000000 +0000 | 6 | --- bfd/Makefile.in.orig 2024-01-29 00:00:00.000000000 +0000 | |
6 | +++ bfd/Makefile.in | 7 | +++ bfd/Makefile.in | |
7 | @@ -1788,7 +1788,6 @@ installdirs-am: | 8 | @@ -259,7 +259,7 @@ am__v_texidevnull_ = $(am__v_texidevnull | |
8 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | 9 | am__v_texidevnull_0 = > /dev/null | |
9 | done | 10 | am__v_texidevnull_1 = | |
10 | install: $(BUILT_SOURCES) | 11 | am__dirstamp = $(am__leading_dot)dirstamp | |
11 | - $(MAKE) $(AM_MAKEFLAGS) install-recursive | 12 | -INFO_DEPS = doc/bfd.info | |
12 | install-exec: install-exec-recursive | 13 | +INFO_DEPS = | |
13 | install-data: install-data-recursive | 14 | am__TEXINFO_TEX_DIR = $(srcdir) | |
14 | uninstall: uninstall-recursive | 15 | DVIS = doc/bfd.dvi | |
16 | PDFS = doc/bfd.pdf | |||
17 | @@ -507,7 +507,7 @@ DISTCLEANFILES = $(BUILD_CFILES) $(BUILD | |||
18 | MAINTAINERCLEANFILES = $(DOCFILES) doc/bfd.info | |||
19 | INCDIR = $(srcdir)/../include | |||
20 | CSEARCH = -I. -I$(srcdir) -I$(INCDIR) | |||
21 | -SUBDIRS = po | |||
22 | +SUBDIRS = | |||
23 | bfddocdir = doc | |||
24 | libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \ | |||
25 | @SHARED_LDFLAGS@ $(am__empty) |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: patch-binutils_Makefile.in,v 1.2 2022/05/23 11:56:35 micha Exp $ | 1 | $NetBSD: patch-binutils_Makefile.in,v 1.3 2024/04/26 11:48:10 micha Exp $ | |
2 | 2 | |||
3 | Avoid installing po (NLS) files. | 3 | Avoid installing po (NLS) files. | |
4 | Avoid installing info files (which duplicates with other CPU). | 4 | Avoid installing info files (which duplicates with other CPU). | |
5 | 5 | |||
6 | --- binutils/Makefile.in.orig 2022-02-09 11:48:29.000000000 +0000 | 6 | --- binutils/Makefile.in.orig 2022-02-09 11:48:29.000000000 +0000 | |
7 | +++ binutils/Makefile.in | 7 | +++ binutils/Makefile.in | |
8 | @@ -403,7 +403,7 @@ AM_V_texidevnull = $(am__v_texidevnull_@ | 8 | @@ -403,7 +403,7 @@ AM_V_texidevnull = $(am__v_texidevnull_@ | |
9 | am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) | 9 | am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) | |
10 | am__v_texidevnull_0 = > /dev/null | 10 | am__v_texidevnull_0 = > /dev/null | |
11 | am__v_texidevnull_1 = | 11 | am__v_texidevnull_1 = | |
12 | -INFO_DEPS = doc/binutils.info | 12 | -INFO_DEPS = doc/binutils.info | |
13 | +INFO_DEPS = | 13 | +INFO_DEPS = | |
14 | am__TEXINFO_TEX_DIR = $(srcdir) | 14 | am__TEXINFO_TEX_DIR = $(srcdir) |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: patch-gas_Makefile.in,v 1.2 2022/05/23 11:56:35 micha Exp $ | 1 | $NetBSD: patch-gas_Makefile.in,v 1.3 2024/04/26 11:48:10 micha Exp $ | |
2 | 2 | |||
3 | Avoid installing info files (which duplicates with other CPU). | 3 | Avoid installing info files (which duplicates with other CPU). | |
4 | 4 | |||
5 | --- gas/Makefile.in.orig 2022-02-09 11:48:02.000000000 +0000 | 5 | --- gas/Makefile.in.orig 2022-02-09 11:48:02.000000000 +0000 | |
6 | +++ gas/Makefile.in | 6 | +++ gas/Makefile.in | |
7 | @@ -266,7 +266,7 @@ AM_V_texidevnull = $(am__v_texidevnull_@ | 7 | @@ -266,7 +266,7 @@ AM_V_texidevnull = $(am__v_texidevnull_@ | |
8 | am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) | 8 | am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) | |
9 | am__v_texidevnull_0 = > /dev/null | 9 | am__v_texidevnull_0 = > /dev/null | |
10 | am__v_texidevnull_1 = | 10 | am__v_texidevnull_1 = | |
11 | -INFO_DEPS = doc/as.info | 11 | -INFO_DEPS = doc/as.info | |
12 | +INFO_DEPS = | 12 | +INFO_DEPS = | |
13 | TEXINFO_TEX = $(top_srcdir)/../texinfo.tex | 13 | TEXINFO_TEX = $(top_srcdir)/../texinfo.tex | |
14 | am__TEXINFO_TEX_DIR = $(top_srcdir)/.. | 14 | am__TEXINFO_TEX_DIR = $(top_srcdir)/.. |
@@ -1,24 +1,25 @@ | @@ -1,24 +1,25 @@ | |||
1 | $NetBSD: patch-ld_Makefile.in,v 1.2 2022/05/23 11:56:35 micha Exp $ | 1 | $NetBSD: patch-ld_Makefile.in,v 1.3 2024/04/26 11:48:10 micha Exp $ | |
2 | 2 | |||
3 | Avoid installing info and po (NLS) files. | 3 | Avoid installing po (NLS) files. | |
4 | Avoid installing info files (which duplicates with other CPU). | |||
4 | 5 | |||
5 | --- ld/Makefile.in.orig 2021-07-18 16:38:34.000000000 +0000 | 6 | --- ld/Makefile.in.orig 2024-01-29 00:00:00.000000000 +0000 | |
6 | +++ ld/Makefile.in | 7 | +++ ld/Makefile.in | |
7 | @@ -299,7 +299,7 @@ AM_V_texidevnull = $(am__v_texidevnull_@ | 8 | @@ -307,7 +307,7 @@ AM_V_texidevnull = $(am__v_texidevnull_@ | |
8 | am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) | 9 | am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) | |
9 | am__v_texidevnull_0 = > /dev/null | 10 | am__v_texidevnull_0 = > /dev/null | |
10 | am__v_texidevnull_1 = | 11 | am__v_texidevnull_1 = | |
11 | -INFO_DEPS = ld.info | 12 | -INFO_DEPS = ld.info ldint.info | |
12 | +INFO_DEPS = | 13 | +INFO_DEPS = | |
13 | am__TEXINFO_TEX_DIR = $(srcdir)/../texinfo | 14 | am__TEXINFO_TEX_DIR = $(srcdir)/../texinfo | |
14 | DVIS = ld.dvi | 15 | DVIS = ld.dvi ldint.dvi | |
15 | PDFS = ld.pdf | 16 | PDFS = ld.pdf ldint.pdf | |
16 | @@ -541,7 +541,7 @@ zlibinc = @zlibinc@ | 17 | @@ -561,7 +561,7 @@ zlibinc = @zlibinc@ | |
17 | AUTOMAKE_OPTIONS = dejagnu no-texinfo.tex no-dist foreign info-in-builddir | 18 | AUTOMAKE_OPTIONS = dejagnu no-texinfo.tex no-dist foreign info-in-builddir | |
18 | ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd | 19 | ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd | |
19 | TEXINFO_TEX = ../texinfo/texinfo.tex | 20 | TEXINFO_TEX = ../texinfo/texinfo.tex | |
20 | -SUBDIRS = po | 21 | -SUBDIRS = po | |
21 | +SUBDIRS = | 22 | +SUBDIRS = | |
22 | tooldir = $(exec_prefix)/$(target_alias) | 23 | tooldir = $(exec_prefix)/$(target_alias) | |
23 | 24 | |||
24 | # Automake 1.10+ disables lex and yacc output file regeneration if | 25 | # Automake 1.10+ disables lex and yacc output file regeneration if |
$NetBSD: patch-binutils_testsuite_binutils-all_ar.exp,v 1.1 2024/04/26 11:48:10 micha Exp $
From Debian for MinGW:
https://salsa.debian.org/mingw-w64-team/binutils-mingw-w64/-/blob/master/debian/patches/non-deterministic-tests.patch
tests: force non-deterministic mode in non-deterministic tests
Since ar can be built defaulting to deterministic mode, tests which
expect non-deterministic behaviour need to explicitly set the U flag.
The non-deterministic member test expects SOURCE_DATE_EPOCH to not be
set; this documents that. Unconditionally unsetting the variable
causes issues in test infrastructure (which expects unsetenv to only
be called on variables which are already set).
--- binutils/testsuite/binutils-all/ar.exp.orig 2024-01-29 00:00:00.000000000 +0000
+++ binutils/testsuite/binutils-all/ar.exp
@@ -538,6 +538,7 @@ proc replacing_deterministic_member { }
}
# Test replacing a member of a non-deterministic archive.
+# This test expects SOURCE_DATE_EPOCH to not be set in the environment.
proc replacing_non_deterministic_member { } {
global AR
@@ -581,7 +582,7 @@ proc replacing_non_deterministic_member
# Build the archive with the *newer* object file.
- set got [binutils_run $AR "rc $archive ${newer_objfile}"]
+ set got [binutils_run $AR "rcU $archive ${newer_objfile}"]
if ![string match "" $got] {
fail "$testname: (could not build archive)"
return
@@ -589,7 +590,7 @@ proc replacing_non_deterministic_member
# Now try to replace the newer file with the older one. This should not work.
- set got [binutils_run $AR "ru $archive $older_objfile"]
+ set got [binutils_run $AR "ruU $archive $older_objfile"]
if ![string match "" $got] {
fail "$testname: (failed to replace file)"
return
@@ -651,7 +652,7 @@ proc replacing_sde_deterministic_member
# Build the archive with the *newer* object file.
setenv SOURCE_DATE_EPOCH "1000"
- set got [binutils_run $AR "rc $archive ${newer_objfile}"]
+ set got [binutils_run $AR "rcU $archive ${newer_objfile}"]
if ![string match "" $got] {
fail "$testname: (could not build archive)"
unsetenv SOURCE_DATE_EPOCH
@@ -662,7 +663,7 @@ proc replacing_sde_deterministic_member
# archive this will not work, but one created to be deterministic
# should always replace its members.
- set got [binutils_run $AR "ru $archive $older_objfile"]
+ set got [binutils_run $AR "ruU $archive $older_objfile"]
if ![string match "" $got] {
fail "$testname: (failed to replace file)"
unsetenv SOURCE_DATE_EPOCH
$NetBSD: patch-libsframe_Makefile.in,v 1.1 2024/04/26 11:48:10 micha Exp $
Avoid installing info files (which duplicates with other CPU).
--- libsframe/Makefile.in.orig 2024-04-17 12:07:23.812823758 +0000
+++ libsframe/Makefile.in
@@ -306,7 +306,7 @@ AM_V_texidevnull = $(am__v_texidevnull_@
am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@)
am__v_texidevnull_0 = > /dev/null
am__v_texidevnull_1 =
-INFO_DEPS = doc/sframe-spec.info
+INFO_DEPS =
am__TEXINFO_TEX_DIR = $(srcdir)
DVIS = doc/sframe-spec.dvi
PDFS = doc/sframe-spec.pdf
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | $NetBSD: patch-gprof_Makefile.in,v 1.1 2021/09/08 12:03:00 micha Exp $ | 1 | $NetBSD: patch-gprof_Makefile.in,v 1.2 2024/04/26 11:48:10 micha Exp $ | |
2 | 2 | |||
3 | Avoid installing info and po (NLS) files. | 3 | Avoid installing po (NLS) files. | |
4 | Avoid installing info files (which duplicates with other CPU). | |||
4 | 5 | |||
5 | --- gprof/Makefile.in.orig 2021-07-18 16:44:34.000000000 +0000 | 6 | --- gprof/Makefile.in.orig 2021-07-18 16:44:34.000000000 +0000 | |
6 | +++ gprof/Makefile.in | 7 | +++ gprof/Makefile.in | |
7 | @@ -217,7 +217,7 @@ AM_V_texidevnull = $(am__v_texidevnull_@ | 8 | @@ -217,7 +217,7 @@ AM_V_texidevnull = $(am__v_texidevnull_@ | |
8 | am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) | 9 | am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) | |
9 | am__v_texidevnull_0 = > /dev/null | 10 | am__v_texidevnull_0 = > /dev/null | |
10 | am__v_texidevnull_1 = | 11 | am__v_texidevnull_1 = | |
11 | -INFO_DEPS = gprof.info | 12 | -INFO_DEPS = gprof.info | |
12 | +INFO_DEPS = | 13 | +INFO_DEPS = | |
13 | am__TEXINFO_TEX_DIR = $(srcdir)/../texinfo | 14 | am__TEXINFO_TEX_DIR = $(srcdir)/../texinfo | |
14 | DVIS = gprof.dvi | 15 | DVIS = gprof.dvi | |
15 | PDFS = gprof.pdf | 16 | PDFS = gprof.pdf | |
16 | @@ -442,7 +442,7 @@ AUTOMAKE_OPTIONS = foreign no-dist no-te | 17 | @@ -442,7 +442,7 @@ AUTOMAKE_OPTIONS = foreign no-dist no-te |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: patch-libctf_Makefile.in,v 1.1 2022/05/23 11:56:35 micha Exp $ | 1 | $NetBSD: patch-libctf_Makefile.in,v 1.2 2024/04/26 11:48:10 micha Exp $ | |
2 | 2 | |||
3 | Avoid installing info files (which duplicates with other CPU). | 3 | Avoid installing info files (which duplicates with other CPU). | |
4 | 4 | |||
5 | --- libctf/Makefile.in.orig 2022-01-22 12:22:10.000000000 +0000 | 5 | --- libctf/Makefile.in.orig 2022-01-22 12:22:10.000000000 +0000 | |
6 | +++ libctf/Makefile.in | 6 | +++ libctf/Makefile.in | |
7 | @@ -306,7 +306,7 @@ am__v_texidevnull_ = $(am__v_texidevnull | 7 | @@ -306,7 +306,7 @@ am__v_texidevnull_ = $(am__v_texidevnull | |
8 | am__v_texidevnull_0 = > /dev/null | 8 | am__v_texidevnull_0 = > /dev/null | |
9 | am__v_texidevnull_1 = | 9 | am__v_texidevnull_1 = | |
10 | am__dirstamp = $(am__leading_dot)dirstamp | 10 | am__dirstamp = $(am__leading_dot)dirstamp | |
11 | -INFO_DEPS = doc/ctf-spec.info | 11 | -INFO_DEPS = doc/ctf-spec.info | |
12 | +INFO_DEPS = | 12 | +INFO_DEPS = | |
13 | am__TEXINFO_TEX_DIR = $(srcdir) | 13 | am__TEXINFO_TEX_DIR = $(srcdir) | |
14 | DVIS = doc/ctf-spec.dvi | 14 | DVIS = doc/ctf-spec.dvi |