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