1 2019-10-30 Fangrui Song <i@maskray.me>
2 Nick Clifton <nickc@redhat.com>
4 * ar.c (emum long option numbers): Declare. Use to provide
5 numerical values for long options.
6 (long_options): Add --output option.
7 (usage): Mention the --output option.
8 (open_output_file): New function. Create a filepath for an output
10 (extract_file): Use open_output_file().
12 * testsuite/binutils-all/ar.exp: Add a test of the new feature.
13 * doc/binutils.texi: Document the new feature.
14 * NEWS: Mention the new feature.
16 2019-10-26 Alan Modra <amodra@gmail.com>
18 * objcopy.c (sort_gnu_build_notes): Correct sort of deleted
21 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
23 * elfedit.c (elf_x86_feature): Report unknown x86 feature.
25 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
27 * elfedit.c (update_gnu_property): Replace BYTE_PUT with byte_put.
29 2019-10-25 Nick Clifton <nickc@redhat.com>
31 * objcopy.c (struct merged_note_section): New structure. Used to
32 chain together details of mergeable note sections.
33 (is_merged_note_section): Rename to is_megreable_note_section and
34 return true for note sections that use GNU_BUILD_ATTRS_SECTION_NAME
37 (objcoopy_internal_note): Add padded_namesz field.
38 (DEBUG_MERGE): New macro. Set to non-zero to enable debugging of
39 the note merging code.
40 (gap_exists): Rename to overlaps_or_adjoins and return TRUE for
41 overlapping notes or adjoining notes.
42 (contained_by, is_deleted_note, is_version_note)
43 (compare_gnu_build_notes, sort_gnu_build_notes): New functions.
44 (merge_gnu_build_notes): Rework. Sort notes into a mergeable
45 order first. Merge them. Then sort them into an ascending
46 address order before writing them out.
47 (copy_object): Handle more than one mergeable note section.
48 * testsuite/binutils-all/note-2-32.d: Update for new merging
50 * testsuite/binutils-all/note-2-32.s: Likewise.
51 * testsuite/binutils-all/note-2-64.d: Likewise.
52 * testsuite/binutils-all/note-2-64.s: Likewise.
53 * testsuite/binutils-all/note-3-32.d: Likewise.
54 * testsuite/binutils-all/note-3-32.s: Likewise.
55 * testsuite/binutils-all/note-3-64.d: Likewise.
56 * testsuite/binutils-all/note-3-64.s: Likewise.
57 * testsuite/binutils-all/note-4-32.d: Likewise.
58 * testsuite/binutils-all/note-4-32.s: Likewise.
59 * testsuite/binutils-all/note-4-64.d: Likewise.
60 * testsuite/binutils-all/note-4-64.s: Likewise.
61 * testsuite/binutils-all/note-6-32.s: New test source file.
62 * testsuite/binutils-all/note-6-64.s: New test source file.
63 * testsuite/binutils-all/note-6-32.d: New test driver file.
64 * testsuite/binutils-all/note-6-64.d: New test driver file.
65 * testsuite/binutils-all/objcopy.exp: Run the new test.
67 2019-10-25 Alan Modra <amodra@gmail.com>
69 * readelf.c (process_program_headers): Check PT_PHDR p_offset
70 as well as p_vaddr. Use p_filesz, not p_memsz, in vaddr test.
72 2019-10-21 Alan Modra <amodra@gmail.com>
76 * ar.c (write_archive): Set BFD_ARCHIVE_FULL_PATH.
77 * doc/binutils.texi (extract from archive): Mention
78 restrictions when extracting from archives with full paths.
79 (ar P): Update to current P support.
80 (ar -X32_64): Fix spelling.
82 2019-10-14 Alan Modra <amodra@gmail.com>
84 * objcopy.c (compare_section_lma): Correct comment. Dereference
85 section pointer earlier and lose unnecessary const. Style fixes.
88 2019-10-13 Nick Clifton <nickc@redhat.com>
90 * README-how-to-make-a-release: Add a note to reset the
91 development flag back to true after making a point release.
93 2019-10-12 Nick Clifton <nickc@redhat.com>
95 * README-how-to-make-a-release: Tweak a few sections based on the
96 results of the 2.33.1 release.
98 2019-10-11 Nick Clifton <nickc@redhat.com>
100 * po/zh_TW.po: Updated Chinese (traditional) translation.
102 2019-10-09 Alan Modra <amodra@gmail.com>
105 * ar.c (decode_options): Don't try for command options if
106 write_armap or mri_mode is selected.
108 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
110 * readelf.c (display_msp430_gnu_attribute): New.
111 (process_arch_specific): Use msp430 specific handler for GNU
114 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
116 * objdump.c (main): Fix tabdamage.
117 * readelf.c (CTF_DUMP): Likewise.
119 (dump_section_as_ctf): Likewise.
121 2019-08-03 Nick Alcock <nick.alcock@oracle.com>
123 * objdump.c (dump_ctf): Use the default CTF archive member as the
124 parent even when no parent section is specified.
125 (dump_ctf_archive_member): Only import from the parent
126 if this is not the default ".ctf" member.
128 2019-09-23 Nick Alcock <nick.alcock@oracle.com>
130 * Makefile.am (LIBCTF): Mention the .la file.
132 (readelf_DEPENDENCIES): Use it.
133 (readelf_LDADD): Likewise.
134 * Makefile.in: Regenerated.
136 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
138 * readelf.c (dump_ctf_symtab_name): Give default value.
139 (dump_ctf_strtab_name): Likewise.
140 (dump_section_as_ctf): Allow for the null string.
142 2019-07-08 Nick Alcock <nick.alcock@oracle.com>
144 * objdump.c (dump_ctf_archive_member): Dump the CTF header.
145 * readelf.c (dump_section_as_ctf): Likewise.
147 2019-10-02 Niklas Gürtler <profclonk@gmail.com>
150 * objcopy.c (copy_usage): Update description of
151 --set-section-alignment.
152 (copy_main): Interpret numeric argument of --set-section-alignment
153 as a byte alignment, not a power of two alignment.
154 * doc/binutils.texi: Update description of
155 --set-section-alignment.
156 * testsuite/binutils-all/set-section-alignment.d: New test.
157 * testsuite/binutils-all/objcopy.exp: Run the new test.
159 2019-09-30 Alan Modra <amodra@gmail.com>
162 * readelf.c (process_program_headers): Clear dynamic_addr and
163 dynamic_size earlier.
165 2019-09-24 Alan Modra <amodra@gmail.com>
168 * nm.c (print_format_string): New.
169 (get_print_format): Delete saved_format. Move earlier.
170 (set_print_width): Call get_print_format.
171 (print_value): Use print_format_string.
173 2019-09-23 Alan Modra <amodra@gmail.com>
175 * dlltool.c: Include coff-bfd.h.
177 2019-09-23 Alan Modra <amodra@gmail.com>
180 * dwarf.c (get_type_signedness): Delete ineffective pointer
181 comparison check. Properly range check uvalue offset on
183 (read_and_display_attr_value): Range check uvalue offset before
184 calling get_type_signedness.
186 2019-09-20 Alan Modra <amodra@gmail.com>
188 * ar.c (write_archive): Use bfd_set_thin_archive.
190 2019-09-18 Tamar Christina <tamar.christina@arm.com>
192 * testsuite/binutils-all/objdump.exp (objump -S): Update testcases.
194 2019-09-18 Alan Modra <amodra@gmail.com>
196 * addr2line.c, * bucomm.c, * coffgrok.c, * dlltool.c, * nm.c,
197 * objcopy.c, * objdump.c, * od-elf32_avr.c, * od-macho.c,
198 * od-xcoff.c, * prdbg.c, * rdcoff.c, * rddbg.c, * rescoff.c,
199 * resres.c, * size.c, * srconv.c, * strings.c, * windmc.c: Update
200 throughout for bfd section macro and function changes.
202 2019-09-18 Alan Modra <amodra@gmail.com>
204 * nm.c: Update bfd_get_section to bfd_asymbol_section throughout.
205 * objcopy.c: Likewise.
206 * objdump.c: Likewise.
207 * rdcoff.c: Likewise.
208 * objcopy.c (create_new_symbol): Use bfd_set_asymbol_name.
209 (filter_symbols): Likewise.
211 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
213 * doc/Makefile.am (MOSTLYCLEANFILES): Clean all man pages,
214 cxxfilt.man and binutils.info.
215 (MAINTAINERCLEANFILES): Remove.
216 * doc/Makefile.in: Re-generate.
218 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
220 * doc/Makefile.am: Remove references to binutils_TEXINFOS.
221 * doc/Makefile.in: Re-generate.
223 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
225 * doc/Makefile.am (install-data-loca): Remove target.
226 (DISTCLEANFILES): Remove variable.
227 * doc/Makefile.in: Re-generate.
229 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
231 * Makefile.in: Re-generate.
232 * configure: Re-generate.
233 * doc/Makefile.in: Re-generate.
235 2019-09-16 Phil Blundell <pb@pbcl.net>
237 * Makefile.in, configure. doc/Makefile.in: Regenerated.
239 2019-09-11 Tom Tromey <tom@tromey.com>
241 * objcopy.c (copy_archive): Update.
242 * bucomm.h (make_tempname, make_tempdir): Make argument const.
243 * bucomm.c (make_tempname, make_tempdir): Make argument const.
245 2019-09-11 Alan Modra <amodra@gmail.com>
248 * objdump.c (disassemble_bytes): Adjust code to avoid overlong
249 lines. Correct max_reloc_offset_into_insn test.
251 2019-09-10 Nick Clifton <nickc@redhat.com>
254 * objdump.c (null_print): New function.
255 (disassemble_bytes): Delete previous_octets local and replace with
256 a test of the max_reloc_offset_into_insn field of the
257 bfd_arch_info structure. If a reloc is a potential match for the
258 next insn, then perform a dummy disassembly in order to calculate
261 2019-09-09 Phil Blundell <pb@pbcl.net>
263 binutils 2.33 branch created.
265 2019-09-06 Alan Modra <amodra@gmail.com>
267 * nm.c (print_object_filename_bsd, print_object_filename_sysv),
268 (print_object_filename_posix, print_archive_filename_bsd),
269 (print_archive_filename_sysv, print_archive_filename_posix),
270 (print_archive_member_bsd, print_archive_member_sysv),
271 (print_archive_member_posix): Constify parameter.
272 (struct output_fns <print_object_filename, print_archive_filename>),
273 (<print_archive_member>): Likewise.
274 * objcopy.c (copy_archive): Add cast for make_tempdir.
276 2019-08-29 Alan Modra <amodra@gmail.com>
278 * dwarf.c (check_uvalue): Remove unnecessary pointer checks.
280 2019-08-28 Niklas Gürtler <profclonk@gmail.com>
283 * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant.
284 (struct section_list): Add alignment field.
285 (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT.
286 (copy_options): Add --set-section-alignment.
287 (copy_usage): Describe --set-section-alignment.
288 (find_section_list): Initialise the alignment field.
289 (setup_section): Handle the alignment field.
290 (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT.
291 * doc/binutils.texi: Document the new feature.
292 * NEWS: Mention the new feature.
294 2019-08-28 Nick Clifton <nickc@redhat.com>
297 * objdump.c (source_comment): New static variable.
298 (option_values): Add OPTION_SOURCE_COMMENT.
299 (long_opions): Add --source-comment.
300 (print_line): If source comment is set, use it as a prefix to the
302 (main): Handle OPTION_SOURCE_COMMENT.
303 * doc/binutils.texi: Document the new option.
304 * NEWS: Mention the new feature.
305 * testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests
306 of the -S and --source-comment options.
308 2019-08-27 Nick Clifton <nickc@redhat.com>
311 * dwarf.c (MAX_CU_NESTING): New constant.
312 (level_type_signed): New static array.
313 (skip_attr_bytes): New function.
314 (get_type_signedness): New function.
315 (read_and_print_leb128): New function.
316 (display_discr_list): New function.
317 (read_and_display_attr_value): Add start parameter.
318 Use new functions when handling DW_AT_type and DW_AT_discr_list.
319 (read_and_display_attr): Add start parameter. Pass to
320 read_and_display_attr_value.
321 (process_debug_info): Update call to read_and_display_attr.
322 (display_formatted_table): Likewise.
323 (display_debug_lines_decoded): Likewise. Also add start
325 (display_debug_lines): Likewise.
326 * testsuite/binutils-all/dwarf-attributes.S: Update discrimination
328 * testsuite/binutils-all/dwarf-attributes.W: Update expected
331 2019-08-26 Alan Modra <amodra@gmail.com>
334 * debug.c (debug_write_type): Call empty_type for NULL type here..
335 (debug_write_type): ..rather than in just one case here.
337 2019-08-23 Nick Clifton <nickc@redhat.com>
340 * dwarf.c (check_uvalue): New function. Ensures that a block's
342 (read_and_display_attr_value): Use check_value when processsing
343 DW_FORM_block<n> attributes.
345 2019-08-22 Nick Clifton <nickc@redhat.com>
348 * dwarf.c (process_cu_tu_index): Handle the case where a table
349 does not have any columns.
351 2019-08-19 Alan Modra <amodra@gmail.com>
354 * dwarf.c (display_debug_frames): Use the read_cie check and error
355 for augmentation data length.
357 2019-08-17 Alan Modra <amodra@gmail.com>
360 * dwarf.c (comp_addr_base): Dereference args.
362 2019-08-16 Alan Modra <amodra@gmail.com>
366 * readelf.c (get_symbol_version_string): Set sym_info earlier.
368 2019-08-15 Nick Clifton <nickc@redhat.com>
371 * doc/binutils.texi (nm): Document the 'n' symbol type.
373 2019-08-15 Christophe Vidal <support@krizalys.com>
375 * docs/binutils.texi: Fixed notice message disassembler options
376 section of the man page.
378 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
380 * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type.
381 (get_mips_section_type_name): Return MI{S_XHASH name string.
382 (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic
384 (process_symbol_table): Initialize the .MIPS.xhash section
385 pointer. Adjust the readelf output to support the new section.
386 (process_object): Set the .MIPS.xhash dynamic info to zero.
388 2019-08-09 Tamar Christina <tamar.christina@arm.com>
390 * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff.
391 * testsuite/binutils-all/arm/in-order.d: Likewise.
392 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
393 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
395 2019-08-08 Nick Clifton <nickc@redhat.com>
398 * readelf.c (process_notes_at): Left justify the "Data size"
400 * testsuite/binutils-all/i386/empty.d: Adjust for new output format.
401 * testsuite/binutils-all/i386/ibt.d: Likewise.
402 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
403 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
404 * testsuite/binutils-all/i386/shstk.d: Likewise.
405 * testsuite/binutils-all/note-2-32.d: Likewise.
406 * testsuite/binutils-all/note-2-64.d: Likewise.
407 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
408 * testsuite/binutils-all/x86-64/empty.d: Likewise.
409 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
410 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
411 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
412 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
413 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
414 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
415 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
416 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
417 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
418 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
419 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
420 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
421 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
422 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
424 2019-08-08 Nick Clifton <nickc@redhat.com>
426 * testsuite/gentestdlls.c (main): Move declaration of loop
427 variable outside of the for() statement.
429 2019-08-08 Jordan Rupprecht <rupprecht@google.com>
431 * readelf.c (process_note): Mask unknown description data bytes.
433 2019-08-08 Alan Modra <amodra@gmail.com>
435 * readelf.c (get_data): Improve overflow checks.
437 2019-08-07 Nick Clifton <nickc@redhat.com>
440 * doc/binutils.texi: Ensure consistent formating of title strings
441 for man pages. Extend the title of the size man page to be more
444 2019-08-07 Omair Majid <omajid@redhat.com>
446 * testsuite/binutils-all/objdump.exp
447 (test_objdump_dotnet_assemblies): Fix test to distinguish errors
448 in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
449 introduced machine types.
450 * testsuite/gentestdlls.c (write_simple_dll): New function.
451 (main): Generate simple and Linux-specific variants of pei-i386
452 and pei-x86-64 files so both can be used by tests.
454 2019-08-07 Alan Modra <amodra@gmail.com>
457 * readelf.c (dump_ia64_unwind): Check that buffer is large
458 enough for "stamp" before reading.
460 2019-08-05 Nick Clifton <nickc@redhat.com>
463 * objcopy.c (merge_gnu_build_notes): Do not insist on the first
464 note being a version note.
465 Remove spurious debugging fprintf.
467 2019-08-05 Nick Clifton <nickc@redhat.com>
470 * readelf.c (apply_relocations): Catch potential integer overflow
471 whilst checking reloc location against section size.
473 2019-08-02 Alan Modra <amodra@gmail.com>
476 * readelf.c (ABSADDR): Delete.
477 (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
479 2019-07-29 Martin Liska <mliska@suse.cz>
482 * nm.c (filter_symbols): Set report_plugin_err if
484 (display_rel_file): Report error for a missing LTO plugin.
486 2019-07-26 Alan Modra <amodra@gmail.com>
489 * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
490 systems by casting ncols and nslots expressions to size_t. Display
491 number of columns and slots before giving up due to buffer overflow.
492 Use %u to display unsigned ints. Perform more pointer wrap tests.
494 2019-07-25 Tom Tromey <tromey@adacore.com>
497 * dwarf.c (display_debug_names): Display the contents of the
498 augmentation string, if it is printable.
500 2019-07-25 Nick Clifton <nickc@redhat.com>
503 * readelf.c (process_mips_specific): Check for buffer overflow
504 before reading reginfo information.
506 2019-07-24 Nick Clifton <nickc@redhat.com>
509 * ar.c (decode_options): Restart option scanning if no operation
510 is detected and argument remain to be scanned.
512 2019-07-23 Nick Clifton <nickc@redhat.com>
515 * objdump.c (is_relocateable): Delete.
516 (load_specific_debug_section): Test the abfd for relocations
517 directly, rather than relying upon is_relocateable.
518 (dump_dwarf): Delete initlialization of is_relocateable.
520 2019-07-23 Alan Modra <amodra@gmail.com>
522 * readelf.c (get_parisc_segment_type): Split off hpux entries..
523 (get_ia64_segment_type): ..and these..
524 (get_hpux_segment_type): ..to here.
525 (get_segment_type): Condition GNU_MBIND on osabi. Use
526 get_hpux_segment_type.
527 (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
528 (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
530 2019-07-23 Alan Modra <amodra@gmail.com>
532 * testsuite/binutils-all/objcopy.exp (elf64): Correct object
533 file used to set this variable.
535 2019-07-23 Omar Majid <omajid@redhat.com>
537 * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
538 (GENTESTDLLSPROG): Define.
539 (TEST_PROGS): Add GENTESTDLLSPROG.
540 * Makefile.in: Regenerate.
541 * testsuite/binutils-all/objdump.exp
542 (test_objdump_dotnet_assemblies): New proc.
544 * testsuite/gentestdlls.c: New source file.
546 2019-06-28 Nick Clifton <nickc@redhat.com>
549 * objdump.c (slurp_symtab): Fail with a helpful error message if
550 the symbol table is too large. Skip this check for MMO format
553 2019-06-26 Nick Clifton <nickc@redhat.com>
556 * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
557 indicate this in the output.
558 (bfd_nonfatal_message): Likewise.
560 2019-06-25 Jan Beulich <jbeulich@suse.com>
562 * readelf.c (dump_ctf_indent_lines): Rename local variable
563 "spaces" to "blanks".
565 2019-06-25 Jan Beulich <jbeulich@suse.com>
567 * objdump.c (dump_ctf_indent_lines): Rename local variable
568 "spaces" to "blanks".
570 2019-06-14 Alan Modra <amodra@gmail.com>
572 * Makefile.in: Regenerate.
573 * aclocal.m4: Regenerate.
574 * doc/Makefile.in: Regenerate.
576 2019-06-12 Christos Zoulas <christos@zoulas.com>
579 * readelf.c (process_netbsd_elf_note): Add support for
581 (process_note): Add support for PaX notes.
583 2019-06-12 Christos Zoulas <christos@zoulas.com>
586 * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
589 2019-06-12 Christos Zoulas <christos@zoulas.com>
592 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
595 2019-06-11 Christos Zoulas <christos@zoulas.com>
598 * readelf.c (get_alpha_symbol_other): New function.
599 (get_symbol_other): Use for Alpha symbols.
600 (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
602 2019-06-11 Christos Zoulas <christos@zoulas.com>
605 * readelf.c (decode_arm_unwind): Ensure that the local variable
606 'addr' is always initialised.
608 2019-06-10 Christos Zoulas <christos@zoulas.com>
611 * strings.c (print_strings): Use %u to print unsigned values in
614 2019-06-10 Christos Zoulas <christos@zoulas.com>
617 * arsup.c (ar_open): Use asprintf in place of xmalloc and
620 2019-06-03 Nick Clifton <nickc@redhat.com>
623 2019-05-29 Nick Clifton <nickc@redhat.com>
625 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
627 (HAVE_LIBCTF): Define if libctf support is available.
628 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
629 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
631 * readelf.c: Likewise.
632 * configure: Regenerate.
633 * Makefile.in: Regenerate.
634 * config.in: Regenerate.
636 2019-05-30 Nick Alcock <nick.alcock@oracle.com>
638 * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
640 * readelf.c (shdr_to_ctf_sect): Likewise.
642 2019-05-30 Nick Clifton <nickc@redhat.com>
645 * readelf.c (process_version_sections): Add 0x prefix to address
646 display. Correct indentation.
648 2019-05-30 Alan Modra <amodra@gmail.com>
650 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
651 s12z to targets not supporting this feature.
653 2019-05-30 Alan Modra <amodra@gmail.com>
655 * testsuite/lib/binutils-common.exp (run_dump_test): Support
656 tcl procedures for xfail args.
658 2019-05-29 Nick Clifton <nickc@redhat.com>
660 * README-how-to-make-a-release: Add libctf to list of directories
661 that need updates in their ChangeLogs.
663 2019-05-29 Nick Clifton <nickc@redhat.com>
665 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
667 (HAVE_LIBCTF): Define if libctf support is available.
668 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
669 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
671 * readelf.c: Likewise.
672 * configure: Regenerate.
673 * Makefile.in: Regenerate.
674 * config.in: Regenerate.
676 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
678 * MAINTAINERS: Add myself as CTF maintainer.
680 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
682 * objdump.c (ctf-api.h): New include.
683 (dump_ctf_section_info): New variable.
684 (dump_ctf_section_name): Likewise.
685 (usage): Describe new options.
686 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
687 (main): Use them to add --ctf and --ctf-parent.
688 (read_section_stabs): Add new parameter, entsize_ptr.
689 (find_stabs_section): Adjust accordingly.
691 (dump_ctf_indent_lines): New.
692 (dump_ctf_archive_member): New.
694 (dump_bfd): Call it. Free resources afterwards.
695 * readelf.c (ctf-api.h): New include.
697 (static bfd_boolean do_ctf): Likewise.
698 (dump_ctf_parent_name): Likewise.
699 (dump_ctf_symtab_name): Likewise.
700 (dump_ctf_strtab_name): Likewise.
701 (OPTION_CTF_DUMP): Likewise.
702 (OPTION_CTF_PARENT): Likewise.
703 (OPTION_CTF_SYMBOLS): Likewise.
704 (OPTION_CTF_STRINGS): Likewise.
707 (parse_args): Handle the new options, requesting CTF_DUMP.
708 (process_section_contents): Handle CTF_DUMP.
709 (shdr_to_ctf_sect): New.
710 (dump_ctf_indent_lines): New.
711 (dump_section_as_ctf): New.
712 (main): Free resources.
713 * Makefile.am (LIBCTF): New variable.
714 (objdump_DEPENDENCIES): Use it.
715 (readelf_DEPENDENCIES): Likewise.
716 (objdump_LDADD): Likewise.
717 (readelf_LDADD): Likewise.
718 * aclocal.m4: Regenerated.
719 * Makefile.in: Likewise.
721 * doc/binutils.texi (objdump): Document the new options.
723 * doc/ctf.options.texi: New.
724 * doc/Makefile.in: Regenerated.
725 * NEWS: Mention the new feature.
727 2019-05-27 Alan Modra <amodra@gmail.com>
729 * readelf.c (process_section_groups): Continue processing groups
730 when sh_entsize exceeds group size.
732 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
734 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
735 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
736 (get_symbol_other): Call get_aarch64_symbol_other.
738 2019-05-24 Alan Modra <amodra@gmail.com>
740 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
742 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
744 * MAINTAINERS: Add myself as the maintainer for BPF.
746 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
748 * readelf.c: Include elf/bpf.h.
749 (guess_is_rela): Hanle EM_BPF.
750 (dump_relocations): Likewise.
751 (is_32bit_abs_reloc): Likewise.
752 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
755 2019-05-21 Tamar Christina <tamar.christina@arm.com>
757 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
758 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
759 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
761 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
764 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
765 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
767 2019-05-20 Nick Clifton <nickc@redhat.com>
769 * po/ca.po: Updated Catalan translation.
771 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
773 * NEWS: Mention Armv8.1-M Mainline and MVE.
775 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
777 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
778 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
780 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
783 * objcopy.c: Add new option --verilog-data-width. Use it to set
784 the value of VerilogDataWidth.
785 * doc/binutils.texi: Document the new option.
786 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
787 * testsuite/binutils-all/verilog-1.hex: New file.
788 * testsuite/binutils-all/verilog-2.hex: New file.
789 * testsuite/binutils-all/verilog-4.hex: New file.
790 * testsuite/binutils-all/verilog-8.hex: New file.
791 * NEWS: Mention the new feature.
793 2019-05-10 Alan Modra <amodra@gmail.com>
795 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
796 (test_objdump_content_limited): Add text arg, use in place of .text.
797 (bintest_signed.o): Call get_standard_section_names for name of
800 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
802 * objdump.c (sign_extend_address): New function.
803 (dump_bfd): Sign-extend user-specified start/stop addresses
804 for targets that need it.
805 * testsuite/binutils-all/objdump.exp: Add tests for objdump
806 with start and stop addresses in higher address ranges.
808 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
810 * testsuite/binutils-all/objdump.exp: Correct executable
812 * testsuite/binutils-all/compress.exp: Likewise.
814 2019-05-01 Nick Clifton <nickc@redhat.com>
817 * nm.c: (print_format): New variable.
818 (value_format_32bit, value_format_64bit): Delete.
819 (set_print_radix): Remove code to alter value_format strings.
820 (set_output_format): Record chosen format in print_format.
821 (get_print_format): New function - constructs a printf formatting
822 string according to the requirements of size, radix, and output
824 (print_value): Use get_print_format.
825 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
828 2019-04-30 Alan Modra <amodra@gmail.com>
830 * wrstabs.c (stab_start_class_type): Add assert to work around
833 2019-04-24 Nick Clifton <nickc@redhat.com>
835 * objcopy.c (strip_main): Do not enable note merging by default if
836 just stripping debug or dwo information.
837 * doc/binutils.texi (strip): Update documentation.
839 2019-04-23 Nick Clifton <nickc@redhat.com>
841 * README-how-to-make-a-release: Add note to update the symbolic
842 link from "docs" to "docs-2.x" on the sourceware website.
844 2019-04-16 Alan Modra <amodra@gmail.com>
846 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
847 * testsuite/binutils-all/copy-3.d: Likewise.
849 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
851 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
853 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
855 * readelf.c (decode_x86_isa): Handle
856 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
857 * testsuite/binutils-all/i386/pr21231b.d: Updated.
858 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
860 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
862 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
864 2019-03-26 Tamar Christina <tamar.christina@arm.com>
866 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
867 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
868 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
869 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
870 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
871 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
872 * testsuite/binutils-all/arm/in-order.d: Likewise.
873 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
874 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
875 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
877 2019-03-26 Nick Clifton <nickc@redhat.com>
879 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
882 2019-03-26 Alan Modra <amodra@gmail.com>
884 * objdump.c (dump_relocs_in_section): Warning fix.
886 2019-03-25 Tamar Christina <tamar.christina@arm.com>
888 * testsuite/binutils-all/arm/in-order-all.d: New test.
889 * testsuite/binutils-all/arm/in-order.d: New test.
890 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
891 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
892 * testsuite/binutils-all/arm/out-of-order.T: New test.
893 * testsuite/binutils-all/arm/out-of-order.d: New test.
894 * testsuite/binutils-all/arm/out-of-order.s: New test.
897 2019-03-25 Tamar Christina <tamar.christina@arm.com>
899 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
900 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
901 * testsuite/binutils-all/aarch64/out-of-order.d:
903 2019-03-25 Tamar Christina <tamar.christina@arm.com>
905 * testsuite/binutils-all/aarch64/in-order.d: New test.
906 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
909 2019-03-25 Tamar Christina <tamar.christina@arm.com>
911 * objdump.c (disassemble_bytes): Pass stop_offset.
912 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
913 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
914 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
916 2019-03-19 Nick Clifton <nickc@redhat.com>
919 * objdump.c (load_specific_debug_section): Check that the amount
920 of memory to be allocated matches the size of the section.
922 2019-03-13 Sudakshina Das <sudi.das@arm.com>
924 * readelf.c (get_aarch64_dynamic_type): Add case for
926 (dynamic_section_aarch64_val): Likewise.
928 2019-03-13 Sudakshina Das <sudi.das@arm.com>
929 Szabolcs Nagy <szabolcs.nagy@arm.com>
931 * readelf.c (get_aarch64_dynamic_type): New.
932 (get_dynamic_type): Use above for EM_AARCH64.
933 (dynamic_section_aarch64_val): New.
934 (process_dynamic_section): Use above for EM_AARCH64.
936 2019-03-13 Sudakshina Das <sudi.das@arm.com>
938 * readelf.c (decode_aarch64_feature_1_and): New.
939 (print_gnu_property_note): Add case for AArch64 gnu notes.
941 2019-03-12 Alan Modra <amodra@gmail.com>
943 * objdump.c (load_specific_debug_section): Don't compare section
944 size against file size.
945 (dump_relocs_in_section): Don't compare reloc size against file size.
946 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
948 2019-03-05 Nick Clifton <nickc@redhat.com>
951 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
953 2019-03-05 Nick Clifton <nickc@redhat.com>
955 * po/sv.po: Updated Swedish translation.
957 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
960 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
961 of "lmap" with a "foreach" loop.
963 2019-03-04 Nick Clifton <nickc@redhat.com>
966 * objcopy.c (copy_archive): Do not copy thin archives.
968 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
970 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
972 2019-02-25 Nick Clifton <nickc@redhat.com>
974 * objdump.c (sym_ok): New function.
975 (find_symbol_for_address): Use new function.
976 (disassemble_section): Compare sections by name, not pointer.
977 (dump_dwarf): Move code to initialise byte_get pointer and iterate
978 over separate debug files from here to ...
979 (dump_bfd): ... here. Add parameter indicating that a separate
980 debug info file is being dumped. For main file, pull in the
981 symbol tables from all separate debug info files.
982 (display_object): Update call to dump_bfd.
983 * doc/binutils.texi: Document extened behaviour of the
984 --dwarf=follow-links option.
985 * NEWS: Mention this new feature.
986 * testsuite/binutils-all/objdump.WK2: Update expected output.
987 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
988 options and dump file parameters.
990 * testsuite/binutils-all/objdump.WK3: New file.
991 * testsuite/binutils-all/readelf.exp: Change expected output for
993 * testsuite/binutils-all/readelf.wKis: New file.
995 2019-02-22 Nick Clifton <nickc@redhat.com>
998 * dwarf.h (struct separate_info): New structure for containing
999 information on separate debug info files.
1000 * dwarf.c (struct dwo_info): New structure for containing dwo
1002 (first_dwo_info): Chain of dwo_info structures.
1003 (first_separate_file): Chain of separate_info structures.
1004 (separate_debug_file, separate_debug_filename): Delete.
1005 (fetch_alt_indirect_string): Scan all separate debug info files
1006 for the requested string.
1007 (add_dwo_info): New function.
1008 (add_dwo_name): New function.
1009 (add_dwo_dir): New function.
1010 (add_dwo_id: New function.
1011 (free_dwo_info): New function.
1012 (read_and_display_attr_value): Store DWO data using the new
1014 (load_debug_section_with_follow): If necessary, scan the list of
1015 separate debug info files for the requested section.
1016 (add_separate_debug_file): New function.
1017 (load_separate_debug_info): Call add_separate_debug_file to store
1018 the information on the newly loaded file.
1019 (load_dwo_file): Likewise.
1020 (load_separate_debif_file): Rename to load_separate_debug_files.
1021 Change return type to boolean. If following links then attempt to
1022 load all separate debug info files, not just the first one.
1023 (free_debug_memory): Release memory in dwo_info and separate_info
1025 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
1026 * readelf.c (process_object): Likewise.
1027 * doc/debug.options.texi: Update descriptions of links and
1028 follow-links options.
1029 * testsuite/binutils-all/objdump.WK2: Update expected output.
1030 * testsuite/binutils-all/readelf.k2: Likewise.
1031 * NEWS: Announce the new feature.
1033 2019-02-21 Nick Clifton <nickc@redhat.com>
1036 * unwind-ia64.c: Include sysdep.h.
1037 (unw_decode_x1): Check current pointer against end pointer before
1039 (unw_decode_x2): Likewise.
1040 (unw_decode_x3): Likewise.
1041 (unw_decode_x4): Likewise.
1042 (unw_decode_r2): Likewise.
1043 (unw_decode_p2_p5): Likewise.
1044 (unw_decode_p7_p10): Likewise.
1045 (unw_decode): Likewise.
1047 2019-02-20 Nick Clifton <nickc@redhat.com>
1050 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
1053 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
1054 prevent walking off the end of the buffer.
1055 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
1056 (unw_decode_x2): Likewise.
1057 (unw_decode_x3): Likewise.
1058 (unw_decode_x4): Likewise.
1059 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
1060 (unw_decode_r3): Likewise.
1061 (unw_decode_p7_p10): Likewise.
1062 (unw_decode_b2): Likewise.
1063 (unw_decode_b3_x4): Likewise.
1066 * readelf.c (process_mips_specific): Check for an options section
1067 that is too small to even contain a single option.
1070 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
1072 2019-02-20 Alan Modra <amodra@gmail.com>
1076 * readelf.c (get_data): Avoid possibility of overflow when
1077 checking for a read that may extend past end of file.
1078 (process_program_headers): Likewise.
1080 2019-02-20 Alan Modra <amodra@gmail.com>
1083 * objdump.c (dump_bfd_private_header): Print warning if
1084 bfd_print_private_bfd_data returns false.
1086 2019-02-12 Nick Clifton <nickc@redhat.com>
1089 * README-how-to-make-a-release: Use git clean to delete spurious
1090 files from the local source repository.
1092 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1094 * size.c (berkeley_format): Delete.
1095 (enum output_format): New enum.
1096 (selected_output_format): New variable.
1097 (usage): Update to mention GNU format.
1098 (main): Update to extract options, and select format as needed.
1099 Handle GNU format where needed.
1100 (berkeley_sum): Renamed to...
1101 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
1102 (berkeley_format): Renamed to...
1103 (berkeley_or_gnu_format): ...this, and updated to handle both
1105 (print_sizes): Handle GNU format.
1106 * doc/binutils.texi (size): Document new GNU format.
1107 * testsuite/binutils-all/size.exp: Add test of extended
1109 * NEWS: Mention new functionality.
1111 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1113 * doc/binutils.texi (size): Update example output for Berkeley
1116 2019-02-07 Nick Clifton <nickc@redhat.com>
1118 * README-how-to-make-a-release: Add a note about updating the
1119 obsolete targets in the bfd/config.bfd file.
1121 2019-02-04 Nick Clifton <nickc@redhat.com>
1123 * README-how-to-make-a-release: Add more notes on making a release.
1125 2019-01-25 Nick Clifton <nickc@redhat.com>
1128 * readelf.c (process_notes_at): Prevent an illegal memory access
1129 when the note's namesize is zero.
1130 (decode_tic6x_unwind_bytecode): Add code to handle the case where
1131 no registers are specified in a frame pop instruction.
1133 2019-01-25 Nick Clifton <nickc@redhat.com>
1135 * po/bg.po: Updated Bulgarian translation.
1137 2019-01-23 Nick Clifton <nickc@redhat.com>
1139 * po/fr.po: Updated French translation.
1140 * po/pt.po: Updated Portuguese translation.
1142 2019-01-21 Nick Clifton <nickc@redhat.com>
1144 * po/uk.po: Updated Ukranian translation.
1146 2019-01-19 Nick Clifton <nickc@redhat.com>
1148 * configure: Regenerate.
1149 * binutils/po/binutils.pot.
1151 * README-how-to-make-a-release: Update description on how to make
1154 2018-06-24 Nick Clifton <nickc@redhat.com>
1156 2.32 branch created.
1158 2019-01-17 Nick Clifton <nickc@redhat.com>
1160 * objdump.c (disassemble_section): When disassembling from a
1161 symbol only stop at the next symbol if the original symbol was not
1162 a function symbol. Otherwise continue disassembling until a new
1163 function is reached.
1164 * testsuite/binutils-all/objdump.exp: Add tests of extended
1166 * testsuite/binutils-all/disasm.s: New test source file.
1168 2019-01-16 Kito Cheng <kito@andestech.com>
1169 Nelson Chu <nelson@andestech.com>
1171 * readelf.c (get_riscv_section_type_name): New function.
1172 (get_section_type_name): Add handler for RISC-V.
1173 (riscv_attr_tag_t): Declare.
1174 (riscv_attr_tag): New.
1175 (display_riscv_attribute): New function.
1176 (process_attributes): Add handler for RISC-V.
1177 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
1180 2019-01-10 Nick Clifton <nickc@redhat.com>
1183 * objdump.c (sanitize_string): New function. Removes control
1184 characters from symbol names.
1185 (dump_section_header): Use new function.
1186 (objdump_print_symname): Likewise.
1187 (objdump_print_addr_with_sym): Likewise.
1188 (show_line): Likewise.
1189 (disassemble_bytes): Likewise.
1190 (disassemble_section): Likewise.
1191 (load_specific_debug_section): Likewise.
1192 (read_section_stabs): Likewise.
1193 (print_section_stabs): Likewise.
1194 (dump_section): Likewise.
1195 (dump_reloc_set): Likewise.
1196 (dump_relocs_in_section): Likewise.
1197 (dump_bfd): Likewise.
1198 (display_any_bfd): Likewise.
1200 2019-01-09 Nick Clifton <nickc@redhat.com>
1203 * readelf.c (process_archive): Use arch.file_name in error
1204 messages until the qualified name is available.
1206 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1208 * configure: Regenerate.
1210 2019-01-09 Alan Modra <amodra@gmail.com>
1212 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
1213 unconditionally to tests needing the option rather than via a
1216 2019-01-08 Nick Clifton <nickc@redhat.com>
1219 * cxxfilt.c (hp_symbol_characters): Delete.
1220 (main): Remove depcreated demangling styles.
1221 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
1223 * testsuite/binutils-all/cxxfilt.exp: Use the
1224 --no-strip-underscore option for targets that do prefix their
1225 symbols with underscores.
1226 Update tests to eliminate those that use gnu v2 encoding.
1228 2019-01-08 Tamar Christina <tamar.christina@arm.com>
1231 * testsuite/binutils-all/copy-6.d: New test.
1232 * testsuite/binutils-all/objcopy.exp: Use it.
1234 2019-01-08 Alan Modra <amodra@gmail.com>
1236 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
1237 $srcdir/$subdir to source file name if it starts with "./".
1239 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1241 * readelf.c (get_machine_flags): Add RXv3 output.
1243 2019-01-04 Nick Clifton <nickc@redhat.com>
1246 * objdump.c (load_specific_debug_section): Check for integer
1247 overflow before attempting to allocate contents.
1249 2019-01-04 Nick Clifton <nickc@redhat.com>
1252 * objcopy.c (copy_object): Free dhandle after writing out the
1254 * objdump.c (dump_bfd): Free dhandle after printing out the debug
1258 2019-01-01 Alan Modra <amodra@gmail.com>
1260 Update year range in copyright notice of all files.
1262 For older changes see ChangeLog-2018
1264 Copyright (C) 2019 Free Software Foundation, Inc.
1266 Copying and distribution of this file, with or without modification,
1267 are permitted in any medium without royalty provided the copyright
1268 notice and this notice are preserved.
1274 version-control: never