Include bfd_stdint.h in bfd.h
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 4ee769520b7f757b3636eacd44390af4c56ebe37..348559306fb8a089f6864f29ab134238ac326039 100644 (file)
@@ -1,3 +1,228 @@
+2018-12-18  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.am (bfdinclude_HEADERS): Add bfd_stdint.h.
+       (BFD_H_DEPS): Add include/diagnostics.h.
+       (LOCAL_H_DEPS): Add bfd_stdint.h.
+       * bfd-in.h: Include bfd_stdint.h.
+       * arc-plt.h: Don't include stdint.h.
+       * coff-rs6000.c: Likewise.
+       * coff64-rs6000.c: Likewise.
+       * elfxx-riscv.c: Likewise.
+       * cache.c: Don't include bfd_stdint.h.
+       * elf32-arm.c: Likewise.
+       * elf32-avr.c: Likewise.
+       * elf32-nds32.c: Likewise.
+       * elf32-rl78.c: Likewise.
+       * elf32-rx.c: Likewise.
+       * elf32-wasm32.c: Likewise.
+       * elf64-nfp.c: Likewise.
+       * elflink.c: Likewise.
+       * elfnn-aarch64.c: Likewise.
+       * elfnn-ia64.c: Likewise.
+       * elfxx-ia64.c: Likewise.
+       * elfxx-x86.h: Likewise.
+       * wasm-module.c: Likewise, and don't include sysdep.h twice.
+       * elf-nacl.h: Don't include bfd.h.
+       * mach-o.h: Likewise.
+       * elfxx-aarch64.c: Include bfd.h and elf-bfd.h.
+       * elfxx-aarch64.h: Don't include bfd.h, elf-bfd.h or stdint.h.
+       * mach-o-aarch64.c: Include mach-o.h later.
+       * mach-o-arm.c: Likewise.
+       * mach-o-i386.c: Likewise.
+       * mach-o-x86-64.c: Likewise.
+       * mach-o.c: Likewise.
+       * sysdep.h: Don't include ansidecl.h or sys/stat.h.
+       * Makefile.in: Regenerate.
+       * bfd-in2.h: Regenerate.
+
+2018-12-18  Alan Modra  <amodra@gmail.com>
+
+       PR 23980
+       * elf32-i386.c (elf_i386_relocate_section): Exit with wrong format
+       error rather than asserting input file is as expected.
+       * elf32-s390.c (elf_s390_relocate_section): Likewise.
+       * elf32-sh.c (sh_elf_relocate_section): Likewise.
+       * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
+       * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
+       * elf64-s390.c (elf_s390_relocate_section): Likewise.
+       * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
+       * elf32-ppc.c (ppc_elf_relocate_section): Exit with wrong format
+       error if input file is not ppc32 ELF.
+
+2018-12-18  Alan Modra  <amodra@gmail.com>
+
+       PR 23980
+       * elf64-ppc.c (ppc64_elf_hide_symbol): Check hash table type
+       before referencing ppc64-only fields of hash entries.
+
+2018-12-17  Alan Modra  <amodra@gmail.com>
+
+       PR 23994
+       * aoutx.h: Include limits.h.
+       (get_reloc_upper_bound): Detect long overflow and return a file
+       too big error if it occurs.
+       * elf.c: Include limits.h.
+       (_bfd_elf_get_symtab_upper_bound): Detect long overflow and return
+       a file too big error if it occurs.
+       (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
+       (_bfd_elf_get_dynamic_reloc_upper_bound): Likewise.
+
+2018-12-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/23900
+       * elf.c (get_program_header_size): Add a PT_GNU_PROPERTY
+       segment for NOTE_GNU_PROPERTY_SECTION_NAME.
+       (_bfd_elf_map_sections_to_segments): Create a PT_GNU_PROPERTY
+       segment for NOTE_GNU_PROPERTY_SECTION_NAME.
+       * elfxx-x86.c (_bfd_elf_link_setup_gnu_properties): Don't set
+       GNU_PROPERTY_X86_UINT32_VALID.
+
+2018-12-11  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * elf32-xtensa.c (elf_xtensa_do_reloc): Limit const16 opcode
+       immediate field to 16 least significant bits.
+
+2018-12-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-xc16x.c (elf32_xc16x_rtype_to_howto): New function.
+       (elf32_xc16x_relocate_section): Call elf32_xc16x_rtype_to_howto
+       instead of xc16x_reloc_type_lookup to get reloc_howto_type.
+
+2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/23958
+       * elflink.c (_bfd_elf_add_default_symbol): Override the previous
+       definition from IR object.
+
+2018-12-08  Stafford Horne  <shorne@gmail.com>
+
+       * elf32-or1k.c (or1k_grok_prstatus): New function.
+       (or1k_grok_psinfo): Likewise.
+
+2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf-properties.c (elf_find_and_remove_property): Add a
+       bfd_boolean argument to indicate if the property should be
+       removed.
+       (elf_merge_gnu_property_list): Updated.  Report
+       property change in linker map file.
+       (elf_get_gnu_property_section_size): Skip property_remove
+       properties.
+       (elf_write_gnu_properties): Likewise.
+       (_bfd_elf_link_setup_gnu_properties): Report property merge
+       in linker map file.  Pass abfd to elf_merge_gnu_property_list.
+
+2018-12-07  Alan Modra  <amodra@gmail.com>
+
+       PR 23952
+       * syms.c (_bfd_generic_read_minisymbols): Free syms before
+       returning with zero symcount.
+
+2018-12-06  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_VLE_ADDR20>): Correct
+       mask and shift value.
+       (ppc_elf_vle_split16): Use E_OPCODE_MASK.  Handle e_li
+       specially.
+
+2018-12-05  Sam Tebbs  <sam.tebbs@arm.com>
+
+       * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Add check for 'B'.
+
+2018-12-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/23372
+       * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Don't remove
+       empty properties for GNU_PROPERTY_X86_COMPAT_ISA_1_USED and
+       GNU_PROPERTY_X86_UINT32_OR_AND.
+       (_bfd_x86_elf_link_fixup_gnu_properties): Likewise.
+
+2018-12-03  Kito Cheng  <kito@andestech.com>
+
+       * elfxx-riscv.h (RISCV_DONT_CARE_VERSION): New macro.
+       (struct riscv_subset_t): New structure.
+       (riscv_subset_t): New typedef.
+       (riscv_subset_list_t): New structure.
+       (riscv_release_subset_list): New prototype.
+       (riscv_add_subset): Likewise.
+       (riscv_lookup_subset): Likewise.
+       (riscv_lookup_subset_version): Likewise.
+       (riscv_release_subset_list): Likewise.
+       * elfxx-riscv.c: Include safe-ctype.h.
+       (riscv_parsing_subset_version): New function.
+       (riscv_supported_std_ext): Likewise.
+       (riscv_parse_std_ext): Likewise.
+       (riscv_parse_sv_or_non_std_ext): Likewise.
+       (riscv_parse_subset): Likewise.
+       (riscv_add_subset): Likewise.
+       (riscv_lookup_subset): Likewise.
+       (riscv_lookup_subset_version): Likewise.
+       (riscv_release_subset_list): Likewise.
+
+2018-12-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/23930
+       * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Update
+       the iplt section alignment if it is non-empty.
+       (_bfd_x86_elf_link_setup_gnu_properties): Set plt.iplt_alignment
+       and delay setting the iplt section alignment.
+       * elfxx-x86.h (elf_x86_plt_layout): Add iplt_alignment.
+
+2018-11-30  Nick Clifton  <nickc@redhat.com>
+
+       PR 23942
+       * elfcode.h (elf_object_p): Check for corrupt input files with
+       more program headers than can actually fit in the file.
+
+2018-11-30  Nick Clifton  <nickc@redhat.com>
+
+       PR 23932
+       * elf.c (IS_CONTAINED_BY_LMA): Add a check for a negative section
+       size.
+       (rewrite_elf_program_header): If no sections are mapped into a
+       segment return an error.
+
+2018-11-30  Alan Modra  <amodra@gmail.com>
+
+       PR 23937
+       * elf64-ppc.c (write_plt_relocs_for_local_syms): Don't add local
+       entry offset for ifuncs.
+
+2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/23929
+       * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Don't
+       merge .note.gnu.property section in IR inputs.
+
+2018-11-27  Thomas Preud'homme  <thomas.preudhomme@linaro.org>
+
+       * cpu-arm.c (processors): Add processors known to GAS but missing here
+       and reindent.
+       (bfd_arm_update_notes): Add comment explaining why the list of
+       architectures in the switch should not be updated.
+       (architectures): Likewise.
+
+2018-11-27  Maciej W. Rozycki  <macro@linux-mips.org>
+
+       * elfxx-mips.c (_bfd_mips_elf_check_relocs) <R_MIPS16_HI16>
+       <R_MIPS_HI16, R_MIPS_HIGHER, R_MIPS_HIGHEST, R_MICROMIPS_HI16>
+       <R_MICROMIPS_HIGHER, R_MICROMIPS_HIGHEST>: Also accept an
+       absolute symbol in PIC code.
+
+2018-11-27  Maciej W. Rozycki  <macro@linux-mips.org>
+
+       * elfxx-mips.c (_bfd_mips_elf_check_relocs) <R_MIPS16_26>
+       <R_MIPS_26, R_MICROMIPS_26_S1>: Use `info->callbacks->einfo'
+       rather than `_bfd_error_handler' to report refused relocations
+       in PIC code and continue processing.  Fix error message: `can
+       not' -> `cannot'.
+
+2018-11-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/23919
+       * compress.c (bfd_is_section_compressed_with_header): Initialize
+       *uncompressed_align_pow_p to 0.
+
 2018-11-27  Tamar Christina  <tamar.christina@arm.com>
 
        PR ld/23904
This page took 0.025336 seconds and 4 git commands to generate.