1 2019-10-26 Alan Modra <amodra@gmail.com>
3 * objcopy.c (sort_gnu_build_notes): Correct sort of deleted
6 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
8 * elfedit.c (elf_x86_feature): Report unknown x86 feature.
10 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
12 * elfedit.c (update_gnu_property): Replace BYTE_PUT with byte_put.
14 2019-10-25 Nick Clifton <nickc@redhat.com>
16 * objcopy.c (struct merged_note_section): New structure. Used to
17 chain together details of mergeable note sections.
18 (is_merged_note_section): Rename to is_megreable_note_section and
19 return true for note sections that use GNU_BUILD_ATTRS_SECTION_NAME
22 (objcoopy_internal_note): Add padded_namesz field.
23 (DEBUG_MERGE): New macro. Set to non-zero to enable debugging of
24 the note merging code.
25 (gap_exists): Rename to overlaps_or_adjoins and return TRUE for
26 overlapping notes or adjoining notes.
27 (contained_by, is_deleted_note, is_version_note)
28 (compare_gnu_build_notes, sort_gnu_build_notes): New functions.
29 (merge_gnu_build_notes): Rework. Sort notes into a mergeable
30 order first. Merge them. Then sort them into an ascending
31 address order before writing them out.
32 (copy_object): Handle more than one mergeable note section.
33 * testsuite/binutils-all/note-2-32.d: Update for new merging
35 * testsuite/binutils-all/note-2-32.s: Likewise.
36 * testsuite/binutils-all/note-2-64.d: Likewise.
37 * testsuite/binutils-all/note-2-64.s: Likewise.
38 * testsuite/binutils-all/note-3-32.d: Likewise.
39 * testsuite/binutils-all/note-3-32.s: Likewise.
40 * testsuite/binutils-all/note-3-64.d: Likewise.
41 * testsuite/binutils-all/note-3-64.s: Likewise.
42 * testsuite/binutils-all/note-4-32.d: Likewise.
43 * testsuite/binutils-all/note-4-32.s: Likewise.
44 * testsuite/binutils-all/note-4-64.d: Likewise.
45 * testsuite/binutils-all/note-4-64.s: Likewise.
46 * testsuite/binutils-all/note-6-32.s: New test source file.
47 * testsuite/binutils-all/note-6-64.s: New test source file.
48 * testsuite/binutils-all/note-6-32.d: New test driver file.
49 * testsuite/binutils-all/note-6-64.d: New test driver file.
50 * testsuite/binutils-all/objcopy.exp: Run the new test.
52 2019-10-25 Alan Modra <amodra@gmail.com>
54 * readelf.c (process_program_headers): Check PT_PHDR p_offset
55 as well as p_vaddr. Use p_filesz, not p_memsz, in vaddr test.
57 2019-10-21 Alan Modra <amodra@gmail.com>
61 * ar.c (write_archive): Set BFD_ARCHIVE_FULL_PATH.
62 * doc/binutils.texi (extract from archive): Mention
63 restrictions when extracting from archives with full paths.
64 (ar P): Update to current P support.
65 (ar -X32_64): Fix spelling.
67 2019-10-14 Alan Modra <amodra@gmail.com>
69 * objcopy.c (compare_section_lma): Correct comment. Dereference
70 section pointer earlier and lose unnecessary const. Style fixes.
73 2019-10-13 Nick Clifton <nickc@redhat.com>
75 * README-how-to-make-a-release: Add a note to reset the
76 development flag back to true after making a point release.
78 2019-10-12 Nick Clifton <nickc@redhat.com>
80 * README-how-to-make-a-release: Tweak a few sections based on the
81 results of the 2.33.1 release.
83 2019-10-11 Nick Clifton <nickc@redhat.com>
85 * po/zh_TW.po: Updated Chinese (traditional) translation.
87 2019-10-09 Alan Modra <amodra@gmail.com>
90 * ar.c (decode_options): Don't try for command options if
91 write_armap or mri_mode is selected.
93 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
95 * readelf.c (display_msp430_gnu_attribute): New.
96 (process_arch_specific): Use msp430 specific handler for GNU
99 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
101 * objdump.c (main): Fix tabdamage.
102 * readelf.c (CTF_DUMP): Likewise.
104 (dump_section_as_ctf): Likewise.
106 2019-08-03 Nick Alcock <nick.alcock@oracle.com>
108 * objdump.c (dump_ctf): Use the default CTF archive member as the
109 parent even when no parent section is specified.
110 (dump_ctf_archive_member): Only import from the parent
111 if this is not the default ".ctf" member.
113 2019-09-23 Nick Alcock <nick.alcock@oracle.com>
115 * Makefile.am (LIBCTF): Mention the .la file.
117 (readelf_DEPENDENCIES): Use it.
118 (readelf_LDADD): Likewise.
119 * Makefile.in: Regenerated.
121 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
123 * readelf.c (dump_ctf_symtab_name): Give default value.
124 (dump_ctf_strtab_name): Likewise.
125 (dump_section_as_ctf): Allow for the null string.
127 2019-07-08 Nick Alcock <nick.alcock@oracle.com>
129 * objdump.c (dump_ctf_archive_member): Dump the CTF header.
130 * readelf.c (dump_section_as_ctf): Likewise.
132 2019-10-02 Niklas Gürtler <profclonk@gmail.com>
135 * objcopy.c (copy_usage): Update description of
136 --set-section-alignment.
137 (copy_main): Interpret numeric argument of --set-section-alignment
138 as a byte alignment, not a power of two alignment.
139 * doc/binutils.texi: Update description of
140 --set-section-alignment.
141 * testsuite/binutils-all/set-section-alignment.d: New test.
142 * testsuite/binutils-all/objcopy.exp: Run the new test.
144 2019-09-30 Alan Modra <amodra@gmail.com>
147 * readelf.c (process_program_headers): Clear dynamic_addr and
148 dynamic_size earlier.
150 2019-09-24 Alan Modra <amodra@gmail.com>
153 * nm.c (print_format_string): New.
154 (get_print_format): Delete saved_format. Move earlier.
155 (set_print_width): Call get_print_format.
156 (print_value): Use print_format_string.
158 2019-09-23 Alan Modra <amodra@gmail.com>
160 * dlltool.c: Include coff-bfd.h.
162 2019-09-23 Alan Modra <amodra@gmail.com>
165 * dwarf.c (get_type_signedness): Delete ineffective pointer
166 comparison check. Properly range check uvalue offset on
168 (read_and_display_attr_value): Range check uvalue offset before
169 calling get_type_signedness.
171 2019-09-20 Alan Modra <amodra@gmail.com>
173 * ar.c (write_archive): Use bfd_set_thin_archive.
175 2019-09-18 Tamar Christina <tamar.christina@arm.com>
177 * testsuite/binutils-all/objdump.exp (objump -S): Update testcases.
179 2019-09-18 Alan Modra <amodra@gmail.com>
181 * addr2line.c, * bucomm.c, * coffgrok.c, * dlltool.c, * nm.c,
182 * objcopy.c, * objdump.c, * od-elf32_avr.c, * od-macho.c,
183 * od-xcoff.c, * prdbg.c, * rdcoff.c, * rddbg.c, * rescoff.c,
184 * resres.c, * size.c, * srconv.c, * strings.c, * windmc.c: Update
185 throughout for bfd section macro and function changes.
187 2019-09-18 Alan Modra <amodra@gmail.com>
189 * nm.c: Update bfd_get_section to bfd_asymbol_section throughout.
190 * objcopy.c: Likewise.
191 * objdump.c: Likewise.
192 * rdcoff.c: Likewise.
193 * objcopy.c (create_new_symbol): Use bfd_set_asymbol_name.
194 (filter_symbols): Likewise.
196 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
198 * doc/Makefile.am (MOSTLYCLEANFILES): Clean all man pages,
199 cxxfilt.man and binutils.info.
200 (MAINTAINERCLEANFILES): Remove.
201 * doc/Makefile.in: Re-generate.
203 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
205 * doc/Makefile.am: Remove references to binutils_TEXINFOS.
206 * doc/Makefile.in: Re-generate.
208 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
210 * doc/Makefile.am (install-data-loca): Remove target.
211 (DISTCLEANFILES): Remove variable.
212 * doc/Makefile.in: Re-generate.
214 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
216 * Makefile.in: Re-generate.
217 * configure: Re-generate.
218 * doc/Makefile.in: Re-generate.
220 2019-09-16 Phil Blundell <pb@pbcl.net>
222 * Makefile.in, configure. doc/Makefile.in: Regenerated.
224 2019-09-11 Tom Tromey <tom@tromey.com>
226 * objcopy.c (copy_archive): Update.
227 * bucomm.h (make_tempname, make_tempdir): Make argument const.
228 * bucomm.c (make_tempname, make_tempdir): Make argument const.
230 2019-09-11 Alan Modra <amodra@gmail.com>
233 * objdump.c (disassemble_bytes): Adjust code to avoid overlong
234 lines. Correct max_reloc_offset_into_insn test.
236 2019-09-10 Nick Clifton <nickc@redhat.com>
239 * objdump.c (null_print): New function.
240 (disassemble_bytes): Delete previous_octets local and replace with
241 a test of the max_reloc_offset_into_insn field of the
242 bfd_arch_info structure. If a reloc is a potential match for the
243 next insn, then perform a dummy disassembly in order to calculate
246 2019-09-09 Phil Blundell <pb@pbcl.net>
248 binutils 2.33 branch created.
250 2019-09-06 Alan Modra <amodra@gmail.com>
252 * nm.c (print_object_filename_bsd, print_object_filename_sysv),
253 (print_object_filename_posix, print_archive_filename_bsd),
254 (print_archive_filename_sysv, print_archive_filename_posix),
255 (print_archive_member_bsd, print_archive_member_sysv),
256 (print_archive_member_posix): Constify parameter.
257 (struct output_fns <print_object_filename, print_archive_filename>),
258 (<print_archive_member>): Likewise.
259 * objcopy.c (copy_archive): Add cast for make_tempdir.
261 2019-08-29 Alan Modra <amodra@gmail.com>
263 * dwarf.c (check_uvalue): Remove unnecessary pointer checks.
265 2019-08-28 Niklas Gürtler <profclonk@gmail.com>
268 * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant.
269 (struct section_list): Add alignment field.
270 (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT.
271 (copy_options): Add --set-section-alignment.
272 (copy_usage): Describe --set-section-alignment.
273 (find_section_list): Initialise the alignment field.
274 (setup_section): Handle the alignment field.
275 (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT.
276 * doc/binutils.texi: Document the new feature.
277 * NEWS: Mention the new feature.
279 2019-08-28 Nick Clifton <nickc@redhat.com>
282 * objdump.c (source_comment): New static variable.
283 (option_values): Add OPTION_SOURCE_COMMENT.
284 (long_opions): Add --source-comment.
285 (print_line): If source comment is set, use it as a prefix to the
287 (main): Handle OPTION_SOURCE_COMMENT.
288 * doc/binutils.texi: Document the new option.
289 * NEWS: Mention the new feature.
290 * testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests
291 of the -S and --source-comment options.
293 2019-08-27 Nick Clifton <nickc@redhat.com>
296 * dwarf.c (MAX_CU_NESTING): New constant.
297 (level_type_signed): New static array.
298 (skip_attr_bytes): New function.
299 (get_type_signedness): New function.
300 (read_and_print_leb128): New function.
301 (display_discr_list): New function.
302 (read_and_display_attr_value): Add start parameter.
303 Use new functions when handling DW_AT_type and DW_AT_discr_list.
304 (read_and_display_attr): Add start parameter. Pass to
305 read_and_display_attr_value.
306 (process_debug_info): Update call to read_and_display_attr.
307 (display_formatted_table): Likewise.
308 (display_debug_lines_decoded): Likewise. Also add start
310 (display_debug_lines): Likewise.
311 * testsuite/binutils-all/dwarf-attributes.S: Update discrimination
313 * testsuite/binutils-all/dwarf-attributes.W: Update expected
316 2019-08-26 Alan Modra <amodra@gmail.com>
319 * debug.c (debug_write_type): Call empty_type for NULL type here..
320 (debug_write_type): ..rather than in just one case here.
322 2019-08-23 Nick Clifton <nickc@redhat.com>
325 * dwarf.c (check_uvalue): New function. Ensures that a block's
327 (read_and_display_attr_value): Use check_value when processsing
328 DW_FORM_block<n> attributes.
330 2019-08-22 Nick Clifton <nickc@redhat.com>
333 * dwarf.c (process_cu_tu_index): Handle the case where a table
334 does not have any columns.
336 2019-08-19 Alan Modra <amodra@gmail.com>
339 * dwarf.c (display_debug_frames): Use the read_cie check and error
340 for augmentation data length.
342 2019-08-17 Alan Modra <amodra@gmail.com>
345 * dwarf.c (comp_addr_base): Dereference args.
347 2019-08-16 Alan Modra <amodra@gmail.com>
351 * readelf.c (get_symbol_version_string): Set sym_info earlier.
353 2019-08-15 Nick Clifton <nickc@redhat.com>
356 * doc/binutils.texi (nm): Document the 'n' symbol type.
358 2019-08-15 Christophe Vidal <support@krizalys.com>
360 * docs/binutils.texi: Fixed notice message disassembler options
361 section of the man page.
363 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
365 * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type.
366 (get_mips_section_type_name): Return MI{S_XHASH name string.
367 (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic
369 (process_symbol_table): Initialize the .MIPS.xhash section
370 pointer. Adjust the readelf output to support the new section.
371 (process_object): Set the .MIPS.xhash dynamic info to zero.
373 2019-08-09 Tamar Christina <tamar.christina@arm.com>
375 * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff.
376 * testsuite/binutils-all/arm/in-order.d: Likewise.
377 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
378 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
380 2019-08-08 Nick Clifton <nickc@redhat.com>
383 * readelf.c (process_notes_at): Left justify the "Data size"
385 * testsuite/binutils-all/i386/empty.d: Adjust for new output format.
386 * testsuite/binutils-all/i386/ibt.d: Likewise.
387 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
388 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
389 * testsuite/binutils-all/i386/shstk.d: Likewise.
390 * testsuite/binutils-all/note-2-32.d: Likewise.
391 * testsuite/binutils-all/note-2-64.d: Likewise.
392 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
393 * testsuite/binutils-all/x86-64/empty.d: Likewise.
394 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
395 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
396 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
397 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
398 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
399 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
400 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
401 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
402 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
403 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
404 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
405 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
406 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
407 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
409 2019-08-08 Nick Clifton <nickc@redhat.com>
411 * testsuite/gentestdlls.c (main): Move declaration of loop
412 variable outside of the for() statement.
414 2019-08-08 Jordan Rupprecht <rupprecht@google.com>
416 * readelf.c (process_note): Mask unknown description data bytes.
418 2019-08-08 Alan Modra <amodra@gmail.com>
420 * readelf.c (get_data): Improve overflow checks.
422 2019-08-07 Nick Clifton <nickc@redhat.com>
425 * doc/binutils.texi: Ensure consistent formating of title strings
426 for man pages. Extend the title of the size man page to be more
429 2019-08-07 Omair Majid <omajid@redhat.com>
431 * testsuite/binutils-all/objdump.exp
432 (test_objdump_dotnet_assemblies): Fix test to distinguish errors
433 in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
434 introduced machine types.
435 * testsuite/gentestdlls.c (write_simple_dll): New function.
436 (main): Generate simple and Linux-specific variants of pei-i386
437 and pei-x86-64 files so both can be used by tests.
439 2019-08-07 Alan Modra <amodra@gmail.com>
442 * readelf.c (dump_ia64_unwind): Check that buffer is large
443 enough for "stamp" before reading.
445 2019-08-05 Nick Clifton <nickc@redhat.com>
448 * objcopy.c (merge_gnu_build_notes): Do not insist on the first
449 note being a version note.
450 Remove spurious debugging fprintf.
452 2019-08-05 Nick Clifton <nickc@redhat.com>
455 * readelf.c (apply_relocations): Catch potential integer overflow
456 whilst checking reloc location against section size.
458 2019-08-02 Alan Modra <amodra@gmail.com>
461 * readelf.c (ABSADDR): Delete.
462 (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
464 2019-07-29 Martin Liska <mliska@suse.cz>
467 * nm.c (filter_symbols): Set report_plugin_err if
469 (display_rel_file): Report error for a missing LTO plugin.
471 2019-07-26 Alan Modra <amodra@gmail.com>
474 * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
475 systems by casting ncols and nslots expressions to size_t. Display
476 number of columns and slots before giving up due to buffer overflow.
477 Use %u to display unsigned ints. Perform more pointer wrap tests.
479 2019-07-25 Tom Tromey <tromey@adacore.com>
482 * dwarf.c (display_debug_names): Display the contents of the
483 augmentation string, if it is printable.
485 2019-07-25 Nick Clifton <nickc@redhat.com>
488 * readelf.c (process_mips_specific): Check for buffer overflow
489 before reading reginfo information.
491 2019-07-24 Nick Clifton <nickc@redhat.com>
494 * ar.c (decode_options): Restart option scanning if no operation
495 is detected and argument remain to be scanned.
497 2019-07-23 Nick Clifton <nickc@redhat.com>
500 * objdump.c (is_relocateable): Delete.
501 (load_specific_debug_section): Test the abfd for relocations
502 directly, rather than relying upon is_relocateable.
503 (dump_dwarf): Delete initlialization of is_relocateable.
505 2019-07-23 Alan Modra <amodra@gmail.com>
507 * readelf.c (get_parisc_segment_type): Split off hpux entries..
508 (get_ia64_segment_type): ..and these..
509 (get_hpux_segment_type): ..to here.
510 (get_segment_type): Condition GNU_MBIND on osabi. Use
511 get_hpux_segment_type.
512 (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
513 (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
515 2019-07-23 Alan Modra <amodra@gmail.com>
517 * testsuite/binutils-all/objcopy.exp (elf64): Correct object
518 file used to set this variable.
520 2019-07-23 Omar Majid <omajid@redhat.com>
522 * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
523 (GENTESTDLLSPROG): Define.
524 (TEST_PROGS): Add GENTESTDLLSPROG.
525 * Makefile.in: Regenerate.
526 * testsuite/binutils-all/objdump.exp
527 (test_objdump_dotnet_assemblies): New proc.
529 * testsuite/gentestdlls.c: New source file.
531 2019-06-28 Nick Clifton <nickc@redhat.com>
534 * objdump.c (slurp_symtab): Fail with a helpful error message if
535 the symbol table is too large. Skip this check for MMO format
538 2019-06-26 Nick Clifton <nickc@redhat.com>
541 * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
542 indicate this in the output.
543 (bfd_nonfatal_message): Likewise.
545 2019-06-25 Jan Beulich <jbeulich@suse.com>
547 * readelf.c (dump_ctf_indent_lines): Rename local variable
548 "spaces" to "blanks".
550 2019-06-25 Jan Beulich <jbeulich@suse.com>
552 * objdump.c (dump_ctf_indent_lines): Rename local variable
553 "spaces" to "blanks".
555 2019-06-14 Alan Modra <amodra@gmail.com>
557 * Makefile.in: Regenerate.
558 * aclocal.m4: Regenerate.
559 * doc/Makefile.in: Regenerate.
561 2019-06-12 Christos Zoulas <christos@zoulas.com>
564 * readelf.c (process_netbsd_elf_note): Add support for
566 (process_note): Add support for PaX notes.
568 2019-06-12 Christos Zoulas <christos@zoulas.com>
571 * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
574 2019-06-12 Christos Zoulas <christos@zoulas.com>
577 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
580 2019-06-11 Christos Zoulas <christos@zoulas.com>
583 * readelf.c (get_alpha_symbol_other): New function.
584 (get_symbol_other): Use for Alpha symbols.
585 (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
587 2019-06-11 Christos Zoulas <christos@zoulas.com>
590 * readelf.c (decode_arm_unwind): Ensure that the local variable
591 'addr' is always initialised.
593 2019-06-10 Christos Zoulas <christos@zoulas.com>
596 * strings.c (print_strings): Use %u to print unsigned values in
599 2019-06-10 Christos Zoulas <christos@zoulas.com>
602 * arsup.c (ar_open): Use asprintf in place of xmalloc and
605 2019-06-03 Nick Clifton <nickc@redhat.com>
608 2019-05-29 Nick Clifton <nickc@redhat.com>
610 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
612 (HAVE_LIBCTF): Define if libctf support is available.
613 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
614 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
616 * readelf.c: Likewise.
617 * configure: Regenerate.
618 * Makefile.in: Regenerate.
619 * config.in: Regenerate.
621 2019-05-30 Nick Alcock <nick.alcock@oracle.com>
623 * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
625 * readelf.c (shdr_to_ctf_sect): Likewise.
627 2019-05-30 Nick Clifton <nickc@redhat.com>
630 * readelf.c (process_version_sections): Add 0x prefix to address
631 display. Correct indentation.
633 2019-05-30 Alan Modra <amodra@gmail.com>
635 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
636 s12z to targets not supporting this feature.
638 2019-05-30 Alan Modra <amodra@gmail.com>
640 * testsuite/lib/binutils-common.exp (run_dump_test): Support
641 tcl procedures for xfail args.
643 2019-05-29 Nick Clifton <nickc@redhat.com>
645 * README-how-to-make-a-release: Add libctf to list of directories
646 that need updates in their ChangeLogs.
648 2019-05-29 Nick Clifton <nickc@redhat.com>
650 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
652 (HAVE_LIBCTF): Define if libctf support is available.
653 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
654 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
656 * readelf.c: Likewise.
657 * configure: Regenerate.
658 * Makefile.in: Regenerate.
659 * config.in: Regenerate.
661 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
663 * MAINTAINERS: Add myself as CTF maintainer.
665 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
667 * objdump.c (ctf-api.h): New include.
668 (dump_ctf_section_info): New variable.
669 (dump_ctf_section_name): Likewise.
670 (usage): Describe new options.
671 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
672 (main): Use them to add --ctf and --ctf-parent.
673 (read_section_stabs): Add new parameter, entsize_ptr.
674 (find_stabs_section): Adjust accordingly.
676 (dump_ctf_indent_lines): New.
677 (dump_ctf_archive_member): New.
679 (dump_bfd): Call it. Free resources afterwards.
680 * readelf.c (ctf-api.h): New include.
682 (static bfd_boolean do_ctf): Likewise.
683 (dump_ctf_parent_name): Likewise.
684 (dump_ctf_symtab_name): Likewise.
685 (dump_ctf_strtab_name): Likewise.
686 (OPTION_CTF_DUMP): Likewise.
687 (OPTION_CTF_PARENT): Likewise.
688 (OPTION_CTF_SYMBOLS): Likewise.
689 (OPTION_CTF_STRINGS): Likewise.
692 (parse_args): Handle the new options, requesting CTF_DUMP.
693 (process_section_contents): Handle CTF_DUMP.
694 (shdr_to_ctf_sect): New.
695 (dump_ctf_indent_lines): New.
696 (dump_section_as_ctf): New.
697 (main): Free resources.
698 * Makefile.am (LIBCTF): New variable.
699 (objdump_DEPENDENCIES): Use it.
700 (readelf_DEPENDENCIES): Likewise.
701 (objdump_LDADD): Likewise.
702 (readelf_LDADD): Likewise.
703 * aclocal.m4: Regenerated.
704 * Makefile.in: Likewise.
706 * doc/binutils.texi (objdump): Document the new options.
708 * doc/ctf.options.texi: New.
709 * doc/Makefile.in: Regenerated.
710 * NEWS: Mention the new feature.
712 2019-05-27 Alan Modra <amodra@gmail.com>
714 * readelf.c (process_section_groups): Continue processing groups
715 when sh_entsize exceeds group size.
717 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
719 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
720 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
721 (get_symbol_other): Call get_aarch64_symbol_other.
723 2019-05-24 Alan Modra <amodra@gmail.com>
725 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
727 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
729 * MAINTAINERS: Add myself as the maintainer for BPF.
731 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
733 * readelf.c: Include elf/bpf.h.
734 (guess_is_rela): Hanle EM_BPF.
735 (dump_relocations): Likewise.
736 (is_32bit_abs_reloc): Likewise.
737 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
740 2019-05-21 Tamar Christina <tamar.christina@arm.com>
742 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
743 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
744 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
746 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
749 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
750 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
752 2019-05-20 Nick Clifton <nickc@redhat.com>
754 * po/ca.po: Updated Catalan translation.
756 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
758 * NEWS: Mention Armv8.1-M Mainline and MVE.
760 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
762 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
763 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
765 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
768 * objcopy.c: Add new option --verilog-data-width. Use it to set
769 the value of VerilogDataWidth.
770 * doc/binutils.texi: Document the new option.
771 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
772 * testsuite/binutils-all/verilog-1.hex: New file.
773 * testsuite/binutils-all/verilog-2.hex: New file.
774 * testsuite/binutils-all/verilog-4.hex: New file.
775 * testsuite/binutils-all/verilog-8.hex: New file.
776 * NEWS: Mention the new feature.
778 2019-05-10 Alan Modra <amodra@gmail.com>
780 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
781 (test_objdump_content_limited): Add text arg, use in place of .text.
782 (bintest_signed.o): Call get_standard_section_names for name of
785 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
787 * objdump.c (sign_extend_address): New function.
788 (dump_bfd): Sign-extend user-specified start/stop addresses
789 for targets that need it.
790 * testsuite/binutils-all/objdump.exp: Add tests for objdump
791 with start and stop addresses in higher address ranges.
793 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
795 * testsuite/binutils-all/objdump.exp: Correct executable
797 * testsuite/binutils-all/compress.exp: Likewise.
799 2019-05-01 Nick Clifton <nickc@redhat.com>
802 * nm.c: (print_format): New variable.
803 (value_format_32bit, value_format_64bit): Delete.
804 (set_print_radix): Remove code to alter value_format strings.
805 (set_output_format): Record chosen format in print_format.
806 (get_print_format): New function - constructs a printf formatting
807 string according to the requirements of size, radix, and output
809 (print_value): Use get_print_format.
810 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
813 2019-04-30 Alan Modra <amodra@gmail.com>
815 * wrstabs.c (stab_start_class_type): Add assert to work around
818 2019-04-24 Nick Clifton <nickc@redhat.com>
820 * objcopy.c (strip_main): Do not enable note merging by default if
821 just stripping debug or dwo information.
822 * doc/binutils.texi (strip): Update documentation.
824 2019-04-23 Nick Clifton <nickc@redhat.com>
826 * README-how-to-make-a-release: Add note to update the symbolic
827 link from "docs" to "docs-2.x" on the sourceware website.
829 2019-04-16 Alan Modra <amodra@gmail.com>
831 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
832 * testsuite/binutils-all/copy-3.d: Likewise.
834 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
836 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
838 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
840 * readelf.c (decode_x86_isa): Handle
841 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
842 * testsuite/binutils-all/i386/pr21231b.d: Updated.
843 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
845 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
847 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
849 2019-03-26 Tamar Christina <tamar.christina@arm.com>
851 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
852 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
853 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
854 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
855 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
856 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
857 * testsuite/binutils-all/arm/in-order.d: Likewise.
858 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
859 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
860 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
862 2019-03-26 Nick Clifton <nickc@redhat.com>
864 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
867 2019-03-26 Alan Modra <amodra@gmail.com>
869 * objdump.c (dump_relocs_in_section): Warning fix.
871 2019-03-25 Tamar Christina <tamar.christina@arm.com>
873 * testsuite/binutils-all/arm/in-order-all.d: New test.
874 * testsuite/binutils-all/arm/in-order.d: New test.
875 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
876 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
877 * testsuite/binutils-all/arm/out-of-order.T: New test.
878 * testsuite/binutils-all/arm/out-of-order.d: New test.
879 * testsuite/binutils-all/arm/out-of-order.s: New test.
882 2019-03-25 Tamar Christina <tamar.christina@arm.com>
884 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
885 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
886 * testsuite/binutils-all/aarch64/out-of-order.d:
888 2019-03-25 Tamar Christina <tamar.christina@arm.com>
890 * testsuite/binutils-all/aarch64/in-order.d: New test.
891 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
894 2019-03-25 Tamar Christina <tamar.christina@arm.com>
896 * objdump.c (disassemble_bytes): Pass stop_offset.
897 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
898 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
899 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
901 2019-03-19 Nick Clifton <nickc@redhat.com>
904 * objdump.c (load_specific_debug_section): Check that the amount
905 of memory to be allocated matches the size of the section.
907 2019-03-13 Sudakshina Das <sudi.das@arm.com>
909 * readelf.c (get_aarch64_dynamic_type): Add case for
911 (dynamic_section_aarch64_val): Likewise.
913 2019-03-13 Sudakshina Das <sudi.das@arm.com>
914 Szabolcs Nagy <szabolcs.nagy@arm.com>
916 * readelf.c (get_aarch64_dynamic_type): New.
917 (get_dynamic_type): Use above for EM_AARCH64.
918 (dynamic_section_aarch64_val): New.
919 (process_dynamic_section): Use above for EM_AARCH64.
921 2019-03-13 Sudakshina Das <sudi.das@arm.com>
923 * readelf.c (decode_aarch64_feature_1_and): New.
924 (print_gnu_property_note): Add case for AArch64 gnu notes.
926 2019-03-12 Alan Modra <amodra@gmail.com>
928 * objdump.c (load_specific_debug_section): Don't compare section
929 size against file size.
930 (dump_relocs_in_section): Don't compare reloc size against file size.
931 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
933 2019-03-05 Nick Clifton <nickc@redhat.com>
936 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
938 2019-03-05 Nick Clifton <nickc@redhat.com>
940 * po/sv.po: Updated Swedish translation.
942 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
945 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
946 of "lmap" with a "foreach" loop.
948 2019-03-04 Nick Clifton <nickc@redhat.com>
951 * objcopy.c (copy_archive): Do not copy thin archives.
953 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
955 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
957 2019-02-25 Nick Clifton <nickc@redhat.com>
959 * objdump.c (sym_ok): New function.
960 (find_symbol_for_address): Use new function.
961 (disassemble_section): Compare sections by name, not pointer.
962 (dump_dwarf): Move code to initialise byte_get pointer and iterate
963 over separate debug files from here to ...
964 (dump_bfd): ... here. Add parameter indicating that a separate
965 debug info file is being dumped. For main file, pull in the
966 symbol tables from all separate debug info files.
967 (display_object): Update call to dump_bfd.
968 * doc/binutils.texi: Document extened behaviour of the
969 --dwarf=follow-links option.
970 * NEWS: Mention this new feature.
971 * testsuite/binutils-all/objdump.WK2: Update expected output.
972 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
973 options and dump file parameters.
975 * testsuite/binutils-all/objdump.WK3: New file.
976 * testsuite/binutils-all/readelf.exp: Change expected output for
978 * testsuite/binutils-all/readelf.wKis: New file.
980 2019-02-22 Nick Clifton <nickc@redhat.com>
983 * dwarf.h (struct separate_info): New structure for containing
984 information on separate debug info files.
985 * dwarf.c (struct dwo_info): New structure for containing dwo
987 (first_dwo_info): Chain of dwo_info structures.
988 (first_separate_file): Chain of separate_info structures.
989 (separate_debug_file, separate_debug_filename): Delete.
990 (fetch_alt_indirect_string): Scan all separate debug info files
991 for the requested string.
992 (add_dwo_info): New function.
993 (add_dwo_name): New function.
994 (add_dwo_dir): New function.
995 (add_dwo_id: New function.
996 (free_dwo_info): New function.
997 (read_and_display_attr_value): Store DWO data using the new
999 (load_debug_section_with_follow): If necessary, scan the list of
1000 separate debug info files for the requested section.
1001 (add_separate_debug_file): New function.
1002 (load_separate_debug_info): Call add_separate_debug_file to store
1003 the information on the newly loaded file.
1004 (load_dwo_file): Likewise.
1005 (load_separate_debif_file): Rename to load_separate_debug_files.
1006 Change return type to boolean. If following links then attempt to
1007 load all separate debug info files, not just the first one.
1008 (free_debug_memory): Release memory in dwo_info and separate_info
1010 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
1011 * readelf.c (process_object): Likewise.
1012 * doc/debug.options.texi: Update descriptions of links and
1013 follow-links options.
1014 * testsuite/binutils-all/objdump.WK2: Update expected output.
1015 * testsuite/binutils-all/readelf.k2: Likewise.
1016 * NEWS: Announce the new feature.
1018 2019-02-21 Nick Clifton <nickc@redhat.com>
1021 * unwind-ia64.c: Include sysdep.h.
1022 (unw_decode_x1): Check current pointer against end pointer before
1024 (unw_decode_x2): Likewise.
1025 (unw_decode_x3): Likewise.
1026 (unw_decode_x4): Likewise.
1027 (unw_decode_r2): Likewise.
1028 (unw_decode_p2_p5): Likewise.
1029 (unw_decode_p7_p10): Likewise.
1030 (unw_decode): Likewise.
1032 2019-02-20 Nick Clifton <nickc@redhat.com>
1035 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
1038 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
1039 prevent walking off the end of the buffer.
1040 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
1041 (unw_decode_x2): Likewise.
1042 (unw_decode_x3): Likewise.
1043 (unw_decode_x4): Likewise.
1044 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
1045 (unw_decode_r3): Likewise.
1046 (unw_decode_p7_p10): Likewise.
1047 (unw_decode_b2): Likewise.
1048 (unw_decode_b3_x4): Likewise.
1051 * readelf.c (process_mips_specific): Check for an options section
1052 that is too small to even contain a single option.
1055 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
1057 2019-02-20 Alan Modra <amodra@gmail.com>
1061 * readelf.c (get_data): Avoid possibility of overflow when
1062 checking for a read that may extend past end of file.
1063 (process_program_headers): Likewise.
1065 2019-02-20 Alan Modra <amodra@gmail.com>
1068 * objdump.c (dump_bfd_private_header): Print warning if
1069 bfd_print_private_bfd_data returns false.
1071 2019-02-12 Nick Clifton <nickc@redhat.com>
1074 * README-how-to-make-a-release: Use git clean to delete spurious
1075 files from the local source repository.
1077 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1079 * size.c (berkeley_format): Delete.
1080 (enum output_format): New enum.
1081 (selected_output_format): New variable.
1082 (usage): Update to mention GNU format.
1083 (main): Update to extract options, and select format as needed.
1084 Handle GNU format where needed.
1085 (berkeley_sum): Renamed to...
1086 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
1087 (berkeley_format): Renamed to...
1088 (berkeley_or_gnu_format): ...this, and updated to handle both
1090 (print_sizes): Handle GNU format.
1091 * doc/binutils.texi (size): Document new GNU format.
1092 * testsuite/binutils-all/size.exp: Add test of extended
1094 * NEWS: Mention new functionality.
1096 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1098 * doc/binutils.texi (size): Update example output for Berkeley
1101 2019-02-07 Nick Clifton <nickc@redhat.com>
1103 * README-how-to-make-a-release: Add a note about updating the
1104 obsolete targets in the bfd/config.bfd file.
1106 2019-02-04 Nick Clifton <nickc@redhat.com>
1108 * README-how-to-make-a-release: Add more notes on making a release.
1110 2019-01-25 Nick Clifton <nickc@redhat.com>
1113 * readelf.c (process_notes_at): Prevent an illegal memory access
1114 when the note's namesize is zero.
1115 (decode_tic6x_unwind_bytecode): Add code to handle the case where
1116 no registers are specified in a frame pop instruction.
1118 2019-01-25 Nick Clifton <nickc@redhat.com>
1120 * po/bg.po: Updated Bulgarian translation.
1122 2019-01-23 Nick Clifton <nickc@redhat.com>
1124 * po/fr.po: Updated French translation.
1125 * po/pt.po: Updated Portuguese translation.
1127 2019-01-21 Nick Clifton <nickc@redhat.com>
1129 * po/uk.po: Updated Ukranian translation.
1131 2019-01-19 Nick Clifton <nickc@redhat.com>
1133 * configure: Regenerate.
1134 * binutils/po/binutils.pot.
1136 * README-how-to-make-a-release: Update description on how to make
1139 2018-06-24 Nick Clifton <nickc@redhat.com>
1141 2.32 branch created.
1143 2019-01-17 Nick Clifton <nickc@redhat.com>
1145 * objdump.c (disassemble_section): When disassembling from a
1146 symbol only stop at the next symbol if the original symbol was not
1147 a function symbol. Otherwise continue disassembling until a new
1148 function is reached.
1149 * testsuite/binutils-all/objdump.exp: Add tests of extended
1151 * testsuite/binutils-all/disasm.s: New test source file.
1153 2019-01-16 Kito Cheng <kito@andestech.com>
1154 Nelson Chu <nelson@andestech.com>
1156 * readelf.c (get_riscv_section_type_name): New function.
1157 (get_section_type_name): Add handler for RISC-V.
1158 (riscv_attr_tag_t): Declare.
1159 (riscv_attr_tag): New.
1160 (display_riscv_attribute): New function.
1161 (process_attributes): Add handler for RISC-V.
1162 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
1165 2019-01-10 Nick Clifton <nickc@redhat.com>
1168 * objdump.c (sanitize_string): New function. Removes control
1169 characters from symbol names.
1170 (dump_section_header): Use new function.
1171 (objdump_print_symname): Likewise.
1172 (objdump_print_addr_with_sym): Likewise.
1173 (show_line): Likewise.
1174 (disassemble_bytes): Likewise.
1175 (disassemble_section): Likewise.
1176 (load_specific_debug_section): Likewise.
1177 (read_section_stabs): Likewise.
1178 (print_section_stabs): Likewise.
1179 (dump_section): Likewise.
1180 (dump_reloc_set): Likewise.
1181 (dump_relocs_in_section): Likewise.
1182 (dump_bfd): Likewise.
1183 (display_any_bfd): Likewise.
1185 2019-01-09 Nick Clifton <nickc@redhat.com>
1188 * readelf.c (process_archive): Use arch.file_name in error
1189 messages until the qualified name is available.
1191 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1193 * configure: Regenerate.
1195 2019-01-09 Alan Modra <amodra@gmail.com>
1197 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
1198 unconditionally to tests needing the option rather than via a
1201 2019-01-08 Nick Clifton <nickc@redhat.com>
1204 * cxxfilt.c (hp_symbol_characters): Delete.
1205 (main): Remove depcreated demangling styles.
1206 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
1208 * testsuite/binutils-all/cxxfilt.exp: Use the
1209 --no-strip-underscore option for targets that do prefix their
1210 symbols with underscores.
1211 Update tests to eliminate those that use gnu v2 encoding.
1213 2019-01-08 Tamar Christina <tamar.christina@arm.com>
1216 * testsuite/binutils-all/copy-6.d: New test.
1217 * testsuite/binutils-all/objcopy.exp: Use it.
1219 2019-01-08 Alan Modra <amodra@gmail.com>
1221 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
1222 $srcdir/$subdir to source file name if it starts with "./".
1224 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1226 * readelf.c (get_machine_flags): Add RXv3 output.
1228 2019-01-04 Nick Clifton <nickc@redhat.com>
1231 * objdump.c (load_specific_debug_section): Check for integer
1232 overflow before attempting to allocate contents.
1234 2019-01-04 Nick Clifton <nickc@redhat.com>
1237 * objcopy.c (copy_object): Free dhandle after writing out the
1239 * objdump.c (dump_bfd): Free dhandle after printing out the debug
1243 2019-01-01 Alan Modra <amodra@gmail.com>
1245 Update year range in copyright notice of all files.
1247 For older changes see ChangeLog-2018
1249 Copyright (C) 2019 Free Software Foundation, Inc.
1251 Copying and distribution of this file, with or without modification,
1252 are permitted in any medium without royalty provided the copyright
1253 notice and this notice are preserved.
1259 version-control: never