PR24236, Heap buffer overflow in _bfd_archive_64_bit_slurp_armap
[external/binutils.git] / bfd / ChangeLog
1 2019-02-20  Alan Modra  <amodra@gmail.com>
2
3         PR 24236
4         * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
5         sentinel NUL to string buffer nearer to loop where it is used.
6         Don't go past sentinel when scanning strings, and don't write
7         NUL again.
8         * archive.c (do_slurp_coff_armap): Simplify string handling to
9         archive64.c style.
10
11 2019-02-19  Alan Modra  <amodra@gmail.com>
12
13         PR 24235
14         * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
15         attempting to prevent read past end of section.
16
17 2019-02-18  Alan Modra  <amodra@gmail.com>
18
19         PR 24225
20         * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
21         PRIx64 to generate warning messages.  Print local sym names too.
22
23 2019-02-09  Vineet Gupta  <vgupta@synopsys.com>
24
25         * elf32-arc (INIT_SYM_STRING): Delete.
26         (FINI_SYM_STRING): Likewise.
27         (init_str): Likewise.
28         (fini_str): Likewise.
29
30 2019-02-08  Alan Modra  <amodra@gmail.com>
31
32         * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
33         for bss-plt" warning to make it an error.
34
35 2019-02-07  Eric Botcazou  <ebotcazou@adacore.com>
36
37         PR ld/18841
38         * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
39         reloc_class_ifunc for ifunc symbols.
40         * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
41
42 2019-02-07  Eric Botcazou  <ebotcazou@adacore.com>
43
44         * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
45         <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
46
47 2019-02-07  Nick Clifton  <nickc@redhat.com>
48
49         * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
50         into the definitely obsolete list.
51
52 2019-02-05  H.J. Lu  <hongjiu.lu@intel.com>
53
54         PR ld/24151
55         * elf64-x86-64.c (elf_x86_64_need_pic): Check
56         SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
57         (elf_x86_64_relocate_section): Move PIC check for PC-relative
58         relocations to ...
59         (elf_x86_64_check_relocs): Here.
60         (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
61         to check if a symbol is defined in a non-shared object.
62         * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
63
64 2019-01-21  Sergio Durigan Junior  <sergiodj@redhat.com>
65
66         * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
67         of 'labs' (and fix GCC warning).
68
69 2019-01-25  Nick Clifton  <nickc@redhat.com>
70
71         * po/ru.po: Updated Russian translation.
72
73 2019-01-23  Nick Clifton  <nickc@redhat.com>
74
75         * po/fr.po: Updated French translation.
76
77 2019-01-21  Nick Clifton  <nickc@redhat.com>
78
79         * po/pt.po: Updated Portuguese translation.
80         * po/uk.po: Updated Ukranian translation.
81
82 2019-01-21  Yuri Chornoivan  <yurchor@ukr.net>
83
84         PR 24108
85         * elf32-nds32.c (nds32_relocate_section): Add space between words
86         in error message.
87         * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
88         error message.
89         (riscv_i_or_e_p): Likewise.
90         (riscv_merge_arch_attr_info): Likewise.
91
92 2019-01-19  Nick Clifton  <nickc@redhat.com>
93
94         * version.m4: Reset to 2.32.51
95         * configure: Regenerate.
96         * po/bfd.pot: Regenerate.
97
98 2018-06-24  Nick Clifton  <nickc@redhat.com>
99
100         2.32 branch created.
101
102 2019-01-16  Kito Cheng  <kito@andestech.com>
103
104         * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
105         for OBJ_ATTR_PROC.
106
107 2019-01-16  Kito Cheng  <kito@andestech.com>
108             Nelson Chu  <nelson@andestech.com>
109
110         * elfnn-riscv.c (in_subsets): New.
111         (out_subsets): Likewise.
112         (merged_subsets): Likewise.
113         (riscv_std_ext_p): Likewise.
114         (riscv_non_std_ext_p): Likewise.
115         (riscv_std_sv_ext_p): Likewise.
116         (riscv_non_std_sv_ext_p): Likewise.
117         (riscv_version_mismatch): Likewise.
118         (riscv_i_or_e_p): Likewise.
119         (riscv_merge_std_ext): Likewise.
120         (riscv_merge_non_std_and_sv_ext): Likewise.
121         (riscv_merge_arch_attr_info): Likewise.
122         (riscv_merge_attributes): Likewise.
123         (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
124
125         * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
126         (elf_backend_obj_attrs_vendor): Define.
127         (elf_backend_obj_attrs_section_type): Likewise.
128         (elf_backend_obj_attrs_section): Likewise.
129         (elf_backend_obj_attrs_arg_type): Define as
130         riscv_elf_obj_attrs_arg_type.
131         * elfxx-riscv.c (riscv_estimate_digit): New.
132         (riscv_estimate_arch_strlen1): Likewise.
133         (riscv_estimate_arch_strlen): Likewise.
134         (riscv_arch_str1): Likewise.
135         (riscv_arch_str): Likewise.
136         * elfxx-riscv.h (riscv_arch_str): Declare.
137
138 2019-01-14  John Darrington <john@darrington.wattle.id.au>
139
140         * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
141         * libbfd.h: regen.
142         * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
143         source field.  (md_apply_fix): Apply final fix
144         to BFD_RELOC_S12Z_OPR.
145         * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
146
147 2019-01-14  Maamoun Tarsha  <maamountk@hotmail.com>
148
149         PR 20113
150         * elf32-s390.c (allocate_dynrelocs): Update comment.
151
152 2019-01-09  Andrew Paprocki  <andrew@ishiboo.com>
153
154         * warning.m4: Adjust egrep pattern for non-GNU compilers.
155         * configure: Regenerate.
156
157 2019-01-08  Alan Modra  <amodra@gmail.com>
158
159         PR 23699
160         PR 24065
161         * ihex.c (ihex_write_object_contents): Properly check 32-bit
162         address range.
163
164 2019-01-05  Yoshinori Sato <ysato@users.sourceforge.jp>
165
166         * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
167         * bfd/bfd-in2.h: Regenerate.
168         * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
169         * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
170
171 2019-01-04  Lifang Xia  <lifang_xia@c-sky.com>
172
173         * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
174         default target, little endian target is more suitable.
175
176 2019-01-04  Alan Modra  <amodra@gmail.com>
177
178         PR 24061
179         PR 21786
180         * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
181         adjust all callers.
182         (EQ_VALUE_IN_FIELD): Likewise.
183         * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
184
185 2019-01-01  Alan Modra  <amodra@gmail.com>
186
187         Update year range in copyright notice of all files.
188
189 For older changes see ChangeLog-2018
190 \f
191 Copyright (C) 2019 Free Software Foundation, Inc.
192
193 Copying and distribution of this file, with or without modification,
194 are permitted in any medium without royalty provided the copyright
195 notice and this notice are preserved.
196
197 Local Variables:
198 mode: change-log
199 left-margin: 8
200 fill-column: 74
201 version-control: never
202 End: