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