PR27716, build failure for msdosdjgpp: PATH_MAX undeclared
[binutils-gdb.git] / binutils / ChangeLog
index 80b6ea6a4c7d05c62c6a42a6ef48c63cbadfcb57..5148da4a2197185c5a4df88451d18cbb0825ebb3 100644 (file)
@@ -1,3 +1,231 @@
+2021-04-14  Alan Modra  <amodra@gmail.com>
+
+       PR 27716
+       * objdump.c (show_line): Don't limit paths to PATH_MAX.
+       * readelf.c (struct filedata): Change program_interpreter from
+       a char array to a char pointer.
+       (process_program_headers): Sanity check PT_INTERP p_filesz.
+       Malloc program_interpreter using p_filesz and read directly from
+       file.
+       (process_dynamic_section): Check program_interpreter is non-NULL.
+       (free_filedata): New function, split out from..
+       (process_object): ..here.
+       (close_debug_file): Call free_filedata.
+       * sysdep.h: Don't include sys/param.h.
+       (PATH_MAX): Don't define.
+       * configure.ac: Don't check for sys/param.h.
+       * configure: Regenerate.
+
+2021-04-13  Frederic Cambus  <fred@statdns.com>
+
+       * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
+       check for NT_NETBSD_PAX.
+
+2021-04-12  Alan Modra  <amodra@gmail.com>
+
+       * configure.ac (--enable-checking): Add support.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+
+2021-04-09  Alan Modra  <amodra@gmail.com>
+
+       * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
+       dynrelcount.
+       (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
+       (disassemble_section, disassemble_data): Likewise.
+
+2021-04-06  Alan Modra  <amodra@gmail.com>
+
+       * objdump.c (objdump_symbol_at_address): Return asymbol*.
+
+2021-04-06  Alan Modra  <amodra@gmail.com>
+
+       * NEWS: Mention C99 requirement.
+       * README: Likewise.  Modernise examples and "Reporting bugs".
+
+2021-04-05  Alan Modra  <amodra@gmail.com>
+
+       * configure.ac: Assume long long is available.  Don't test for
+       strings.h, stdlib.h, limits.h, locale.h, or wchar.h.  Check
+       inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
+       strcoll, setlocale, setmode or location of time_t.  Don't check
+       for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
+       (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
+       * sysdep.h: Don't include alloca-conf.h, include config.h instead.
+       Test HAVE_SYS_TYPES_H and reorder includes.  Include limits.h,
+       locale.h, string.h and stdlib.h unconditionally.  Remove various
+       fallback declarations.  Assume long long is available.
+       * addr2line.c: Don't test HAVE_SETLOCALE.
+       * ar.c: Likewise.
+       * coffdump.c: Likewise.
+       * dlltool.c: Likewise.
+       * dllwrap.c: Likewise.
+       * elfedit.c: Likewise.
+       * nm.c: Likewise.
+       * objcopy.c: Likewise.
+       * objdump.c: Likewise.
+       * readelf.c: Likewise.
+       * size.c: Likewise.
+       * srconv.c: Likewise.
+       * strings.c: Likewise.
+       * sysdump.c: Likewise.
+       * windmc.c: Likewise.
+       * windres.c: Likewise.
+       * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
+       * dwarf.c: Include limits.h unconditionally.  Assume long long
+       is available.
+       * nm.c: Don't test HAVE_STRCOLL.
+       * readelf.c: Don't test HAVE_WCHAR_H.
+       * strings.c: Assume long long is available.
+       * syslex.l: Include string.h unconditionally.
+       * aclocal.m4: Regenerate.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+       * Makefile.in: Regenerate.
+       * doc/Makefile.in: Regenerate.
+
+2021-04-01  Martin Liska  <mliska@suse.cz>
+
+       * elfcomm.h (strneq): Remove strneq and use startswith.
+       * readelf.c (ia64_process_unwind): Likewise.
+       (process_note): Likewise.
+
+2021-04-01  Martin Liska  <mliska@suse.cz>
+
+       * dllwrap.c: Use startswith function.
+       * objcopy.c (is_dwo_section): Likewise.
+       (handle_remove_section_option): Likewise.
+       (copy_main): Likewise.
+       * objdump.c (is_significant_symbol_name): Likewise.
+
+2021-04-01  Martin Liska  <mliska@suse.cz>
+
+       * dwarf.c (display_debug_lines_raw): Replace const_strneq with
+       startswith.
+       (display_debug_lines_decoded): Likewise.
+       (display_debug_links): Likewise.
+       * elfcomm.c (setup_archive): Likewise.
+       * elfcomm.h (const_strneq): Likewise.
+       * readelf.c (process_section_headers): Likewise.
+       (slurp_ia64_unwind_table): Likewise.
+       (slurp_hppa_unwind_table): Likewise.
+       (decode_arm_unwind): Likewise.
+       (display_debug_section): Likewise.
+       (process_note): Likewise.
+
+2021-03-31  Alan Modra  <amodra@gmail.com>
+
+       * sysdep.h (POISON_BFD_BOOLEAN): Define.
+       * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
+       * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
+       * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
+       * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
+       * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
+       * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
+       * windmc.c, * windmc.h, * windres.c, * winduni.c,
+       * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
+       and TRUE with true throughout.
+
+2021-03-31  Alan Modra  <amodra@gmail.com>
+
+       * coffdump.c: Include stdint.h in place of bfd_stdint.h.
+       * dwarf.c: Likewise.
+
+2021-03-31  Alan Modra  <amodra@gmail.com>
+
+       * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
+
+2021-03-29  Alan Modra  <amodra@gmail.com>
+
+       * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
+       * dwarf.c (read_and_display_attr_value): Likewise.
+       (display_debug_str_offsets): Likewise.
+       * objdump.c (dump_bfd): Likewise.
+       * readelf.c (dump_section_as_strings): Likewise.
+       (dump_section_as_bytes): Likewise.
+
+2021-03-29  Alan Modra  <amodra@gmail.com>
+
+       * objdump.c (process_links): Use type int.
+       * readelf.c (request_dump): Don't increment do_dump, set it.
+       * windint.h (target_is_bigendian): Use type bfd_boolean.
+       * windmc.c (target_is_bigendian): Likewise.
+       * windres.c (target_is_bigendian): Likewise.
+
+2021-03-22  Martin Liska  <mliska@suse.cz>
+
+       * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
+       with startswith.
+       * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
+       * objcopy.c (is_mergeable_note_section): Likewise.
+       * objdump.c (dump_dwarf_section): Likewise.
+       * prdbg.c (pr_method_type): Likewise.
+       (pr_class_baseclass): Likewise.
+       (tg_class_baseclass): Likewise.
+       * readelf.c (process_lto_symbol_tables): Likewise.
+       * stabs.c (ULLHIGH): Likewise.
+       (parse_stab_argtypes): Likewise.
+       (stab_demangle_function_name): Likewise.
+
+2021-03-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * readelf.c (get_machine_name): Add EM_INTELGT.
+
+2021-03-18  Nick Clifton  <nickc@redhat.com>
+
+       PR 27478
+       * readelf.c (dump_section_as_strings): Mention separate filename.
+       (dump_section_as_bytes): Likewise.
+       (dump_section_as_ctf): Likewise.
+       (initialise_dumkps_byname): Only issue a warning for missing
+       sections if processing the main file.
+       (process_section_contents): Only issue a warning for unsumped
+       section numbers in the main file.
+       (initialise_dump_sects): New function.  Contains code extracted
+       from ...
+       (process_object): ... here.  Also call initialise_dump_sects for
+       separate files.
+
+2021-03-16  Nick Clifton  <nickc@redhat.com>
+
+       PR 27534
+       * readelf.c (display_debug_section): Also retain .debug_addr
+       sections.
+
+2021-03-16  Nick Clifton  <nickc@redhat.com>
+
+       PR 27533
+       * readelf.c (process_section_contents): Only dump debug
+       information for separate files unless process_links is enabled.
+       (process_object): Always call process_section_contents for
+       separate info files.
+
+2021-03-15  Nick Clifton  <nickc@redhat.com>
+
+       PR 27487
+       * nm.c (FORMAT_JUST_SYMBOLS): Define.
+       (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
+       (long_options): Add just-symbols.
+       (set_output_format): Add support for just-symbols.
+       (get_print_format): Likewise.
+       (do_not_print_object_filename): New function.
+       (do_not_print_archive_filename): New function.
+       (do_not_print_archive_member): New function.
+       (do_not_print_symbol_filename): New function.
+       (just_print_symbol_name): New function.
+       (main): Handle --just-symbols.
+       * NEWS: Mention the new feature.
+       * doc/binutils.texi: Document the new feature.
+
+2021-03-12  ClĂ©ment Chigot  <clement.chigot@atos.net>
+
+       * od-xcoff.c: Replace RTB by TRL entry.
+
+2021-03-05  Craig Blackmore  <craig.blackmore@embecosm.com>
+           Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * readelf.c (get_note_type): Handle NT_RISCV_CSR.
+
 2021-03-05  Craig Blackmore  <craig.blackmore@embecosm.com>
            Andrew Burgess  <andrew.burgess@embecosm.com>