elf_backend_init_file_header
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 20d7d5a41a2fb13b8d7c1da14226842cc5b43f14..1a9e64f3f359fb70533433641da0fd5ab7905116 100644 (file)
@@ -1,3 +1,126 @@
+2019-11-18  Alan Modra  <amodra@gmail.com>
+
+       * elf-bfd.h (struct elf_backend_data <elf_backend_init_file_header>):
+       Rename from elf_backend_post_process_headers.
+       (_bfd_elf_post_process_headers): Delete.
+       (_bfd_elf_init_file_header): Declare.
+       * elf.c (_bfd_elf_compute_section_file_positions): Call new function
+       in place of prep_headers and elf_backend_post_process_headers.
+       (_bfd_elf_init_file_header): Renamed from prep_headers with
+       updated args and made global.  Delete dead code.
+       (_bfd_elf_post_process_headers): Delete.
+       * elf32-arm.c (elf32_arm_init_file_header): Rename from
+       elf32_arm_post_process_headers and call _bfd_elf_init_file_header.
+       Return status.
+       (elf_backend_init_file_header): Define.
+       (elf_backend_post_process_headers): Don't define.
+       * elf32-i386.c (elf_i386_fbsd_init_file_header): Similarly.
+       * elf32-m68hc1x.c (elf32_m68hc11_init_file_header): Similarly.
+       * elf32-metag.c (elf_metag_init_file_header): Similarly.
+       * elf32-spu.c (spu_elf_init_file_header
+       * elf32-visium.c (visium_elf_init_file_header
+       * elf64-alpha.c (elf64_alpha_fbsd_init_file_header
+       * elf64-hppa.c (elf64_hppa_init_file_header
+       * elf64-ia64-vms.c (elf64_vms_init_file_header
+       * elfnn-aarch64.c (elfNN_aarch64_init_file_header
+       * elfnn-ia64.c (elfNN_hpux_init_file_header
+       * elfxx-mips.c (_bfd_mips_init_file_header
+       * elfxx-mips.h (_bfd_mips_post_process_headers): Delete.
+       (_bfd_mips_init_file_header): Declare.
+       (elf_backend_post_process_headers): Delete.
+       (elf_backend_init_file_header): Define.
+       * elfxx-target.h (elf_backend_post_process_headers): Delete.
+       (elf_backend_init_file_header): Define and use.
+       * elf32-m68hc12.c (elf_backend_init_file_header): Define.
+       (elf_backend_post_process_headers): Don't define.
+       * elf32-m68hc1x.h (elf32_m68hc11_post_process_headers): Delete.
+       (elf32_m68hc11_init_file_header): Declare.
+       * elf32-ppc.c (elf_backend_post_process_headers): Remove
+       unnecessary undef.
+
+2019-11-18  Alan Modra  <amodra@gmail.com>
+
+       * elf-bfd.h (struct elf_backend_data <elf_backend_modify_headers>):
+       Rename from elf_backend_modify_program_headers.
+       (_bfd_elf_modify_headers): Declare.
+       * elf.c (assign_file_positions_except_relocs): Set
+       elf_program_header_size.  Always call elf_backend_modify_headers.
+       Extract code modifying file header..
+       (_bfd_elf_modify_headers): ..to here.  New function.
+       * elf32-arm.c (elf_backend_modify_headers): Renamed from
+       elf_backend_modify_program_headers.
+       * elf32-i386.c: Similarly.
+       * elf64-x86-64.c: Similarly.
+       * elfxx-target.h: Similarly.  Default elf_backend_modify_headers
+       to _bfd_elf_modify_headers.
+       * elf-nacl.h (nacl_modify_headers): Rename from
+       nacl_modify_program_headers.
+       * elf-nacl.c (nacl_modify_headers): Rename from
+       nacl_modify_program_headers and call _bfd_elf_modify_headers.
+       * elf32-rx.c (elf32_rx_modify_headers): Similarly.
+       * elf32-spu.c (spu_elf_modify_headers): Similarly.
+       * elfnn-ia64.c (elfNN_ia64_modify_headers): Similarly.
+       * elf32-sh.c (elf_backend_modify_program_headers): Don't undef.
+
+2019-11-18  Alan Modra  <amodra@gmail.com>
+
+       PR 25196
+       * bfd.c (bfd_error_type): Add bfd_error_sorry.
+       (bfd_errmsgs): Likewise.
+       * elf.c (rewrite_elf_program_header): Don't abort on confused
+       lma/alignment.  Replace bfd_error_bad_value with bfd_error_sorry.
+       (_bfd_elf_validate_reloc): Use bfd_error_sorry.
+       (_bfd_elf_final_write_processing): Likewise.
+       * bfd-in2.h: Regenerate.
+
+2019-11-12  Jim Wilson  <jimw@sifive.com>
+
+       PR 25181
+       * elfnn-riscv.c (_bfd_riscv_relax_call): Always add max_alignment to
+       foff.  If sym_sec->output_section and sec->output_section are the same
+       and not *ABS* then set max_alignment to that section's alignment.
+
+2019-11-07  Alan Modra  <amodra@gmail.com>
+
+       * cpu-cr16c.c: Delete.
+       * elf32-cr16c.c: Delete.
+       * Makefile.am,
+       * archures.c,
+       * config.bfd,
+       * configure.ac,
+       * reloc.c,
+       * targets.c: Remove cr16c support.
+       * Makefile.in,
+       * bfd-in2.h,
+       * configure,
+       * libbfd.h,
+       * po/SRC-POTFILES.in: Regenerate.
+
+2019-11-05  Tim Rühsen  <tim.ruehsen@gmx.de>
+
+       * doc/chew.c (add_to_definition): Use correct type when
+       calculating size of array reallocation.
+       (nextword): Always initialise the word return parameter.
+       (compile): Check return value of nextword().
+
+2019-10-30  Keith Seitz  <keiths@redhat.com>
+
+       * elf-bfd.h (elf_backend_data) <elf_backend_core_find_build_id>:
+       New field.
+       (_bfd_elf32_core_find_build_id, _bfd_elf64_core_find_build_id):
+       New functions.
+       (elf_read_notes): Add declaration.
+       * elf.c (elf_read_notes): Move elf-bfd.h.
+       (_bfd_elf_core_find_build_id): New function.
+       (bfd_section_from_phdr): Scan core file PT_LOAD segments for
+       build-id if none is known.
+       (elf_parse_notes): For core files, scan for notes.
+       * elfcore.h (elf_core_file_matches_executable_p): If both
+       BFDs have identical build-ids, then they match.
+       (_bfd_elf_core_find_build_id): New function.
+       * elfxx-target.h (elf_backend_core_find_build_id): Define.
+       (elfNN_bed): Add elf_backend_core_find_build_id.
+
 2019-10-29  Andrew Eikum  <aeikum@codeweavers.com>
 
        * libcoff-in.h (struct pe_tdata): Add dos_message field.
This page took 0.026002 seconds and 4 git commands to generate.