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