read_leb128 overflow checking
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2021-02-17 Alan Modra <amodra@gmail.com>
2
3 * dwarf.c: Include limits.h.
4 (CHAR_BIT): Provide backup define.
5 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
6 signed overflow checking.
7 * testsuite/binutils-all/pr26548.s,
8 * testsuite/binutils-all/pr26548.d,
9 * testsuite/binutils-all/pr26548e.d: New tests.
10 * testsuite/binutils-all/readelf.exp: Run them.
11 (readelf_test): Drop unused "xfails" parameter. Update all uses.
12
13 2021-02-16 Jan Beulich <jbeulich@suse.com>
14
15 * dwarf.c (process_debug_info): Initialize "dwo_id".
16
17 2021-02-15 Alan Modra <amodra@gmail.com>
18
19 * objdump.c (load_specific_debug_section): Don't call
20 bfd_cache_section_contents. Rearrange so that
21 bfd_get_full_section_contents is not called on path where
22 bfd_simple_get_relocated_section_contents is called.
23 Don't set section->user_data.
24 (free_debug_section): Always free section->start. Don't twiddle
25 section flags.
26 * readelf.c (load_specific_debug_section): Don't set user_data.
27 * dwarf.h (struct dwarf_section): Remove use_data field.
28 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
29
30 2021-02-15 Alan Modra <amodra@gmail.com>
31
32 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
33 * testsuite/binutils-all/objdump.exp: Likewise.
34
35 2021-02-14 Alan Modra <amodra@gmail.com>
36
37 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
38 to the symbol array.
39 (slurp_dynamic_symtab): Likewise.
40 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
41
42 2021-02-14 Alan Modra <amodra@gmail.com>
43
44 * Makefile.in: Regenerate.
45 * doc/Makefile.in: Regenerate.
46
47 2021-02-13 Mike Frysinger <vapier@gentoo.org>
48
49 * aclocal.m4: Regenerate.
50
51 2021-02-12 Nick Clifton <nickc@redhat.com>
52
53 * configure.ac (follow-debug-links): Add option to enable or
54 disable the following of debug links by default. Set the
55 default for the option to be 'follow'.
56 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
57 (dwarf_select_sections_by_names): Add no-follow-links option.
58 (dwarf_select_sections_by_letter): Add 'N' option.
59 * objdump.c (usage): Add conditional text describing the
60 follow links option.
61 (slurp_symtab): Ensure that there is a NULL entry at the end
62 of the symbol table.
63 (slurp_dynamic_symtab): Likewise.
64 (dump_bfd): When extending the symbol table, ensure that there
65 is still a NULL entry at the end.
66 * readelf.c (usage): Add conditional text describing the
67 follow links option.
68 * doc/binutils.texi: Update documentation for objcopy and
69 readelf.
70 * doc/debug.options.texi: Update documentation of the
71 follow-links option.
72 * config.in: Regenerate.
73 * configure: Regenerate.
74 * testsuite/binutils-all/compress.exp: Add the -WN option to
75 objdump command lines that are not expecting to follow links.
76 * testsuite/binutils-all/readelf.exp: Add the
77 --debug-dump=no-follow-links option to tests that are not
78 expecting to follow debug links.
79 * NEWS: Mention the new behaviour.
80
81 2021-02-12 Alan Modra <amodra@gmail.com>
82
83 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
84 gas or ld fails to build a testcase rather than "unresolved".
85 Report "fail" when readelf returns an error status rather than
86 "unresolved".
87 * testsuite/binutils-all/ar.exp: Likewise.
88 * testsuite/binutils-all/compress.exp: Likewise.
89 * testsuite/binutils-all/readelf.exp: Likewise.
90
91 2021-02-12 Alan Modra <amodra@gmail.com>
92
93 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
94 "c" with "ccc" labels.
95
96 2021-02-12 Tom de Vries <tdevries@suse.de>
97
98 * dwarf.h (debug_info): Fix typo in comment.
99
100 2021-02-12 Tom de Vries <tdevries@suse.de>
101
102 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
103 entries.
104
105 2021-02-12 Tom de Vries <tdevries@suse.de>
106
107 * dwarf.c (process_debug_info): Print DWO ID.
108
109 2021-02-11 Alan Modra <amodra@gmail.com>
110
111 PR 27290
112 PR 27293
113 PR 27295
114 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
115 Use bfd_malloc_and_get_section.
116 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
117 check namesz. Return NULL if descsz is too small. Ensure
118 string table is terminated.
119 (elf32_avr_get_device_info): Formatting. Add note_size param.
120 Sanity check note.
121 (elf32_avr_dump_mem_usage): Adjust to suit.
122
123 2021-02-10 Tom de Vries <tdevries@suse.de>
124
125 PR binutils/27391
126 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
127
128 2021-02-10 Tom de Vries <tdevries@suse.de>
129
130 PR binutils/27371
131 * dwarf.c (display_debug_ranges): Filter range lists according to
132 section.
133
134 2021-02-09 Tom de Vries <tdevries@suse.de>
135
136 PR binutils/27370
137 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
138
139 2021-02-09 Tom de Vries <tdevries@suse.de>
140
141 PR binutils/27386
142 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
143 DW_UT_split_compile.
144
145 2021-02-09 Alan Modra <amodra@gmail.com>
146
147 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
148 symbianelf.
149
150 2021-02-07 Alan Modra <amodra@gmail.com>
151
152 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
153 uninitialised on invalid input.
154
155 2021-02-06 Alan Modra <amodra@gmail.com>
156
157 PR 27349
158 * rename.c (smart_rename): Test for existence and type of output
159 file with lstat.
160
161 2021-02-05 Nick Clifton <nickc@redhat.com>
162
163 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
164
165 2021-02-05 Eli Zaretskii <eliz@gnu.org>
166
167 PR 27252
168 * elfedit.c (check_file):
169 * bucomm.c (get_file_size): Fix typos in comments.
170
171 2021-02-05 Alan Modra <amodra@gmail.com>
172
173 PR 27345
174 * arsup.c (ar_save): Use stat rather than lstat.
175
176 2021-02-03 Alan Modra <amodra@gmail.com>
177
178 PR 27270
179 PR 27284
180 PR 26945
181 * ar.c: Don't include libbfd.h.
182 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
183 bfd_stat rather than fstat on iostream. Move stat and fd tests
184 outside of _WIN32 ifdef. Delete skip_stat variable.
185 * arsup.c (temp_name, real_ofd): New static variables.
186 (ar_open): Use make_tempname and bfd_fdopenw.
187 (ar_save): Adjust to suit ar_open changes. Move stat output
188 of _WIN32 ifdef.
189 * objcopy.c: Don't include libbfd.h.
190 (copy_file): Use bfd_stat.
191
192 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
193
194 PR binutils/27281
195 * readelf.c (process_section_headers): Add 'R' and 'D' to
196 "Key to Flags:".
197 * testsuite/binutils-all/retain1a.d: Updated.
198
199 2021-01-30 Nick Clifton <nickc@redhat.com>
200
201 * README-how-to-make-a-release: Small updates after the 2.35.2
202 release.
203
204 2021-01-28 Eli Zaretskii <eliz@gnu.org>
205
206 PR 4356
207 * windres.c (quot): Use double quotes to protect strings on
208 Windows platforms.
209
210 2021-01-28 Eli Zaretskii <eliz@gnu.org>
211
212 PR 27252
213 * bucomm.c (get_file_size): Add code to handle /dev/null on
214 Windows systems.
215 * elfedit.c (check_file): Likewise.
216
217 2021-01-27 Nick Clifton <nickc@redhat.com>
218
219 * objcopy.c (copy_main): Remove conditional control of the calls
220 to free, simplifying the code and making it easier to detect
221 typos.
222
223 2021-01-26 Frederic Cambus <fred@statdns.com>
224
225 * objcopy.c (copy_main): Fix a double free happening when both
226 --localize-symbols and --globalize-symbols options are invoked
227 together.
228
229 2021-01-24 Nick Clifton <nickc@redhat.com>
230
231 * README-how-to-make-a-release: Minor updates after the 2.36 release.
232
233 2021-01-16 Alan Modra <amodra@gmail.com>
234
235 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
236
237 2021-01-15 Alan Modra <amodra@gmail.com>
238
239 PR 26539
240 * readelf.c (uncompress_section_contents): Always call inflateEnd.
241
242 2021-01-14 Alexandre Oliva <oliva@gnu.org>
243
244 * MAINTAINERS: Update my email address.
245
246 2021-01-14 Nick Clifton <nickc@redhat.com>
247
248 * po/sv.po: Updated Swedish translation.
249
250 2021-01-13 Alan Modra <amodra@gmail.com>
251
252 * Makefile.in: Regenerate.
253 * doc/Makefile.in: Regenerate.
254
255 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
256
257 PR 27037
258 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
259 and before exit.
260 (i386_x64_trampoline): Add SEH annotations.
261 (struct mac): Add how_seh field.
262 (make_delay_head): If how_set field is true add SEh instructions.
263
264 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
265
266 PR binutils/26792
267 * configure.ac: Use GNU_MAKE_JOBSERVER.
268 * aclocal.m4: Regenerated.
269 * configure: Likewise.
270
271 2021-01-12 Nick Clifton <nickc@redhat.com>
272
273 * po/fr.po: Updated French translation.
274
275 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
276
277 PR ld/27173
278 * configure: Regenerated.
279
280 2021-01-11 Nick Clifton <nickc@redhat.com>
281
282 * po/pt.po: Updated Portuguese translation.
283 * po/sr.po: Updated Serbian translation.
284 * po/uk.po: Updated Ukranian translation.
285
286 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
287
288 * configure: Regenerated.
289
290 2021-01-09 Nick Clifton <nickc@redhat.com>
291
292 * configure: Regenerate.
293 * po/binutils.pot: Regenerate.
294
295 2021-01-09 Nick Clifton <nickc@redhat.com>
296
297 * 2.36 release branch crated.
298 * README-how-to-make-a-release: Add note about updating Makefiles
299 and libtool files.
300 * BRANCHES: Add binutils-2.36-branch.
301
302 2021-01-09 Alan Modra <amodra@gmail.com>
303
304 * configure: Regenerate.
305
306 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
307
308 * configure: Regenerate.
309
310 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
311
312 PR 27109
313 * objcopy.c (copy_object): Handle section symbols for
314 non-relocatable inputs.
315 * testsuite/binutils-all/readelf.exp (readelf_test): Check
316 is_elf_unused_section_symbols.
317 * testsuite/binutils-all/readelf.s-64: Updated.
318 * testsuite/binutils-all/readelf.ss: Likewise.
319 * testsuite/binutils-all/readelf.ss-64: Likewise.
320 * testsuite/binutils-all/readelf.s-64-unused: New file.
321 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
322 * testsuite/binutils-all/readelf.ss-unused: Likewise.
323 * testsuite/lib/binutils-common.exp
324 (is_elf_unused_section_symbols): New proc.
325
326 2021-01-06 Reuben Thomas <rrt@sc3d.org>
327
328 * binutils/readelf.c: Correct grammar in comment.
329
330 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
331
332 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
333 * doc/binutils.texi: Correct grammar.
334 * readelf.c (process_version_sections): Correct spelling of auxiliary
335 in warning.
336 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
337
338 2021-01-01 Alan Modra <amodra@gmail.com>
339
340 Update year range in copyright notice of all files.
341
342 For older changes see ChangeLog-2020
343 \f
344 Copyright (C) 2021 Free Software Foundation, Inc.
345
346 Copying and distribution of this file, with or without modification,
347 are permitted in any medium without royalty provided the copyright
348 notice and this notice are preserved.
349
350 Local Variables:
351 mode: change-log
352 left-margin: 8
353 fill-column: 74
354 version-control: never
355 End:
This page took 0.051091 seconds and 4 git commands to generate.