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