PR24798, buffer overflow in process_cu_tu_index
[external/binutils.git] / binutils / ChangeLog
1 2019-07-26  Alan Modra  <amodra@gmail.com>
2
3         PR 24798
4         * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
5         systems by casting ncols and nslots expressions to size_t.  Display
6         number of columns and slots before giving up due to buffer overflow.
7         Use %u to display unsigned ints.  Perform more pointer wrap tests.
8
9 2019-07-25  Tom Tromey <tromey@adacore.com>
10
11         PR 24809
12         * dwarf.c (display_debug_names): Display the contents of the
13         augmentation string, if it is printable.
14
15 2019-07-25  Nick Clifton  <nickc@redhat.com>
16
17         PR 24837
18         * readelf.c (process_mips_specific): Check for buffer overflow
19         before reading reginfo information.
20
21 2019-07-24  Nick Clifton  <nickc@redhat.com>
22
23         PR 13256
24         * ar.c (decode_options): Restart option scanning if no operation
25         is detected and argument remain to be scanned.
26
27 2019-07-23  Nick Clifton  <nickc@redhat.com>
28
29         PR 24818
30         * objdump.c (is_relocateable): Delete.
31         (load_specific_debug_section): Test the abfd for relocations
32         directly, rather than relying upon is_relocateable.
33         (dump_dwarf): Delete initlialization of is_relocateable.
34
35 2019-07-23  Alan Modra  <amodra@gmail.com>
36
37         * readelf.c (get_parisc_segment_type): Split off hpux entries..
38         (get_ia64_segment_type): ..and these..
39         (get_hpux_segment_type): ..to here.
40         (get_segment_type): Condition GNU_MBIND on osabi.  Use
41         get_hpux_segment_type.
42         (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
43         (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
44
45 2019-07-23  Alan Modra  <amodra@gmail.com>
46
47         * testsuite/binutils-all/objcopy.exp (elf64): Correct object
48         file used to set this variable.
49
50 2019-07-23  Omar Majid  <omajid@redhat.com>
51
52         * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
53         (GENTESTDLLSPROG): Define.
54         (TEST_PROGS): Add GENTESTDLLSPROG.
55         * Makefile.in: Regenerate.
56         * testsuite/binutils-all/objdump.exp
57         (test_objdump_dotnet_assemblies): New proc.
58         Run the new proc.
59         * testsuite/gentestdlls.c: New source file.
60
61 2019-06-28  Nick Clifton  <nickc@redhat.com>
62
63         PR 24707
64         * objdump.c (slurp_symtab): Fail with a helpful error message if
65         the symbol table is too large.  Skip this check for MMO format
66         files.
67
68 2019-06-26  Nick Clifton  <nickc@redhat.com>
69
70         PR 24703
71         * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
72         indicate this in the output.
73         (bfd_nonfatal_message): Likewise.
74
75 2019-06-25  Jan Beulich  <jbeulich@suse.com>
76
77         * readelf.c (dump_ctf_indent_lines): Rename local variable
78         "spaces" to "blanks".
79
80 2019-06-25  Jan Beulich  <jbeulich@suse.com>
81
82         * objdump.c (dump_ctf_indent_lines): Rename local variable
83         "spaces" to "blanks".
84
85 2019-06-14  Alan Modra  <amodra@gmail.com>
86
87         * Makefile.in: Regenerate.
88         * aclocal.m4: Regenerate.
89         * doc/Makefile.in: Regenerate.
90
91 2019-06-12  Christos Zoulas  <christos@zoulas.com>
92
93         PR 24663
94         * readelf.c (process_netbsd_elf_note): Add support for
95         NT_NETBSD_PAX.
96         (process_note): Add support for PaX notes.
97
98 2019-06-12  Christos Zoulas  <christos@zoulas.com>
99
100         PR 24665
101         * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
102         core notes.
103
104 2019-06-12  Christos Zoulas  <christos@zoulas.com>
105
106         PR 24664
107         * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
108         auxv notes.
109
110 2019-06-11  Christos Zoulas  <christos@zoulas.com>
111
112         PR 24662
113         * readelf.c (get_alpha_symbol_other): New function.
114         (get_symbol_other): Use for Alpha symbols.
115         (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
116
117 2019-06-11  Christos Zoulas  <christos@zoulas.com>
118
119         PR 24661
120         * readelf.c (decode_arm_unwind): Ensure that the local variable
121         'addr' is always initialised.
122
123 2019-06-10  Christos Zoulas  <christos@zoulas.com>
124
125         PR 24651
126         * strings.c (print_strings): Use %u to print unsigned values in
127         decimal.
128
129 2019-06-10  Christos Zoulas  <christos@zoulas.com>
130
131         PR 24649
132         * arsup.c (ar_open): Use asprintf in place of xmalloc and
133         sprintf.
134
135 2019-06-03  Nick Clifton  <nickc@redhat.com>
136
137         Revert:
138         2019-05-29  Nick Clifton  <nickc@redhat.com>
139
140         * configure.ac (LIBCTF): Export.  Set to empty for non-ELF based
141         targets.
142         (HAVE_LIBCTF): Define if libctf support is available.
143         * Makefile.am (LIBCTF): Set value to @LIBCTF@.
144         * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
145         defined.
146         * readelf.c: Likewise.
147         * configure: Regenerate.
148         * Makefile.in: Regenerate.
149         * config.in: Regenerate.
150
151 2019-05-30  Nick Alcock  <nick.alcock@oracle.com>
152
153         * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
154         cts_offset.
155         * readelf.c (shdr_to_ctf_sect): Likewise.
156
157 2019-05-30  Nick Clifton  <nickc@redhat.com>
158
159         PR 24627
160         * readelf.c (process_version_sections): Add 0x prefix to address
161         display.  Correct indentation.
162
163 2019-05-30  Alan Modra  <amodra@gmail.com>
164
165         * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
166         s12z to targets not supporting this feature.
167
168 2019-05-30  Alan Modra  <amodra@gmail.com>
169
170         * testsuite/lib/binutils-common.exp (run_dump_test): Support
171         tcl procedures for xfail args.
172
173 2019-05-29  Nick Clifton  <nickc@redhat.com>
174
175         * README-how-to-make-a-release: Add libctf to list of directories
176         that need updates in their ChangeLogs.
177
178 2019-05-29  Nick Clifton  <nickc@redhat.com>
179
180         * configure.ac (LIBCTF): Export.  Set to empty for non-ELF based
181         targets.
182         (HAVE_LIBCTF): Define if libctf support is available.
183         * Makefile.am (LIBCTF): Set value to @LIBCTF@.
184         * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
185         defined.
186         * readelf.c: Likewise.
187         * configure: Regenerate.
188         * Makefile.in: Regenerate.
189         * config.in: Regenerate.
190
191 2019-05-28  Nick Alcock  <nick.alcock@oracle.com>
192
193         * MAINTAINERS: Add myself as CTF maintainer.
194
195 2019-05-28  Nick Alcock  <nick.alcock@oracle.com>
196
197         * objdump.c (ctf-api.h): New include.
198         (dump_ctf_section_info): New variable.
199         (dump_ctf_section_name): Likewise.
200         (usage): Describe new options.
201         (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
202         (main): Use them to add --ctf and --ctf-parent.
203         (read_section_stabs): Add new parameter, entsize_ptr.
204         (find_stabs_section): Adjust accordingly.
205         (make_ctfsect): New.
206         (dump_ctf_indent_lines): New.
207         (dump_ctf_archive_member): New.
208         (dump_ctf): New.
209         (dump_bfd): Call it.  Free resources afterwards.
210         * readelf.c (ctf-api.h): New include.
211         (CTF_DUMP): New.
212         (static bfd_boolean do_ctf): Likewise.
213         (dump_ctf_parent_name): Likewise.
214         (dump_ctf_symtab_name): Likewise.
215         (dump_ctf_strtab_name): Likewise.
216         (OPTION_CTF_DUMP): Likewise.
217         (OPTION_CTF_PARENT): Likewise.
218         (OPTION_CTF_SYMBOLS): Likewise.
219         (OPTION_CTF_STRINGS): Likewise.
220         (options): Add them.
221         (usage): Likewise.
222         (parse_args): Handle the new options, requesting CTF_DUMP.
223         (process_section_contents): Handle CTF_DUMP.
224         (shdr_to_ctf_sect): New.
225         (dump_ctf_indent_lines): New.
226         (dump_section_as_ctf): New.
227         (main): Free resources.
228         * Makefile.am (LIBCTF): New variable.
229         (objdump_DEPENDENCIES): Use it.
230         (readelf_DEPENDENCIES): Likewise.
231         (objdump_LDADD): Likewise.
232         (readelf_LDADD): Likewise.
233         * aclocal.m4: Regenerated.
234         * Makefile.in: Likewise.
235
236         * doc/binutils.texi (objdump): Document the new options.
237         (readelf): Likewise.
238         * doc/ctf.options.texi: New.
239         * doc/Makefile.in: Regenerated.
240         * NEWS: Mention the new feature.
241
242 2019-05-27  Alan Modra  <amodra@gmail.com>
243
244         * readelf.c (process_section_groups): Continue processing groups
245         when sh_entsize exceeds group size.
246
247 2019-05-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
248
249         * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
250         (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
251         (get_symbol_other): Call get_aarch64_symbol_other.
252
253 2019-05-24  Alan Modra  <amodra@gmail.com>
254
255         * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
256
257 2019-05-23  Jose E. Marchesi  <jose.marchesi@oracle.com>
258
259         * MAINTAINERS: Add myself as the maintainer for BPF.
260
261 2019-05-23  Jose E. Marchesi  <jose.marchesi@oracle.com>
262
263         * readelf.c: Include elf/bpf.h.
264         (guess_is_rela): Hanle EM_BPF.
265         (dump_relocations): Likewise.
266         (is_32bit_abs_reloc): Likewise.
267         * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
268         ELF targets.
269
270 2019-05-21  Tamar Christina  <tamar.christina@arm.com>
271
272         * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
273         * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
274         * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
275
276 2019-05-20  Faraz Shahbazker  <fshahbazker@wavecomp.com>
277
278         PR 14798
279         * testsuite/binutils-all/readelf.ss-mips: Update reference output.
280         * testsuite/binutils-all/readelf.ss-tmips: Likewise.
281
282 2019-05-20  Nick Clifton  <nickc@redhat.com>
283
284         * po/ca.po: Updated Catalan translation.
285
286 2019-05-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
287
288         * NEWS: Mention Armv8.1-M Mainline and MVE.
289
290 2019-05-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
291
292         * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
293         (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
294
295 2019-05-14  Jamey Hicks  <jamey.hicks@gmail.com>
296
297         PR 19921
298         * objcopy.c: Add new option --verilog-data-width.  Use it to set
299         the value of VerilogDataWidth.
300         * doc/binutils.texi: Document the new option.
301         * testsuite/binutils-all/objcopy.exp: Run tests of new option.
302         * testsuite/binutils-all/verilog-1.hex: New file.
303         * testsuite/binutils-all/verilog-2.hex: New file.
304         * testsuite/binutils-all/verilog-4.hex: New file.
305         * testsuite/binutils-all/verilog-8.hex: New file.
306         * NEWS: Mention the new feature.
307
308 2019-05-10  Alan Modra  <amodra@gmail.com>
309
310         * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
311         (test_objdump_content_limited): Add text arg, use in place of .text.
312         (bintest_signed.o): Call get_standard_section_names for name of
313         text section.
314
315 2019-05-08  Faraz Shahbazker  <fshahbazker@wavecomp.com>
316
317         * objdump.c (sign_extend_address): New function.
318         (dump_bfd): Sign-extend user-specified start/stop addresses
319         for targets that need it.
320         * testsuite/binutils-all/objdump.exp: Add tests for objdump
321         with start and stop addresses in higher address ranges.
322
323 2019-05-01  Matthew Malcomson  <matthew.malcomson@arm.com>
324
325         * testsuite/binutils-all/objdump.exp: Correct executable
326         spelling.
327         * testsuite/binutils-all/compress.exp: Likewise.
328
329 2019-05-01  Nick Clifton  <nickc@redhat.com>
330
331         PR 24507
332         * nm.c: (print_format): New variable.
333         (value_format_32bit, value_format_64bit): Delete.
334         (set_print_radix): Remove code to alter value_format strings.
335         (set_output_format): Record chosen format in print_format.
336         (get_print_format): New function - constructs a printf formatting
337         string according to the requirements of size, radix, and output
338         format.
339         (print_value): Use get_print_format.
340         * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
341         and "nm -t d".
342
343 2019-04-30  Alan Modra  <amodra@gmail.com>
344
345         * wrstabs.c (stab_start_class_type): Add assert to work around
346         gcc9 warning.  Tidy.
347
348 2019-04-24  Nick Clifton  <nickc@redhat.com>
349
350         * objcopy.c (strip_main): Do not enable note merging by default if
351         just stripping debug or dwo information.
352         * doc/binutils.texi (strip): Update documentation.
353
354 2019-04-23  Nick Clifton  <nickc@redhat.com>
355
356         * README-how-to-make-a-release: Add note to update the symbolic
357         link from "docs" to "docs-2.x" on the sourceware website.
358
359 2019-04-16  Alan Modra  <amodra@gmail.com>
360
361         * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
362         * testsuite/binutils-all/copy-3.d: Likewise.
363
364 2019-04-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
365
366         * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
367
368 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
369
370         * readelf.c (decode_x86_isa): Handle
371         GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
372         * testsuite/binutils-all/i386/pr21231b.d: Updated.
373         * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
374
375 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
376
377         * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
378
379 2019-03-26  Tamar Christina  <tamar.christina@arm.com>
380
381         * testsuite/binutils-all/aarch64/in-order-all.d: Update.
382         * testsuite/binutils-all/aarch64/in-order.d: Likewise.
383         * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
384         * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
385         * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
386         * testsuite/binutils-all/arm/in-order-all.d: Likewise.
387         * testsuite/binutils-all/arm/in-order.d: Likewise.
388         * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
389         * testsuite/binutils-all/arm/out-of-order.d: Likewise.
390         * testsuite/binutils-all/arm/out-of-order.s: Likewise.
391
392 2019-03-26  Nick Clifton  <nickc@redhat.com>
393
394         * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
395         FRV and MEP.
396
397 2019-03-26  Alan Modra  <amodra@gmail.com>
398
399         * objdump.c (dump_relocs_in_section): Warning fix.
400
401 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
402
403         * testsuite/binutils-all/arm/in-order-all.d: New test.
404         * testsuite/binutils-all/arm/in-order.d: New test.
405         * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
406         * testsuite/binutils-all/arm/out-of-order-all.d: New test.
407         * testsuite/binutils-all/arm/out-of-order.T: New test.
408         * testsuite/binutils-all/arm/out-of-order.d: New test.
409         * testsuite/binutils-all/arm/out-of-order.s: New test.
410
411
412 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
413
414         * testsuite/binutils-all/aarch64/in-order-all.d: New test.
415         * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
416         * testsuite/binutils-all/aarch64/out-of-order.d:
417
418 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
419
420         * testsuite/binutils-all/aarch64/in-order.d: New test.
421         * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
422         well.
423
424 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
425
426         * objdump.c (disassemble_bytes): Pass stop_offset.
427         * testsuite/binutils-all/aarch64/out-of-order.T: New test.
428         * testsuite/binutils-all/aarch64/out-of-order.d: New test.
429         * testsuite/binutils-all/aarch64/out-of-order.s: New test.
430
431 2019-03-19  Nick Clifton  <nickc@redhat.com>
432
433         PR 24360
434         * objdump.c (load_specific_debug_section): Check that the amount
435         of memory to be allocated matches the size of the section.
436
437 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
438
439         * readelf.c (get_aarch64_dynamic_type): Add case for
440         DT_AARCH64_PAC_PLT.
441         (dynamic_section_aarch64_val): Likewise.
442
443 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
444             Szabolcs Nagy  <szabolcs.nagy@arm.com>
445
446         * readelf.c (get_aarch64_dynamic_type): New.
447         (get_dynamic_type): Use above for EM_AARCH64.
448         (dynamic_section_aarch64_val): New.
449         (process_dynamic_section): Use above for EM_AARCH64.
450
451 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
452
453         * readelf.c (decode_aarch64_feature_1_and): New.
454         (print_gnu_property_note): Add case for AArch64 gnu notes.
455
456 2019-03-12  Alan Modra  <amodra@gmail.com>
457
458         * objdump.c (load_specific_debug_section): Don't compare section
459         size against file size.
460         (dump_relocs_in_section): Don't compare reloc size against file size.
461         Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
462
463 2019-03-05  Nick Clifton  <nickc@redhat.com>
464
465         PR 24295
466         * doc/binutils.texi (ar cmdline): Fix spelling mistake.
467
468 2019-03-05  Nick Clifton  <nickc@redhat.com>
469
470         * po/sv.po: Updated Swedish translation.
471
472 2019-03-05  Matthew Malcomson  <matthew.malcomson@arm.com>
473
474         PR 24287
475         * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
476         of "lmap" with a "foreach" loop.
477
478 2019-03-04  Nick Clifton  <nickc@redhat.com>
479
480         PR 24281
481         * objcopy.c (copy_archive): Do not copy thin  archives.
482
483 2019-02-27  Matthew Malcomson  <matthew.malcomson@arm.com>
484
485         * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
486
487 2019-02-25  Nick Clifton  <nickc@redhat.com>
488
489         * objdump.c (sym_ok): New function.
490         (find_symbol_for_address): Use new function.
491         (disassemble_section): Compare sections by name, not pointer.
492         (dump_dwarf): Move code to initialise byte_get pointer and iterate
493         over separate debug files from here to ...
494         (dump_bfd): ... here.  Add parameter indicating that a separate
495         debug info file is being dumped.  For main file, pull in the
496         symbol tables from all separate debug info files.
497         (display_object): Update call to dump_bfd.
498         * doc/binutils.texi: Document extened behaviour of the
499         --dwarf=follow-links option.
500         * NEWS: Mention this new feature.
501         * testsuite/binutils-all/objdump.WK2: Update expected output.
502         * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
503         options and dump file parameters.
504         Add extra test.
505         * testsuite/binutils-all/objdump.WK3: New file.
506         * testsuite/binutils-all/readelf.exp: Change expected output for
507         readelf -wKis test.
508         * testsuite/binutils-all/readelf.wKis: New file.
509
510 2019-02-22  Nick Clifton  <nickc@redhat.com>
511
512         PR 23843
513         * dwarf.h (struct separate_info): New structure for containing
514         information on separate debug info files.
515         * dwarf.c (struct dwo_info): New structure for containing dwo
516         links.
517         (first_dwo_info): Chain of dwo_info structures.
518         (first_separate_file): Chain of separate_info structures.
519         (separate_debug_file, separate_debug_filename): Delete.
520         (fetch_alt_indirect_string): Scan all separate debug info files
521         for the requested string.
522         (add_dwo_info): New function.
523         (add_dwo_name): New function.
524         (add_dwo_dir): New function.
525         (add_dwo_id: New function.
526         (free_dwo_info): New function.
527         (read_and_display_attr_value): Store DWO data using the new
528         functions.
529         (load_debug_section_with_follow): If necessary, scan the list of
530         separate debug info files for the requested section.
531         (add_separate_debug_file): New function.
532         (load_separate_debug_info): Call add_separate_debug_file to store
533         the information on the newly loaded file.
534         (load_dwo_file): Likewise.
535         (load_separate_debif_file): Rename to load_separate_debug_files.
536         Change return type to boolean.  If following links then attempt to
537         load all separate debug info files, not just the first one.
538         (free_debug_memory): Release memory in dwo_info and separate_info
539         chains.
540         * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
541         * readelf.c (process_object): Likewise.
542         * doc/debug.options.texi: Update descriptions of links and
543         follow-links options.
544         * testsuite/binutils-all/objdump.WK2: Update expected output.
545         * testsuite/binutils-all/readelf.k2: Likewise.
546         * NEWS: Announce the new feature.
547
548 2019-02-21  Nick Clifton  <nickc@redhat.com>
549
550         PR 24247
551         * unwind-ia64.c: Include sysdep.h.
552         (unw_decode_x1): Check current pointer against end pointer before
553         accessing memory.
554         (unw_decode_x2): Likewise.
555         (unw_decode_x3): Likewise.
556         (unw_decode_x4): Likewise.
557         (unw_decode_r2): Likewise.
558         (unw_decode_p2_p5): Likewise.
559         (unw_decode_p7_p10): Likewise.
560         (unw_decode): Likewise.
561
562 2019-02-20  Nick Clifton  <nickc@redhat.com>
563
564         PR 24246
565         * readelf.c (print_stapsdt_note): Harden against corrupt notes.
566
567         PR 24244
568         * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
569         prevent walking off the end of the buffer.
570         (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
571         (unw_decode_x2): Likewise.
572         (unw_decode_x3): Likewise.
573         (unw_decode_x4): Likewise.
574         (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
575         (unw_decode_r3): Likewise.
576         (unw_decode_p7_p10): Likewise.
577         (unw_decode_b2): Likewise.
578         (unw_decode_b3_x4): Likewise.
579
580         PR 24243
581         * readelf.c (process_mips_specific): Check for an options section
582         that is too small to even contain a single option.
583
584         PR 24242
585         * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
586
587 2019-02-20  Alan Modra  <amodra@gmail.com>
588
589         PR 24132
590         PR 24138
591         * readelf.c (get_data): Avoid possibility of overflow when
592         checking for a read that may extend past end of file.
593         (process_program_headers): Likewise.
594
595 2019-02-20  Alan Modra  <amodra@gmail.com>
596
597         PR 24233
598         * objdump.c (dump_bfd_private_header): Print warning if
599         bfd_print_private_bfd_data returns false.
600
601 2019-02-12  Nick Clifton  <nickc@redhat.com>
602
603         PR 23440
604         * README-how-to-make-a-release: Use git clean to delete spurious
605         files from the local source repository.
606
607 2019-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
608
609         * size.c (berkeley_format): Delete.
610         (enum output_format): New enum.
611         (selected_output_format): New variable.
612         (usage): Update to mention GNU format.
613         (main): Update to extract options, and select format as needed.
614         Handle GNU format where needed.
615         (berkeley_sum): Renamed to...
616         (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
617         (berkeley_format): Renamed to...
618         (berkeley_or_gnu_format): ...this, and updated to handle both
619         formats.
620         (print_sizes): Handle GNU format.
621         * doc/binutils.texi (size): Document new GNU format.
622         * testsuite/binutils-all/size.exp: Add test of extended
623         functionality.
624         * NEWS: Mention new functionality.
625
626 2019-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
627
628         * doc/binutils.texi (size): Update example output for Berkeley
629         format output.
630
631 2019-02-07  Nick Clifton  <nickc@redhat.com>
632
633         * README-how-to-make-a-release: Add a note about updating the
634         obsolete targets in the bfd/config.bfd file.
635
636 2019-02-04  Nick Clifton  <nickc@redhat.com>
637
638         * README-how-to-make-a-release: Add more notes on making a release.
639
640 2019-01-25  Nick Clifton  <nickc@redhat.com>
641
642         PR 24131
643         * readelf.c (process_notes_at): Prevent an illegal memory access
644         when the note's namesize is zero.
645         (decode_tic6x_unwind_bytecode): Add code to handle the case where
646         no registers are specified in a frame pop instruction.
647
648 2019-01-25  Nick Clifton  <nickc@redhat.com>
649
650         * po/bg.po: Updated Bulgarian translation.
651
652 2019-01-23  Nick Clifton  <nickc@redhat.com>
653
654         * po/fr.po: Updated French translation.
655         * po/pt.po: Updated Portuguese translation.
656
657 2019-01-21  Nick Clifton  <nickc@redhat.com>
658
659         * po/uk.po: Updated Ukranian translation.
660
661 2019-01-19  Nick Clifton  <nickc@redhat.com>
662
663         * configure: Regenerate.
664         * binutils/po/binutils.pot.
665
666         * README-how-to-make-a-release: Update description on how to make
667         a branch.
668
669 2018-06-24  Nick Clifton  <nickc@redhat.com>
670
671         2.32 branch created.
672
673 2019-01-17  Nick Clifton  <nickc@redhat.com>
674
675         * objdump.c (disassemble_section): When disassembling from a
676         symbol only stop at the next symbol if the original symbol was not
677         a function symbol.  Otherwise continue disassembling until a new
678         function is reached.
679         * testsuite/binutils-all/objdump.exp: Add tests of extended
680         functionality.
681         * testsuite/binutils-all/disasm.s: New test source file.
682
683 2019-01-16  Kito Cheng  <kito@andestech.com>
684             Nelson Chu  <nelson@andestech.com>
685
686         * readelf.c (get_riscv_section_type_name): New function.
687         (get_section_type_name): Add handler for RISC-V.
688         (riscv_attr_tag_t): Declare.
689         (riscv_attr_tag): New.
690         (display_riscv_attribute): New function.
691         (process_attributes): Add handler for RISC-V.
692         * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
693         section.
694
695 2019-01-10  Nick Clifton  <nickc@redhat.com>
696
697         PR 23963
698         * objdump.c (sanitize_string): New function.  Removes control
699         characters from symbol names.
700         (dump_section_header): Use new function.
701         (objdump_print_symname): Likewise.
702         (objdump_print_addr_with_sym): Likewise.
703         (show_line): Likewise.
704         (disassemble_bytes): Likewise.
705         (disassemble_section): Likewise.
706         (load_specific_debug_section): Likewise.
707         (read_section_stabs): Likewise.
708         (print_section_stabs): Likewise.
709         (dump_section): Likewise.
710         (dump_reloc_set): Likewise.
711         (dump_relocs_in_section): Likewise.
712         (dump_bfd): Likewise.
713         (display_any_bfd): Likewise.
714
715 2019-01-09  Nick Clifton  <nickc@redhat.com>
716
717         PR 24049
718         * readelf.c (process_archive): Use arch.file_name in error
719         messages until the qualified name is available.
720
721 2019-01-09  Andrew Paprocki  <andrew@ishiboo.com>
722
723         * configure: Regenerate.
724
725 2019-01-09  Alan Modra  <amodra@gmail.com>
726
727         * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
728         unconditionally to tests needing the option rather than via a
729         list of targets.
730
731 2019-01-08  Nick Clifton  <nickc@redhat.com>
732
733         PR 24044
734         * cxxfilt.c (hp_symbol_characters): Delete.
735         (main): Remove depcreated demangling styles.
736         * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
737         demangling opnames.
738         * testsuite/binutils-all/cxxfilt.exp: Use the
739         --no-strip-underscore option for targets that do prefix their
740         symbols with underscores.
741         Update tests to eliminate those that use gnu v2 encoding.
742
743 2019-01-08  Tamar Christina  <tamar.christina@arm.com>
744
745         PR 24065
746         * testsuite/binutils-all/copy-6.d: New test.
747         * testsuite/binutils-all/objcopy.exp: Use it.
748
749 2019-01-08  Alan Modra  <amodra@gmail.com>
750
751         * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
752         $srcdir/$subdir to source file name if it starts with "./".
753
754 2019-01-05  Yoshinori Sato <ysato@users.sourceforge.jp>
755
756         * readelf.c (get_machine_flags): Add RXv3 output.
757
758 2019-01-04  Nick Clifton  <nickc@redhat.com>
759
760         PR 24005
761         * objdump.c (load_specific_debug_section): Check for integer
762         overflow before attempting to allocate contents.
763
764 2019-01-04  Nick Clifton  <nickc@redhat.com>
765
766         PR 24001
767         * objcopy.c (copy_object): Free dhandle after writing out the
768         debug information.
769         * objdump.c (dump_bfd): Free dhandle after printing out the debug
770         information.
771
772
773 2019-01-01  Alan Modra  <amodra@gmail.com>
774
775         Update year range in copyright notice of all files.
776
777 For older changes see ChangeLog-2018
778 \f
779 Copyright (C) 2019 Free Software Foundation, Inc.
780
781 Copying and distribution of this file, with or without modification,
782 are permitted in any medium without royalty provided the copyright
783 notice and this notice are preserved.
784
785 Local Variables:
786 mode: change-log
787 left-margin: 8
788 fill-column: 74
789 version-control: never
790 End: